/**
 * КАРКАС: Базовая система токенов и глобальных API компонентов
 * Соответствует стандарту ТЗ компонентов библиотеки «Каркас»
 */

:root {
  /* ================= 7. Container ================= */
  --container-width: 1200px;
  --page-gutter: 24px;
  --section-space-y: 96px;

  /* ================= 8. Theme API: Цвета ================= */
  --color-primary: var(--primary);
  --color-primary-hover: var(--primary-hover);
  --color-secondary: var(--secondary);

  --color-text: var(--text);
  --color-text-muted: var(--text-muted);
  --color-text-inverse: #ffffff;

  --color-background: var(--bg);
  --color-surface: var(--surface);
  --color-surface-alt: var(--surface-card);

  --color-border: var(--border);
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* ================= 8. Theme API: Типографика ================= */
  --font-heading: var(--font-sans);
  --font-body: var(--font-sans);

  --font-weight-heading: 700;
  --font-weight-body: 400;

  --font-size-h1: clamp(32px, 5vw, 56px);
  --font-size-h2: clamp(26px, 3.5vw, 40px);
  --font-size-h3: clamp(20px, 2.5vw, 28px);
  --font-size-body: 16px;
  --font-size-small: 14px;

  --line-height-heading: 1.15;
  --line-height-body: 1.6;

  --letter-spacing-heading: -0.025em;

  /* ================= 8. Theme API: Скругления ================= */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --radius-button: var(--radius);
  --radius-card: var(--radius);
  --radius-media: var(--radius);

  /* ================= 8. Theme API: Тени ================= */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.12);

  /* ================= 8. Theme API: Borders ================= */
  --border-width: 1px;
  --border-style: solid;
  --border-color: var(--color-border);

  /* ================= 8. Theme API: Spacing ================= */
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 72px;

  /* ================= 10. Градиенты ================= */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, #3b82f6 100%);
  --gradient-secondary: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-dark: linear-gradient(180deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.98) 100%);

  /* ================= 13. Motion ================= */
  --motion-duration-fast: 180ms;
  --motion-duration-normal: 320ms;
  --motion-duration-slow: 600ms;
  --motion-easing: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= Базовый сброс ================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

/* ================= 7. Container ================= */
.k-container {
  width: min(calc(100% - var(--page-gutter) * 2), var(--container-width));
  margin-inline: auto;
}

.k-section {
  position: relative;
  padding-block: var(--section-space-y);
  overflow: hidden;
}

/* ================= 9. Background API ================= */
.k-section[data-background="solid"] {
  background-color: var(--color-background);
}

.k-section[data-background="surface"] {
  background-color: var(--color-surface);
}

.k-section[data-background="gradient"] {
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
}

.k-section[data-background="dark"] {
  background-color: var(--color-secondary);
  color: var(--color-text-inverse);
}

.k-section[data-background="none"] {
  background: transparent;
}

/* ================= 11. Background Patterns API ================= */
.k-section[data-pattern]::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.k-section[data-pattern="grid"]::before {
  background-image: linear-gradient(to right, rgba(0,0,0,0.06) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.k-section[data-pattern="dots"]::before {
  background-image: radial-gradient(rgba(0,0,0,0.12) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

.k-section[data-pattern="lines"]::before {
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.04) 10px, rgba(0,0,0,0.04) 20px);
}

.k-section[data-pattern="mesh"]::before {
  background: radial-gradient(at 10% 20%, rgba(37, 99, 235, 0.15) 0px, transparent 50%),
              radial-gradient(at 90% 80%, rgba(245, 158, 11, 0.12) 0px, transparent 50%);
}

.k-section > .k-container {
  position: relative;
  z-index: 1;
}

/* ================= 12. Decorations API ================= */
.k-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.35;
}

.k-section[data-decoration="blob"]::after {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.k-section[data-decoration="glow"]::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.2) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

/* ================= Кнопки (System Buttons) ================= */
.k-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius-button);
  border: var(--border-width) var(--border-style) transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--motion-duration-fast) var(--motion-easing);
}

.k-button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.k-button--primary {
  background-color: var(--color-primary);
  color: var(--color-text-inverse) !important;
}

.k-button--primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.k-button--secondary {
  background-color: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.k-button--secondary:hover {
  background-color: var(--color-surface-alt);
  border-color: var(--color-text-muted);
}

.k-button--outline {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.k-button--outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ================= 14. Hover API ================= */
[data-hover="lift"] {
  transition: transform var(--motion-duration-normal) var(--motion-easing),
              box-shadow var(--motion-duration-normal) var(--motion-easing);
}
[data-hover="lift"]:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

[data-hover="scale"] {
  transition: transform var(--motion-duration-normal) var(--motion-easing);
}
[data-hover="scale"]:hover {
  transform: scale(1.025);
}

[data-hover="shadow"]:hover {
  box-shadow: var(--shadow-lg);
}

[data-hover="border"]:hover {
  border-color: var(--color-primary);
}

/* ================= 13. Animation API ================= */
[data-animation] {
  opacity: 0;
  transition: opacity var(--motion-duration-slow) var(--motion-easing),
              transform var(--motion-duration-slow) var(--motion-easing);
  will-change: opacity, transform;
}

[data-animation="fade-up"] {
  transform: translateY(24px);
}
[data-animation="fade-down"] {
  transform: translateY(-24px);
}
[data-animation="fade-left"] {
  transform: translateX(24px);
}
[data-animation="fade-right"] {
  transform: translateX(-24px);
}
[data-animation="scale"] {
  transform: scale(0.95);
}

/* Состояние готовности анимации при прокрутке */
[data-animation].k-animated {
  opacity: 1;
  transform: none;
}

/* Каскадная задержка для дочерних элементов */
.k-stagger > *:nth-child(1) { transition-delay: 0ms; }
.k-stagger > *:nth-child(2) { transition-delay: 80ms; }
.k-stagger > *:nth-child(3) { transition-delay: 160ms; }
.k-stagger > *:nth-child(4) { transition-delay: 240ms; }
.k-stagger > *:nth-child(5) { transition-delay: 320ms; }

/* Отключение анимаций для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  [data-animation],
  [data-hover],
  .k-button {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Mobile navigation belongs to its component instance. */
.k-block .k-mobile-menu { position:fixed; inset:72px 0 0; z-index:500; overflow:auto; padding:24px; background:var(--bg); color:var(--text); }
.k-block .k-mobile-menu[hidden] { display:none; }
.k-block .k-mobile-menu a { display:block; padding:12px 0; }

/**
 * Karkas Base Block Stylesheet
 * Быстрый, легковесный CSS-фреймворк для сгенерированных статических сайтов
 */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --bg: #ffffff;
    --surface: #f8fafc;
    --surface-card: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-sm: 6px;
    --radius-lg: 20px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px -2px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px -4px rgba(0,0,0,0.12);
    --container-width: 1200px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-sans);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}

.kb-container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.kb-block {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Typography & Badges */
.kb-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    margin-bottom: 16px;
}

.kb-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 9999px;
    margin-bottom: 20px;
}

.kb-section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.kb-section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.kb-section-desc {
    font-size: 17px;
    color: var(--text-muted);
}

/* Buttons */
.kb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-align: center;
}

.kb-btn-primary {
    background-color: var(--primary);
    color: #ffffff !important;
}

.kb-btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.kb-btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.kb-btn-outline:hover {
    background: var(--surface);
    border-color: var(--text);
}

.kb-btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.kb-btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.kb-btn-block {
    width: 100%;
}

/* Header */
.kb-header {
    padding-top: 20px;
    padding-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.kb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.kb-brand {
    display: flex;
    flex-direction: column;
}

.kb-brand-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.kb-brand-tag {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kb-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.kb-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.kb-nav-link:hover {
    color: var(--primary);
}

.kb-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.kb-phone {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.kb-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.kb-mobile-toggle span {
    width: 22px;
    height: 2px;
    background-color: var(--text);
    transition: transform 0.2s, opacity 0.2s;
}

.kb-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.kb-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.kb-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Modern */
.kb-hero-modern {
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding-top: 140px;
    padding-bottom: 120px;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.kb-hero-content {
    max-width: 860px;
    margin: 0 auto;
}

.kb-hero-title {
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.kb-hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.kb-hero-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.kb-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.kb-metric-val {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
}

.kb-metric-lbl {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Hero Split */
.kb-hero-split {
    background: var(--surface);
    padding-top: 100px;
    padding-bottom: 100px;
}

.kb-split-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.kb-check-list {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kb-check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text);
}

.kb-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary);
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

.kb-lead-card {
    background: var(--surface-card);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.kb-lead-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.kb-lead-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Forms & Fields */
.kb-field {
    margin-bottom: 16px;
}

.kb-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.kb-input, .kb-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.kb-input:focus, .kb-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.kb-agree {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
}

/* Features Grid */
.kb-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.kb-feature-card {
    background: var(--surface-card);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kb-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.kb-feature-icon {
    font-size: 32px;
    margin-bottom: 18px;
}

.kb-feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.kb-feature-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Services */
.kb-services {
    background: var(--surface);
}

.kb-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.kb-service-card {
    background: var(--surface-card);
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
}

.kb-card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 9999px;
}

.kb-service-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.kb-service-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.kb-service-price small {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.kb-service-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

/* About */
.kb-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.kb-about-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4/3;
}

.kb-p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Portfolio */
.kb-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.kb-portfolio-card {
    background: var(--surface-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kb-portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.kb-portfolio-img-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.kb-portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.kb-portfolio-card:hover .kb-portfolio-img {
    transform: scale(1.04);
}

.kb-portfolio-cat {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
}

.kb-portfolio-info {
    padding: 24px;
}

.kb-portfolio-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.kb-portfolio-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* Pricing */
.kb-pricing {
    background: var(--surface);
}

.kb-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.kb-plan-card {
    background: var(--surface-card);
    padding: 40px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
}

.kb-plan-popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
    z-index: 2;
}

.kb-popular-ribbon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 16px;
    border-radius: 9999px;
}

.kb-plan-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.kb-plan-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.kb-plan-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.kb-plan-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kb-plan-features li {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kb-check {
    color: #10b981;
    font-weight: bold;
}

/* Testimonials */
.kb-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.kb-testi-card {
    background: var(--surface-card);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.kb-stars {
    color: #f59e0b;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.kb-quote {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 24px;
    font-style: italic;
}

.kb-author-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kb-testi-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.kb-testi-avatar-stub {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.kb-author-name {
    font-size: 14px;
    font-weight: 700;
}

.kb-author-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* FAQ */
.kb-faq {
    background: var(--surface);
}

.kb-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kb-faq-item {
    background: var(--surface-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.kb-faq-question {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    user-select: none;
}

.kb-faq-question::-webkit-details-marker {
    display: none;
}

.kb-faq-arrow {
    font-size: 16px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.kb-faq-item[open] .kb-faq-arrow {
    transform: rotate(180deg);
}

.kb-faq-answer {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact */
.kb-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.kb-info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.kb-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.kb-info-icon {
    font-size: 22px;
}

.kb-info-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.kb-info-item p {
    font-size: 14px;
    color: var(--text-muted);
}

.kb-contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.kb-social-link {
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.kb-social-link:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.kb-contact-form-wrap {
    background: var(--surface-card);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.kb-form-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.karkas-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.k-form__status {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.k-form__status.is-sending { color: var(--text-muted); }
.k-form__status.is-success { color: #15803d; }
.k-form__status.is-error { color: #b91c1c; }

.kb-cta-lead {
    width: min(100%, 680px);
    margin: 32px auto 0;
    padding: clamp(22px, 4vw, 34px);
    text-align: left;
    color: var(--text);
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.kb-cta-lead__title {
    margin: 0 0 20px;
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
}

.kb-cta-lead__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.kb-cta-lead__consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 4px 0 16px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.kb-cta-lead__consent input {
    margin-top: 2px;
    accent-color: var(--primary);
}

.kb-cta-lead__button {
    width: 100%;
    padding: 13px 20px;
    color: #ffffff;
    background: var(--primary);
    border: 0;
    border-radius: var(--radius-sm);
    font: 700 14px/1.2 var(--font-sans);
    cursor: pointer;
    transition: filter 0.2s, transform 0.2s;
}

.kb-cta-lead__button:hover { filter: brightness(0.92); transform: translateY(-1px); }
.kb-cta-lead__button:disabled { opacity: 0.65; cursor: wait; transform: none; }

@media (max-width: 640px) {
    .kb-cta-lead__grid { grid-template-columns: 1fr; gap: 0; }
}

/* Footer */
.kb-footer {
    background: var(--secondary);
    color: #ffffff;
    padding-top: 60px;
    padding-bottom: 30px;
    margin-top: auto;
}

.kb-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kb-footer-title {
    font-size: 20px;
    font-weight: 800;
}

.kb-footer-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}

.kb-footer-contacts {
    display: flex;
    gap: 24px;
    font-size: 14px;
}

.kb-footer-contacts a:hover {
    color: var(--primary);
}

.kb-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.kb-privacy:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 991px) {
    .kb-nav {
        display: none;
    }
    .kb-nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: calc(100% + 20px);
        left: 0;
        right: 0;
        padding: 20px;
        background: var(--surface-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: 0 16px 35px rgba(0, 0, 0, 0.14);
    }
    .kb-mobile-toggle {
        display: flex;
    }
    .kb-split-grid,
    .kb-about-grid,
    .kb-contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .kb-plan-popular {
        transform: none;
    }
    .kb-hero-metrics {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Long user-provided headings remain readable in every block family. */
.k-block h1, .k-block h2, .k-block h3 { overflow-wrap:anywhere; }
