/* FIDCOM style.css — версия 4 (шкалы + акция + тема + лицензии) */
/* =====================================================================
   FIDCOM — стили публичной части

   Все размеры берутся из двух шкал: типографической (--fs-*)
   и шкалы отступов (--s-*). Произвольных значений вроде .93rem
   или 34px в файле нет — это и держит пропорции.
   ===================================================================== */

:root {
    /* --- Цвет ------------------------------------------------------- */
    --primary:        #5B4B8A;
    --primary-dark:   #493B72;
    --primary-soft:   #F1EEF9;
    --primary-line:   #D9D1EC;

    --accent:         #2ECC71;
    --accent-dark:    #23A25A;
    --accent-soft:    #E6F8EE;
    --accent-line:    #B6E9CD;

    --ink:            #16162A;   /* заголовки */
    --ink-2:          #414A5C;   /* основной текст */
    --ink-3:          #6B7383;   /* второстепенный */
    --ink-4:          #98A0B0;   /* подписи */

    --surface:        #FFFFFF;
    --surface-2:      #F6F7FB;
    --line:           #E4E7F0;
    --line-strong:    #D3D8E6;

    --danger:         #E5484D;
    --danger-soft:    #FDECEC;

    /* --- Типографика: 8 ступеней ------------------------------------ */
    --fs-2xs:  0.75rem;      /* 12 — микроподписи */
    --fs-xs:   0.8125rem;    /* 13 — подписи, бейджи */
    --fs-sm:   0.875rem;     /* 14 — вспомогательный текст */
    --fs-base: 1rem;         /* 16 — основной */
    --fs-md:   1.0625rem;    /* 17 — крупный абзац */
    --fs-lg:   1.1875rem;    /* 19 — заголовок карточки */
    --fs-xl:   1.375rem;     /* 22 */

    --fs-h2:  clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
    --fs-h1:  clamp(2.25rem, 1.55rem + 3.0vw, 3.5rem);
    --fs-display: clamp(2.5rem, 1.6rem + 4vw, 4rem);

    --lh-tight:  1.12;
    --lh-snug:   1.3;
    --lh-normal: 1.6;
    --lh-loose:  1.75;

    --measure:       68ch;   /* предельная длина строки */
    --measure-tight: 56ch;

    /* --- Отступы: одна шкала ---------------------------------------- */
    --s-1:  0.25rem;
    --s-2:  0.5rem;
    --s-3:  0.75rem;
    --s-4:  1rem;
    --s-5:  1.25rem;
    --s-6:  1.5rem;
    --s-7:  1.75rem;
    --s-8:  2rem;
    --s-10: 2.5rem;
    --s-12: 3rem;
    --s-14: 3.5rem;

    --section-y: clamp(4rem, 6.5vw, 6.5rem);
    --gutter:    clamp(1.25rem, 3.5vw, 2.5rem);
    --gap-grid:  clamp(1rem, 1.8vw, 1.5rem);

    /* --- Форма ------------------------------------------------------- */
    --r-xs:   8px;
    --r-sm:   10px;
    --r-md:   14px;
    --r-lg:   20px;
    --r-pill: 100px;

    --shadow-xs: 0 1px 2px rgba(22, 22, 42, .05);
    --shadow-sm: 0 2px 8px rgba(22, 22, 42, .06);
    --shadow-md: 0 8px 24px rgba(22, 22, 42, .08);
    --shadow-lg: 0 24px 56px rgba(22, 22, 42, .12);

    --container:  1200px;
    --nav-height: 74px;

    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* =====================================================================
   База
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + var(--s-4));
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--ink-2);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
    line-height: var(--lh-tight);
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h3, h4 { font-weight: 700; letter-spacing: -0.015em; line-height: var(--lh-snug); }

p { margin: 0; text-wrap: pretty; }

a { color: var(--primary); text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; }

/* Цифры одной ширины — счётчики и цены не «прыгают» */
.stat-number,
.pricing-price .amount,
.equipment-price { font-variant-numeric: tabular-nums; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container-narrow { max-width: 780px; }

.skip-link {
    position: absolute;
    top: 0;
    left: -9999px;
    z-index: 100000;
    padding: var(--s-3) var(--s-5);
    background: var(--primary);
    color: #fff;
    border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}

/* =====================================================================
   Кнопки
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    min-height: 52px;
    padding: 0.9375rem var(--s-7);
    border: 1.5px solid transparent;
    border-radius: var(--r-pill);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: -0.005em;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .18s var(--ease), border-color .18s var(--ease),
                color .18s var(--ease), box-shadow .18s var(--ease);
}

.btn i { font-size: 0.9em; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(91, 75, 138, .24);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 10px 24px rgba(91, 75, 138, .3); }

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(46, 204, 113, .26);
}
.btn-accent:hover { background: var(--accent-dark); box-shadow: 0 10px 24px rgba(46, 204, 113, .32); }

.btn-outline {
    background: var(--surface);
    color: var(--primary);
    border-color: var(--primary-line);
}
.btn-outline:hover { border-color: var(--primary); background: var(--primary-soft); }

.btn-block { width: 100%; min-height: 46px; padding: var(--s-3) var(--s-5); }

/* =====================================================================
   Навигация
   ===================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.navbar.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-xs); }

.navbar .container {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-6);
}

.logo img { height: 42px; width: auto; }

.nav-links { display: flex; align-items: center; gap: var(--s-7); }

.nav-links a {
    position: relative;
    color: var(--ink-2);
    font-size: var(--fs-sm);
    font-weight: 500;
    transition: color .18s var(--ease);
}
.nav-links a:hover { color: var(--ink); }

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform .18s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    min-height: 44px;
    padding: var(--s-3) var(--s-6);
    background: var(--primary);
    color: #fff !important;
    border-radius: var(--r-pill);
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(91, 75, 138, .24);
    transition: background-color .18s var(--ease);
}
.nav-cta:hover { background: var(--primary-dark); }

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--ink);
    font-size: var(--fs-base);
    cursor: pointer;
}

/* =====================================================================
   Герой
   ===================================================================== */
.hero {
    position: relative;
    padding-block: clamp(3rem, 5vw, 5rem) clamp(4rem, 6vw, 6rem);
    background: linear-gradient(180deg, #FCFBFE 0%, var(--surface-2) 100%);
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}

.hero-bg-shapes { position: absolute; inset: 0; z-index: 1; }

.hero-shape { position: absolute; border-radius: 50%; filter: blur(90px); }
.hero-shape-1 {
    width: 460px; aspect-ratio: 1;
    background: rgba(91, 75, 138, .14);
    top: -140px; right: -100px;
}
.hero-shape-2 {
    width: 360px; aspect-ratio: 1;
    background: rgba(46, 204, 113, .13);
    bottom: -160px; left: -120px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    margin-bottom: var(--s-6);
    padding: var(--s-2) var(--s-4);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-xs);
}

.hero-badge .dot {
    width: 7px;
    aspect-ratio: 1;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, .16);
}

.hero h1 {
    margin-bottom: var(--s-5);
    font-size: var(--fs-h1);
    letter-spacing: -0.035em;
}

.hero h1 .highlight {
    background: linear-gradient(96deg, var(--primary) 10%, var(--accent) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: var(--measure-tight);
    margin-bottom: var(--s-6);
    font-size: var(--fs-md);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    margin-bottom: var(--s-4);
}

/* Строка фактов под кнопками */
.hero-assurance {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-5);
    margin-bottom: var(--s-8);
    font-size: var(--fs-xs);
    color: var(--ink-3);
}
.hero-assurance span { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-assurance i { color: var(--accent-dark); font-size: 0.9em; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-4);
    padding-top: var(--s-6);
    border-top: 1px solid var(--line);
}

.stat-item { display: flex; flex-direction: column; gap: 2px; }

.stat-number {
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--primary);
}

.stat-label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.stat-note  { font-size: var(--fs-2xs); color: var(--ink-4); }

.hero-image { position: relative; }

.hero-image-wrapper {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-4);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
}

.hero-float-card.card-1 { top: 5%;     left: -7%; }
.hero-float-card.card-2 { bottom: 10%; right: -7%; }

.float-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    aspect-ratio: 1;
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    flex-shrink: 0;
}
.float-icon.purple { background: var(--primary-soft); color: var(--primary); }
.float-icon.green  { background: var(--accent-soft);  color: var(--accent-dark); }

.float-text { display: flex; flex-direction: column; line-height: 1.3; }
.float-text strong { font-size: var(--fs-sm); color: var(--ink); }
.float-text span   { font-size: var(--fs-2xs); color: var(--ink-4); }

/* =====================================================================
   Полоса фактов под героем
   ===================================================================== */
.trust-strip {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    padding: var(--s-6) var(--s-5);
    border-left: 1px solid var(--line);
}
.trust-item:first-child { border-left: none; padding-left: 0; }
.trust-item:last-child  { padding-right: 0; }

.trust-item i { margin-top: 3px; color: var(--primary); font-size: var(--fs-base); }

.trust-value { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.trust-note  { font-size: var(--fs-xs); color: var(--ink-3); }

/* =====================================================================
   Секции
   ===================================================================== */
.section { padding-block: var(--section-y); }

.section.features  { background: var(--surface-2); }
.section.process   { background: var(--surface); }
.section.pricing   { background: var(--surface-2); }
.section.equipment { background: var(--surface); }
.section.faq       { background: var(--surface-2); }
.section.contact   { background: var(--surface); }

.section-header {
    max-width: 640px;
    margin: 0 auto var(--s-12);
    text-align: center;
}

.section-tag {
    display: inline-block;
    margin-bottom: var(--s-4);
    padding: var(--s-1) var(--s-4);
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--r-pill);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.section-title { margin-bottom: var(--s-3); font-size: var(--fs-h2); }

.section-subtitle {
    max-width: var(--measure);
    margin-inline: auto;
    font-size: var(--fs-md);
    color: var(--ink-3);
}

/* =====================================================================
   Возможности
   ===================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap-grid);
}

.feature-card {
    display: flex;
    flex-direction: column;
    padding: var(--s-7);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.feature-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    aspect-ratio: 1;
    margin-bottom: var(--s-5);
    border-radius: var(--r-sm);
    font-size: var(--fs-base);
}
.feature-icon.purple { background: var(--primary-soft); color: var(--primary); }
.feature-icon.green  { background: var(--accent-soft);  color: var(--accent-dark); }
.feature-icon.blue   { background: #E3F1FD; color: #1C6FB8; }
.feature-icon.orange { background: #FDF0D9; color: #B57209; }
.feature-icon.red    { background: var(--danger-soft); color: var(--danger); }
.feature-icon.teal   { background: #DCF5F1; color: #0C8579; }

.feature-card h3 { margin-bottom: var(--s-2); font-size: var(--fs-lg); }

.feature-card p { flex: 1; font-size: var(--fs-sm); color: var(--ink-3); }

/* Конкретика внизу карточки */
.feature-meta {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    margin-top: var(--s-5);
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--ink-2);
}
.feature-meta i { color: var(--accent-dark); font-size: 0.9em; }

/* =====================================================================
   Этапы внедрения — нумерация оправдана, это последовательность
   ===================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--gap-grid);
    counter-reset: step;
}

.step-card {
    position: relative;
    padding: var(--s-6);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.step-card::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    aspect-ratio: 1;
    margin-bottom: var(--s-4);
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: var(--fs-2xs);
    font-weight: 700;
}

.step-card h3 { margin-bottom: var(--s-2); font-size: var(--fs-base); }

.step-card p { font-size: var(--fs-sm); color: var(--ink-3); }

.step-time {
    display: inline-block;
    margin-top: var(--s-4);
    padding: var(--s-1) var(--s-3);
    background: var(--surface-2);
    border-radius: var(--r-pill);
    font-size: var(--fs-2xs);
    font-weight: 600;
    color: var(--ink-3);
}

/* =====================================================================
   Тарифы
   ===================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--s-6);
    max-width: 880px;
    margin-inline: auto;
    align-items: start;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: var(--s-8);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.pricing-card.popular {
    border: 2px solid var(--accent);
    box-shadow: 0 12px 32px rgba(46, 204, 113, .12);
}

.pricing-card.popular::before {
    content: 'ВЫГОДНО';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--s-1) var(--s-4);
    background: var(--accent);
    color: #fff;
    border-radius: var(--r-pill);
    font-size: var(--fs-2xs);
    font-weight: 700;
    letter-spacing: .08em;
}

.pricing-header {
    padding-bottom: var(--s-6);
    margin-bottom: var(--s-6);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.pricing-name { margin-bottom: var(--s-2); font-size: var(--fs-xl); }

.pricing-desc { margin-bottom: var(--s-5); font-size: var(--fs-sm); color: var(--ink-3); }

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--s-2);
}

.pricing-price .amount {
    font-size: clamp(2rem, 1.6rem + 1.6vw, 2.625rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--ink);
}
.pricing-price .currency { font-size: var(--fs-base); font-weight: 600; color: var(--ink); }
.pricing-price .period   { font-size: var(--fs-sm); color: var(--ink-4); }

/* Пересчёт годового тарифа на месяц */
.pricing-equivalent { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--ink-3); }
.pricing-equivalent strong { color: var(--ink); }

.savings-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    margin-top: var(--s-4);
    padding: var(--s-2) var(--s-4);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: var(--r-pill);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--accent-dark);
}

.pricing-lead {
    margin-bottom: var(--s-4);
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--ink-4);
}

.pricing-features { flex: 1; margin-bottom: var(--s-6); }

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    padding-block: var(--s-2);
    font-size: var(--fs-sm);
    color: var(--ink-2);
}

.pricing-features .check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    aspect-ratio: 1;
    margin-top: 3px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: 50%;
    font-size: 0.55rem;
    flex-shrink: 0;
}

.pricing-card .btn { width: 100%; }

.pricing-footnote {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    max-width: 880px;
    margin: var(--s-8) auto 0;
    padding: var(--s-4) var(--s-5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    color: var(--ink-3);
}
.pricing-footnote i { margin-top: 3px; color: var(--primary); }

/* =====================================================================
   Оборудование
   ===================================================================== */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--gap-grid);
}

.equipment-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.equipment-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

.equipment-image {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #F3F1FA 0%, #EAF7F1 100%);
    color: var(--ink-4);
}
.equipment-image svg { width: 34%; height: auto; }
.equipment-image img { width: 100%; height: 100%; object-fit: cover; }

.equip-badge {
    position: absolute;
    top: var(--s-3);
    right: var(--s-3);
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    padding: var(--s-1) var(--s-3);
    background: var(--surface);
    border-radius: var(--r-pill);
    font-size: var(--fs-2xs);
    font-weight: 600;
    color: var(--accent-dark);
    box-shadow: var(--shadow-xs);
}
.equip-badge::before {
    content: '';
    width: 6px;
    aspect-ratio: 1;
    background: var(--accent);
    border-radius: 50%;
}
.equip-badge.out { color: var(--ink-4); }
.equip-badge.out::before { background: var(--ink-4); }

.equipment-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--s-5);
}

.equipment-content h3 { margin-bottom: var(--s-2); font-size: var(--fs-base); }

.equipment-content p {
    margin-bottom: var(--s-4);
    font-size: var(--fs-sm);
    color: var(--ink-3);
}

/* Характеристики позиции */
.spec-list {
    flex: 1;
    margin-bottom: var(--s-5);
    border-top: 1px solid var(--line);
}
.spec-list li {
    display: flex;
    justify-content: space-between;
    gap: var(--s-3);
    padding-block: var(--s-2);
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-xs);
}
.spec-key { color: var(--ink-4); }
.spec-val { font-weight: 600; color: var(--ink-2); text-align: right; }

.equipment-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-3);
    margin-bottom: var(--s-4);
}

.equipment-price {
    font-size: var(--fs-xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.equipment-price .currency { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-4); }

.equipment-price-note { font-size: var(--fs-2xs); color: var(--ink-4); }

.equipment-note {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    margin-top: var(--s-8);
    padding: var(--s-5) var(--s-6);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
}
.equipment-note i { margin-top: 3px; color: var(--primary); }

/* =====================================================================
   Вопросы и ответы
   ===================================================================== */
.faq-list {
    max-width: 780px;
    margin-inline: auto;
    border-top: 1px solid var(--line);
}

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-4);
    padding-block: var(--s-5);
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '\f067';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: var(--fs-xs);
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}
.faq-item[open] summary::after { content: '\f068'; }

.faq-item summary:hover { color: var(--primary); }

.faq-answer {
    max-width: var(--measure);
    padding-bottom: var(--s-5);
    font-size: var(--fs-sm);
    line-height: var(--lh-loose);
    color: var(--ink-3);
}
.faq-answer p + p { margin-top: var(--s-3); }

/* =====================================================================
   Контакты и форма
   ===================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
}

.contact-info h2 { margin-bottom: var(--s-4); font-size: var(--fs-h2); }

.contact-info > p {
    max-width: var(--measure-tight);
    margin-bottom: var(--s-8);
    font-size: var(--fs-md);
    color: var(--ink-3);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
    padding-top: var(--s-6);
    border-top: 1px solid var(--line);
}

.contact-method { display: flex; align-items: flex-start; gap: var(--s-4); }

.contact-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    aspect-ratio: 1;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    flex-shrink: 0;
}
.contact-method-icon.green { background: var(--accent-soft); color: var(--accent-dark); }
.contact-method-icon.blue  { background: #E3F1FD; color: #1C6FB8; }

.contact-method-text h4 { margin-bottom: 2px; font-size: var(--fs-sm); }
.contact-method-text p  { font-size: var(--fs-sm); color: var(--ink-3); }
.contact-method-text a  { font-weight: 600; color: var(--ink-2); }
.contact-method-text a:hover { color: var(--primary); }

.contact-form-wrapper {
    padding: var(--s-7);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}

.form-heading {
    padding-bottom: var(--s-5);
    margin-bottom: var(--s-5);
    border-bottom: 1px solid var(--line);
}
.form-heading h3 { margin-bottom: var(--s-1); font-size: var(--fs-lg); }
.form-heading p  { font-size: var(--fs-xs); color: var(--ink-4); }

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-4);
}

.form-group { margin-bottom: var(--s-4); }

.form-group label {
    display: block;
    margin-bottom: var(--s-2);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--ink);
}

.form-group .required { color: var(--danger); }

.form-control {
    width: 100%;
    min-height: 46px;
    padding: var(--s-3) var(--s-4);
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    color: var(--ink);
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.form-control::placeholder { color: #AEB5C4; }
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 75, 138, .12);
}
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(229, 72, 77, .12); }

textarea.form-control { min-height: 96px; resize: vertical; line-height: 1.5; }

.form-select {
    appearance: none;
    padding-right: var(--s-10);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7383' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--s-4) center;
    cursor: pointer;
}

.form-hint {
    display: flex;
    align-items: flex-start;
    gap: var(--s-2);
    margin-top: var(--s-2);
    font-size: var(--fs-2xs);
    color: var(--ink-4);
}

.form-error {
    display: block;
    margin-top: var(--s-2);
    font-size: var(--fs-2xs);
    font-weight: 600;
    color: var(--danger);
}

.form-submit { width: 100%; margin-top: var(--s-2); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }

.form-privacy {
    margin-top: var(--s-4);
    font-size: var(--fs-2xs);
    color: var(--ink-4);
    text-align: center;
}

.form-message { margin-top: var(--s-4); font-size: var(--fs-sm); text-align: center; }
.form-message.success {
    padding: var(--s-3);
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: var(--r-sm);
}
.form-message.error {
    padding: var(--s-3);
    background: var(--danger-soft);
    color: var(--danger);
    border-radius: var(--r-sm);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =====================================================================
   Внутренние страницы
   ===================================================================== */
.page-hero {
    padding-block: clamp(2.5rem, 4vw, 3.5rem);
    background: linear-gradient(180deg, #FCFBFE 0%, var(--surface-2) 100%);
    border-bottom: 1px solid var(--line);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-bottom: var(--s-5);
    font-size: var(--fs-xs);
    color: var(--ink-4);
}
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--primary); }

.page-hero h1 {
    max-width: 20ch;
    font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
}

.page-intro {
    max-width: var(--measure);
    margin-top: var(--s-4);
    font-size: var(--fs-md);
    color: var(--ink-3);
}

.page-body { padding-block: var(--section-y); }

.prose {
    max-width: var(--measure);
    font-size: var(--fs-md);
    line-height: var(--lh-loose);
    color: var(--ink-2);
}

.prose > * + * { margin-top: var(--s-5); }

.prose h2 {
    margin-top: var(--s-12);
    padding-top: var(--s-6);
    border-top: 1px solid var(--line);
    font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.prose h3 { margin-top: var(--s-8); font-size: var(--fs-lg); }

.prose ul li, .prose ol li { margin-bottom: var(--s-3); }

.prose ul li { position: relative; padding-left: var(--s-6); }
.prose ul li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.7em;
    width: 6px;
    aspect-ratio: 1;
    background: var(--accent);
    border-radius: 50%;
}

.prose ol { padding-left: var(--s-5); list-style: decimal; }

.prose strong { font-weight: 600; color: var(--ink); }

.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td {
    padding: var(--s-3) var(--s-4);
    border: 1px solid var(--line);
    text-align: left;
}
.prose th { background: var(--surface-2); font-weight: 600; color: var(--ink); }

.page-cta {
    max-width: var(--measure);
    margin-top: var(--s-12);
    padding: var(--s-8);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    text-align: center;
}
.page-cta h2 { margin-bottom: var(--s-3); font-size: var(--fs-xl); }
.page-cta p  { margin-bottom: var(--s-6); font-size: var(--fs-sm); color: var(--ink-3); }

.page-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--s-3);
}

/* Страница 404 */
.error-page { padding-block: clamp(5rem, 12vw, 8rem); text-align: center; }

.error-code {
    font-size: var(--fs-display);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(96deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.error-page h1 { margin: var(--s-5) 0 var(--s-3); font-size: var(--fs-xl); }
.error-page p  { margin-bottom: var(--s-8); color: var(--ink-3); }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s-3); }

/* =====================================================================
   Подвал
   ===================================================================== */
.footer {
    padding-block: var(--s-14) var(--s-6);
    background: var(--ink);
    color: #A3AAB8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr repeat(3, 1fr);
    gap: var(--s-10);
    padding-bottom: var(--s-10);
}

.footer-brand .logo-text {
    display: inline-block;
    margin-bottom: var(--s-4);
    font-size: var(--fs-xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}
.footer-brand .logo-text span { color: var(--accent); }

.footer-brand p {
    max-width: 34ch;
    font-size: var(--fs-sm);
    line-height: var(--lh-loose);
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    aspect-ratio: 1;
    margin-top: var(--s-5);
    background: rgba(255, 255, 255, .08);
    border-radius: var(--r-sm);
    color: #fff;
    font-size: var(--fs-base);
    transition: background-color .18s var(--ease);
}
.footer-social:hover { background: var(--primary); }

.footer-column h4 { margin-bottom: var(--s-4); font-size: var(--fs-sm); color: #fff; }

.footer-column li { margin-bottom: var(--s-3); }

.footer-column a, .footer-column span {
    font-size: var(--fs-sm);
    color: #A3AAB8;
    transition: color .18s var(--ease);
}
.footer-column a:hover { color: #fff; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--s-4);
    padding-top: var(--s-6);
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: var(--fs-xs);
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-size: var(--fs-base);
    font-weight: 700;
    color: #fff;
}
.footer-phone:hover { color: var(--accent); }

/* =====================================================================
   Уведомления
   ===================================================================== */
.fidcom-toast {
    position: fixed;
    top: calc(var(--nav-height) + var(--s-4));
    right: var(--s-6);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    max-width: 360px;
    padding: var(--s-4) var(--s-5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    transform: translateX(130%);
    opacity: 0;
    transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.fidcom-toast.show { transform: translateX(0); opacity: 1; }
.fidcom-toast.error { border-left-color: var(--danger); }

.fidcom-toast .toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    aspect-ratio: 1;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: 50%;
    font-size: var(--fs-sm);
    flex-shrink: 0;
}
.fidcom-toast.error .toast-icon { background: var(--danger-soft); color: var(--danger); }

.fidcom-toast .toast-content { flex: 1; min-width: 0; }
.fidcom-toast .toast-title   { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.fidcom-toast .toast-message { font-size: var(--fs-xs); line-height: 1.45; color: var(--ink-3); }

.fidcom-toast .toast-close {
    padding: var(--s-1);
    background: none;
    border: none;
    color: var(--ink-4);
    font-size: var(--fs-xs);
    cursor: pointer;
    flex-shrink: 0;
}
.fidcom-toast .toast-close:hover { color: var(--ink); }

/* =====================================================================
   Адаптив
   ===================================================================== */
@media (max-width: 1080px) {
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-description { max-width: var(--measure); }
    .hero-image { max-width: 460px; margin-inline: auto; }
    .hero-float-card.card-1 { left: -3%; }
    .hero-float-card.card-2 { right: -3%; }

    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-item { padding-inline: var(--s-4); }
    .trust-item:nth-child(odd) { border-left: none; padding-left: 0; }
    .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }

    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--s-3) var(--gutter) var(--s-6);
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        transform: translateY(-130%);
        opacity: 0;
        pointer-events: none;
        transition: transform .28s var(--ease), opacity .2s var(--ease);
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links a { padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
    .nav-links a::after { display: none; }
    .nav-cta { margin-top: var(--s-4); justify-content: center; border-bottom: none !important; }

    .mobile-menu-btn { display: flex; }

    .hero-stats { gap: var(--s-3); }

    .hero-float-card { padding: var(--s-2) var(--s-3); }
    .hero-float-card.card-1 { left: 0; top: 2%; }
    .hero-float-card.card-2 { right: 0; bottom: 4%; }

    .form-row { grid-template-columns: 1fr; gap: 0; }

    .contact-form-wrapper { padding: var(--s-5); }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .fidcom-toast { right: var(--s-4); left: var(--s-4); max-width: none; }
}

@media (max-width: 520px) {
    .hero-buttons .btn { width: 100%; }

    .hero-stats { grid-template-columns: 1fr; gap: var(--s-4); }
    .stat-item { flex-direction: row; align-items: baseline; gap: var(--s-3); }
    .stat-number { min-width: 4.5ch; }

    .trust-grid { grid-template-columns: 1fr; }
    .trust-item { border-left: none; padding-inline: 0; }
    .trust-item + .trust-item { border-top: 1px solid var(--line); }

    .pricing-card { padding: var(--s-6); }

    .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    .navbar, .footer, .hero-buttons, .contact-form-wrapper,
    .fidcom-toast, .hero-bg-shapes { display: none !important; }
    body { font-size: 11pt; }
}

/* =====================================================================
   Акция «365»
   ===================================================================== */
.section.promo { background: var(--surface); }

.promo-card {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(1.75rem, 3.5vw, 3rem);
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--accent-soft) 100%);
    border: 1px solid var(--accent-line);
    border-radius: var(--r-lg);
}

.promo-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    margin-bottom: var(--s-5);
    padding: var(--s-2) var(--s-4);
    background: var(--accent);
    color: #fff;
    border-radius: var(--r-pill);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.promo-main h2 {
    margin-bottom: var(--s-4);
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.125rem);
}

.promo-lead {
    max-width: var(--measure);
    margin-bottom: var(--s-6);
    font-size: var(--fs-md);
    color: var(--ink-2);
}
.promo-lead strong { color: var(--ink); }

.promo-terms {
    display: grid;
    gap: var(--s-3);
    margin-bottom: var(--s-7);
}

.promo-terms li {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    font-size: var(--fs-sm);
    color: var(--ink-2);
}
.promo-terms i { margin-top: 4px; color: var(--accent-dark); font-size: 0.85em; }

/* Условие возврата — не прячем, но и не выделяем как выгоду */
.promo-terms li.muted { color: var(--ink-3); }
.promo-terms li.muted i { color: var(--ink-4); }

.promo-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-4);
}

.promo-deadline {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--ink-3);
}

.promo-aside {
    padding: var(--s-6);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    text-align: center;
}

.promo-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    margin-bottom: var(--s-5);
    background: var(--surface-2);
    border-radius: var(--r-sm);
    color: var(--ink-4);
    overflow: hidden;
}
.promo-thumb img { width: 100%; height: 100%; object-fit: contain; }
.promo-thumb svg { width: 38%; }

.promo-value { display: flex; flex-direction: column; gap: var(--s-1); }

.promo-value-label { font-size: var(--fs-2xs); color: var(--ink-4); }

.promo-value-old {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--ink-4);
    text-decoration: line-through;
}

.promo-value-new {
    font-size: var(--fs-xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent-dark);
}

.promo-note {
    margin-top: var(--s-4);
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
    font-size: var(--fs-2xs);
    color: var(--ink-4);
}

@media (max-width: 860px) {
    .promo-card { grid-template-columns: 1fr; }
    .promo-aside { order: -1; }
    .promo-thumb { aspect-ratio: 16 / 9; }
}

@media (max-width: 520px) {
    .promo-actions .btn { width: 100%; }
}
