/* ============================================================
   ALL AUTO — ОБЩАЯ ШАПКА И ПОДВАЛ
   Один файл на все страницы: главная, каталог, документы, 404.
   Разметка блоков <header class="header"> и <footer class="footer">
   одинаковая везде — правим только здесь, а не по страницам.

   Как подключать на странице:
     <link rel="stylesheet" href="/assets/css/chrome.css">
     ...
     <script src="/assets/js/chrome.js" defer></script>
   Страницам без hero (каталог, документы, 404) добавляем
   <body class="page--inner"> — шапка становится белой сразу,
   а контент отступает на её высоту.

   Полосу с часами и поп-ап Telegram-канала в разметку писать
   не нужно — их собирает chrome.js.
   ============================================================ */

:root{
  --hdr-h:84px;              /* высота шапки: от неё считаются отступы и якоря */
  --strip-h:36px;            /* полоса с часами над шапкой; при прокрутке сворачивается */
  --plum-2:#2A1B34;          /* запасные значения для страниц без общей палитры */
  --accent-ink:#C50F66;
}

/* якорные переходы не должны прятать заголовок под фиксированной шапкой */
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--hdr-h) + 14px);}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto;}}

/* ============================================================
   ШАПКА
   ============================================================ */
.header{
  position:fixed;top:0;left:0;right:0;z-index:50;
  background:transparent;
  border-bottom:1px solid transparent;
  transition:background .25s,border-color .25s,box-shadow .25s;
}
.header__inner{
  display:flex;align-items:center;justify-content:space-between;
  height:var(--hdr-h);gap:24px;
}

/* Белая подложка: на внутренних страницах сразу, на главной — после прокрутки hero */
.header.is-stuck,
.page--inner .header{
  background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-bottom-color:var(--line-2,#EAEAEA);
  box-shadow:0 6px 24px rgba(20,20,20,.06);
}
/* на внутренних страницах шапка выключена из потока — возвращаем отступ */
body.page--inner{padding-top:calc(var(--hdr-h) + var(--strip-h));}

/* ---------- Часы в городах ----------
   Полоса над шапкой. Видна вверху страницы, после прокрутки сворачивается,
   чтобы шапка не занимала лишнее место. --strip-cur — её текущая высота,
   от неё отсчитывается мобильное меню. */
.header{--strip-cur:0px;}
.header.has-clocks{--strip-cur:var(--strip-h);}
.header.has-clocks.is-compact{--strip-cur:0px;}

.clocks{
  height:var(--strip-cur);overflow:hidden;
  background:var(--plum-2,#2A1B34);color:#fff;
  transition:height .25s;
}
.clocks__inner{display:flex;align-items:center;gap:28px;height:var(--strip-h);}
.clocks__title{
  font-size:11px;font-weight:600;letter-spacing:1.1px;text-transform:uppercase;
  color:rgba(255,255,255,.45);white-space:nowrap;
}
.clocks__list{display:flex;align-items:center;gap:26px;margin:0;padding:0;list-style:none;}
.clock{display:flex;align-items:center;gap:8px;white-space:nowrap;}
.clock__face{width:24px;height:24px;flex-shrink:0;display:block;}
.clock__dial{fill:#fff;}
.clock__tick{stroke:rgba(42,27,52,.35);stroke-width:1.4;stroke-linecap:round;}
.clock__tick--major{stroke:var(--plum-2,#2A1B34);stroke-width:2.2;}
.clock__h,.clock__m{stroke:var(--plum-2,#2A1B34);stroke-linecap:round;}
.clock__h{stroke-width:3;}
.clock__m{stroke-width:2;}
.clock__s{stroke:var(--accent,#E6187C);stroke-width:1.1;stroke-linecap:round;}
.clock__pin{fill:var(--accent,#E6187C);}
.clock__txt{display:flex;align-items:baseline;gap:6px;line-height:1;}
.clock__city{font-size:12.5px;color:rgba(255,255,255,.62);}
.clock__short{display:none;}
.clock__time{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;color:#fff;}

.logo{
  display:flex;align-items:center;gap:11px;flex-shrink:0;
  font-weight:800;font-size:19px;letter-spacing:.4px;color:var(--ink,#141414);
  text-decoration:none;
}
.logo:hover{text-decoration:none;color:var(--ink,#141414);}
.logo__img{
  width:46px;height:46px;border-radius:12px;flex-shrink:0;display:block;object-fit:cover;
  box-shadow:0 6px 16px rgba(42,27,52,.28);
}

.nav{display:flex;gap:26px;}
/* шесть пунктов меню на ноутбучной ширине — чуть плотнее, чтобы влезла кнопка */
@media (max-width:1360px){.nav{gap:18px;}}
.nav a{
  font-size:14px;font-weight:500;color:var(--ink-2,#565656);
  padding-bottom:2px;transition:.2s;text-decoration:none;white-space:nowrap;
}
.nav a:hover{color:var(--accent,#E6187C);text-decoration:none;}
.nav a.is-current{color:var(--accent,#E6187C);font-weight:600;}

.header__right{display:flex;align-items:center;gap:16px;}
.header__phone{
  font-weight:700;font-size:16px;color:var(--ink,#141414);
  white-space:nowrap;text-decoration:none;
}
.header__phone:hover{color:var(--accent,#E6187C);text-decoration:none;}
.header__cb{
  display:inline-flex;align-items:center;justify-content:center;
  font-family:inherit;font-weight:600;font-size:14px;color:var(--accent,#E6187C);
  border:1.5px solid var(--accent,#E6187C);border-radius:50px;padding:11px 20px;
  background:rgba(255,255,255,.6);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  transition:.2s;white-space:nowrap;cursor:pointer;
}
.header__cb:hover{background:var(--accent,#E6187C);color:#fff;}

/* бургер — появляется вместе со скрытым меню */
.burger{
  display:none;align-items:center;justify-content:center;flex-direction:column;gap:4px;
  width:46px;height:46px;flex-shrink:0;cursor:pointer;
  border:1.5px solid var(--line,#D5D5D5);border-radius:13px;
  background:rgba(255,255,255,.7);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  transition:.2s;
}
.burger span{display:block;width:18px;height:2px;border-radius:2px;background:var(--ink,#141414);transition:.22s;}
.burger:hover{border-color:var(--accent,#E6187C);}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg);}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0;}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}

/* телефон и кнопка внутри мобильного меню — на десктопе не нужны */
.nav__mob{display:none;}

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer{
  background:var(--plum-2,#2A1B34);color:rgba(255,255,255,.62);
  font-size:14px;padding:56px 0 24px;
}
.footer a{color:rgba(255,255,255,.72);text-decoration:none;transition:.18s;}
.footer a:hover{color:#fff;text-decoration:none;}

.footer__top{
  display:grid;grid-template-columns:1.55fr 1fr 1.15fr 1fr;gap:40px;
  padding-bottom:38px;border-bottom:1px solid rgba(255,255,255,.12);
}

.footer__logo{
  display:inline-flex;align-items:center;gap:11px;
  font-weight:800;font-size:19px;letter-spacing:.4px;color:#fff;
}
.footer__logo:hover{color:#fff;}
.footer__logo img{width:46px;height:46px;border-radius:12px;display:block;object-fit:cover;}
.footer__about{
  margin:18px 0 24px;max-width:380px;
  font-size:14.5px;line-height:1.6;color:rgba(255,255,255,.6);
}

/* кнопка Telegram-канала под описанием компании */
.footer__actions{display:flex;flex-wrap:wrap;gap:10px;}
.footer__btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  font-family:inherit;font-weight:600;font-size:14.5px;
  padding:13px 24px;border-radius:50px;cursor:pointer;
  border:1.5px solid rgba(255,255,255,.32);color:#fff;background:transparent;
  transition:.2s;white-space:nowrap;
}
.footer__btn:hover{border-color:#fff;color:#fff;background:rgba(255,255,255,.08);}
.footer__btn--primary{background:var(--accent,#E6187C);border-color:var(--accent,#E6187C);color:#fff;}
.footer__btn--primary:hover{background:var(--accent-ink,#C50F66);border-color:var(--accent-ink,#C50F66);}
.footer__btn svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.8;fill:none;flex-shrink:0;}

.footer__col{display:flex;flex-direction:column;gap:11px;align-items:flex-start;}
.footer__title{
  font-size:12px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;
  color:rgba(255,255,255,.4);margin-bottom:5px;
}
.footer__col a,.footer__col span{font-size:14.5px;line-height:1.5;}
.footer__col span{color:rgba(255,255,255,.6);}
.footer__phone{font-size:19px !important;font-weight:700;color:#fff !important;letter-spacing:-.3px;}

.footer__msgs{display:flex;gap:9px;margin-top:6px;}
.footer__msg{
  display:inline-flex;align-items:center;gap:7px;
  padding:9px 15px;border-radius:50px;font-size:13.5px;font-weight:600;
  border:1px solid rgba(255,255,255,.22);color:rgba(255,255,255,.82);
}
.footer__msg:hover{border-color:rgba(255,255,255,.5);background:rgba(255,255,255,.07);}
.footer__msg svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.7;fill:none;}

.footer__bottom{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;
  padding-top:22px;font-size:13px;color:rgba(255,255,255,.45);
}
.footer__bottom a{color:rgba(255,255,255,.45);}

/* ============================================================
   АДАПТИВ
   ============================================================ */

/* меню не помещается в строку — прячем в выпадающую панель */
/* 1240, а не 1180: с пунктом «Аукционы Японии» меню в строку уже не помещается */
@media (max-width:1240px){
  .burger{display:inline-flex;}
  .header__cb{display:none;}

  .nav{
    position:fixed;top:calc(var(--hdr-h) + var(--strip-cur));left:0;right:0;
    display:block;flex-direction:column;gap:0;
    padding:6px var(--gutter,40px) 22px;
    background:#fff;border-bottom:1px solid var(--line-2,#EAEAEA);
    box-shadow:0 18px 40px rgba(20,20,20,.12);
    max-height:calc(100vh - var(--hdr-h) - var(--strip-cur));overflow-y:auto;
    opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-10px);
    transition:opacity .2s,transform .2s,visibility .2s;
  }
  .nav.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:none;}
  .nav a{
    display:block;padding:15px 0;font-size:16.5px;font-weight:600;
    color:var(--ink,#141414);border-bottom:1px solid var(--line-2,#EAEAEA);
  }
  .nav__mob{display:flex;flex-direction:column;gap:12px;padding-top:20px;}
  .nav__mob .header__cb{display:inline-flex;width:100%;padding:15px 20px;font-size:15px;}
  .nav .nav__mob-phone{
    display:block;padding:0;border-bottom:none;
    font-size:21px;font-weight:800;letter-spacing:-.4px;
    color:var(--ink,#141414);text-decoration:none;
  }

  .footer__top{grid-template-columns:1fr 1fr;gap:36px 30px;}

  .clocks__title{display:none;}
  .clocks__list{gap:22px;}
}

@media (max-width:760px){
  :root{--hdr-h:70px;--strip-h:40px;}
  .header__phone{display:none;}
  .logo{font-size:17px;}
  .logo__img{width:40px;height:40px;border-radius:10px;}

  .footer{padding:44px 0 22px;}
  .footer__top{grid-template-columns:1fr;gap:32px;}
  .footer__about{max-width:100%;}
  .footer__actions{flex-direction:column;}
  .footer__btn{width:100%;}
  .footer__bottom{flex-direction:column;align-items:flex-start;gap:8px;}

  /* четыре часа в ряд: время под коротким названием города */
  .clocks__list{flex:1;justify-content:space-between;gap:8px;}
  .clock{gap:6px;}
  .clock__face{width:22px;height:22px;}
  .clock__txt{flex-direction:column;align-items:flex-start;gap:3px;}
  .clock__full{display:none;}
  .clock__short{display:inline;}
  .clock__city{font-size:10px;}
  .clock__time{font-size:12px;}
}

@media (prefers-reduced-motion:reduce){
  .clocks{transition:none;}
}

/* ============================================================
   ПОП-АП: ПРИГЛАШЕНИЕ В TELEGRAM-КАНАЛ
   Появляется через 20 секунд на странице (настройки — chrome.js, п. 7).
   ============================================================ */
.tgp{
  position:fixed;inset:0;z-index:210;
  display:flex;align-items:center;justify-content:center;padding:24px;
  background:rgba(20,20,20,.55);
  opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s;
}
.tgp.is-open{opacity:1;visibility:visible;}
.tgp__card{
  position:relative;width:100%;max-width:420px;max-height:calc(100vh - 48px);overflow-y:auto;
  background:#fff;border-radius:22px;box-shadow:0 30px 80px rgba(20,20,20,.3);
  transform:translateY(18px) scale(.98);transition:transform .3s;
}
.tgp.is-open .tgp__card{transform:none;}

.tgp__head{
  position:relative;height:128px;overflow:hidden;border-radius:22px 22px 0 0;
  display:flex;align-items:center;justify-content:center;
  background:radial-gradient(120% 150% at 100% 0%,rgba(230,24,124,.6),transparent 62%),var(--plum-2,#2A1B34);
}
.tgp__head::before{
  content:'';position:absolute;inset:0;pointer-events:none;
  background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.05) 0 1px,transparent 1px 14px);
}
.tgp__logo{
  position:relative;width:68px;height:68px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#fff;box-shadow:0 12px 30px rgba(0,0,0,.28);
}
.tgp__logo svg{width:32px;height:32px;margin-left:-3px;stroke:var(--accent,#E6187C);stroke-width:1.9;fill:none;}

.tgp__close{
  position:absolute;top:14px;right:14px;z-index:2;width:36px;height:36px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  font-family:inherit;font-size:16px;line-height:1;color:#fff;
  border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.1);
  transition:background .2s,border-color .2s;
}
.tgp__close:hover{background:rgba(255,255,255,.22);border-color:rgba(255,255,255,.6);}

.tgp__body{padding:26px 30px 24px;}
.tgp__eyebrow{
  font-size:12px;font-weight:600;letter-spacing:1px;text-transform:uppercase;
  color:var(--accent,#E6187C);margin-bottom:8px;
}
.tgp__title{
  margin:0 0 10px;font-size:23px;font-weight:800;line-height:1.2;letter-spacing:-.4px;
  color:var(--ink,#141414);
}
.tgp__text{margin:0 0 16px;font-size:15px;line-height:1.55;color:var(--ink-2,#565656);}
.tgp__list{margin:0 0 22px;padding:0;list-style:none;display:grid;gap:9px;}
.tgp__list li{
  position:relative;padding-left:28px;font-size:14.5px;font-weight:500;line-height:1.4;
  color:var(--ink,#141414);
}
.tgp__list li::before{
  content:'';position:absolute;left:0;top:1px;width:18px;height:18px;border-radius:50%;
  background:var(--accent-soft,#FFEAF3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E6187C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") no-repeat center/11px;
}
.tgp__cta{
  display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;
  border-radius:14px;background:var(--accent,#E6187C);color:#fff;
  font-size:16px;font-weight:700;text-decoration:none;transition:background .2s;
  box-shadow:0 12px 26px -12px rgba(230,24,124,.7);
}
.tgp__cta:hover{background:var(--accent-ink,#C50F66);color:#fff;text-decoration:none;}
.tgp__cta svg{width:20px;height:20px;stroke:currentColor;stroke-width:2;fill:none;}
.tgp__later{
  display:block;width:100%;margin-top:8px;padding:10px;border:0;background:none;cursor:pointer;
  font-family:inherit;font-size:14px;font-weight:500;color:var(--ink-3,#8C8C8C);transition:color .2s;
}
.tgp__later:hover{color:var(--ink,#141414);}

/* на телефоне — лист снизу экрана, под большой палец */
@media (max-width:760px){
  .tgp{align-items:flex-end;padding:0;}
  .tgp__card{max-width:none;max-height:92vh;border-radius:22px 22px 0 0;transform:translateY(40px);}
  .tgp__head{height:110px;}
  .tgp__body{padding:22px 20px calc(18px + env(safe-area-inset-bottom));}
  .tgp__title{font-size:21px;}
}

@media (prefers-reduced-motion:reduce){
  .tgp,.tgp__card{transition:none;}
}
