*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

button {
    font: inherit;
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit;
}

:root {
    --c-primary: #1B4DE4;
    --c-primary-dark: #163DB8;
    --c-primary-soft: #EEF2FF;
    --c-accent: #FF7A00;
    --c-accent-dark: #E56B00;

    --c-text: #0F172A;
    --c-text-soft: #2D3748;
    --c-muted: #64748B;
    --c-gray: #F8FAFC;
    --c-gray-2: #F1F5F9;
    --c-border: #E2E8F0;

    --c-danger: #E53E3E;
    --c-success: #16A34A;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
    --shadow: 0 8px 30px rgba(15, 23, 42, .08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
    --shadow-primary: 0 12px 32px rgba(27, 77, 228, .35);
    --shadow-accent: 0 12px 32px rgba(255, 122, 0, .35);

    --sp-1: 8px;
    --sp-2: 16px;
    --sp-3: 24px;
    --sp-4: 32px;
    --sp-5: 48px;
    --sp-6: 64px;
    --sp-7: 96px;

    --t-fast: .15s ease;
    --t: .25s ease;
    --t-slow: .4s cubic-bezier(.2, .8, .2, 1);

    --header-h: 76px;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    letter-spacing: .01em;
    transition: background var(--t), color var(--t), border-color var(--t),
        transform var(--t-fast), box-shadow var(--t);
    border: 2px solid transparent;
    will-change: transform;
}

.btn:active {
    transform: translateY(1px) scale(.99);
}

.btn--primary {
    background: var(--c-accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
    background: var(--c-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(255, 122, 0, .45);
}

.btn--outline {
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(6px);
}

.btn--outline:hover {
    background: #fff;
    color: var(--c-primary);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

.btn--sm {
    padding: 10px 18px;
    font-size: 13.5px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 0 var(--c-border);
    transition: box-shadow var(--t), background var(--t);
}

.header.is-scrolled {
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    min-height: var(--header-h);
}

.header__logo {
    flex-shrink: 0;
}

.header__logo img {
    height: 44px;
    width: auto;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
}

.nav {
    flex: 1;
}

.nav__list {
    display: flex;
    gap: var(--sp-4);
    justify-content: center;
}

.nav__list a {
    position: relative;
    font-weight: 500;
    padding: 6px 0;
    transition: color var(--t);
}

.nav__list a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--c-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--t);
}

.nav__list a:hover {
    color: var(--c-primary);
}

.nav__list a:hover::after {
    transform: scaleX(1);
}

.header__right {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-left: auto;
    flex-shrink: 0;
}

.header__city {
    color: var(--c-muted);
    font-size: 14px;
    white-space: nowrap;
}

.header__phone {
    font-weight: 700;
    color: var(--c-text);
    font-size: 15px;
    white-space: nowrap;
    transition: color var(--t);
    font-variant-numeric: tabular-nums;
}

.header__phone:hover {
    color: var(--c-primary);
}

.burger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
    transition: background var(--t);
}

.burger:hover {
    background: var(--c-gray-2);
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--t), opacity var(--t);
}

.hero {
    position: relative;
    padding: 180px 0 120px;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(27, 77, 228, .55), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(255, 122, 0, .25), transparent 60%),
        linear-gradient(rgba(15, 23, 42, .78), rgba(15, 23, 42, .85));
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(transparent, rgba(15, 23, 42, .4));
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: clamp(32px, 5.2vw, 60px);
    font-weight: 800;
    margin: 0 0 18px;
    line-height: 1.1;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.hero__subtitle {
    font-size: clamp(16px, 1.6vw, 20px);
    opacity: .9;
    margin: 0 0 var(--sp-5);
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.hero__actions {
    display: flex;
    gap: var(--sp-2);
    justify-content: center;
    flex-wrap: wrap;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--sp-3);
    margin-top: var(--sp-6);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero__stat {
    padding: 20px 16px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}

.hero__stat b {
    display: block;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.hero__stat span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    opacity: .8;
}

.section {
    padding: var(--sp-7) 0;
}

.section--gray {
    background: var(--c-gray);
}

.section__title {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.section__title--center {
    text-align: center;
}

.section__lead {
    color: var(--c-muted);
    text-align: center;
    margin: -8px 0 var(--sp-2);
    font-size: 17px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.section__head {
    margin-bottom: var(--sp-3);
    text-align: center;
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-7);
    align-items: center;
}

.about__media {
    position: relative;
}

.about__media img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.about__content p {
    margin: 0 0 16px;
    color: var(--c-text-soft);
    max-width: 62ch;
}

.about__content strong {
    color: var(--c-text);
    font-weight: 700;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--sp-3);
    margin-top: var(--sp-4);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--c-border);
}

.about__stat b {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.about__stat span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--c-muted);
}

.benefits {
    max-width: 900px;
    margin: 0 auto var(--sp-6);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-2) var(--sp-4);
}

.benefits li {
    position: relative;
    padding-left: 34px;
    color: var(--c-text-soft);
    font-size: 15.5px;
    line-height: 1.55;
}

.benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-primary);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 12px rgba(27, 77, 228, .35);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--sp-3);
}

.feature {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 28px 32px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-slow);
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature__icon {
    width: 56px;
    height: 56px;
    margin: 0 0 20px;
    border-radius: 14px;
    background: var(--c-primary-soft);
    display: grid;
    place-items: center;
    color: var(--c-primary);
    transition: background var(--t), color var(--t);
}

.feature:hover .feature__icon {
    background: var(--c-primary);
    color: #fff;
}

.feature__icon svg {
    width: 26px;
    height: 26px;
}

.feature__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -.01em;
}

.feature p {
    margin: 0;
    color: var(--c-muted);
    font-size: 14.5px;
    line-height: 1.55;
}

.catalog-wrap {
    position: relative;
}

.catalog {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: var(--card-w, 200px);
    gap: var(--sp-3);

    /* Убираем странные маргины, оставляем нормальный padding */
    padding: 0 30px 60px 30px;

    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;

    /* Включаем привязку к карточкам, чтобы листалось ровно */
    scroll-snap-type: x mandatory;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.catalog::-webkit-scrollbar {
    display: none;
}

.catalog>.card {
    scroll-snap-align: start;
    min-width: 0;
}

.catalog-controls {
    position: absolute;
    /* Ставим ровно по центру вертикали */
    top: 50%;
    transform: translateY(-50%);

    /* Выносим за края карточек */
    left: -16px;
    right: -16px;

    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    background: none;
}

.catalog-controls[hidden] {
    display: none;
}

.catalog-nav {
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow:
        0 10px 22px rgba(27, 77, 228, .38),
        0 2px 6px rgba(15, 23, 42, .15);
    transition:
        background var(--t),
        transform var(--t-fast),
        box-shadow var(--t),
        visibility var(--t);
}

.catalog-nav:hover:not([disabled]) {
    background: var(--c-primary-dark);
    transform: scale(1.08);
    box-shadow: 0 14px 30px rgba(27, 77, 228, .5);
}

.catalog-nav:active:not([disabled]) {
    transform: scale(.94);
}

.catalog-nav[disabled] {
    visibility: hidden;
}

.catalog-nav svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--c-border);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--c-primary-soft)
}

.card__media,
.card__img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #dcdbec;
    /* Белый фон, чтобы полосы сверху и снизу не бросались в глаза */
    display: grid;
    place-items: center;
    overflow: hidden;
}

.card__media img,
.card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Вписывает картинку целиком, оставляя полосы при необходимости */
    padding: 0;
    /* Убираем отступы, чтобы картинка касалась краев по ширине */
    transition: transform var(--t-slow);
}

.card__body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card__brand,
.card__cat {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.card__title,
.card__name {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: var(--c-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.card__desc {
    font-size: 13.5px;
    color: var(--c-muted);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: 10px;
}

.card__old-price,
.card__old {
    font-size: 13px;
    color: var(--c-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    font-variant-numeric: tabular-nums;
}

.card__price {
    font-size: 22px;
    font-weight: 800;
    color: var(--c-text);
    letter-spacing: -.02em;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.card__unit {
    font-size: 12.5px;
    color: var(--c-muted);
    margin-top: 2px;
}

.card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    background: var(--c-danger);
    box-shadow: 0 6px 16px rgba(229, 62, 62, .35);
}

.card__badge--sale {
    background: var(--c-danger);
}

.card__badge--hit {
    background: var(--c-accent);
    box-shadow: 0 6px 16px rgba(255, 122, 0, .4);
}

.card__badge--new {
    background: var(--c-success);
    box-shadow: 0 6px 16px rgba(22, 163, 74, .35);
}

.catalog__state {
    text-align: center;
    color: var(--c-muted);
    padding: 40px 0;
    grid-column: 1 / -1;
}

.contacts {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--sp-7);
    align-items: start;
}

.contacts__list {
    display: grid;
    gap: var(--sp-2);
}

.contacts__list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    background: var(--c-gray);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: background var(--t), border-color var(--t), transform var(--t);
}

.contacts__list li:hover {
    background: #fff;
    border-color: var(--c-border);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.contacts__list svg {
    width: 22px;
    height: 22px;
    color: var(--c-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.contacts__list a:hover {
    color: var(--c-primary);
}

.contacts__list span {
    color: var(--c-text-soft);
}

.contacts__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 420px;
    background: var(--c-gray-2);
}

.contacts__map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    display: block;
    filter: saturate(.9) contrast(1.02);
}

.footer {
    background: #0B1220;
    color: #94A3B8;
    padding: var(--sp-6) 0 var(--sp-4);
    font-size: 14px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--sp-5);
    align-items: start;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 320px;
}

.footer__brand img {
    height: auto;
    max-height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .9;
}

.footer__brand p {
    margin: 0;
    line-height: 1.55;
    color: #94A3B8;
    font-size: 13.5px;
    max-width: 280px;
}

.footer__col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 14px;
    letter-spacing: .02em;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
}

.footer__col li {
    line-height: 1.4;
}

.footer__col a {
    color: #94A3B8;
    transition: color var(--t);
}

.footer__col a:hover {
    color: #fff;
}

.footer__bottom {
    margin-top: var(--sp-5);
    padding-top: var(--sp-3);
    border-top: 1px solid rgba(148, 163, 184, .15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-2);
    flex-wrap: wrap;
    font-size: 13px;
    color: #64748B;
    text-align: center;
}

.footer__link:hover {
    color: #fff;
}

.footer__inner>p {
    margin: 0;
}

.footer__disclaimer {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #64748B;
    max-width: 600px;
}

.price-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: var(--radius-pill);
    background: var(--c-accent);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .01em;
    box-shadow: var(--shadow-accent);
    transition: transform var(--t), box-shadow var(--t), background var(--t);
    animation: fabPulse 3s ease-in-out infinite;
}

.price-fab:hover {
    background: var(--c-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(255, 122, 0, .5);
    animation: none;
}

.price-fab:active {
    transform: translateY(-1px) scale(.98);
}

.price-fab svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

@keyframes fabPulse {

    0%,
    100% {
        box-shadow: var(--shadow-accent);
    }

    50% {
        box-shadow: 0 12px 32px rgba(255, 122, 0, .55),
            0 0 0 14px rgba(255, 122, 0, 0);
    }
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal[hidden] {
    display: none;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .65);
    backdrop-filter: blur(6px);
    animation: fadeIn .2s ease;
}

.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 32px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    animation: slideUp .28s cubic-bezier(.2, .8, .2, 1);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.98)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    font-size: 26px;
    line-height: 1;
    color: var(--c-muted);
    border-radius: 50%;
    transition: background var(--t), color var(--t), transform var(--t);
}

.modal__close:hover {
    background: var(--c-gray-2);
    color: var(--c-text);
    transform: rotate(90deg);
}

.modal__title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.modal__subtitle {
    margin: 0 0 var(--sp-3);
    color: var(--c-muted);
    font-size: 14.5px;
    line-height: 1.5;
}

.form {
    display: grid;
    gap: 16px;
}

.form__field {
    display: grid;
    gap: 6px;
}

.form__field label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-text-soft);
}

.req {
    color: var(--c-danger);
}

.form__field input {
    padding: 13px 15px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 15px;
    background: #fff;
    color: var(--c-text);
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.form__field input::placeholder {
    color: #94A3B8;
}

.form__field input:hover {
    border-color: #CBD5E1;
}

.form__field input:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(27, 77, 228, .12);
    background: #FBFCFE;
}

.form__field input.is-invalid {
    border-color: var(--c-danger);
    box-shadow: 0 0 0 4px rgba(229, 62, 62, .1);
}

.form__error {
    color: var(--c-danger);
    font-size: 12.5px;
    min-height: 16px;
    line-height: 1.3;
}

.form__note {
    font-size: 12px;
    color: var(--c-muted);
    text-align: center;
    margin: 4px 0 0;
    line-height: 1.5;
}

.form__note a {
    color: var(--c-primary);
    text-decoration: underline;
}

.form__field--checkbox {
    margin-top: 4px;
    margin-bottom: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    color: var(--c-text-soft);
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--c-border);
    border-radius: 4px;
    background: #fff;
    position: relative;
    transition: border-color var(--t), background var(--t);
    margin-top: 1px;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #CBD5E1;
}

.checkbox-label input:checked+.checkbox-custom {
    background: var(--c-primary);
    border-color: var(--c-primary);
}

.checkbox-label input:checked+.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text a {
    color: var(--c-primary);
    text-decoration: underline;
}

.checkbox-text a:hover {
    color: var(--c-primary-dark);
}

.form__field--checkbox.has-error .checkbox-custom {
    border-color: var(--c-danger);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1024px) {
    .header__city {
        display: none;
    }

    .nav__list {
        gap: var(--sp-3);
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-4);
    }

    .footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 960px) {

    .about,
    .contacts {
        grid-template-columns: 1fr;
        gap: var(--sp-5);
    }

    /* Картинка: уменьшаем и ставим по центру */
    .about__media {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    /* Блок с текстом: ограничиваем ширину и центрируем сам блок на странице */
    .about__content {
        max-width: 620px;
        /* Чтобы текст не растягивался на весь экран планшета */
        margin: 0 auto;
        /* Центрируем этот блок */
        text-align: left;
        /* ТЕКСТ ВНУТРИ ВЫРАВНИВАЕМ ПО ЛЕВОМУ КРАЮ */
    }

    /* Убираем принудительные отступы у параграфов */
    .about__content p {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }

    /* Заголовок "О нас" оставляем по центру, чтобы он красиво стоял над текстом и под картинкой */
    .about .section__title {
        text-align: center;
        margin-bottom: 24px;
    }

    .about__media img {
        aspect-ratio: 16 / 10;
        border-radius: var(--radius);
    }

    .nav {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        margin: 0;
        background: #fff;
        padding: 12px 20px 20px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        z-index: 90;
    }

    .nav.is-open {
        display: block;
        animation: navDrop .28s cubic-bezier(.2, .8, .2, 1);
    }

    @keyframes navDrop {
        from {
            opacity: 0;
            transform: translateY(-12px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav__list {
        flex-direction: column;
        gap: 0;
        text-align: left;
        justify-content: flex-start;
    }

    .nav__list li {
        width: 100%;
    }

    .nav__list a {
        display: block;
        padding: 14px 0;
        font-size: 17px;
        border-bottom: 1px solid var(--c-border);
    }

    .nav__list li:last-child a {
        border-bottom: 0;
    }

    .nav__list a::after {
        display: none;
    }

    .burger {
        display: flex;
        margin-left: auto;
    }

    .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);
    }

    .header__right {
        gap: 10px;
    }

    .header__phone {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer__disclaimer {
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .section {
        padding: var(--sp-6) 0;
    }

    .section__head {
        margin-bottom: var(--sp-5);
    }

    .catalog {
        gap: var(--sp-2);
    }

    .catalog-nav {
        width: 40px;
        height: 40px;
    }

    .catalog-nav svg {
        width: 18px;
        height: 18px;
    }

    .catalog-controls {
        padding: 0 4px;
    }

    .card__body {
        padding: 14px;
    }

    .card__price {
        font-size: 20px;
    }

    .contacts__list li {
        padding: 12px 14px;
    }
}

@media (max-width: 640px) {
    :root {
        --header-h: 66px;
    }

    .header__phone {
        display: none;
    }

    .header__logo img {
        height: 36px;
    }

    .hero {
        padding: 130px 0 80px;
    }

    .hero__title {
        margin-bottom: 14px;
    }

    .hero__subtitle {
        margin-bottom: var(--sp-4);
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: var(--sp-5);
    }

    .hero__stat {
        padding: 16px 12px;
    }

    .about__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        /* Уменьшаем расстояние между карточками */
    }

    .feature {
        padding: 18px 14px;
        border-radius: var(--radius);
    }

    .feature__icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        margin-bottom: 12px;
    }

    .feature__icon svg {
        width: 20px;
        height: 20px;
    }

    /* Немного уменьшаем шрифты для компактности */
    .feature__title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .feature p {
        font-size: 13px;
        line-height: 1.4;
    }

    .catalog {
        gap: 12px;
        padding: 30px 16px 40px 16px;
        margin: -20px -16px -30px -16px;
    }

    .card__media img,
    .card__img img {
        padding: 10px;
    }

    .card__body {
        padding: 12px;
        gap: 6px;
    }

    .card__title,
    .card__name {
        font-size: 13.5px;
        min-height: 38px;
    }

    .card__old-price,
    .card__old {
        font-size: 12px;
    }

    .card__price {
        font-size: 18px;
    }

    .card__unit {
        font-size: 11.5px;
    }

    .card__badge {
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 10.5px;
    }

    .footer {
        padding: var(--sp-5) 0 var(--sp-3);
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: var(--sp-4);
    }

    .price-fab {
        right: 16px;
        bottom: 16px;
        padding: 16px;
        border-radius: 50%;
        width: 58px;
        height: 58px;
        justify-content: center;
    }

    .price-fab span {
        display: none;
    }

    .modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal__dialog {
        max-width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: 28px 22px 24px;
        max-height: 92vh;
        animation: sheetUp .3s cubic-bezier(.2, .8, .2, 1);
    }

    @keyframes sheetUp {
        from {
            transform: translateY(100%)
        }

        to {
            transform: translateY(0)
        }
    }

    .modal__title {
        font-size: 21px;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 0 16px;
    }

    .hero__stats {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 640px) {
    .catalog {
        padding: 10px 4px 20px;
        /* Убираем старые маргины */
    }

    .catalog-controls {
        /* На телефонах стрелки не должны вылезать за экран */
        left: 0px;
        right: 0px;
    }
}