/* ======================================================
   Zoya Zakalyuzhnaya — portfolio
   ====================================================== */

:root {
  --bg:           #F5EFE6;
  --bg-soft:      #FAF6EF;
  --bg-deep:      #EDE5D6;
  --ink:          #1F1A14;
  --ink-soft:     #4A3F32;
  --ink-mute:     #8A7E6B;
  --line:         #D9CFC0;
  --line-soft:    #E8DFCE;
  --accent:       #7A6049;
  --accent-deep:  #5B4632;
  --sand:         #C8AA82;
  --moss:         #889478; /* nod to "весенний ветер" */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1280px;
  --pad:  clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* subtle warm grain across body — lightweight tile */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: .22;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='1' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.32 0 0 0 0 0.22 0 0 0 0.32 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 80px 80px;
}

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1em;
  font-weight: 500;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 .4em;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  color: var(--accent-deep);
}
.section-head {
  text-align: left;
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 800px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .04em;
  font-weight: 500;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn--solid {
  background: var(--ink);
  color: var(--bg-soft);
  border: 1px solid var(--ink);
}
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { background: var(--ink); color: var(--bg-soft); }
.btn--link {
  background: none; padding: 14px 0; color: var(--ink);
  border-bottom: 1px solid transparent;
  border-radius: 0;
}
.btn--link:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }
.btn--block { width: 100%; padding: 18px 24px; font-size: 15px; }

/* ======================================================
   HEADER
   ====================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding .3s, background .3s, box-shadow .3s, border-color .3s;
  background: rgba(245, 239, 230, 0);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(245, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
}
.header-inner {
  display: flex; align-items: center;
  gap: 24px;
}
.logo {
  display: flex; flex-direction: column;
  margin-right: auto;
  line-height: 1.05;
  padding: 4px 0;
}
.logo-text {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.005em;
}
.logo-text em { font-style: italic; color: var(--accent-deep); }
.logo-sub {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2px;
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.nav a {
  position: relative;
  padding: 8px 2px;
  transition: color .25s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover { color: var(--accent-deep); }
.nav a:hover::after { transform: scaleX(1); }

.btn--header { padding: 10px 20px; }

.burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
}
.burger span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .3s, opacity .3s;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0;
  background: var(--bg-soft);
  z-index: 90;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.drawer.open { transform: translateX(0); }
.drawer nav {
  display: flex; flex-direction: column; gap: 20px;
  text-align: center;
  font-family: var(--serif); font-size: 32px;
}
.drawer .btn { margin-top: 14px; font-family: var(--sans); font-size: 14px; }

/* ======================================================
   HERO
   ====================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1100px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(64px, 12vw, 180px);
  line-height: .95;
  letter-spacing: -0.02em;
  margin: .1em 0 .4em;
  color: var(--ink);
}
.hero-title em {
  font-style: italic;
  display: block;
  color: var(--accent-deep);
  font-weight: 400;
}
.hero-lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  max-width: 640px;
  color: var(--ink-soft);
  margin-bottom: 48px;
  font-weight: 300;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}

.hero-decor {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 60vw; max-width: 700px;
  height: 60vw; max-height: 700px;
  background: radial-gradient(circle at 30% 30%, rgba(200,170,130,.35), rgba(200,170,130,0) 60%);
  filter: blur(20px);
  z-index: 1;
  pointer-events: none;
}

/* ======================================================
   ABOUT
   ====================================================== */
.about {
  padding: clamp(80px, 12vw, 160px) 0;
  border-top: 1px solid var(--line-soft);
}
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.about-left { position: sticky; top: 120px; }
.about-right > p {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 56px;
  font-weight: 300;
}
.principles {
  display: flex; flex-direction: column;
  gap: 36px;
}
.principles li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-soft);
}
.principles li:last-child { border-bottom: none; padding-bottom: 0; }
.principle-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
}
.principles h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.principles p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* ======================================================
   PROJECTS
   ====================================================== */
.projects {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 32px;
}
.project-card {
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease);
}
/* Asymmetric layout: 1st big, 2nd & 3rd smaller */
.project-card:nth-child(1) { grid-column: span 12; }
.project-card:nth-child(2) { grid-column: span 6; margin-top: 0; }
.project-card:nth-child(3) { grid-column: span 6; margin-top: 60px; }

.project-cover {
  position: relative;
  margin: 0 0 22px;
  overflow: hidden;
  background: var(--line-soft);
  aspect-ratio: 4 / 3;
}
.project-card:nth-child(1) .project-cover { aspect-ratio: 16 / 9; }
.project-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.project-card:hover .project-cover img { transform: scale(1.04); }

.project-cover::after {
  content: 'смотреть проект →';
  position: absolute;
  inset: auto 20px 20px auto;
  padding: 8px 16px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s var(--ease);
}
.project-card:hover .project-cover::after { opacity: 1; transform: translateY(0); }

.project-meta { padding: 0 4px; }
.project-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.project-name em { font-style: italic; color: var(--accent-deep); }
.project-sub {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0 0 4px;
  letter-spacing: .03em;
}
.project-tag {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

/* ======================================================
   QUOTE BLOCK
   ====================================================== */
.quote-block {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg);
}
.quote-block blockquote {
  margin: 0;
  max-width: 900px;
  text-align: center;
  margin-left: auto; margin-right: auto;
}
.quote-block p {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 24px;
}
.quote-block em { font-style: normal; color: var(--accent-deep); }
.quote-block footer {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ======================================================
   SERVICES
   ====================================================== */
.services {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  padding: 36px 32px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(90,70,50,.18);
}
.service-card.featured {
  background: var(--ink);
  color: var(--bg-soft);
  border-color: var(--ink);
}
.service-card.featured .service-price small,
.service-card.featured p { color: rgba(245,239,230,.75); }
.service-card.featured:hover { border-color: var(--accent); }

.service-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.service-card.featured .service-head { border-bottom-color: rgba(245,239,230,.15); }
.service-head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.service-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  white-space: nowrap;
  color: var(--accent-deep);
}
.service-card.featured .service-price { color: var(--sand); }
.service-price small {
  font-style: normal;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-mute);
  margin-left: 2px;
}
.service-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
.service-card.featured p { color: rgba(245,239,230,.8); }
.service-badge {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--sand);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 500;
}

/* ======================================================
   BOOK / FORM
   ====================================================== */
.book {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}
.book-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.book-text > p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 48px;
  max-width: 460px;
  font-weight: 300;
}
.quick-links {
  display: flex; flex-direction: column;
  gap: 4px;
}
.quick-link {
  display: flex; align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  transition: padding-left .25s var(--ease), color .25s;
}
.quick-link:last-child { border-bottom: 1px solid var(--line-soft); }
.quick-link:hover { padding-left: 8px; color: var(--accent-deep); }
.ql-icon {
  font-size: 18px;
  color: var(--accent);
  width: 32px;
  display: inline-flex; justify-content: center;
}
.ql-label {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.ql-value {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
  margin-top: 2px;
}

.book-form {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 36px;
  display: flex; flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
}
.field label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 10px;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color .25s;
  font-family: var(--sans);
}
.field textarea { resize: vertical; min-height: 60px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%231F1A14' stroke-width='1.2' d='M1 1l4 4 4-4'/></svg>"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent-deep); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); opacity: .7; }

.form-note {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
  margin: 0;
  text-align: center;
}
.form-status {
  margin: 4px 0 0;
  font-size: 14px;
  text-align: center;
  min-height: 1.2em;
}
.form-status.success { color: var(--moss); }
.form-status.error   { color: #B85C3E; }

/* ======================================================
   FOOTER
   ====================================================== */
.site-footer {
  background: var(--ink);
  color: var(--bg-soft);
  padding: 80px 0 32px;
}
.site-footer .container { color: var(--bg-soft); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245,239,230,.12);
}
.footer-name {
  font-family: var(--serif);
  font-size: 32px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.footer-name em { font-style: italic; color: var(--sand); }
.footer-tag {
  font-size: 14px;
  color: rgba(245,239,230,.6);
  margin: 0;
  max-width: 280px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 12px;
  font-weight: 500;
}
.footer-col a {
  color: rgba(245,239,230,.85);
  font-size: 15px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--sand); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(245,239,230,.5);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { margin: 0; }
.footer-credit { font-family: var(--serif); font-style: italic; font-size: 14px; }

/* ======================================================
   MODAL
   ====================================================== */
.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: stretch; justify-content: center;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(25,20,14,.65);
  backdrop-filter: blur(4px);
  animation: fadeIn .25s var(--ease);
}
.modal-panel {
  position: relative;
  background: var(--bg-soft);
  width: 100%;
  max-width: 920px;
  margin: 40px auto;
  border-radius: 6px;
  overflow-y: auto;
  max-height: calc(100vh - 80px);
  animation: slideUp .35s var(--ease);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.4);
}
.modal-close {
  position: sticky;
  top: 12px;
  margin-left: auto;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  font-size: 28px;
  line-height: 1;
  border-radius: 50%;
  background: var(--bg);
  z-index: 2;
  margin-right: 12px;
  transition: background .2s, transform .2s;
}
.modal-close:hover { background: var(--ink); color: var(--bg-soft); transform: rotate(90deg); }
.modal-body { padding: 0 56px 56px; margin-top: -36px; }
.modal-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.modal-body h2 em { font-style: italic; color: var(--accent-deep); }
.modal-meta {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.modal-meta a { color: var(--accent-deep); border-bottom: 1px solid var(--accent); }
.modal-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 1em;
  max-width: 720px;
}
.modal-body strong { color: var(--ink); font-weight: 500; }
.modal-gallery {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.modal-gallery img {
  width: 100%; height: 320px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--line-soft);
}
.modal-gallery img:first-child {
  grid-column: 1 / -1;
  height: clamp(280px, 50vw, 460px);
}
body.no-scroll { overflow: hidden; }

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: translateY(0) } }

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

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 960px) {
  .nav, .btn--header { display: none; }
  .burger { display: flex; }

  .about-inner { grid-template-columns: 1fr; }
  .about-left { position: static; }

  .project-card:nth-child(1),
  .project-card:nth-child(2),
  .project-card:nth-child(3) { grid-column: span 12; margin-top: 0; }

  .book-inner { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand { grid-column: 1 / -1; }

  .modal-body { padding: 0 24px 36px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 110px 0 60px; min-height: 80vh; }
  .hero-meta { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .principles li { grid-template-columns: 40px 1fr; gap: 16px; }

  .field-row { grid-template-columns: 1fr; }
  .book-form { padding: 24px; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .service-card { padding: 28px 24px; }
}
