:root {
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --orange: #ff571d;
  --orange-dark: #dc410c;
  --ink: #171717;
  --milk: #f1f1ee;
  --paper: #fff;
  --line: rgba(23, 23, 23, .16);
  --muted: #6f6b66;
  --shell: min(1240px, calc(100vw - 80px));
}

.site-header {
  width: 100%;
  height: 86px;
  padding: 0 42px;
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: center;
  gap: 32px;
  background: rgba(247, 245, 241, .96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
}

.brand { width: max-content; position: relative; display: inline-flex; border-radius: 0; }
.brand img { width: 176px; height: auto; }
.brand:focus, .brand:focus-visible { outline: none; }
.brand:focus-visible::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: var(--orange); }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 14px; }
.nav-menu { position: relative; }
.nav-link, .nav-trigger { min-height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; cursor: pointer; transition: color .18s ease, background .18s ease; }
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--orange); background: rgba(255, 77, 10, .06); }
.nav-trigger svg { transition: transform .18s ease; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: calc(100% + 14px); left: 0; width: 310px; padding: 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 48px rgba(31, 25, 20, .12); animation: dropdown-in .18s ease both; }
.nav-dropdown > span { display: block; padding: 8px 10px 10px; color: #8a857e; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.nav-dropdown a { min-height: 48px; padding: 0 11px; border-radius: 6px; display: grid; grid-template-columns: 28px 1fr 18px; align-items: center; gap: 8px; color: var(--ink); transition: background .16s ease, color .16s ease; }
.nav-dropdown a:hover { background: var(--milk); color: var(--orange); }
.nav-dropdown small { color: #a19b94; font-size: 9px; letter-spacing: .08em; }
.nav-dropdown strong { font-size: 13px; font-weight: 550; }
.nav-dropdown svg { justify-self: end; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.phone-link { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-right: 4px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; padding: 0 18px 0 24px; border: 1px solid transparent; border-radius: 100px; font-size: 14px; font-weight: 600; transition: background .2s ease, color .2s ease, transform .2s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button--orange { background: var(--orange); color: white; }
.button--orange:hover { background: var(--orange-dark); }
.header-cta { min-height: 44px; gap: 16px; padding-left: 20px; }

.mobile-menu-button, .header-cta-mobile { display: none; }
.mobile-menu-overlay[hidden], .nav-dropdown[hidden], .cookie-consent[hidden] { display: none !important; }
.mobile-menu-button, .mobile-menu-close { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); place-items: center; cursor: pointer; }
.mobile-menu-overlay { position: fixed; inset: 0; z-index: 90; padding: 10px; display: flex; justify-content: flex-end; background: rgba(18,17,15,.48); backdrop-filter: blur(7px); animation: overlay-in .18s ease both; }
.mobile-menu-panel { width: min(430px, 100%); height: calc(100dvh - 20px); padding: 22px; border-radius: 18px; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; overflow-y: auto; box-shadow: 0 28px 90px rgba(20,16,12,.24); animation: mobile-menu-in .22s ease both; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.mobile-menu-top img { width: auto; height: 22px; max-width: min(154px, 70%); object-fit: contain; }
.mobile-menu-close svg { transform: rotate(45deg); }
.mobile-menu-nav { padding: 18px 0; display: grid; }
.mobile-menu-group { display: grid; }
.mobile-menu-group > span { margin: 18px 0 7px; color: #938d86; font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.mobile-menu-group:first-child > span { margin-top: 0; }
.mobile-menu-nav a { min-height: 52px; padding: 0 3px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 16px; font-weight: 570; }
.mobile-menu-nav a:hover { color: var(--orange); }
.mobile-menu-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.mobile-menu-footer > a { min-height: 44px; display: flex; align-items: center; gap: 9px; font-size: 17px; }
.mobile-menu-footer .button { width: 100%; }

.footer { background: var(--ink); color: white; padding: 82px 42px 26px; }
.footer-top { width: var(--shell); margin: 0 auto; display: grid; grid-template-columns: 1.35fr .95fr .7fr 1fr; gap: 50px; padding-bottom: 72px; }
.footer-brand img { width: 185px; height: auto; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 285px; margin: 28px 0 0; color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.5; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-size: 13px; }
.footer-column strong { margin-bottom: 13px; color: rgba(255,255,255,.42); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.footer-column a { color: rgba(255,255,255,.72); }
.footer-column a:hover { color: var(--orange); }
.footer-column span { color: rgba(255,255,255,.38); }
.footer-phone { font-size: 18px; color: white !important; }
.footer-bottom { width: var(--shell); margin: 0 auto; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: minmax(190px, .45fr) 1.55fr; gap: 32px; color: rgba(255,255,255,.42); font-size: 10px; line-height: 1.5; }
.footer-legal-copy { display: grid; align-content: start; gap: 8px; }
.footer-legal-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; gap: 10px 24px; }
.footer-legal-links a, .footer-legal-links button { color: rgba(255,255,255,.58); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal-links a:hover, .footer-legal-links button:hover { color: var(--orange); }
.footer-legal-links button { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }

.catalog-hero h1, .article-hero h1 { max-width: 900px; margin: 0; font-size: clamp(52px, 4.25vw, 64px); line-height: 1.01; letter-spacing: -.045em; text-wrap: balance; }

.cookie-consent { position: fixed; z-index: 120; left: 50%; bottom: 20px; width: min(980px, calc(100vw - 40px)); padding: 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(23,23,23,.97); color: white; box-shadow: 0 22px 70px rgba(0,0,0,.28); backdrop-filter: blur(18px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; transform: translateX(-50%); animation: cookie-in .24s ease both; }
.cookie-consent__copy strong { display: block; margin-bottom: 6px; font-size: 16px; }
.cookie-consent__copy p { max-width: 650px; margin: 0; color: rgba(255,255,255,.69); font-size: 13px; line-height: 1.5; }
.cookie-consent__copy a { color: white; text-decoration: underline; text-underline-offset: 3px; }
.cookie-consent__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cookie-button { min-height: 42px; padding: 0 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 100px; background: transparent; color: white; cursor: pointer; font-size: 12px; font-weight: 650; }
.cookie-button--primary { border-color: var(--orange); background: var(--orange); }
.cookie-button--quiet { border-color: transparent; color: rgba(255,255,255,.62); }

@keyframes dropdown-in { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mobile-menu-in { from { opacity: 0; transform: translateX(18px) scale(.985); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes cookie-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 1279px) {
  :root { --shell: calc(100vw - 64px); }
  .site-header { padding: 0 32px; grid-template-columns: 210px 1fr auto; gap: 20px; }
  .brand img { width: 160px; }
  .catalog-hero h1, .article-hero h1 { font-size: 64px; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  :root { --shell: calc(100vw - 56px); }
  .site-header { padding-inline: 28px; grid-template-columns: 185px minmax(260px, 1fr) auto; gap: 14px; }
  .main-nav { gap: 5px; }
  .nav-link, .nav-trigger { padding-inline: 10px; }
  .phone-link { font-size: 15px; }
  .header-cta { padding-inline: 16px 13px; }
  .footer { padding-inline: 28px; }
  .catalog-hero h1, .article-hero h1 { font-size: clamp(48px, 5vw, 58px); }
}

@media (max-width: 1023px) {
  :root { --shell: calc(100vw - 40px); }
  .site-header { height: 76px; padding: 0 20px; grid-template-columns: minmax(145px, 1fr) auto; gap: 12px; }
  .main-nav, .phone-link { display: none; }
  .brand img { width: 158px; }
  .header-actions { justify-self: end; gap: 8px; }
  .mobile-menu-button { display: grid; flex: 0 0 auto; }
  .header-cta-desktop { display: none; }
  .header-cta-mobile { display: inline; }
  .header-cta { min-height: 44px; padding: 0 14px; gap: 9px; }
  .footer { padding: 64px 20px 24px; }
  .footer-top { width: 100%; grid-template-columns: 1fr 1fr; gap: 44px 60px; padding-bottom: 52px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { width: 100%; grid-template-columns: 1fr; gap: 18px; }
  .footer-legal-links { justify-content: flex-start; gap: 10px 20px; }
  .catalog-hero h1, .article-hero h1 { max-width: 680px; font-size: clamp(48px, 7.2vw, 58px); }
}

@media (max-width: 760px) {
  .cookie-consent { bottom: 10px; width: calc(100vw - 20px); padding: 16px; grid-template-columns: 1fr; gap: 16px; border-radius: 16px; }
  .cookie-consent__copy strong { font-size: 15px; }
  .cookie-consent__copy p { font-size: 12px; }
  .cookie-consent__actions { justify-content: stretch; display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-button { width: 100%; min-height: 44px; padding-inline: 12px; }
  .cookie-button--quiet { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  :root { --shell: calc(100vw - 24px); }
  .site-header { height: 66px; padding-inline: 12px; gap: 8px; }
  .brand img { width: 132px; }
  .header-actions { gap: 6px; }
  .header-cta { min-height: 42px; padding-inline: 12px 10px; font-size: 12px; }
  .mobile-menu-button { width: 42px; height: 42px; }
  .mobile-menu-panel { padding: 18px; }
  .mobile-menu-nav a { min-height: 50px; font-size: 15px; }
  .footer-column { font-size: 14px; }
  .footer-column a { min-height: 30px; display: flex; align-items: center; }
  .footer-top > .footer-column:last-child { grid-column: 1 / -1; }
  .footer-phone { font-size: 19px; white-space: nowrap; }
  .footer-bottom { gap: 20px; font-size: 11px; }
  .footer-legal-copy, .footer-legal-links { width: 100%; }
  .catalog-hero h1, .article-hero h1 { max-width: 100%; font-size: clamp(37px, 10.6vw, 44px); line-height: 1.02; }
}

@media (max-width: 380px) {
  .brand img { width: 120px; }
  .footer-brand img { width: 168px; }
  .header-cta { padding-inline: 10px 8px; }
  .header-cta svg { display: none; }
  .catalog-hero h1, .article-hero h1 { font-size: 37px; }
}

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