/* ============================================================
   Наталья Смирнова — копирайтер. Осенний лендинг.
   ============================================================ */

/* ---------- Шрифты (локальные, woff2) ---------- */
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/Spectral-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/Spectral-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('assets/fonts/Spectral-400i-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('assets/fonts/Spectral-400i-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/Spectral-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/Spectral-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/Spectral-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/Spectral-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/Inter-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/Inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/Inter-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/Inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/Inter-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/Inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
  --paper:      #FAF5EC;
  --paper-2:    #F3EBDD;
  --card:       #FFFDFA;
  --ink:        #38302A;
  --ink-soft:   #6E6357;
  --ink-faint:  #98897B;
  --rust:       #B85C2C;
  --rust-dark:  #96471F;
  --olive:      #5F6B4E;
  --olive-soft: #7C8668;
  --gold:       #DAA13F;
  --line:       rgba(56, 48, 42, .13);
  --shadow:     0 10px 30px rgba(56, 48, 42, .10);
  --radius:     18px;
  --serif:      'Spectral', 'Georgia', 'Times New Roman', serif;
  --sans:       'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }

a { color: var(--rust); }

.container { width: min(1140px, 92%); margin-inline: auto; }

::selection { background: rgba(218, 161, 63, .35); }

/* ---------- Фоновые пятна ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.blob-1 { width: 560px; height: 560px; top: -160px; right: -120px;  background: #EBD9B4; }
.blob-2 { width: 420px; height: 420px; top: 46%;    left: -180px;   background: #DCC7A0; opacity: .35; }
.blob-3 { width: 500px; height: 500px; bottom: -200px; right: -80px; background: #E4CFA6; opacity: .4; }

/* ---------- Хедер ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 245, 236, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 24px; }

.logo {
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.logo span { color: var(--rust); font-style: italic; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--rust); }
.nav .nav-cta { color: #fff; }

.nav-cta {
  background: var(--rust); padding: 9px 20px; border-radius: 999px;
  transition: background .2s;
}
.nav-cta:hover { background: var(--rust-dark); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vh, 96px) 0 clamp(40px, 7vh, 72px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  font-size: .82rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--olive);
  margin: 0 0 18px;
}

.slogan {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  color: var(--rust-dark);
  margin: 0 0 20px; max-width: 34ch;
}

.hero-note { color: var(--ink-soft); max-width: 46ch; margin: 0 0 30px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.btn {
  display: inline-block; background: var(--rust); color: #fff;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  padding: 13px 30px; border-radius: 999px;
  border: 1.5px solid var(--rust);
  transition: background .2s, transform .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(184, 92, 44, .28); }

.btn-ghost { background: transparent; color: var(--rust); }
.btn-ghost:hover { background: rgba(184, 92, 44, .08); color: var(--rust-dark); }

.hero-contacts { display: flex; gap: 10px; align-items: center; color: var(--ink-faint); font-size: .93rem; }
.hero-contacts a { color: var(--ink-soft); text-decoration: none; font-weight: 500; border-bottom: 1px dashed rgba(56,48,42,.3); }
.hero-contacts a:hover { color: var(--rust); border-bottom-color: var(--rust); }

/* Фото */
.hero-photo { position: relative; }
.photo-wrap {
  border-radius: 26px;                    /* обычная прямоугольная рамка */
  overflow: hidden;
  border: 6px solid var(--card);
  box-shadow: var(--shadow);
  max-width: 400px;
  margin-inline: auto;
  transform: rotate(.4deg);
}
.photo-wrap img { width: 100%; height: auto; }

.leaf {
  width: 40px; height: 40px; color: var(--gold); opacity: .85;
}
.leaf-hero-1 { position: absolute; top: -6%; left: -4%; transform: rotate(-32deg); }
.leaf-hero-2 { position: absolute; bottom: 4%; right: -6%; transform: rotate(140deg); color: var(--olive-soft); }

/* ---------- Секции ---------- */
.section { padding: clamp(56px, 10vh, 104px) 0; }

.section-eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--rust); margin: 0 0 14px;
}

.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head h2 { margin-bottom: 12px; }
.section-note { color: var(--ink-soft); margin: 0; }

/* ---------- Обо мне ---------- */
#about { border-top: 1px solid var(--line); }

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.about-text p { color: var(--ink-soft); margin: 0 0 18px; }
.about-text em { color: var(--rust); font-style: italic; }

.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.fact {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px;
  box-shadow: 0 4px 14px rgba(56, 48, 42, .05);
}
.fact:nth-child(2n) { background: var(--paper-2); }
.fact-num {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: 2rem; color: var(--rust); margin-bottom: 6px;
}
.fact-label { font-size: .92rem; color: var(--ink-soft); line-height: 1.45; display: block; }

/* ---------- Портфолио ---------- */
#works { background: linear-gradient(180deg, transparent, rgba(243, 235, 221, .7), transparent); border-top: 1px solid var(--line); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }

.chip {
  font-family: var(--sans); font-size: .92rem; font-weight: 500;
  color: var(--ink-soft); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 20px; cursor: pointer;
  transition: all .2s;
}
.chip:hover { border-color: var(--rust); color: var(--rust); }
.chip.is-active { background: var(--rust); border-color: var(--rust); color: #fff; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 24px 20px;
  display: flex; flex-direction: column; gap: 10px;
  text-align: left; cursor: pointer; font: inherit; color: inherit;
  box-shadow: 0 2px 10px rgba(56, 48, 42, .04);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(184, 92, 44, .45);
}

.card-title { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.3; margin: 0; }
.card-lead { color: var(--ink-soft); font-size: .93rem; line-height: 1.6; margin: 0; flex: 1; }
.card-more { color: var(--rust); font-size: .88rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card-more::after { content: '→'; transition: transform .2s; }
.card:hover .card-more::after { transform: translateX(4px); }

.cards-empty { color: var(--ink-faint); text-align: center; padding: 20px; }

/* ---------- Стихи ---------- */
.section-poems { background: var(--paper-2); border-top: 1px solid var(--line); }

.poem-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-bottom: 40px;
}

.poem-card {
  position: relative; margin: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px 24px;
  box-shadow: 0 4px 14px rgba(56, 48, 42, .05);
}
.poem-card-alt { background: linear-gradient(160deg, #FFF9F0, #FDF3E3); }
.poem-card .leaf { position: absolute; top: -14px; left: 24px; transform: rotate(-18deg); }
.poem-card-alt .leaf { color: var(--rust); }

.poem-card blockquote {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: 1.06rem; line-height: 1.85; color: var(--ink);
}
.poem-card figcaption {
  margin-top: 16px; font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-faint);
}

.poem-cta {
  max-width: 620px; margin-inline: auto; text-align: center;
}
.poem-cta p { color: var(--ink-soft); margin: 0 0 20px; }

/* ---------- Контакты ---------- */
.contact-band {
  background: linear-gradient(150deg, #6A5A43, #4E4233);
  color: #F2E7D6;
  border-radius: 26px;
  padding: clamp(40px, 6vw, 64px) clamp(28px, 6vw, 72px);
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-band .section-eyebrow { color: var(--gold); }
.contact-band h2 { color: #FBF3E4; max-width: 620px; margin-inline: auto; }

.contact-links {
  display: flex; justify-content: center; gap: 22px;
  flex-wrap: wrap; margin: 30px 0 26px;
}
.contact-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(250, 245, 236, .08);
  border: 1px solid rgba(250, 245, 236, .22);
  padding: 16px 26px; border-radius: 18px;
  text-decoration: none; color: #F2E7D6;
  transition: background .2s, border-color .2s, transform .2s;
}
.contact-item:hover { background: rgba(250, 245, 236, .14); border-color: rgba(250, 245, 236, .4); transform: translateY(-2px); }
.contact-ico { width: 38px; height: 38px; color: var(--gold); flex: none; }
.contact-ico svg { width: 100%; height: 100%; }
.contact-label { display: flex; flex-direction: column; text-align: left; font-weight: 600; font-size: .92rem; }
.contact-label small { font-weight: 400; font-size: .84rem; color: rgba(242, 231, 214, .75); }

.contact-note { color: rgba(242, 231, 214, .72); font-size: .95rem; margin: 0; }

/* ---------- Футер ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer p { margin: 0; color: var(--ink-faint); font-size: .9rem; }
.footer-brand { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink-soft) !important; }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Модалка ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(56, 48, 42, .5); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; background: var(--card);
  width: min(760px, 100%); max-height: min(86vh, 900px);
  display: flex; flex-direction: column;
  border-radius: 22px; padding: 38px 40px 30px;
  box-shadow: 0 24px 70px rgba(30, 24, 18, .4);
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }

.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: var(--paper-2); border: 0; border-radius: 50%;
  width: 38px; height: 38px; font-size: 1.35rem; line-height: 1;
  color: var(--ink-soft); cursor: pointer;
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--rust); color: #fff; }

.modal-rubric { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--olive); font-weight: 600; margin: 0 0 8px; }
.modal-card h3 { font-size: 1.5rem; margin-bottom: 18px; padding-right: 40px; }
.modal-body { overflow-y: auto; padding-right: 8px; color: var(--ink-soft); }
.modal-body p { font-size: .96rem; line-height: 1.75; margin: 0 0 14px; white-space: pre-line; }
.modal-body p:last-child { margin-bottom: 0; }

.modal-foot {
  margin-top: 26px; padding-top: 20px;
  border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.modal-foot p { margin: 0; color: var(--ink-faint); font-size: .92rem; font-style: italic; }

body.modal-open { overflow: hidden; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 420px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .poem-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .hero-contacts { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-contacts span { display: none; }
  .modal-card { padding: 28px 22px 24px; }
  .modal-foot { justify-content: center; text-align: center; }

  /* мобильное меню */
  .burger { display: block; }
  .nav {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(56, 48, 42, .12);
    padding: 8px 4%;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav a:last-child { border-bottom: 0; margin: 10px 6px 8px; text-align: center; }
}
