/* ─────────────────────────────────────────────
   Marina Lodvikova — Journal edition
   Светлая, журнальная, асимметричная.
   ───────────────────────────────────────────── */

:root {
  --ivory:        #FAF7F0;   /* основной фон */
  --paper:        #F4EFE3;   /* лёгкий контраст */
  --graphite:     #2A2520;   /* основной текст */
  --graphite-soft:#56504A;   /* вторичный текст */
  --terracotta:   #B5654C;   /* акцент */
  --terracotta-d: #8E4936;   /* акцент тёмный */
  --olive:        #6C6A4D;   /* доп. акцент */
  --hairline:     rgba(42, 37, 32, 0.14);
  --rule:         rgba(181, 101, 76, 0.4);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Утилиты ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
}
.byline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--graphite-soft);
}
.hr-thin {
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 0;
}

/* ─── Topbar — узкий, минимальный ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gutter);
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--graphite);
  letter-spacing: 0.01em;
}
.brand .amp {
  color: var(--terracotta);
  font-weight: 400;
}
.topnav {
  display: flex;
  gap: 32px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite-soft);
  align-items: center;
}
.topnav a { transition: color 0.25s ease; }
.topnav a:hover { color: var(--terracotta); }
.topnav .nav-cta {
  background: var(--graphite);
  color: var(--ivory);
  padding: 10px 18px;
  letter-spacing: 0.18em;
  transition: background 0.25s ease;
}
.topnav .nav-cta:hover { background: var(--terracotta); color: var(--ivory); }

/* ─── HERO — журнальный «магазинный заголовок» ─── */
.hero {
  padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
}
.hero-text { padding-bottom: 20px; }
.hero-issue {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.hero-issue .sep { color: var(--hairline); font-weight: 400; }
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--graphite);
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  color: var(--terracotta);
}
.hero-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--graphite-soft);
  max-width: 520px;
  line-height: 1.45;
  margin-bottom: 36px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite-soft);
}
.hero-meta .dot { color: var(--terracotta); }

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.88);
}
.hero-photo .caption {
  position: absolute;
  bottom: -8px; left: 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--graphite-soft);
  padding-top: 14px;
  background: var(--ivory);
  padding-right: 18px;
}

/* ─── Article / story с буквицей ─── */
.article {
  padding: clamp(60px, 8vw, 120px) 0;
  border-top: 1px solid var(--hairline);
}
.article-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}
.article-side {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
  padding-top: 12px;
  border-top: 1px solid var(--terracotta);
  position: sticky;
  top: 100px;
  align-self: start;
}
.article-side small {
  display: block;
  margin-top: 16px;
  color: var(--graphite-soft);
  letter-spacing: 0.18em;
  font-style: italic;
  font-family: var(--serif);
  text-transform: none;
  font-size: 0.85rem;
}
.article-body h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--graphite);
  margin-bottom: 36px;
  max-width: 18ch;
}
.article-body h2 em {
  font-style: italic;
  color: var(--terracotta);
}
.article-body p {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--graphite);
  margin-bottom: 26px;
  max-width: 62ch;
}
.article-body p em { font-style: italic; }
.article-body p strong {
  font-weight: 500;
  color: var(--terracotta);
}
/* Буквица для первого параграфа */
.article-body > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 5.2rem;
  line-height: 0.82;
  float: left;
  padding: 6px 14px 0 0;
  color: var(--terracotta);
}

/* ─── Регалии-таблица ─── */
.regalia-section {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.regalia-head {
  text-align: center;
  margin-bottom: 60px;
}
.regalia-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  margin-top: 20px;
  color: var(--graphite);
}
.regalia-head h2 em { font-style: italic; color: var(--terracotta); }

.regalia-table {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0;
}
.regalia-row {
  display: contents;
}
.regalia-row > * {
  padding: 26px 24px;
  border-bottom: 1px solid var(--hairline);
  align-self: center;
}
.regalia-row:last-child > * { border-bottom: 0; }

.regalia-row .r-period {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  min-width: 160px;
}
.regalia-row .r-name {
  font-family: var(--serif);
  font-size: 1.32rem;
  color: var(--graphite);
  letter-spacing: -0.005em;
}
.regalia-row .r-name em {
  font-style: italic;
  display: block;
  color: var(--graphite-soft);
  font-size: 0.95rem;
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.regalia-row .r-tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 500;
}

/* ─── Направления — журнальные рубрики ─── */
.work {
  padding: clamp(60px, 8vw, 120px) 0;
}
.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
  gap: 40px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 28px;
}
.work-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.01em;
  line-height: 1;
}
.work-head h2 em { font-style: italic; color: var(--terracotta); }
.work-head .work-lede {
  max-width: 360px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--graphite-soft);
  line-height: 1.5;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.work-card {
  padding: 40px 36px 36px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.3s ease;
}
.work-card:nth-child(2n) { border-right: 0; }
.work-card:nth-last-child(-n+2) { border-bottom: 0; }
.work-card:hover { background: var(--paper); }

.work-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.work-card h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.85rem;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin-bottom: 18px;
  color: var(--graphite);
}
.work-card p {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--graphite-soft);
  margin-bottom: 18px;
}
.work-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.work-card li {
  position: relative;
  padding: 4px 0 4px 22px;
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--graphite);
  line-height: 1.5;
}
.work-card li::before {
  content: "—";
  position: absolute;
  left: 0; top: 4px;
  color: var(--terracotta);
}

/* ─── Кейсы — журнальные превью ─── */
.cases {
  padding: clamp(60px, 8vw, 120px) 0;
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}
.cases-head {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.cases-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 18px 0 24px;
  letter-spacing: -0.01em;
}
.cases-head h2 em { font-style: italic; color: var(--terracotta); }
.cases-head .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--graphite-soft);
  line-height: 1.5;
}

.cases-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 880px;
  margin: 0 auto;
}
.case-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
}
.case-item:first-child { border-top: 0; padding-top: 0; }
.case-tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  padding-top: 14px;
}
.case-tag small {
  display: block;
  margin-top: 8px;
  color: var(--graphite-soft);
  letter-spacing: 0.18em;
  font-style: italic;
  font-family: var(--serif);
  font-size: 0.85rem;
  text-transform: none;
}
.case-content h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.2;
  color: var(--graphite);
  margin-bottom: 18px;
}
.case-content p {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--graphite-soft);
}

/* ─── Pull-quote / кредо ─── */
.quote-section {
  padding: clamp(80px, 12vw, 160px) 0;
  text-align: center;
}
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--graphite);
  max-width: 900px;
  margin: 0 auto 32px;
}
.pull-quote em {
  color: var(--terracotta);
  font-style: italic;
  font-weight: 400;
}
.pull-quote-author {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--graphite-soft);
}

/* ─── CTA / contact ─── */
.cta-section {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--graphite);
  color: var(--ivory);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cta-section h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--ivory);
}
.cta-section h2 em {
  font-style: italic;
  color: var(--terracotta);
}
.cta-section p {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(250, 247, 240, 0.7);
  margin-bottom: 36px;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 22px 36px;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--graphite);
  background: var(--ivory);
  transition: background 0.3s ease, color 0.3s ease;
}
.cta-button:hover {
  background: var(--terracotta);
  color: var(--ivory);
}

.cta-second {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ivory);
  opacity: 0.7;
  border-bottom: 1px solid rgba(250, 247, 240, 0.3);
  padding-bottom: 4px;
  transition: opacity 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.cta-second:hover {
  opacity: 1;
  color: var(--terracotta);
  border-color: var(--terracotta);
}

/* ─── Footer ─── */
footer {
  background: var(--graphite);
  color: var(--ivory);
  padding: 32px var(--gutter);
  border-top: 1px solid rgba(250, 247, 240, 0.12);
}
footer .footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.55);
}
footer a {
  color: var(--ivory);
  opacity: 0.85;
  transition: color 0.3s ease, opacity 0.3s ease;
}
footer a:hover { color: var(--terracotta); opacity: 1; }

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── Адаптив ─── */
@media (max-width: 900px) {
  .topnav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { order: -1; aspect-ratio: 3/4; max-width: 70%; }
  .article-grid { grid-template-columns: 1fr; gap: 24px; }
  .article-side { position: static; }
  .regalia-table { grid-template-columns: 1fr; }
  .regalia-row > * { padding: 14px 0; border-bottom: 0; }
  .regalia-row { padding: 20px 0; border-bottom: 1px solid var(--hairline); display: block; }
  .work-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { border-right: 0; }
  .work-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--hairline); }
  .work-card:last-child { border-bottom: 0; }
  .case-item { grid-template-columns: 1fr; gap: 16px; }
  .cta-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .topbar { padding: 14px var(--gutter); }
  .brand { font-size: 1.1rem; }
  .hero { padding: 40px 0 28px; }
  .hero-issue { gap: 14px; font-size: 0.62rem; letter-spacing: 0.3em; }
  .hero-tag { font-size: 1.15rem; }
  .article-body > p:first-of-type::first-letter { font-size: 4rem; }
  .article-body p { font-size: 1.05rem; }
  .work-card { padding: 28px 22px; }
  .work-card h3 { font-size: 1.5rem; }
  .case-content h3 { font-size: 1.4rem; }
  .pull-quote { font-size: 1.6rem; }
  .cta-button { padding: 18px 24px; font-size: 0.76rem; letter-spacing: 0.26em; width: 100%; justify-content: center; }
  footer .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
