/* ═══════════════════════════════════════════════════════
   Anna Martynenko - Portfolio  v4
   Warm Paper · Cormorant Garamond + Manrope
   ═══════════════════════════════════════════════════════ */

:root {
  --paper:   #f6f1e8;          /* warm cream */
  --paper2:  #efe7d9;          /* deeper cream */
  --card:    #fffdf9;          /* near-white card */
  --ink:     #33291f;          /* warm dark brown */
  --ink-60:  rgba(51,41,31,.62);
  --ink-40:  rgba(51,41,31,.42);
  --ink-15:  rgba(51,41,31,.15);
  --ink-08:  rgba(51,41,31,.08);
  --terra:   #a8502f;          /* terracotta accent */
  --terra-d: #8c3f23;
  --dark:    #2c2218;          /* dark section bg */
  --cream-d: #ece4d4;          /* light text on dark */
  --cream-d60: rgba(236,228,212,.6);
  --cream-d30: rgba(236,228,212,.3);
  --cream-d12: rgba(236,228,212,.12);

  --fd: "Cormorant Garamond", Georgia, serif;
  --fu: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  font-family: var(--fu);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.65;
}
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
svg.logo-ico { width: 1.875rem; height: 1.875rem; max-width: 30px; max-height: 30px; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

.skip {
  position: absolute; top: -100%; left: 1rem; z-index: 10000;
  padding: .75rem 1.5rem; background: var(--terra); color: #fff;
  border-radius: 4px; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ─── HEADER ─── */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 4.75rem;
  transition: background .45s, border-color .45s, box-shadow .45s;
  border-bottom: 1px solid transparent;
}
.hdr.on {
  background: rgba(246,241,232,.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--ink-08);
}
.hdr-in {
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(1.25rem,4vw,2.5rem);
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--fd); font-size: 1.125rem; font-weight: 600;
  transition: opacity .3s;
}
.logo:hover { opacity: .7; }
.logo-ico { width: 1.875rem; height: 1.875rem; color: var(--terra); flex-shrink: 0; }

.burger {
  display: none; flex-direction: column; gap: 6px;
  width: 2.5rem; height: 2.5rem; justify-content: center; padding: .5rem; z-index: 101;
}
.burger span {
  display: block; width: 100%; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .3s;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-7.5px) rotate(-45deg); }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  font-size: .85rem; font-weight: 500;
  color: var(--ink-60);
  transition: color .3s;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav-pill {
  margin-left: .4rem;
  padding: .55rem 1.25rem;
  border: 1px solid var(--terra);
  border-radius: 3px;
  color: var(--terra) !important;
  transition: background .3s, color .3s;
}
.nav-pill:hover { background: var(--terra); color: #fff !important; }

.lang {
  display: flex; align-items: center; gap: .35rem;
  margin-left: .9rem;
  font-size: .8rem;
}
.lang button {
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-40);
  padding: .25rem .15rem;
  transition: color .3s;
}
.lang button:hover { color: var(--ink); }
.lang button.active { color: var(--terra); }
.lang-sep { color: var(--ink-15); }

/* ─── NAV BACKDROP ─── */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(44,34,24,.55);
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility 0s .4s;
}
.nav-backdrop:not([hidden]) {
  opacity: 1; visibility: visible;
  transition: opacity .4s;
}

/* ─── INTRO ─── */
.intro {
  padding: clamp(6.5rem,13vh,8.5rem) clamp(1.5rem,6vw,5rem) clamp(2.5rem,5vw,3.5rem);
  background: var(--paper);
  border-bottom: 1px solid var(--ink-08);
}
.intro-in { max-width: 720px; margin: 0 auto; text-align: center; }
.intro-text {
  font-family: var(--fd);
  font-size: clamp(1.2rem,2.4vw,1.65rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: clamp(2rem,4vw,3rem);
}
.intro-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── ABOUT ─── */
.about {
  background: var(--card);
  padding: clamp(5rem,10vw,8.5rem) clamp(1.5rem,6vw,5rem);
  border-bottom: 1px solid var(--ink-08);
}
.about-in {
  max-width: 720px; margin: 0 auto;
}
.portrait-frame { width: min(100%, 360px); }
.portrait-note {
  font-family: var(--fd);
  font-size: .98rem;
  line-height: 1.6;
  text-align: center;
  color: var(--ink-60);
  margin: 0 0 1.25rem;
  max-width: 36ch;
}
.portrait-cta {
  margin-top: 1.1rem;
  padding: .75rem 1rem;
  border: 1px solid rgba(168,80,47,.4);
  border-radius: 6px;
  color: var(--terra);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .02em;
  transition: background .3s, color .3s, border-color .3s;
  text-align: center;
}
.portrait-cta:hover { background: rgba(168,80,47,.08); border-color: var(--terra); }
.portrait-img {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--paper2) 0%, var(--paper) 60%, #e7dcc8 100%);
  border: 1px solid var(--ink-15);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  box-shadow: 0 24px 64px rgba(51,41,31,.12);
}
.portrait-img img { width: 100%; height: 100%; object-fit: cover; }
.portrait-mono {
  font-family: var(--fd);
  font-size: clamp(6rem,18vw,10rem); font-weight: 600; font-style: italic;
  color: rgba(51,41,31,.1); letter-spacing: -.04em; line-height: 1;
  user-select: none;
}

.sec-tag {
  display: flex; align-items: center; gap: 1.25rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 2rem;
}
.sec-tag::before { content: ""; display: block; width: 2.25rem; height: 1px; background: var(--terra); }

.about-lead {
  font-family: var(--fd);
  font-size: clamp(1.375rem,2.8vw,2.125rem); font-weight: 500;
  line-height: 1.35; letter-spacing: -.01em; color: var(--ink);
  max-width: 52ch; margin-bottom: 1.5rem;
}
.about-body {
  font-size: clamp(.95rem,1.4vw,1.0625rem); line-height: 1.8;
  color: var(--ink-60); max-width: 54ch;
  margin-bottom: clamp(2.25rem,4vw,3rem);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: .5rem;
}
.about-cards li {
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: 6px;
  padding: 1.5rem 1.35rem;
}
.about-cards h3 {
  font-family: var(--fd);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--ink);
}
.about-cards p {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--ink-60);
}

/* ─── SERVICES ─── */
.svcs {
  background: var(--paper);
  padding: clamp(5rem,10vw,8.5rem) clamp(1.5rem,6vw,5rem);
  border-bottom: 1px solid var(--ink-08);
}
.svcs-in { max-width: 1200px; margin: 0 auto; }

.svcs-head {
  margin-bottom: clamp(1.75rem,3vw,2.5rem);
}
.svcs-ttl {
  font-family: var(--fd);
  font-size: clamp(2rem,4.5vw,3.25rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em;
}

.svc-list {
  border-top: 1px solid var(--ink-15);
  margin-bottom: clamp(2rem,4vw,3rem);
}
.svc-list li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--ink-08);
  font-family: var(--fd);
  font-size: clamp(1.125rem,2vw,1.5rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.svc-meet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(168,80,47,.3);
  background: rgba(168,80,47,.05);
  border-radius: 4px;
}
.svc-meet-text h3 {
  font-family: var(--fd);
  font-size: clamp(1.25rem,2.2vw,1.625rem);
  font-weight: 600;
  margin-bottom: .25rem;
}
.svc-meet-text p {
  font-size: .875rem;
  color: var(--ink-60);
}

.spill {
  padding: .55rem 1.375rem;
  border: 1px solid var(--terra); border-radius: 3px;
  color: var(--terra); font-size: .85rem; font-weight: 600;
  transition: background .3s, color .3s; white-space: nowrap;
}
.spill:hover { background: var(--terra); color: #fff; }

/* shared section tags */
.sec-tag-dark, .sec-tag-dim {
  font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--terra);
}
.sec-tag-dim { display: block; margin-bottom: 1.25rem; }

/* ─── REVIEWS ─── */
.rvs {
  background: var(--paper2);
  padding: clamp(5rem,10vw,8rem) 0 clamp(4rem,8vw,6rem);
  border-bottom: 1px solid var(--ink-08);
}
.rvs-in { max-width: 820px; margin: 0 auto; padding: 0 2rem; position: relative; }
.rvs-head { text-align: center; margin-bottom: 2.5rem; }
.rvs-ttl {
  font-family: var(--fd);
  font-size: clamp(2rem,4.5vw,3rem); font-weight: 600;
  color: var(--ink); line-height: 1.15;
}

.rvs-stage {
  position: relative;
  overflow: hidden;
  transition: min-height .45s var(--ease);
}
.rvs-track { position: relative; width: 100%; }
.rv-slide {
  position: absolute; top: 0; left: 0; right: 0;
  opacity: 0; visibility: hidden; transform: translateY(1rem);
  transition: opacity .55s var(--ease), transform .55s var(--ease), visibility 0s .55s;
  pointer-events: none;
}
.rv-slide.active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  pointer-events: auto; position: relative;
}

.rv-card {
  background: var(--card);
  border: 1px solid var(--ink-08);
  border-radius: 6px;
  padding: clamp(1.75rem,4vw,2.5rem) clamp(1.5rem,4vw,2.25rem);
  text-align: center;
  box-shadow: 0 8px 32px rgba(51,41,31,.06);
}
.rv-stars {
  font-size: 1.125rem;
  letter-spacing: .15em;
  color: #c9a227;
  margin-bottom: 1.25rem;
}
.rv-slide blockquote {
  font-family: var(--fd);
  font-size: clamp(1.05rem,2.2vw,1.35rem); font-style: italic; font-weight: 500;
  line-height: 1.65; color: var(--ink);
  margin: 0 0 1.5rem;
}
.rv-slide blockquote::before { content: "\201C"; }
.rv-slide blockquote::after { content: "\201D"; }
.rv-foot { margin-top: auto; }
.rv-tag {
  display: inline-block;
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terra);
  border: 1px solid rgba(168,80,47,.35);
  padding: .35rem .9rem; border-radius: 3px;
}

.rvs-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; margin-top: 2rem;
}
.rvs-btn {
  border: 1px solid var(--ink-15);
  color: var(--ink-60);
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .25s, color .25s, background .25s;
  flex-shrink: 0;
}
.rvs-btn svg { width: 1.1rem; height: 1.1rem; }
.rvs-btn:hover { border-color: var(--terra); color: var(--terra); background: rgba(168,80,47,.06); }

/* ─── CONTACT (dark warm) ─── */
.contact {
  background: var(--dark); color: var(--cream-d);
  padding: clamp(5rem,10vw,8.5rem) clamp(1.5rem,6vw,5rem);
}
.contact-in {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(3rem,7vw,7rem); align-items: start;
}
.contact .sec-tag-dim { color: #d08a6a; }
.contact-ttl {
  font-family: var(--fd);
  font-size: clamp(3.25rem,9vw,7.5rem); font-weight: 600; line-height: .95; letter-spacing: -.03em;
  margin: 1.25rem 0 1.25rem;
}
.contact-channels { font-size: .9375rem; color: var(--cream-d60); margin-bottom: 2rem; line-height: 1.65; }

.chs { display: flex; flex-direction: column; gap: .75rem; }
.ch {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--cream-d12); border-radius: 4px;
  font-size: .9375rem; font-weight: 500;
  transition: border-color .35s, background .35s;
}
.ch:hover { border-color: var(--cream-d30); background: rgba(236,228,212,.05); }
.ch-ico { display: flex; align-items: center; justify-content: center; width: 1.375rem; flex-shrink: 0; }
.ch-ico svg { width: 1.25rem; height: 1.25rem; color: var(--cream-d60); }
.ch-tg .ch-ico svg { color: #2AABEE; }
.ch-ig .ch-ico svg { color: #e1306c; }

.cform {
  background: rgba(236,228,212,.04);
  border: 1px solid var(--cream-d12); border-radius: 6px;
  padding: clamp(1.75rem,3vw,2.5rem);
}
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.fg { margin-bottom: 1rem; }
.fg:last-of-type { margin-bottom: 1.5rem; }
.fg label {
  display: block; font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cream-d60); margin-bottom: .5rem;
}
.fg input, .fg textarea {
  width: 100%; padding: .9rem 1.1rem;
  background: rgba(236,228,212,.05);
  border: 1px solid var(--cream-d12); border-radius: 4px;
  color: var(--cream-d); font-family: var(--fu); font-size: .9375rem; resize: vertical;
  transition: border-color .3s, background .3s;
}
.fg input:focus, .fg textarea:focus {
  outline: none; border-color: #d08a6a;
  background: rgba(236,228,212,.08);
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--cream-d30); }
.cform-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: .75rem;
  padding: 1rem 1.5rem; background: var(--terra); color: #fff;
  font-family: var(--fu); font-size: .9375rem; font-weight: 600; letter-spacing: .02em;
  border-radius: 4px; transition: background .3s;
}
.cform-btn svg { width: 1.125rem; height: 1.125rem; transition: transform .35s var(--ease); }
.cform-btn:hover { background: var(--terra-d); }
.cform-btn:hover svg { transform: translateX(4px); }
.cform-msg { margin-top: .875rem; font-size: .875rem; text-align: center; min-height: 1.25rem; }
.cform-msg.ok  { color: #9fcf9a; }
.cform-msg.err { color: #e09a86; }

/* ─── FOOTER ─── */
.ftr {
  background: var(--dark); color: var(--cream-d60);
  border-top: 1px solid var(--cream-d12);
  padding: 1.75rem clamp(1.5rem,6vw,5rem);
}
.ftr-in {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: .8125rem;
}
.ftr-nav { display: flex; gap: 1.75rem; }
.ftr-nav a { transition: color .3s; }
.ftr-nav a:hover { color: #d08a6a; }
.totop {
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--cream-d12); border-radius: 50%;
  display: grid; place-items: center; color: var(--cream-d60); font-size: 1rem;
  transition: border-color .3s, color .3s;
}
.totop:hover { border-color: #d08a6a; color: #d08a6a; }

/* ─── REVEAL ─── */
.reveal {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.js .reveal:not(.vis) {
  opacity: 0; transform: translateY(26px);
}
.reveal.vis { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1000px) {
  .contact-in { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 5rem; }

  /* --- Header: logo + language only --- */
  .hdr { height: 4.75rem; }
  .hdr-in {
    padding: 0 clamp(1rem,4vw,1.25rem);
    height: 100%;
  }
  .logo { font-size: 1rem; min-width: 0; }
  .logo span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .logo-ico { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
  .nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
    gap: 0;
  }
  .nav a,
  .nav-pill { display: none; }
  .lang { margin-left: 0; margin-top: 0; }
  .lang button { font-size: .85rem; }

  /* --- Intro --- */
  .intro {
    padding: 6rem 1.25rem 2rem;
  }
  .intro-text {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
  }
  .portrait-frame { width: 100%; max-width: 320px; }
  .portrait-cta {
    width: 100%; max-width: 320px;
    padding: .9rem 1.25rem;
    font-size: .9rem;
  }

  /* --- About --- */
  .about {
    padding: 3.5rem 1.25rem;
  }
  .about-lead {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  .about-body {
    font-size: .9375rem;
    margin-bottom: 2rem;
  }
  .about-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .about-cards li { padding: 1.25rem; }

  /* --- Services --- */
  .svcs {
    padding: 3.5rem 1.25rem;
  }
  .svcs-ttl { font-size: 1.75rem; }
  .svc-list li {
    font-size: 1.05rem;
    padding: .9rem 0;
  }
  .svc-meet {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
  }
  .svc-meet-text h3 { font-size: 1.15rem; }
  .spill { width: 100%; text-align: center; padding: .75rem 1.25rem; }

  /* --- Reviews --- */
  .rvs {
    padding: 3.5rem 0 3rem;
  }
  .rvs-in { padding: 0 1.25rem; }
  .rvs-ttl { font-size: 1.75rem; }
  .rvs-head { margin-bottom: 1.75rem; }
  .rv-card {
    padding: 1.5rem 1.15rem;
  }
  .rv-slide blockquote {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }
  .rvs-controls {
    margin-top: 1rem;
  }
  .rvs-btn {
    width: 2.75rem; height: 2.75rem;
    background: var(--card);
    border: 1px solid var(--ink-15);
    box-shadow: none;
  }
  .rvs-btn svg { width: 1.1rem; height: 1.1rem; }

  /* --- Contact --- */
  .contact {
    padding: 3.5rem 1.25rem;
  }
  .contact-ttl {
    font-size: 2.75rem;
    margin: .75rem 0 1rem;
  }
  .contact-channels { font-size: .875rem; margin-bottom: 1.5rem; }
  .ch {
    padding: .85rem 1rem;
    font-size: .875rem;
  }
  .cform { padding: 1.5rem 1.25rem; }
  .fg-row { grid-template-columns: 1fr; }

  /* --- Footer --- */
  .ftr { padding: 1.25rem 1.25rem; }
  .ftr-in {
    flex-direction: column;
    gap: .75rem;
    text-align: center;
  }
  .ftr-nav { gap: 1.25rem; }
}

@media (max-width: 380px) {
  .intro { padding-top: 5rem; }
  .intro-text { font-size: 1.05rem; }
  .contact-ttl { font-size: 2.25rem; }
  .svcs-ttl { font-size: 1.5rem; }
  .rvs-ttl { font-size: 1.5rem; }
  .rv-slide blockquote { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html.js .reveal:not(.vis) { opacity: 1; transform: none; }
  .rv-slide { transition: none; }
}
