/* ============================================================
   АТТИКА РУС — styles-attika.css
   Editorial / Catalog · 2026
   Бумажный фон, крупная типографика, минимум графики
   ============================================================ */

:root {
  --paper:      #F4F1EA;   /* тёплый бумажный фон */
  --paper-2:    #EAE6DB;   /* секции потемнее */
  --ink:        #16130F;   /* почти чёрный текст */
  --ink-soft:   #57514733; /* мягкие линии */
  --line:       #16130F1A; /* разделители */
  --rust:       #B4441E;   /* ржаво-оранжевый акцент */
  --rust-deep:  #8F3416;
  --dark:       #16130F;   /* тёмные секции */
  --dark-text:  #C9C2B4;
  --paper-on-dark: #F4F1EA;

  --sans:  'Archivo', system-ui, sans-serif;
  --serif: 'Spectral', Georgia, serif;

  --pad:   clamp(20px, 6vw, 100px);
  --ease:  cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea { font: inherit; }


/* ============================================================
   ШАПКА
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--pad);
  background: transparent;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.topbar.solid {
  background: var(--paper);
  border-bottom-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}

.brand img { height: 30px; width: auto; }

.topnav { display: flex; gap: 28px; margin-left: auto; }
.topnav a {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  position: relative; padding: 4px 0;
}
.topnav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--rust); transition: width 0.3s var(--ease-out);
}
.topnav a:hover::after, .topnav a.active::after { width: 100%; }
.topnav a.active { color: var(--rust); }

.topbar-action {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 9px 18px; border: 1.5px solid var(--ink);
  border-radius: 100px;
  transition: background 0.25s var(--ease), color 0.25s;
}
.topbar-action:hover { background: var(--ink); color: var(--paper); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
.lead {
  min-height: 100svh;
  padding: 140px var(--pad) 0;
  display: flex; flex-direction: column;
  position: relative;
}

.lead-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--rust);
  margin-bottom: clamp(32px, 6vw, 72px);
  opacity: 0; animation: fade-down 0.8s 0.2s var(--ease-out) forwards;
}
.lead-meta-line { flex: 1; max-width: 120px; height: 1px; background: var(--rust); opacity: 0.4; }
.lead-meta-loc { color: var(--ink); opacity: 0.5; letter-spacing: 0.08em; }

.lead-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 8.5vw, 8rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: auto;
  max-width: 14ch;
}
.lead-word {
  display: inline-block;
  opacity: 0; transform: translateY(0.4em);
  animation: word-rise 0.9s var(--ease-out) forwards;
  animation-delay: calc(0.4s + var(--i, 0) * 0.09s);
}
.lead-word[data-i="0"] { --i: 0; }
.lead-word[data-i="1"] { --i: 1; }
.lead-word[data-i="2"] { --i: 2; }
.lead-word[data-i="3"] { --i: 3; }
.lead-word[data-i="4"] { --i: 4; }
.lead-word--accent { font-style: italic; color: var(--rust); }

@keyframes word-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes fade-down  { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.lead-footer {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 3vw, 36px);
  opacity: 0; animation: fade-down 0.9s 1s var(--ease-out) forwards;
}
.lead-statement {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.5; max-width: 46ch; color: var(--ink); opacity: 0.85;
}
.lead-scroll {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
  white-space: nowrap; flex-shrink: 0;
}
.lead-scroll-arrow { display: inline-block; transition: transform 0.3s var(--ease-out); }
.lead-scroll:hover .lead-scroll-arrow { transform: translateY(4px); }

/* Бегущая лента */
.lead-ticker {
  margin: 0 calc(-1 * var(--pad));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 14px 0;
}
.ticker-row {
  display: flex; align-items: center; gap: 24px; width: max-content;
  animation: ticker 32s linear infinite;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ticker-dot { color: var(--rust); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }


/* ============================================================
   ПОДХОД (манифест)
   ============================================================ */
.manifesto {
  padding: clamp(80px, 12vw, 160px) var(--pad);
  display: grid; grid-template-columns: minmax(120px, 1fr) 4fr; gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.manifesto-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--rust); padding-top: 14px;
}
.manifesto-text {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  line-height: 1.35; font-weight: 300; letter-spacing: -0.01em;
}
.manifesto-text strong { font-weight: 500; font-style: italic; }


/* ============================================================
   ЗАГОЛОВКИ СЕКЦИЙ
   ============================================================ */
.section-head {
  display: flex; align-items: baseline; gap: 20px;
  padding: 0 var(--pad) clamp(28px, 4vw, 48px);
  border-top: 1.5px solid var(--ink);
  padding-top: 24px; margin: 0 var(--pad);
}
.section-head--light { border-color: var(--line); }
.section-index {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--rust); flex-shrink: 0;
}
.section-index--light { color: var(--dark-text); }
.section-name {
  font-family: var(--sans); font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  font-weight: 700; letter-spacing: -0.01em;
}


/* ============================================================
   КАТАЛОГ НАПРАВЛЕНИЙ — раскрывающиеся строки
   ============================================================ */
.directions { padding-bottom: clamp(60px, 10vw, 120px); }
.dir-list { }

.dir-row { border-bottom: 1px solid var(--line); }
.dir-row:first-child { border-top: 1px solid var(--line); }

.dir-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: clamp(16px, 4vw, 48px);
  padding: clamp(24px, 3.5vw, 44px) var(--pad);
  text-align: left; transition: background 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.dir-trigger:hover { background: var(--paper-2); padding-left: calc(var(--pad) + 12px); }

.dir-num { font-size: 0.85rem; font-weight: 700; color: var(--rust); }
.dir-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  font-weight: 400; letter-spacing: -0.01em; line-height: 1;
}
.dir-hint {
  font-size: 0.85rem; color: var(--ink); opacity: 0.5; font-weight: 500;
  justify-self: end; text-align: right; max-width: 22ch;
}
.dir-cross {
  position: relative; width: 22px; height: 22px; flex-shrink: 0;
}
.dir-cross::before, .dir-cross::after {
  content: ''; position: absolute; background: var(--ink);
  transition: transform 0.4s var(--ease);
}
.dir-cross::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.dir-cross::after  { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.dir-row[data-open="true"] .dir-cross::after { transform: translateX(-50%) scaleY(0); }
.dir-row[data-open="true"] .dir-cross::before { background: var(--rust); }

.dir-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.dir-row[data-open="true"] .dir-panel { grid-template-rows: 1fr; }
.dir-panel-inner {
  overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 60px);
  padding: 0 var(--pad);
}
.dir-row[data-open="true"] .dir-panel-inner { padding-bottom: clamp(32px, 4vw, 52px); }
.dir-desc {
  font-family: var(--serif); font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.55; opacity: 0.85;
}
.dir-brands { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.dir-brands span {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 7px 14px; border: 1px solid var(--ink-soft); border-radius: 100px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.dir-brands span:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }


/* ============================================================
   МЕТОД — тёмная секция
   ============================================================ */
.method {
  background: var(--dark); color: var(--dark-text);
  padding-bottom: clamp(60px, 10vw, 120px);
}
.method .section-head { border-color: #FFFFFF22; }
.method .section-name { color: var(--paper-on-dark); }

.method-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0 var(--pad); border-left: 1px solid #FFFFFF1A;
}
.method-item {
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2vw, 32px);
  border-right: 1px solid #FFFFFF1A;
  border-bottom: 1px solid #FFFFFF1A;
  border-top: 1px solid #FFFFFF1A;
  position: relative;
  transition: background 0.35s var(--ease);
}
.method-item:hover { background: #FFFFFF08; }
.method-marker {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(2rem, 4vw, 3.4rem); color: var(--rust);
  line-height: 1; margin-bottom: 28px;
}
.method-item h3 {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem); font-weight: 700;
  margin-bottom: 12px; color: var(--paper-on-dark); letter-spacing: -0.01em;
}
.method-item p { font-size: 0.88rem; line-height: 1.65; opacity: 0.6; }


/* ============================================================
   ПРОИЗВОДИТЕЛИ — стена имён
   ============================================================ */
.brands { padding-bottom: clamp(60px, 10vw, 120px); }
.brands-wall {
  padding: clamp(24px, 4vw, 48px) var(--pad) 0;
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: clamp(12px, 2vw, 28px) clamp(20px, 3vw, 44px);
}
.brands-wall span {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4.5vw, 3.6rem);
  font-weight: 400; letter-spacing: -0.01em;
  color: var(--ink); opacity: 0.35;
  transition: opacity 0.3s var(--ease), color 0.3s, transform 0.3s var(--ease-out);
  cursor: default; line-height: 1.1;
}
.brands-wall span:hover { opacity: 1; color: var(--rust); transform: translateY(-3px); }
.brands-foot {
  padding: clamp(36px, 5vw, 56px) var(--pad) 0;
  max-width: 60ch; font-size: 0.92rem; line-height: 1.6; opacity: 0.55;
}


/* ============================================================
   КОНТАКТ — тёмная секция
   ============================================================ */
.contact { background: var(--dark); color: var(--dark-text); padding: clamp(70px, 9vw, 130px) var(--pad); }
.contact-head { max-width: 900px; margin-bottom: clamp(48px, 6vw, 80px); }
.contact-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: 0.95;
  letter-spacing: -0.02em; color: var(--paper-on-dark);
  margin: 16px 0 24px;
}
.contact-note { font-size: 0.95rem; max-width: 44ch; opacity: 0.55; line-height: 1.6; }

.contact-body {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.contact-coords { display: flex; flex-direction: column; gap: 28px; }
.coord { display: flex; flex-direction: column; gap: 4px; padding-bottom: 24px; border-bottom: 1px solid #FFFFFF15; }
.coord-key { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust); margin-bottom: 6px; }
.coord-val { font-size: 1.05rem; color: var(--paper-on-dark); transition: color 0.2s; line-height: 1.5; }
a.coord-val:hover { color: var(--rust); }
.coord-val--plain { opacity: 0.75; font-size: 0.95rem; }

/* Форма */
.req-form { display: flex; flex-direction: column; gap: 0; }
.req-field { border-bottom: 1px solid #FFFFFF22; }
.req-field input, .req-field textarea {
  width: 100%; background: transparent; border: none; outline: none;
  color: var(--paper-on-dark); font-size: 1.05rem; padding: 18px 0;
  resize: none;
}
.req-field input::placeholder, .req-field textarea::placeholder { color: #FFFFFF55; }
.req-field input:focus::placeholder, .req-field textarea:focus::placeholder { color: #FFFFFF30; }
.req-field:focus-within { border-bottom-color: var(--rust); }
.req-field input.err { border-bottom-color: #E5564B; }

.req-err { font-size: 0.78rem; color: #E5564B; min-height: 14px; padding-top: 6px; display: block; }

.req-consent {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 24px 0 8px; cursor: pointer; font-size: 0.82rem; line-height: 1.5; opacity: 0.7;
}
.req-consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.req-checkbox {
  width: 18px; height: 18px; min-width: 18px; margin-top: 1px;
  border: 1.5px solid #FFFFFF44; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s; position: relative;
}
.req-checkbox::after {
  content: ''; width: 9px; height: 5px;
  border-left: 2px solid var(--dark); border-bottom: 2px solid var(--dark);
  transform: rotate(-45deg) translateY(-1px); opacity: 0; transition: opacity 0.2s;
}
.req-consent input:checked + .req-checkbox { background: var(--rust); border-color: var(--rust); }
.req-consent input:checked + .req-checkbox::after { opacity: 1; }
.req-consent a { color: var(--rust); text-decoration: underline; text-underline-offset: 2px; }

.req-submit {
  display: inline-flex; align-items: center; gap: 14px; align-self: flex-start;
  margin-top: 28px; padding: 16px 32px;
  background: var(--rust); color: var(--paper-on-dark);
  border-radius: 100px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.02em;
  transition: background 0.25s var(--ease), gap 0.25s var(--ease), transform 0.25s var(--ease-out);
}
.req-submit:hover { background: var(--rust-deep); gap: 20px; transform: translateY(-2px); }
.req-submit:disabled { opacity: 0.5; pointer-events: none; }
.req-submit-arrow { font-size: 1.1rem; }

.req-done {
  margin-top: 24px; padding: 16px 20px;
  border: 1px solid var(--rust); border-radius: 8px;
  color: var(--paper-on-dark); font-size: 0.9rem; background: #B4441E1A;
}
.req-done[hidden] { display: none; }


/* ============================================================
   ФУТЕР
   ============================================================ */
.footer { background: var(--dark); padding: 0 var(--pad) clamp(36px, 5vw, 56px); }
.footer-mark { padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 4vw, 40px); border-top: 1px solid #FFFFFF1A; }
.footer-mark img { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: 0.7; }
.footer-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--dark-text); opacity: 0.5;
}
.footer-row a { text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.footer-row a:hover { color: var(--rust); opacity: 1; }


/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }


/* ============================================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================================ */
.mobile-sheet {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: var(--paper); padding: 100px var(--pad) 40px;
  flex-direction: column; gap: 4px;
}
.mobile-sheet.open { display: flex; }
.mobile-sheet a {
  font-family: var(--serif); font-size: 2rem; font-weight: 400;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-sheet a:hover { color: var(--rust); }


/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 900px) {
  .topnav { display: none; }
  .topbar-action { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }

  .manifesto { grid-template-columns: 1fr; gap: 16px; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .dir-trigger { grid-template-columns: auto 1fr auto; }
  .dir-hint { display: none; }
  .dir-panel-inner { grid-template-columns: 1fr; }
  .contact-body { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .method-grid { grid-template-columns: 1fr; }
  .lead-headline { font-size: clamp(2.2rem, 13vw, 4rem); max-width: 100%; }
  .lead-footer { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .ticker-row { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ticker-row { animation: none; }
  .lead-word { opacity: 1; transform: none; }
}
