/* ==========================================================================
   Бивер — стили сайта
   ========================================================================== */

:root {
    --c-primary: #d52b1e;
    --c-primary-dark: #a41f15;
    --c-primary-light: #fff1f0;
    --c-accent: #ffd84d;
    --c-text: #0f172a;
    --c-text-muted: #475569;
    --c-text-light: #64748b;
    --c-border: #e2e8f0;
    --c-bg: #ffffff;
    --c-bg-muted: #f8fafc;
    --c-bg-dark: #0f172a;
    --c-bg-dark-2: #1e293b;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 6px 20px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    --container: 1200px;
    --header-h: 76px;

    --transition: .25s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
input, textarea, select, button { font-family: inherit; color: inherit; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Helpers */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; padding: 12px 16px;
    background: var(--c-primary); color: #fff; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.text-gradient {
    background: linear-gradient(135deg, var(--c-primary) 0%, #ff6b35 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--radius-sm); font-weight: 600;
    font-size: 15px; line-height: 1.2; text-decoration: none;
    border: 2px solid transparent; cursor: pointer;
    transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid rgba(213, 43, 30, .35); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 6px 16px rgba(213, 43, 30, .25); }
.btn--primary:hover { background: var(--c-primary-dark); box-shadow: 0 10px 24px rgba(213, 43, 30, .35); }
.btn--ghost { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-light); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--block { width: 100%; }

.section--dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.section--dark .btn--ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }

/* Header */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--c-border);
}
.header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; min-height: var(--header-h);
}

.logo {
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none; color: inherit;
    min-width: 0;
    flex: 0 1 auto;
}
.logo__mark {
    height: 40px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.logo__title { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.logo__sub {
    font-size: 10px;
    color: var(--c-text-light); text-transform: uppercase; letter-spacing: .07em; margin-top: 2px;
    white-space: nowrap;
}
.logo--light .logo__title { color: #fff; }
.logo--light .logo__sub { color: rgba(255, 255, 255, .6); }

/* Nav */
.nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
}
.nav__list {
    display: flex; align-items: center; gap: 4px;
    flex-wrap: nowrap;
    justify-content: center;
}
.nav__list > li { flex-shrink: 0; }
.nav__link {
    display: inline-block; padding: 10px 11px; border-radius: 8px;
    font-weight: 500; font-size: 14px; color: var(--c-text);
    text-decoration: none; transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
.nav__link:hover { color: var(--c-primary); background: var(--c-primary-light); }
.nav__link--active { color: var(--c-primary); }

.header__cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header__phone {
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--c-text); font-weight: 600; font-size: 15px;
    transition: color var(--transition);
    white-space: nowrap;
}
.header__phone:hover { color: var(--c-primary); }
.header__phone svg { color: var(--c-primary); }

.burger {
    display: none; width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--c-border); border-radius: 10px;
    padding: 12px; flex-direction: column; justify-content: space-between;
}
.burger span { display: block; height: 2px; background: var(--c-text); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 80px 0 90px; overflow: hidden; }
.hero__bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse at 80% -10%, rgba(213, 43, 30, .12) 0%, transparent 55%),
        radial-gradient(ellipse at -10% 110%, rgba(255, 216, 77, .15) 0%, transparent 55%),
        linear-gradient(180deg, #ffffff 0%, var(--c-bg-muted) 100%);
}
.hero__bg::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero__inner {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center;
}

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(213, 43, 30, .08); color: var(--c-primary);
    font-weight: 600; font-size: 13px;
    border: 1px solid rgba(213, 43, 30, .15);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(213, 43, 30, .5);} 50% { box-shadow: 0 0 0 6px rgba(213, 43, 30, 0);} }

.hero__title {
    font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.1;
    letter-spacing: -.02em; margin-top: 20px; color: var(--c-text);
}
.hero__lead {
    margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--c-text-muted); max-width: 560px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero__stats {
    display: flex; gap: 40px; margin-top: 48px; padding-top: 32px;
    border-top: 1px solid var(--c-border); flex-wrap: wrap;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 32px; font-weight: 800; color: var(--c-primary); line-height: 1; }
.hero__stats span { margin-top: 6px; font-size: 14px; color: var(--c-text-muted); }

.hero-card {
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
    padding: 32px; box-shadow: var(--shadow-lg);
    position: relative;
}
.hero-card::before {
    content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: var(--radius-lg); z-index: -1;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    opacity: .2; filter: blur(20px);
}
.hero-card__title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.hero-card__list li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 0; font-size: 15px; color: var(--c-text);
    border-bottom: 1px dashed var(--c-border);
}
.hero-card__list li:last-child { border: none; }
.hero-card__list svg {
    flex-shrink: 0; width: 22px; height: 22px;
    color: #16a34a; padding: 2px;
    background: rgba(22, 163, 74, .12); border-radius: 50%;
}

/* Sections */
.section { padding: 88px 0; position: relative; }
.section--muted { background: var(--c-bg-muted); }
.section--dark { background: linear-gradient(135deg, var(--c-bg-dark) 0%, var(--c-bg-dark-2) 100%); color: #fff; }
.section--dark .section__title { color: #fff; }
.section--dark .section__lead { color: rgba(255,255,255,.7); }

.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
    display: inline-block; padding: 4px 14px; border-radius: 999px;
    background: var(--c-primary-light); color: var(--c-primary);
    font-weight: 600; font-size: 13px; letter-spacing: .04em;
}
.eyebrow--light { background: rgba(255, 216, 77, .15); color: var(--c-accent); }
.section__title {
    font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.15;
    letter-spacing: -.02em; margin-top: 14px; color: var(--c-text);
}
.section__lead { margin-top: 14px; font-size: 17px; color: var(--c-text-muted); }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Cards (services) */
.card {
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
    padding: 32px 28px; transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: rgba(213, 43, 30, .3); box-shadow: var(--shadow); }
.card__icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, var(--c-primary-light), #fff);
    display: flex; align-items: center; justify-content: center;
    color: var(--c-primary); margin-bottom: 22px;
}
.card__icon svg { width: 28px; height: 28px; }
.card__title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card__text { color: var(--c-text-muted); font-size: 15px; flex-grow: 1; }
.card__link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 20px; color: var(--c-primary); font-weight: 600; font-size: 14px;
    text-decoration: none; transition: gap var(--transition);
}
.card__link:hover { gap: 10px; }
.card__link svg { width: 16px; height: 16px; }

/* Products */
.products {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.product {
    display: block; padding: 28px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--c-border);
    text-decoration: none; color: inherit;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    position: relative; overflow: hidden;
}
.product::after {
    content: '→'; position: absolute; top: 24px; right: 24px;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--c-bg-muted); display: flex; align-items: center; justify-content: center;
    color: var(--c-text-muted); font-size: 18px;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.product:hover { transform: translateY(-4px); border-color: rgba(213, 43, 30, .3); box-shadow: var(--shadow); }
.product:hover::after { background: var(--c-primary); color: #fff; transform: rotate(-45deg); }
.product__tag {
    display: inline-block; padding: 4px 10px; border-radius: 6px;
    background: var(--c-primary-light); color: var(--c-primary);
    font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
}
.product h3 { font-size: 18px; font-weight: 700; margin: 14px 0 8px; padding-right: 50px; }
.product p { font-size: 14px; color: var(--c-text-muted); }

/* Pricing */
.pricing { gap: 24px; }
.plan {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius); padding: 36px 30px; color: #fff;
    position: relative; transition: transform var(--transition), border-color var(--transition);
}
.plan:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.25); }
.plan--featured {
    background: linear-gradient(135deg, rgba(213, 43, 30, .15), rgba(255, 216, 77, .08));
    border-color: var(--c-primary);
    transform: scale(1.03);
}
.plan--featured:hover { transform: scale(1.03) translateY(-4px); }
.plan__badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    padding: 6px 14px; background: var(--c-primary); color: #fff;
    border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.plan__name { font-size: 22px; font-weight: 700; }
.plan__price { font-size: 40px; font-weight: 800; margin: 14px 0 24px; line-height: 1; }
.plan__price span { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.6); display: block; margin-bottom: 4px; }
.plan__price small { font-size: 16px; font-weight: 500; color: rgba(255,255,255,.6); margin-left: 4px; }
.plan__list { padding: 24px 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 24px; }
.plan__list li {
    padding: 8px 0 8px 28px; position: relative;
    color: rgba(255,255,255,.85); font-size: 14px;
}
.plan__list li::before {
    content: ''; position: absolute; left: 0; top: 13px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--c-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
    padding: 32px 28px; position: relative; transition: transform var(--transition), box-shadow var(--transition);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num {
    display: inline-block; font-size: 36px; font-weight: 800;
    background: linear-gradient(135deg, var(--c-primary), #ff6b35);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px; line-height: 1;
}
.step__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--c-text-muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact__info .section__title { text-align: left; }
.contact__info .section__lead { text-align: left; }
.contact__list { margin-top: 32px; }
.contact__list li {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 0; color: var(--c-text); font-size: 16px;
    border-bottom: 1px solid var(--c-border);
}
.contact__list li:last-child { border: none; }
.contact__list svg {
    flex-shrink: 0; width: 22px; height: 22px; padding: 5px;
    color: var(--c-primary); background: var(--c-primary-light); border-radius: 8px;
    box-sizing: content-box;
}
.contact__list a { color: var(--c-text); text-decoration: none; font-weight: 600; transition: color var(--transition); }
.contact__list a:hover { color: var(--c-primary); }

/* Form */
.form {
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
    padding: 40px; box-shadow: var(--shadow-lg);
}
.form__title { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: block; margin-bottom: 16px; }
.form__field > span {
    display: block; font-size: 14px; font-weight: 600;
    color: var(--c-text); margin-bottom: 6px;
}
.form__field em { color: var(--c-primary); font-style: normal; }
.form__field input,
.form__field select,
.form__field textarea {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
    background: #fff; font-size: 15px; color: var(--c-text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
    outline: none; border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(213, 43, 30, .12);
}
.form__field textarea { resize: vertical; min-height: 96px; }
.form__field input:invalid:not(:placeholder-shown),
.form__field input.has-error { border-color: #ef4444; }

.form__honeypot {
    position: absolute !important; left: -9999px !important; opacity: 0;
    width: 1px; height: 1px; overflow: hidden;
}

.form__check { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; font-size: 14px; color: var(--c-text-muted); cursor: pointer; }
.form__check input { margin-top: 3px; accent-color: var(--c-primary); width: 18px; height: 18px; }
.form__check a { color: var(--c-primary); text-decoration: underline; }
.form__note { margin-top: 14px; font-size: 12px; color: var(--c-text-light); text-align: center; }
.form__status { margin-top: 16px; font-size: 14px; min-height: 22px; text-align: center; font-weight: 500; }
.form__status.is-success { color: #16a34a; }
.form__status.is-error { color: #ef4444; }

/* Footer */
.footer { background: var(--c-bg-dark); color: rgba(255,255,255,.7); padding-top: 64px; margin-top: 0; }
.footer__inner {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
    padding-bottom: 48px;
}
.footer__about { margin-top: 16px; font-size: 14px; line-height: 1.6; max-width: 320px; color: rgba(255,255,255,.6); }
.footer__col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer__col ul li { padding: 6px 0; font-size: 14px; }
.footer__col ul li a { color: rgba(255,255,255,.7); text-decoration: none; transition: color var(--transition); }
.footer__col ul li a:hover { color: #fff; }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; font-size: 13px;
}
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,.5); }
.footer__bottom-inner p { margin: 0; }

/* FAB */
.fab {
    position: fixed; right: 24px; bottom: 24px; z-index: 50;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--c-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; box-shadow: 0 10px 30px rgba(213, 43, 30, .4);
    transition: transform var(--transition), background var(--transition);
}
.fab:hover { background: var(--c-primary-dark); transform: scale(1.06); }
.fab svg { width: 26px; height: 26px; }

/* ==========================================================================
   Inner page header
   ========================================================================== */
.page-hero {
    padding: 64px 0 48px;
    background: linear-gradient(180deg, var(--c-primary-light), #fff);
    border-bottom: 1px solid var(--c-border);
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(28px, 4vw, 44px); font-weight: 800;
    letter-spacing: -.02em; margin: 14px 0 14px;
}
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--c-text-muted); font-size: 17px; }
.breadcrumbs {
    display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
    font-size: 14px; color: var(--c-text-light);
}
.breadcrumbs a { color: var(--c-primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-hidden] { color: var(--c-text-light); }

/* Article (services / about) */
.long-list { display: flex; flex-direction: column; gap: 32px; }
.long-item {
    display: grid; grid-template-columns: 80px 1fr; gap: 28px; align-items: start;
    padding: 32px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
    scroll-margin-top: 100px;
}
.long-item__icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: linear-gradient(135deg, var(--c-primary), #ff6b35);
    color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px rgba(213, 43, 30, .25);
}
.long-item__icon svg { width: 30px; height: 30px; }
.long-item h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.long-item ul { margin-top: 14px; }
.long-item ul li {
    padding: 6px 0 6px 26px; position: relative; color: var(--c-text); font-size: 15px;
}
.long-item ul li::before {
    content: ''; position: absolute; left: 0; top: 14px;
    width: 8px; height: 8px; background: var(--c-primary); border-radius: 50%;
}

/* About */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value {
    padding: 28px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
    text-align: center;
}
.value__num { font-size: 40px; font-weight: 800; color: var(--c-primary); line-height: 1; margin-bottom: 8px; }
.value__title { font-weight: 700; margin-bottom: 4px; font-size: 16px; }
.value__text { font-size: 14px; color: var(--c-text-muted); }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry {
    padding: 24px 20px; background: var(--c-bg-muted); border-radius: var(--radius);
    text-align: center; transition: background var(--transition), transform var(--transition);
}
.industry:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--shadow); }
.industry svg { width: 32px; height: 32px; color: var(--c-primary); margin: 0 auto 12px; }
.industry__name { font-weight: 600; font-size: 15px; }

/* Yandex map (contacts) */
.map {
    margin-top: 56px;
    width: 100%;
    /* Раньше стояло min(420px, 70vh) — на десктопе высота упиралась в 420px и казалась мелкой */
    height: clamp(380px, 62vh, 760px);
    min-height: 380px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--c-border);
    background: var(--c-bg-muted);
    box-shadow: var(--shadow);
}
.map__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.map__note {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
}
.map__note a {
    color: var(--c-primary);
    font-weight: 600;
    text-decoration: underline;
}
.map__note a:hover {
    text-decoration: none;
}

/* ==========================================================================
   Pricing tables / accordion
   ========================================================================== */
.price-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--c-border); }
.price-table {
    width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px;
    background: #fff;
}
.price-table thead th {
    text-align: left; font-weight: 700; font-size: 13px; text-transform: uppercase;
    letter-spacing: .05em; color: var(--c-text-muted);
    padding: 14px 18px; background: var(--c-bg-muted); border-bottom: 1px solid var(--c-border);
}
.price-table tbody td {
    padding: 14px 18px; border-bottom: 1px solid var(--c-border); vertical-align: top;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--c-bg-muted); }
.price-table .price-table__name { font-weight: 600; color: var(--c-text); }
.price-table .price-table__sub { display: block; font-weight: 400; font-size: 12px; color: var(--c-text-light); margin-top: 2px; }
.price-table .price-table__price { font-weight: 700; color: var(--c-primary); white-space: nowrap; text-align: right; }
.price-table .price-table__action { width: 1%; white-space: nowrap; text-align: right; }
.price-table .price-table__action a {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--c-primary); font-weight: 600; font-size: 13px; text-decoration: none;
}
.price-table .price-table__action a:hover { text-decoration: underline; }
.price-table .price-table__action svg { width: 14px; height: 14px; }
.price-table tr.is-popular { background: linear-gradient(90deg, rgba(213,43,30,.04), transparent); }
.price-table tr.is-popular .price-table__name::after {
    content: 'популярно'; display: inline-block; margin-left: 8px;
    padding: 2px 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .05em;
    background: var(--c-primary); color: #fff; border-radius: 999px; font-weight: 700;
}

/* Accordion via details/summary */
.product-accordion { display: flex; flex-direction: column; gap: 16px; }
.product-acc {
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
    overflow: hidden; transition: border-color var(--transition), box-shadow var(--transition);
}
.product-acc[open] { border-color: rgba(213,43,30,.3); box-shadow: var(--shadow); }
.product-acc summary {
    list-style: none; cursor: pointer; padding: 22px 28px;
    display: grid; grid-template-columns: 56px 1fr auto auto; gap: 18px; align-items: center;
}
.product-acc summary::-webkit-details-marker { display: none; }
.product-acc__icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, var(--c-primary-light), #fff);
    display: flex; align-items: center; justify-content: center; color: var(--c-primary);
}
.product-acc__icon svg { width: 28px; height: 28px; }
.product-acc__title { font-size: 18px; font-weight: 700; margin: 0; }
.product-acc__sub { color: var(--c-text-muted); font-size: 14px; margin-top: 2px; }
.product-acc__price { font-weight: 700; color: var(--c-primary); font-size: 16px; white-space: nowrap; }
.product-acc__price small { font-weight: 500; color: var(--c-text-light); font-size: 12px; display: block; }
.product-acc__chev {
    width: 32px; height: 32px; border-radius: 50%; background: var(--c-bg-muted);
    display: flex; align-items: center; justify-content: center; color: var(--c-text-muted);
    transition: transform var(--transition), background var(--transition), color var(--transition);
}
.product-acc[open] .product-acc__chev { transform: rotate(180deg); background: var(--c-primary); color: #fff; }
.product-acc__body { padding: 0 28px 28px; }
.product-acc__body p { color: var(--c-text-muted); font-size: 15px; margin-bottom: 18px; }

/* ==========================================================================
   Calculator
   ========================================================================== */
.calc {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start;
}
.calc__form {
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
    padding: 32px; box-shadow: var(--shadow);
}
.calc__step { padding: 18px 0; border-bottom: 1px solid var(--c-border); }
.calc__step:first-child { padding-top: 0; }
.calc__step:last-child { border-bottom: none; padding-bottom: 0; }
.calc__step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.calc__step-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--c-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}
.calc__step-title { font-weight: 700; font-size: 16px; color: var(--c-text); }
.calc__step-hint { color: var(--c-text-light); font-size: 13px; margin-top: 4px; }

.calc__options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.calc__options--3 { grid-template-columns: repeat(3, 1fr); }
.calc__options--auto { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.calc__opt {
    position: relative; cursor: pointer;
    padding: 14px 16px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
    background: #fff; transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
    display: flex; flex-direction: column; gap: 4px;
}
.calc__opt:hover { border-color: rgba(213,43,30,.4); }
.calc__opt input { position: absolute; opacity: 0; pointer-events: none; }
.calc__opt-name { font-weight: 600; font-size: 14px; color: var(--c-text); }
.calc__opt-price { color: var(--c-text-light); font-size: 13px; }
.calc__opt-sub { color: var(--c-text-light); font-size: 12px; }
.calc__opt.is-active,
.calc__opt:has(input:checked) {
    border-color: var(--c-primary); background: var(--c-primary-light);
    box-shadow: 0 0 0 3px rgba(213, 43, 30, .08);
}
.calc__opt[data-disabled="true"] {
    opacity: .45; cursor: not-allowed; pointer-events: none;
}

.calc__select {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
    font-size: 15px; color: var(--c-text); background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.calc__select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(213,43,30,.12); }

.calc__summary {
    position: sticky; top: 96px;
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
    padding: 28px; box-shadow: var(--shadow);
}
.calc__summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.calc__lines { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px dashed var(--c-border); min-height: 80px; }
.calc__line { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14px; }
.calc__line-name { color: var(--c-text); flex: 1; }
.calc__line-name small { display: block; color: var(--c-text-light); font-size: 12px; margin-top: 2px; }
.calc__line-price { font-weight: 600; color: var(--c-text); white-space: nowrap; }
.calc__line--empty { color: var(--c-text-light); font-style: italic; padding: 24px 0; text-align: center; }

.calc__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.calc__total-label { font-size: 14px; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.calc__total-value { font-size: 32px; font-weight: 800; color: var(--c-primary); line-height: 1; }
.calc__note { font-size: 12px; color: var(--c-text-light); margin-bottom: 20px; line-height: 1.5; }
.calc__cta { width: 100%; }

@media (max-width: 1024px) {
    .calc { grid-template-columns: 1fr; }
    .calc__summary { position: static; }
    .product-acc summary { grid-template-columns: 48px 1fr auto; padding: 18px 22px; }
    .product-acc__price { display: none; }
    .product-acc__body { padding: 0 22px 22px; }
}
@media (max-width: 600px) {
    .calc__form { padding: 24px 20px; }
    .calc__summary { padding: 22px 20px; }
    .calc__options { grid-template-columns: 1fr; }
    .calc__options--3 { grid-template-columns: 1fr; }
    .product-acc summary { grid-template-columns: 1fr auto; }
    .product-acc__icon { display: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .products { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .contact { grid-template-columns: 1fr; gap: 40px; }
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .values { grid-template-columns: repeat(2, 1fr); }
    .industries { grid-template-columns: repeat(3, 1fr); }
    .plan--featured { transform: none; }
    .plan--featured:hover { transform: translateY(-4px); }

    /* Шапка: место для широкого логотипа + 6 пунктов без переноса */
    .nav__link { padding: 9px 8px; font-size: 13px; }
    .logo__mark { height: 36px; max-width: 66px; }
    .logo__title { font-size: 16px; }
    .header__inner { gap: 12px; }
    .header__cta { gap: 12px; }
    .header__phone { font-size: 14px; }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .hero { padding: 56px 0 64px; }
    .hero__stats { gap: 24px; }
    .hero__stats strong { font-size: 26px; }

    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
        background: #fff; padding: 24px;
        transform: translateX(100%); transition: transform .35s ease;
        overflow-y: auto;
        flex: none;
        min-width: 0;
        display: block;
    }
    .nav.is-open { transform: translateX(0); }
    .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav__link { padding: 14px 16px; font-size: 17px; }

    .header__cta .header__phone { display: none; }
    .burger { display: flex; }
    body.is-menu-open { overflow: hidden; }

    .grid--3 { grid-template-columns: 1fr; }
    .products { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .form__row { grid-template-columns: 1fr; }
    .form { padding: 28px 22px; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .industries { grid-template-columns: repeat(2, 1fr); }
    .values { grid-template-columns: 1fr 1fr; }
    .long-item { grid-template-columns: 1fr; padding: 24px 20px; }

    .footer__bottom-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .header__cta .btn { display: none; }
    .footer__inner { grid-template-columns: 1fr; }
    .fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
    .hero__actions .btn { width: 100%; }
}

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