/* ==========================================================================
   AFMAN — foundations
   Manrope, monochrome, 4px rhythm
   ========================================================================== */

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/manrope/manrope-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/manrope/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
        U+FEFF, U+FFFD;
}

:root {
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --ink: #0b0b0b;
    --ink-soft: #1c1c1c;
    --graphite: #2b2b2b;
    --gray-700: #3d3d3d;
    --gray-600: #555555;
    --gray-500: #6a6a6a;
    --gray-400: #767676;
    --gray-300: #c7c7c7;
    --gray-200: #dedede;
    --gray-150: #ededed;
    --gray-100: #f1f1f1;
    --gray-50: #f7f7f7;
    --white: #ffffff;

    --line: #e4e4e4;
    --line-soft: #eeeeee;
    --line-strong: #cfcfcf;

    --container: 1400px;
    --gutter: 40px;
    --header-height: 84px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
    --space-10: 128px;

    --radius: 2px;
    --radius-lg: 8px;
    --pill: 999px;

    --shadow-soft: 0 18px 50px rgba(11, 11, 11, 0.07);
    --shadow-lift: 0 30px 90px rgba(11, 11, 11, 0.14);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.35s;

    --z-header: 100;
    --z-overlay: 300;
    --z-lightbox: 500;
    --z-toast: 450;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 32px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.is-locked {
    overflow: hidden;
}

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

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    border: 0;
    background: none;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

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

p,
h1,
h2,
h3,
h4,
h5,
h6,
dl,
dd,
dt,
figure,
blockquote {
    margin: 0;
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

legend {
    padding: 0;
}

::selection {
    background: var(--ink);
    color: var(--white);
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.mobile-menu :focus-visible,
.site-footer :focus-visible,
.product-help :focus-visible,
.ds-final :focus-visible,
.access-panel :focus-visible,
.lightbox :focus-visible {
    outline-color: var(--white);
}

[hidden] {
    display: none !important;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--tiny {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.display {
    font-size: clamp(56px, 7.1vw, 104px);
    font-weight: 500;
    line-height: 0.93;
    letter-spacing: -0.055em;
}

.h1,
.type-h1 {
    font-size: clamp(42px, 5.1vw, 72px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.045em;
}

.h2,
.type-h2 {
    font-size: clamp(34px, 3.7vw, 52px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.038em;
}

.h3,
.type-h3 {
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.h4 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.lead {
    font-size: clamp(17px, 1.45vw, 20px);
    line-height: 1.55;
    color: var(--gray-600);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.eyebrow__sep {
    color: var(--gray-300);
    letter-spacing: 0;
}

.eyebrow__line {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: currentColor;
}

.display__dot {
    letter-spacing: -0.02em;
}

.text-muted {
    color: var(--gray-500);
}

.text-small {
    font-size: 14px;
    line-height: 1.5;
}

.caption {
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: var(--gray-500);
}

.price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.22em;
    font-weight: 500;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.price__value {
    font-variant-numeric: tabular-nums;
}

.price__currency {
    font-size: 0.72em;
    font-weight: 500;
    color: var(--gray-600);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    width: min(100% - (var(--gutter) * 2), var(--container));
    margin-inline: auto;
}

.site-main {
    min-height: 50vh;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.section-heading .eyebrow {
    margin-bottom: 14px;
}

.section-heading__intro {
    max-width: 380px;
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.6;
}

.section-heading--split {
    align-items: flex-start;
}

.section-heading__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    max-width: 390px;
    text-align: right;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.55;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    transform: translateY(-150%);
    padding: 12px 18px;
    background: var(--ink);
    color: var(--white);
    font-size: 13px;
    transition: transform 0.2s var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink);
    flex: 0 0 auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color 0.2s var(--ease),
        border-color 0.2s var(--ease),
        color 0.2s var(--ease),
        transform 0.2s var(--ease);
}

.btn .icon {
    width: 18px;
    height: 18px;
    transition: transform 0.22s var(--ease);
}

.btn:hover .icon:last-child {
    transform: translate(2px, -2px);
}

.btn--primary {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--graphite);
    border-color: var(--graphite);
}

.btn--secondary {
    border-color: var(--ink);
    background: transparent;
    color: var(--ink);
}

.btn--secondary:hover {
    background: var(--ink);
    color: var(--white);
}

.btn--ghost {
    border-color: transparent;
    padding-inline: 18px;
}

.btn--ghost:hover {
    background: var(--gray-50);
}

.btn--light {
    background: var(--white);
    border-color: var(--white);
    color: var(--ink);
}

.btn--light:hover {
    background: var(--gray-150);
    border-color: var(--gray-150);
}

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

.btn--sm {
    min-height: 42px;
    padding-inline: 16px;
    font-size: 13px;
}

.btn--lg {
    min-height: 60px;
    padding-inline: 30px;
    font-size: 15px;
}

.btn:disabled,
.btn.is-disabled {
    opacity: 0.32;
    pointer-events: none;
}

.btn__counter {
    margin-left: 4px;
    color: var(--gray-500);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: currentColor;
    transition:
        background-color 0.2s var(--ease),
        border-color 0.2s var(--ease),
        color 0.2s var(--ease);
}

.icon-btn .icon {
    width: 21px;
    height: 21px;
}

.icon-btn:hover {
    background: var(--gray-50);
    border-color: var(--line-soft);
}

.icon-btn--outline {
    border-color: var(--line);
}

.icon-btn--outline:hover {
    border-color: var(--ink);
}

.icon-btn--filled {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.icon-btn--filled:hover {
    background: var(--graphite);
    border-color: var(--graphite);
}

.icon-btn--light {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.22);
}

.icon-btn--light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

.icon-btn--sm {
    width: 36px;
    height: 36px;
}

.icon-btn--sm .icon {
    width: 18px;
    height: 18px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid currentColor;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
    transition: gap 0.2s var(--ease), opacity 0.2s var(--ease);
}

.text-link .icon {
    width: 15px;
    height: 15px;
    transition: transform 0.2s var(--ease);
}

.text-link:hover {
    gap: 12px;
}

.text-link--light {
    color: var(--white);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.link-arrow .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s var(--ease);
}

.link-arrow:hover .icon {
    transform: translate(2px, -2px);
}

/* ==========================================================================
   Top bar + header
   ========================================================================== */

.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--line-soft);
    color: var(--gray-600);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    gap: 24px;
}

.topbar__group {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.topbar__item--muted {
    color: var(--gray-400);
}

.topbar__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: color 0.2s var(--ease);
}

.topbar__link .icon {
    width: 14px;
    height: 14px;
}

.topbar__link:hover,
.topbar__link--accent {
    color: var(--ink);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(255, 255, 255, 0.98);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--header-height);
    transition: height 0.28s var(--ease);
}

.site-header.is-scrolled .header__inner {
    height: 70px;
}

.header__logo {
    flex: 0 0 auto;
}

.header__logo img {
    width: 150px;
    height: auto;
    transition: width 0.28s var(--ease);
}

.site-header.is-scrolled .header__logo img {
    width: 134px;
}

.header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1 1 auto;
}

.nav__item {
    position: relative;
}

.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 13px;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.005em;
    white-space: nowrap;
    transition: color 0.2s var(--ease);
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 2px;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}

.nav__link:hover,
.nav__link.is-current {
    color: var(--ink);
}

.nav__link:hover::after,
.nav__link.is-current::after {
    transform: scaleX(1);
}

.nav__link--button {
    font: inherit;
    font-size: 13px;
    font-weight: 600;
}

.nav__chevron {
    width: 14px;
    height: 14px;
    color: var(--gray-400);
    transition: transform 0.25s var(--ease);
}

.nav__item.is-open .nav__chevron {
    transform: rotate(180deg);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
}

.header__action {
    color: var(--ink);
}

.header__cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 3px;
    display: grid;
    place-items: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--pill);
    background: var(--ink);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.header__phone {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-left: 12px;
    padding-left: 18px;
    border-left: 1px solid var(--line);
    white-space: nowrap;
}

.header__phone-label {
    color: var(--gray-400);
    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.header__phone-value {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-left: -10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 50%;
}

.burger__line {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.25s var(--ease);
}

.burger:hover .burger__line:first-child {
    transform: translateX(2px);
}

.burger:hover .burger__line:last-child {
    transform: translateX(-2px);
}

/* Dropdown */

.dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: -18px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 236px;
    width: 660px;
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition:
        opacity 0.2s var(--ease),
        transform 0.25s var(--ease-out),
        visibility 0.2s;
}

.nav__item.is-open .dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown__main {
    padding: 12px 16px 12px 12px;
}

.dropdown__eyebrow {
    margin-bottom: 8px;
    color: var(--gray-400);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.dropdown__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 6px;
    border-bottom: 1px solid var(--line-soft);
    transition: padding-left 0.22s var(--ease);
}

.dropdown__link:last-child {
    border-bottom: 0;
}

.dropdown__link > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown__link strong {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.dropdown__link small {
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 400;
}

.dropdown__link .icon {
    width: 17px;
    height: 17px;
    color: var(--gray-400);
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.dropdown__link:hover {
    padding-left: 12px;
}

.dropdown__link:hover .icon {
    opacity: 1;
    transform: translate(0, 0);
}

.dropdown__feature {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    padding: 18px;
    background: var(--gray-100);
    overflow: hidden;
}

.dropdown__feature::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.94) 80%);
    pointer-events: none;
}

.dropdown__feature-label {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 2;
    padding: 5px 8px;
    background: var(--white);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dropdown__feature-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    height: auto;
    margin: 0;
    background: transparent;
}

.dropdown__feature-media img {
    width: 100%;
    height: 100%;
    padding: 34px 16px 110px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.dropdown__feature-name {
    position: relative;
    z-index: 1;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.dropdown__feature-price {
    position: relative;
    z-index: 1;
    margin-top: 2px;
    color: var(--gray-600);
    font-size: 12px;
}

.dropdown__feature-arrow {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.dropdown__feature-arrow .icon {
    width: 14px;
    height: 14px;
}

.dropdown__feature:hover .dropdown__feature-arrow {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    margin-top: 120px;
    padding: 72px 0 26px;
    background: var(--ink);
    color: #a9a9a9;
}

.footer__masthead {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__logo img {
    width: 170px;
    height: auto;
}

.footer__manifest {
    max-width: 380px;
    color: var(--white);
    font-size: clamp(18px, 1.7vw, 24px);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.footer__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    transition: gap 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer__cta .icon {
    width: 17px;
    height: 17px;
}

.footer__cta:hover {
    gap: 18px;
    border-color: var(--white);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.55fr 0.85fr 0.95fr 1.1fr;
    gap: 48px;
    padding: 52px 0;
}

.footer__tagline {
    max-width: 340px;
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.65;
}

.footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer__socials a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cfcfcf;
    font-size: 11px;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer__socials a:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.38);
}

.footer__socials .icon {
    width: 15px;
    height: 15px;
}

.footer__title {
    margin-bottom: 16px;
    color: #7e7e7e;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer__list li + li {
    margin-top: 2px;
}

.footer__list a {
    display: inline-block;
    padding: 4px 0;
    color: #d6d6d6;
    font-size: 13px;
    transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer__list a:hover {
    color: var(--white);
    transform: translateX(3px);
}

.footer__col--contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__contact {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 4px 0;
    color: #d6d6d6;
    font-size: 13px;
    line-height: 1.5;
    transition: color 0.2s var(--ease);
}

.footer__contact:hover {
    color: var(--white);
}

.footer__contact .icon {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    color: #7e7e7e;
}

.footer__contact--text {
    color: #a9a9a9;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #6e6e6e;
    font-size: 10px;
    letter-spacing: 0.02em;
}

.footer__made {
    text-align: right;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field__label {
    color: var(--gray-700);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.field__hint {
    color: var(--gray-500);
    font-size: 11px;
    line-height: 1.4;
}

.field__error {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.field__error .icon {
    width: 13px;
    height: 13px;
}

.input,
.textarea,
.select {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.textarea {
    min-height: 126px;
    padding: 14px 16px;
    resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
    color: var(--gray-400);
}

.input:hover,
.textarea:hover,
.select:hover {
    border-color: var(--gray-400);
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink);
}

.input.is-error {
    border-color: var(--ink);
    background: var(--gray-50);
}

.input:disabled,
.textarea:disabled,
.select:disabled {
    border-color: var(--line);
    background: var(--gray-50);
    color: var(--gray-400);
    cursor: not-allowed;
}

.select {
    appearance: none;
    cursor: pointer;
    padding-right: 44px;
}

.select-wrap {
    position: relative;
}

.select-wrap__icon {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 16px;
    height: 16px;
    color: var(--gray-500);
    transform: translateY(-50%);
    pointer-events: none;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap__icon {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--gray-500);
    transform: translateY(-50%);
    pointer-events: none;
}

.input--with-icon {
    padding-left: 46px;
}

/* Checkbox / radio / switch */

.check,
.radio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-700);
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}

.check input,
.radio input,
.switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.check__box {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--white);
    transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.check__box .icon {
    width: 13px;
    height: 13px;
    opacity: 0;
    transition: opacity 0.15s var(--ease);
}

.check input:checked + .check__box {
    background: var(--ink);
    border-color: var(--ink);
}

.check input:checked + .check__box .icon {
    opacity: 1;
}

.check input:focus-visible + .check__box,
.radio input:focus-visible + .radio__dot,
.switch input:focus-visible + .switch__track {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.radio__dot {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border: 1px solid var(--gray-300);
    border-radius: 50%;
    background: var(--white);
    transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.radio input:checked + .radio__dot {
    border-color: var(--ink);
    background: var(--ink);
    box-shadow: inset 0 0 0 4px var(--white);
}

.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-700);
    font-size: 13px;
    cursor: pointer;
}

.switch__track {
    position: relative;
    display: block;
    width: 40px;
    height: 22px;
    border: 1px solid var(--gray-300);
    border-radius: var(--pill);
    background: var(--white);
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.switch__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gray-400);
    transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.switch input:checked + .switch__track {
    background: var(--ink);
    border-color: var(--ink);
}

.switch input:checked + .switch__track .switch__thumb {
    transform: translateX(18px);
    background: var(--white);
}

/* Quantity */

.qty {
    display: inline-flex;
    align-items: center;
    height: 44px;
    border: 1px solid var(--line-strong);
    background: var(--white);
}

.qty button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 42px;
    padding: 0;
    color: var(--gray-600);
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.qty button:hover {
    color: var(--ink);
    background: var(--gray-50);
}

.qty button .icon {
    width: 14px;
    height: 14px;
}

.qty input {
    width: 38px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    outline: none;
    appearance: textfield;
    -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

/* ==========================================================================
   Reveal
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.8s var(--ease-out),
        transform 0.8s var(--ease-out);
}

.reveal.is-revealed {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   Responsive base
   ========================================================================== */

@media (max-width: 1280px) {
    :root {
        --gutter: 32px;
    }

    .header__inner {
        gap: 20px;
    }

    .nav__link {
        padding-inline: 10px;
        font-size: 12px;
    }

    .header__phone {
        display: none;
    }
}

@media (max-width: 1100px) {
    .header__nav {
        display: none;
    }

    .burger {
        display: inline-flex;
    }

    .header__inner {
        justify-content: space-between;
    }

    .header__logo {
        margin-right: auto;
    }

    .header__actions {
        margin-left: auto;
    }

    .topbar__item--muted {
        display: none;
    }
}

@media (max-width: 900px) {
    .footer__masthead {
        grid-template-columns: 1fr auto;
    }

    .footer__manifest {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 32px;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .footer__col--contacts {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
    }

    .footer__col--contacts .footer__title {
        grid-column: 1 / -1;
    }

    .section-heading,
    .section-heading--split {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .section-heading__aside {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 768px) {
    :root {
        --gutter: 22px;
        --header-height: 64px;
    }

    .topbar {
        display: none;
    }

    /* Safari/iOS делает header containing block для position: fixed
       из-за backdrop-filter — корзина уезжала за верх экрана. */
    .site-header,
    .site-header.is-scrolled {
        background: var(--white);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .header__inner {
        gap: 10px;
    }

    .site-header.is-scrolled .header__inner {
        height: 64px;
    }

    .header__logo img,
    .site-header.is-scrolled .header__logo img {
        width: 118px;
    }

    .header__action {
        width: 40px;
        height: 40px;
    }

    .header__action .icon {
        width: 20px;
        height: 20px;
    }

    .site-footer {
        margin-top: 72px;
        padding-top: 48px;
    }

    .footer__masthead {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 32px;
    }

    .footer__manifest {
        grid-column: auto;
        grid-row: auto;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        padding: 36px 0;
    }

    .footer__brand,
    .footer__col--contacts {
        grid-column: 1 / -1;
    }

    .footer__col--contacts {
        display: flex;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer__made {
        text-align: left;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .eyebrow {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    :root {
        --gutter: 18px;
    }

    .header__logo img,
    .site-header.is-scrolled .header__logo img {
        width: 106px;
    }

    .btn {
        min-height: 50px;
        padding-inline: 18px;
        font-size: 13px;
    }

    .btn--lg {
        min-height: 56px;
        padding-inline: 20px;
    }

    .footer__logo img {
        width: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
