/* =====================================================================
   Скин «Терминал» — taxfree-online.ru «TaxFree Online»
   Терминал аэропорта: боковая панель вместо шапки (разделы — выходы на посадку A, B…),
   табличка зоны tax free с иллюминатором, указатели, список выходов, горизонтальные карточки,
   правила провоза, табло вылетов брендов, пиктограммы. Tenor Sans + Golos Text.
   Цвета: изумруд и латунь.
   ===================================================================== */
:root {
    --bg: #F7F7F2;          --bg-rgb: 247, 247, 242;
    --surface: #ECEFE8;     --surface-2: #E1E6DD;
    --ink: #0F201B;         --ink-rgb: 15, 32, 27;
    --ink-2: #43544E;       --muted: #7E8C86;
    --line: rgba(15, 32, 27, .12);
    --line-strong: rgba(15, 32, 27, .3);
    --accent: #8A6A2F;
    --emerald: #0F2E27;
    --emerald-2: #163B32;
    --brass: #C9A45C;
    --sale: #B4432F;
    --radius: 4px;
    --badge-bg: var(--emerald);
    --side: 272px;

    --f-display: "Tenor Sans", "Gill Sans", "Helvetica Neue", sans-serif;
    --f-ui: "Golos Text", "Helvetica Neue", Arial, sans-serif;
    --f-logo: "Tenor Sans", sans-serif;
    --w-thin: 400;
    --w-ui: 400;
    --w-strong: 500;
    --w-bold: 600;
    --header-h: 0px;
}
@media (max-width: 1023px) { :root { --header-h: 60px; } }
body { font-size: 15px; }
::selection { background: var(--brass); color: var(--emerald); }

/* ---------- типографика: указатели ---------- */
.display { font-weight: 400; text-transform: uppercase; letter-spacing: .03em; }
.display em { font-style: normal; color: var(--accent); }
.eyebrow { font-family: var(--f-display); font-weight: 400; letter-spacing: .22em; color: var(--accent); }
.tm-sign { display: inline-block; padding: 7px 12px 6px; background: var(--brass); color: var(--emerald); font-family: var(--f-display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.tm-sign--sm { display: table; margin-bottom: 12px; font-size: 11px; }
.tm-title { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 0 0 28px; font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: .06em; text-transform: uppercase; color: var(--emerald); }
.tm-title .tm-sign--sm { flex-basis: 100%; margin: 0; }
.tm-title__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--emerald); color: var(--brass); border-radius: 4px; }

/* ---------- кнопки ---------- */
.btn { font-family: var(--f-display); font-weight: 400; letter-spacing: .16em; border-radius: 4px; background: var(--emerald); border-color: var(--emerald); color: #fff; }
.btn:hover { background: var(--brass); border-color: var(--brass); color: var(--emerald); }
.btn--ghost { background: transparent; color: var(--emerald); border-color: var(--emerald); }
.btn--ghost:hover { background: var(--emerald); color: #fff; }

/* ---------- боковая панель ---------- */
@media (min-width: 1024px) {
    body { padding-left: var(--side); }
    .cookie-note { left: calc(var(--side) + 24px); }
}
.tm-side {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; width: var(--side);
    display: flex; flex-direction: column; gap: 26px; padding: 30px 22px 24px; overflow-y: auto; scrollbar-width: thin;
    background: var(--emerald); color: #F1EFE6;
}
.tm-side__top { display: flex; align-items: center; gap: 10px; }
.tm-side__burger, .tm-side__mobile-actions { display: none; }
.tm-logo { display: inline-flex; flex-direction: column; line-height: 1; color: #F1EFE6; }
.tm-logo__word { font-family: var(--f-display); font-size: 27px; letter-spacing: .2em; white-space: nowrap; }
.tm-logo__sub { margin-top: 8px; font-family: var(--f-display); font-size: 11px; letter-spacing: .6em; text-transform: uppercase; color: var(--brass); }
.tm-search { display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid rgba(241, 239, 230, .2); border-radius: 4px; background: rgba(241, 239, 230, .06); color: rgba(241, 239, 230, .6); }
.tm-search input { min-height: 42px; padding: 0; border: 0 !important; background: transparent; color: #F1EFE6; box-shadow: none !important; font-size: 14px; }
.tm-search input::placeholder { color: rgba(241, 239, 230, .5); }
.tm-gates__label { display: block; margin-bottom: 8px; font-family: var(--f-display); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.tm-gates .nav__list { list-style: none; counter-reset: gate; }
.tm-gates .nav__item { counter-increment: gate; border-bottom: 1px solid rgba(241, 239, 230, .12); }
.tm-gates .nav__link { display: flex; align-items: center; gap: 12px; height: auto; padding: 13px 0; font-family: var(--f-display); font-weight: 400; font-size: 15px; letter-spacing: .06em; color: #F1EFE6; white-space: normal; line-height: 1.25; }
.tm-gates .nav__link::before {
    content: counter(gate, upper-alpha); flex: none; display: grid; place-items: center; width: 30px; height: 30px;
    background: var(--brass); color: var(--emerald); font-size: 15px; border-radius: 3px;
}
.tm-gates .nav__link::after { display: none; }
.tm-gates .nav__item:hover > .nav__link, .tm-gates .nav__item.is-current > .nav__link { color: var(--brass); }
.tm-gates .flyout {
    position: fixed; left: var(--side); right: auto; top: 0; bottom: 0; width: min(620px, 56vw); max-height: none;
    border: 0; border-left: 4px solid var(--brass); background: #fff; color: var(--ink); transform: translateX(-10px);
    box-shadow: 30px 0 60px -30px rgba(0, 0, 0, .4);
}
.tm-gates .flyout__inner { padding: 40px 36px; }
.tm-gates .flyout__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tm-gates .flyout__list--cols { columns: 3 150px; }
.tm-side__foot { margin-top: auto; display: grid; gap: 14px; }
.tm-side__actions { display: flex; gap: 22px; padding-top: 18px; border-top: 1px solid rgba(241, 239, 230, .14); }
.tm-side .icon-btn { color: #F1EFE6; }
.tm-side .icon-btn__count { background: var(--brass); color: var(--emerald); }
.tm-side .icon-btn__dot { background: var(--brass); }
.tm-side__note { margin: 0; font-size: 12px; line-height: 1.5; color: rgba(241, 239, 230, .62); }
.tm-side__note b { color: var(--brass); font-weight: 500; }
.tm-side__phone { font-family: var(--f-display); font-size: 17px; letter-spacing: .06em; }
@media (max-width: 1023px) {
    .tm-side {
        position: sticky; top: 0; width: auto; height: var(--header-h); flex-direction: row; align-items: center; justify-content: space-between;
        gap: 10px; padding: 0 16px; overflow: visible;
    }
    .tm-side__burger, .tm-side__mobile-actions { display: inline-flex; }
    .tm-search, .tm-gates, .tm-side__note, .tm-side__phone { display: none; }
    .tm-side__foot { margin: 0; }
    .tm-side__actions { padding: 0; border: 0; gap: 14px; }
    .tm-logo { flex-direction: row; align-items: baseline; gap: 8px; }
    .tm-logo__word { font-size: 18px; letter-spacing: .14em; }
    .tm-logo__sub { margin: 0; font-size: 9px; letter-spacing: .3em; }
}
@media (max-width: 380px) { .tm-logo__sub { display: none; } }

/* ---------- зона tax free ---------- */
.tm-hero { padding-top: 56px; background: var(--bg); }
.tm-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-bottom: 56px; }
.tm-hero__title { margin: 26px 0 20px; font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 4.8vw, 74px); line-height: 1.06; letter-spacing: .01em; text-transform: uppercase; color: var(--emerald); }
.tm-hero__lead { max-width: 520px; margin: 0 0 30px; font-size: 17px; color: var(--ink-2); }
.tm-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.tm-window { position: relative; display: block; aspect-ratio: 3 / 4; max-width: 420px; justify-self: center; width: 100%; }
.tm-window__glass {
    position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 46% / 34%; background: #F1F2EC;
    box-shadow: inset 0 0 0 14px #E3E1D3, inset 0 0 0 15px var(--brass), 0 40px 70px -40px rgba(15, 46, 39, .6);
}
.tm-window__glass img { position: absolute; inset: 12% 16% 24%; width: 68%; height: 64%; object-fit: contain; mix-blend-mode: multiply; transition: transform 1s var(--ease); }
.tm-window:hover .tm-window__glass img { transform: scale(1.04); }
.tm-window__tag { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); display: grid; gap: 2px; min-width: 70%; padding: 12px 18px; text-align: center; background: var(--emerald); color: #F1EFE6; font-size: 12px; letter-spacing: .08em; }
.tm-window__tag span:first-child { color: var(--brass); font-family: var(--f-display); letter-spacing: .2em; text-transform: uppercase; }
.tm-window__tag b { font-family: var(--f-display); font-weight: 400; font-size: 18px; letter-spacing: .02em; }
.tm-way { background: var(--emerald); color: #F1EFE6; }
.tm-way__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 76px; }
.tm-way__item { display: inline-flex; align-items: center; gap: 14px; font-family: var(--f-display); font-size: clamp(16px, 1.6vw, 22px); letter-spacing: .08em; text-transform: uppercase; }
.tm-way__item:hover { color: var(--brass); }
.tm-way__arrow { font-family: var(--f-ui); font-size: 1.5em; line-height: 1; color: var(--brass); }
.tm-way__code { display: grid; place-items: center; width: 36px; height: 36px; background: var(--brass); color: var(--emerald); border-radius: 3px; }
.tm-way__info { font-size: 13px; color: rgba(241, 239, 230, .7); text-align: center; }
.tm-way__info b { color: var(--brass); font-weight: 500; }
@media (max-width: 960px) {
    .tm-hero { padding-top: 28px; }
    .tm-hero__grid { grid-template-columns: 1fr; gap: 44px; }
    .tm-window { max-width: 300px; order: -1; }
    .tm-way__info { display: none; }
    .tm-way__row { min-height: 60px; }
    .tm-way__item { font-size: 13px; gap: 8px; }
    .tm-way__code { width: 28px; height: 28px; }
}

/* ---------- разделы ---------- */
.tm-section { padding: 72px 0; }
.tm-section--board { background: var(--surface); }
.tm-section--flush { padding-top: 0; }
.tm-gatelist { list-style: none; display: grid; gap: 8px; }
.tm-gate {
    display: grid; grid-template-columns: 76px 1fr auto 84px 44px; align-items: center; gap: 20px;
    padding: 14px 18px; background: var(--emerald); color: #F1EFE6; border-radius: 6px; transition: background .2s;
}
.tm-gate:hover { background: var(--emerald-2); }
.tm-gate__code { display: grid; place-items: center; height: 52px; background: var(--brass); color: var(--emerald); font-family: var(--f-display); font-size: 24px; border-radius: 4px; }
.tm-gate__name { font-family: var(--f-display); font-size: clamp(18px, 2vw, 28px); letter-spacing: .06em; text-transform: uppercase; }
.tm-gate__status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.tm-gate__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5FD38A; animation: tm-blink 1.6s ease-in-out infinite; }
@keyframes tm-blink { 50% { opacity: .2; } }
.tm-gate__img { position: relative; display: block; width: 84px; height: 84px; border-radius: 50%; background: #F1F2EC; overflow: hidden; }
.tm-gate__img img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; }
.tm-gate__go { color: var(--brass); }
@media (max-width: 760px) {
    .tm-section { padding: 48px 0; }
    .tm-gate { grid-template-columns: 52px 1fr 56px; gap: 12px; padding: 10px 12px; }
    .tm-gate__code { height: 44px; font-size: 18px; }
    .tm-gate__status, .tm-gate__go { display: none; }
    .tm-gate__img { width: 56px; height: 56px; }
}

/* ---------- табло: горизонтальные карточки ---------- */
.tm-board-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.tm-board-head .tm-title { margin: 0; }
.tabs__btn { font-family: var(--f-display); font-weight: 400; letter-spacing: .14em; }
.tabs__btn[aria-selected="true"] { color: var(--emerald); border-color: var(--brass); border-bottom-width: 2px; }
.grid, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1500px) { .tm-section--board .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tmcard { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.tmcard:hover { border-color: var(--brass); box-shadow: 0 18px 30px -24px rgba(15, 46, 39, .5); }
.tmcard .card__top { height: 100%; }
.tmcard .card__media { width: 100%; height: 100%; min-height: 180px; aspect-ratio: auto; background: #F1F2EC; }
.tmcard .card__body { padding: 18px 20px; gap: 6px; }
.tmcard__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tmcard .card__fav { position: static; width: 32px; height: 32px; opacity: .55; }
.tmcard .card__brand { font-size: 11px; letter-spacing: .18em; color: var(--accent); font-weight: 600; }
.tmcard .card__name { font-family: var(--f-display); font-weight: 400; font-size: 21px; line-height: 1.2; color: var(--emerald); }
.tmcard .card__meta { font-size: 12px; }
.tmcard__foot { display: grid; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.tmcard .card__price { padding: 0; }
.tmcard .card__price .price { font-family: var(--f-display); font-weight: 400; font-size: 22px; color: var(--emerald); }
.tmcard__buy, .tmcard__buy.is-added {
    width: 100%; height: 42px; justify-content: space-between; padding: 0 16px; border-radius: 4px !important;
    background: var(--emerald); border: 0; color: #fff; font-family: var(--f-display); font-weight: 400; font-size: 13px; letter-spacing: .14em;
}
.tmcard__buy:hover, .tmcard__buy.is-added { background: var(--brass); color: var(--emerald); }
.tmcard .card__badges { top: 10px; left: 10px; }
.badge { background: var(--emerald); color: var(--brass); font-family: var(--f-display); font-weight: 400; letter-spacing: .14em; border-radius: 2px; }
.badge--sale { background: var(--sale); color: #fff; padding: 5px 8px 4px; }
@media (max-width: 1100px) and (min-width: 761px) { .catalog--filters .grid, .grid--3 { grid-template-columns: 1fr; } }
@media (hover: none), (max-width: 760px) {
    .grid, .grid--3 { grid-template-columns: 1fr; gap: 10px; }
    .tmcard { grid-template-columns: 124px 1fr; }
    .tmcard .card__body { padding: 12px 14px; }
    .tmcard .card__name { font-size: 16px; }
    .tmcard .card__price .price { font-size: 18px; }
    .tmcard__buy { width: 100%; height: 38px; border-radius: 4px !important; background: var(--emerald); color: #fff; padding: 0 12px; }
    .tmcard__buy span { display: inline !important; }
    .tmcard .card__badges { top: 6px; left: 6px; }
}

/* ---------- правила провоза ---------- */
.tm-rules { padding: 80px 0; background: #E6EAE1; }
.tm-rules__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.tm-rules__lead { margin: 20px 0 28px; font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; color: var(--emerald); }
.tm-rules__list { list-style: none; display: grid; gap: 12px; }
.tm-rules__list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 20px; background: #fff; border-left: 4px solid var(--brass); }
.tm-rules__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--emerald); color: var(--brass); font-family: var(--f-display); font-size: 20px; }
.tm-rules__list b { display: block; margin-bottom: 4px; font-family: var(--f-display); font-weight: 400; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--emerald); }
.tm-rules__list p { margin: 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 960px) { .tm-rules__grid { grid-template-columns: 1fr; gap: 32px; } .tm-rules { padding: 56px 0; } }

/* ---------- табло вылетов ---------- */
.tm-departures { background: #0B201B; color: #F1EFE6; border-radius: 8px; overflow: hidden; }
.tm-departures__row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; padding: 14px 24px; border-bottom: 1px solid rgba(241, 239, 230, .08); font-family: var(--f-display); font-size: 18px; letter-spacing: .08em; text-transform: uppercase; }
.tm-departures a.tm-departures__row:hover { background: var(--emerald-2); }
.tm-departures__row--head { font-size: 11px; letter-spacing: .22em; color: var(--brass); background: rgba(201, 164, 92, .08); }
.tm-departures__status { display: inline-flex; align-items: center; gap: 8px; color: var(--brass); font-size: 13px; letter-spacing: .16em; }
.tm-departures__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5FD38A; animation: tm-blink 1.6s ease-in-out infinite; }
@media (max-width: 640px) { .tm-departures__row { grid-template-columns: 1.6fr .6fr 1fr; padding: 12px 14px; font-size: 14px; gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .tm-gate__status::before, .tm-departures__status::before { animation: none; } }

/* ---------- пиктограммы ---------- */
.tm-picto { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tm-picto li { padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.tm-picto__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; background: var(--emerald); color: var(--brass); border-radius: 4px; }
.tm-picto b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald); }
.tm-picto p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 960px) { .tm-picto { grid-template-columns: 1fr 1fr; } }
.seo-text { margin-bottom: 40px; }

/* ---------- подвал ---------- */
.tm-foot { background: var(--emerald); color: #F1EFE6; }
.tm-foot--order { margin-top: 48px; }
.tm-foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.tm-foot__brand p { max-width: 380px; margin: 16px 0 0; font-size: 14px; color: rgba(241, 239, 230, .7); }
.tm-foot__col h4 { margin: 0 0 16px; font-family: var(--f-display); font-weight: 400; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.tm-foot__col ul { list-style: none; display: grid; gap: 9px; font-size: 14px; color: rgba(241, 239, 230, .8); }
.tm-foot a:hover { color: var(--brass); }
.tm-foot__bye { background: var(--brass); color: var(--emerald); font-family: var(--f-display); font-size: 14px; letter-spacing: .26em; text-transform: uppercase; text-align: center; padding: 14px 0; }
.tm-foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-top: 18px; padding-bottom: 24px; font-size: 12px; color: rgba(241, 239, 230, .55); }
@media (max-width: 760px) { .tm-foot__grid { grid-template-columns: 1fr 1fr; } .tm-foot__brand { grid-column: 1 / -1; } }

/* ---------- каталог и товар ---------- */
.category__title, .pdp__name { text-transform: uppercase; letter-spacing: .03em; color: var(--emerald); }
.buy__current { font-family: var(--f-display); font-weight: 400; color: var(--emerald); }
.gallery__main { background: #F1F2EC; border-radius: 8px; }
.filters__panel { top: 24px; max-height: calc(100vh - 48px); }
.drawer__group summary, .drawer__link { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .06em; font-size: 19px; }
.tm-board-head .tm-title { flex-direction: column; align-items: flex-start; gap: 12px; }
.tm-board-head .tm-sign--sm { display: inline-block; flex-basis: auto; }
