/* =========================================
   Pavline Textile — premium textile studio
   ========================================= */

:root{
  --bg:           #f6efe3;   /* warm cream */
  --bg-2:         #efe6d3;   /* deeper cream */
  --bg-3:         #e7dcc5;   /* sand */
  --ink:          #1f1d1a;   /* near-black warm */
  --ink-2:        #3a3731;   /* body */
  --muted:        #766f62;
  --line:         #e4d9c4;
  --line-2:       #d4c6ab;
  --accent:       #6b3b34;   /* bordeaux (like CRM) */
  --accent-2:     #8a4d43;   /* lighter bordeaux */
  --accent-ink:   #f7f1e4;
  --gold:         #8a6a4a;
  --white:        #fbf7ee;
  --radius:       2px;
  --shadow-card:  0 1px 0 rgba(31,29,26,.04), 0 24px 48px -24px rgba(31,29,26,.18);
  --max:          1320px;
  --pad-x:        clamp(20px, 5vw, 64px);
  --gap:          clamp(24px, 4vw, 56px);
  --section-y:    clamp(72px, 9vw, 140px);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
html, body{ margin:0; padding:0; }
body{
  background: var(--bg);
  color: var(--ink-2);
  font-family: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font: inherit; color:inherit; background:none; border:0; cursor:pointer; }

/* Typography */
.serif{ font-family: 'Cormorant Garamond', 'Times New Roman', serif; }
h1,h2,h3,h4{
  font-family:'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing:-.01em;
  margin: 0 0 .3em;
  line-height: 1.08;
  text-wrap: balance;
}
h1{ font-size: clamp(44px, 8vw, 104px); }
h2{ font-size: clamp(34px, 5.2vw, 68px); }
h3{ font-size: clamp(22px, 2.2vw, 28px); }
p{ margin:0 0 1em; text-wrap:pretty; }

.eyebrow{
  font-family:'Inter', sans-serif;
  text-transform:uppercase;
  letter-spacing:.22em;
  font-size:11px;
  font-weight:500;
  color:var(--gold);
  display:inline-flex;
  align-items:center;
  gap:12px;
}
.eyebrow::before{
  content:"";
  width:32px; height:1px; background:currentColor; display:inline-block;
}

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

/* ================= NAV ================= */
.nav{
  position: fixed; inset: 0 0 auto 0;
  z-index: 60;
  padding: 18px var(--pad-x);
  display:flex; align-items:center; justify-content:space-between;
  gap: clamp(16px, 3vw, 40px);
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease, padding .3s ease;
  border-bottom: 1px solid transparent;
  color: var(--white);
}
.nav.is-scrolled{
  background: rgba(246,239,227,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  color: var(--ink);
  padding-top: 12px; padding-bottom: 12px;
}
.nav__logo{
  display:flex; align-items:baseline; gap:10px;
  font-family:'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight:500;
  letter-spacing:.02em;
}
.nav__logo small{
  font-family:'Inter',sans-serif;
  font-size: 9px;
  letter-spacing:.32em;
  text-transform:uppercase;
  opacity:.7;
}
.nav__links{
  display:none; gap: clamp(14px, 1.6vw, 26px);
  font-size: 13px;
  letter-spacing:.02em;
  align-items: center;
  margin-left: auto;
}
.nav__links a{
  position:relative; padding: 8px 0;
  transition: opacity .2s;
  opacity:.85;
  white-space: nowrap;
}
.nav__links a:hover{ opacity:1; }
.nav__links a::after{
  content:"";
  position:absolute; left:0; right:0; bottom:2px; height:1px;
  background: currentColor; opacity:0; transform:scaleX(.2); transform-origin:left;
  transition: opacity .25s, transform .3s;
}
.nav__links a:hover::after{ opacity:.6; transform:scaleX(1); }
.nav__cta{
  display:none;
  align-items:center; gap:10px;
  margin-left: clamp(16px, 2.5vw, 32px);
  border: 1px solid currentColor;
  padding: 10px 18px;
  font-size: 11.5px;
  letter-spacing:.1em;
  text-transform:uppercase;
  white-space: nowrap;
  transition: background .25s, color .25s;
}
.nav.is-scrolled .nav__cta:hover{ background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.nav__cta:hover{ background: var(--white); color: var(--ink); }

.burger{
  width: 42px; height: 42px;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid currentColor;
  border-radius: 999px;
}
.burger span{
  position:relative; display:block; width:16px; height:1px; background: currentColor;
}
.burger span::before, .burger span::after{
  content:""; position:absolute; left:0; width:16px; height:1px; background: currentColor;
}
.burger span::before{ top:-5px; }
.burger span::after{ top:5px; }

/* Mobile drawer */
.drawer{
  position: fixed; inset:0;
  background: var(--bg);
  color: var(--ink);
  z-index: 100;
  padding: 24px var(--pad-x) 48px;
  display:flex; flex-direction:column;
  transform: translateY(-100%);
  transition: transform .45s cubic-bezier(.6,.05,.1,1);
}
.drawer.is-open{ transform: translateY(0); }
.drawer__top{ display:flex; justify-content:space-between; align-items:center; }
.drawer__close{
  width:42px; height:42px; border-radius:999px; border:1px solid var(--ink);
  display:inline-flex; align-items:center; justify-content:center; font-size:20px;
}
.drawer__links{
  margin-top: 48px;
  display:flex; flex-direction:column; gap:8px;
  font-family:'Cormorant Garamond', serif;
  font-size: 32px;
}
.drawer__links a{
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.drawer__cta{
  margin-top:auto;
  display:inline-flex; justify-content:center; align-items:center;
  padding: 18px;
  background: var(--accent); color: var(--accent-ink);
  text-transform:uppercase; letter-spacing:.18em; font-size:12px;
}

@media (min-width: 1080px){
  .nav__links{ display:flex; }
  .nav__cta{ display:inline-flex; }
  .burger{ display:none; }
}

/* ================= BUTTONS ================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:12px;
  padding: 18px 32px;
  font-size: 12.5px; letter-spacing:.18em; text-transform:uppercase;
  border: 1px solid transparent; cursor:pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn--primary{ background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--primary:hover{ background: var(--ink); border-color: var(--ink); }
.btn--ghost-light{ color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover{ background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--ghost{ color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover{ background: var(--ink); color: var(--white); }
.btn--wide{ padding-left: 48px; padding-right: 48px; }
.btn__arrow{ width: 14px; height: 10px; display:inline-block; }

/* ================= HERO ================= */
.hero{
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--white);
  display:flex; flex-direction:column;
  padding-top: 120px; /* beneath nav */
  padding-bottom: 64px;
  overflow:hidden;
}
.hero__bg{
  position:absolute; inset:0; z-index:-2;
}
.hero__bg img{
  width:100%; height:100%; object-fit:cover; object-position:center;
}
.hero__bg::after{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(20,19,16,.55) 0%, rgba(20,19,16,.25) 35%, rgba(20,19,16,.65) 100%),
    linear-gradient(90deg, rgba(20,19,16,.45) 0%, rgba(20,19,16,0) 60%);
}
.hero__inner{
  flex: 1;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding-top: 32px;
}
.hero__tag{
  color: rgba(255,255,255,.82);
}
.hero__tag::before{ background: rgba(255,255,255,.82); }
.hero h1{
  color: var(--white);
  font-size: clamp(48px, 9vw, 132px);
  font-weight: 300;
  font-style: italic;
  max-width: 14ch;
  margin-top: 24px;
}
.hero h1 em{
  font-style: normal;
  font-weight: 400;
  display:block;
}
.hero__sub{
  max-width: 46ch;
  font-size: clamp(15px, 1.2vw, 17px);
  color: rgba(255,255,255,.85);
  margin-top: 20px;
  margin-bottom: 36px;
}
.hero__actions{
  display:flex; gap: 14px; flex-wrap:wrap;
}
.hero__meta{
  margin-top: 48px;
  display:grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 640px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.hero__meta div{ color: rgba(255,255,255,.85); font-size: 13px; line-height:1.5;}
.hero__meta strong{
  display:block; font-family:'Cormorant Garamond', serif; font-weight:400;
  color: var(--white); font-size: 28px; letter-spacing: -.01em; margin-bottom:4px;
}
.hero__scroll{
  position:absolute; right: var(--pad-x); bottom: 32px;
  display:none;
  writing-mode: vertical-rl;
  font-size: 11px; letter-spacing: .32em; text-transform:uppercase;
  color: rgba(255,255,255,.75);
  padding-bottom: 64px;
}
.hero__scroll::after{
  content:""; position:absolute; left:50%; bottom:0; width:1px; height:48px;
  background: rgba(255,255,255,.6);
}
@media (min-width: 900px){
  .hero__scroll{ display:inline-block; }
  .hero__meta{ grid-template-columns: repeat(4, 1fr); }
}

/* ================= SECTION ================= */
.section{
  padding: var(--section-y) 0;
}
.section-head{
  display:grid; gap: 18px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head__row{
  display:flex; flex-direction:column; gap:24px;
  align-items:flex-start; justify-content:space-between;
}
.section-head h2 em{ font-style:italic; color: var(--accent-2); }
.section-head p.lede{ color: var(--muted); max-width: 48ch; font-size: 15.5px; }
@media (min-width: 900px){
  .section-head__row{ flex-direction:row; align-items:flex-end; gap: 64px; }
}

/* ================= ABOUT ================= */
.about__grid{
  display:grid; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about__photo{
  position:relative;
  aspect-ratio: 4/5;
  background: var(--bg-3);
  overflow:hidden;
}
.about__photo img{ width:100%; height:100%; object-fit:cover; }
.about__badge{
  position:absolute; right: -12px; bottom: -12px;
  background: var(--accent); color: var(--accent-ink);
  padding: 20px 24px;
  font-family:'Cormorant Garamond', serif;
  font-size: 22px;
  line-height:1.2;
  max-width: 240px;
}
.about__badge small{
  display:block;
  font-family:'Inter',sans-serif;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform:uppercase;
  color: rgba(246,239,227,.7);
  margin-bottom: 6px;
}
.about__text h2{ margin-bottom: 24px; }
.about__text p{ font-size: 16.5px; color: var(--ink-2); }
.about__quote{
  border-left: 2px solid var(--accent);
  padding-left: 18px;
  margin: 28px 0;
  font-family:'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.35;
}
.about__sig{
  display:flex; align-items:center; gap: 14px;
  margin-top: 28px; font-size: 13.5px; color: var(--muted);
}
.about__sig strong{
  font-family:'Cormorant Garamond', serif;
  font-weight: 500; font-size: 22px; color: var(--ink);
}
.about__sig span{ display:block; }

@media (min-width: 900px){
  .about__grid{ grid-template-columns: 5fr 6fr; }
}

/* ================= SERVICES ================= */
.services__grid{
  display:grid; gap: 20px;
  grid-template-columns: 1fr;
}
.service{
  position:relative;
  background: var(--white);
  padding: 40px 32px 36px;
  border: 1px solid var(--line);
  display:flex; flex-direction:column; gap: 20px;
  min-height: 340px;
  transition: transform .35s ease, background .35s;
  overflow:hidden;
}
.service:hover{ transform: translateY(-4px); background: var(--bg-2); }
.service__num{
  font-family:'Cormorant Garamond', serif;
  font-size: 14px; letter-spacing: .2em;
  color: var(--gold);
}
.service__icon{
  width: 64px; height: 64px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  background: var(--bg);
}
.service__icon img{
  width: 100%; height: 100%; object-fit: contain;
  filter: brightness(0) saturate(100%) invert(22%) sepia(40%) saturate(900%) hue-rotate(337deg) brightness(88%) contrast(88%);
  opacity: .9;
}
.service h3{
  margin: 0;
  font-size: 30px;
}
.service p{
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  flex: 1;
}
.service__more{
  display:inline-flex; align-items:center; gap:8px;
  font-size: 12px; letter-spacing: .2em; text-transform:uppercase;
  color: var(--accent);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.service__more::after{
  content:"→"; transition: transform .25s;
}
.service:hover .service__more::after{ transform: translateX(4px); }

@media (min-width: 700px){
  .services__grid{ grid-template-columns: repeat(3, 1fr); }
}

/* ================= ABOUT: principles & fabrics ================= */
.about__lede{
  font-family:'Cormorant Garamond', serif;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 20px;
}

.about__principles{
  margin-top: clamp(56px, 7vw, 96px);
  display:grid; gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.principle{
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  display:grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
  row-gap: 8px;
  align-items: start;
}
.principle__num{
  grid-row: span 3;
  font-family:'Cormorant Garamond', serif;
  font-size: 40px;
  color: var(--accent-2);
  line-height: 1;
  padding-top: 2px;
}
.principle h4{
  margin: 0;
  font-family:'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--ink);
}
.principle p{
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  grid-column: 2;
}
@media (min-width: 900px){
  .about__principles{
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .principle{
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 32px 28px 32px 0;
    grid-template-columns: 1fr;
  }
  .principle + .principle{ padding-left: 28px; }
  .principle:last-child{ border-right: 0; padding-right: 0; }
  .principle__num{ grid-row: auto; margin-bottom: 28px; }
  .principle p{ grid-column: auto; }
}

.about__fabrics{
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
  display:grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: center;
}
.about__fabrics-label p{
  font-family:'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  margin: 10px 0 0;
}
.about__fabrics-list{
  list-style: none; padding: 0; margin: 0;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 12px;
}
.about__fabrics-list li{
  display:flex; align-items:center; gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: .02em;
}
.about__fabrics-list li span{
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  display:inline-flex; align-items:center; justify-content:center;
  font-family:'Cormorant Garamond', serif;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: .05em;
  flex-shrink: 0;
}
@media (min-width: 700px){
  .about__fabrics-list{ grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 900px){
  .about__fabrics{ grid-template-columns: 4fr 8fr; gap: 48px; }
}

/* ================= PROCESS ================= */
.process{
  background: var(--bg-2);
}
.process__grid{
  display:grid; gap: 2px;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step{
  position:relative;
  background: var(--bg-2);
  padding: 40px 0;
  display:grid;
  gap: 16px;
  grid-template-columns: auto 1fr;
  align-items:start;
  border-bottom: 1px solid var(--line);
}
.process__grid .step:last-child{ border-bottom: 0; }
.step__num{
  font-family:'Cormorant Garamond', serif;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 300;
  color: var(--accent-2);
  line-height: .9;
  padding-right: 28px;
  min-width: 90px;
}
.step__body h3{ margin:0 0 10px; font-size: 28px; }
.step__body p{ margin:0; color: var(--muted); font-size: 15.5px; max-width: 52ch; }

@media (min-width: 900px){
  .process__grid{
    grid-template-columns: repeat(4, 1fr);
    border-top: 0; border-bottom: 0;
    gap: 0;
  }
  .step{
    grid-template-columns: 1fr;
    padding: 12px 28px 40px 0;
    border-bottom: 0;
    border-top: 1px solid var(--line-2);
  }
  .step + .step{ padding-left: 28px; border-left: 1px solid var(--line-2); padding-right: 0; }
  .step__num{ min-width: 0; padding:0; margin-bottom: 36px; }
}

/* ================= PORTFOLIO ================= */
.portfolio__grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  grid-auto-flow: dense;
}
.portfolio__item{
  position:relative;
  overflow:hidden;
  background: var(--bg-3);
  aspect-ratio: 3/4;
}
.portfolio__item img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .9s cubic-bezier(.2,.6,.2,1);
}
.portfolio__item:hover img{ transform: scale(1.05); }
.portfolio__item::after{
  content: attr(data-label);
  position:absolute; left:16px; bottom:14px;
  color: #fff;
  font-family:'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s, transform .35s;
}
.portfolio__item:hover::after{ opacity:1; transform: translateY(0); }
.portfolio__item--wide{ grid-column: span 2; aspect-ratio: 16/10; }
.portfolio__item--tall{ grid-row: span 2; aspect-ratio: 3/5; }

@media (min-width: 900px){
  .portfolio__grid{ grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .portfolio__item{ aspect-ratio: 4/5; }
  .portfolio__item--wide{ grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .portfolio__item--tall{ grid-row: span 2; aspect-ratio: auto; }
}
.portfolio__foot{
  display:flex; justify-content: center; margin-top: 48px;
}

/* ================= PRICING ================= */
.pricing{
  background: var(--accent);
  color: var(--accent-ink);
}
.pricing .section-head h2, .pricing h3{ color: var(--accent-ink); }
.pricing .section-head p.lede{ color: rgba(246,239,227,.7); }
.pricing .eyebrow{ color: #c8b989; }

.pricing__grid{
  display:grid; gap: 20px;
  grid-template-columns: 1fr;
}
.plan{
  background: rgba(246,239,227,.04);
  border: 1px solid rgba(246,239,227,.14);
  padding: 40px 32px;
  display:flex; flex-direction:column;
  gap: 20px;
  position:relative;
  transition: background .3s, border-color .3s, transform .3s;
}
.plan:hover{ background: rgba(246,239,227,.07); transform: translateY(-3px); }
.plan--featured{
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.plan--featured h3, .plan--featured .plan__price{ color: var(--ink); }
.plan--featured .plan__price b{ color: var(--ink); }
.plan--featured .plan__feat li{ color: var(--ink-2); border-color: var(--line); }
.plan--featured .plan__feat li::before{ color: var(--accent); }
.plan--featured .plan__cta{ background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.plan--featured .plan__cta:hover{ background: var(--ink); border-color: var(--ink); }
.plan__ribbon{
  position:absolute; top: -12px; left: 32px;
  background: var(--gold); color: var(--white);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  padding: 6px 14px;
}
.plan__tier{
  font-size: 11px; letter-spacing: .3em; text-transform:uppercase;
  color: rgba(246,239,227,.65);
}
.plan--featured .plan__tier{ color: var(--gold); }
.plan h3{ font-size: 40px; margin: 0; }
.plan__price{
  display:flex; align-items:baseline; gap: 10px;
  font-family:'Cormorant Garamond', serif;
  flex-wrap: wrap;
}
.plan__price b{
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 400;
  color: var(--accent-ink);
  letter-spacing: -.01em;
  line-height: 1;
}
.plan__price span{
  font-family:'Inter',sans-serif;
  font-size: 12px; color: rgba(247,241,228,.7);
  letter-spacing:.08em;
}
.plan--featured .plan__price span{ color: var(--muted); }
.plan__feat{
  list-style:none; padding:0; margin: 0;
  display:flex; flex-direction:column;
  flex: 1;
}
.plan__feat li{
  padding: 14px 0 14px 28px;
  border-top: 1px solid rgba(246,239,227,.12);
  font-size: 14.5px;
  position:relative;
  color: rgba(246,239,227,.92);
}
.plan__feat li:last-child{ border-bottom: 1px solid rgba(246,239,227,.12); }
.plan__feat li::before{
  content: "✓";
  position:absolute; left:0; top: 14px;
  color: #c8b989;
  font-weight: 400;
}
.plan__cta{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 16px;
  border: 1px solid currentColor;
  font-size: 12px; letter-spacing:.18em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.plan__cta:hover{ background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }

.pricing__foot{
  margin-top: 56px;
  display:flex; flex-direction: column; gap: 24px;
  align-items: flex-start;
  padding-top: 40px;
  border-top: 1px solid rgba(246,239,227,.14);
}
.pricing__foot p{ margin:0; color: rgba(246,239,227,.75); max-width: 50ch; font-size: 15px; }

@media (min-width: 900px){
  .pricing__grid{ grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch;}
  .plan--featured{ transform: translateY(-16px); }
  .plan--featured:hover{ transform: translateY(-19px); }
  .pricing__foot{ flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ================= CONTACT ================= */
.contact__grid{
  display:grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact__left h2{ margin-bottom: 24px; }
.contact__left p{ color: var(--muted); max-width: 42ch; }
.contact__info{
  margin-top: 40px;
  display:flex; flex-direction:column; gap: 22px;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.contact__info a{ display:block; }
.contact__info .label{
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
  display:block;
}
.contact__info .value{
  font-family:'Cormorant Garamond', serif;
  font-size: 26px; color: var(--ink);
}
.contact__info a:hover .value{ color: var(--accent); }

.socials{
  display:flex; gap: 10px; margin-top: 28px;
}
.socials a{
  width:44px; height:44px; border-radius:999px; border:1px solid var(--line-2);
  display:inline-flex; align-items:center; justify-content:center;
  transition: background .25s, color .25s, border-color .25s;
}
.socials a:hover{ background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.socials svg{ width:16px; height:16px; }

/* Form */
.form{
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 48px);
}
.form .eyebrow{ margin-bottom: 10px; display:inline-flex; }
.form h3{ margin-bottom: 28px; font-size: clamp(28px, 3vw, 36px); }
.form__row{
  display:grid; gap: 18px;
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}
.field{
  display:flex; flex-direction:column; gap:8px;
}
.field label{
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea{
  font: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 12px 0 14px;
  color: var(--ink);
  transition: border-color .25s;
  border-radius: 0;
}
.field input:focus, .field textarea:focus{
  outline:none; border-bottom-color: var(--accent);
}
.field textarea{ resize: vertical; min-height: 80px; }
.field--error input, .field--error textarea{ border-bottom-color: #9a3a2a; }
.field__msg{ font-size: 12px; color: #9a3a2a; display:none; }
.field--error .field__msg{ display:block; }

.consent{
  display:flex; align-items:flex-start; gap: 12px;
  font-size: 13px; color: var(--muted);
  margin: 24px 0 28px;
}
.consent input{
  width: 18px; height: 18px; accent-color: var(--accent);
  margin-top: 2px; flex-shrink: 0;
}
.consent a{ color: var(--ink); border-bottom:1px solid var(--line-2); }

.form__success{
  display:none;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 16px;
}
.form.is-sent .form__success{ display:block; }

@media (min-width: 700px){
  .form__row--2{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px){
  .contact__grid{ grid-template-columns: 5fr 7fr; }
}

/* ================= FOOTER ================= */
.footer{
  background: var(--ink);
  color: rgba(246,239,227,.75);
  padding: 72px 0 32px;
}
.footer a{ color: inherit; }
.footer__grid{
  display:grid;
  gap: 40px;
  grid-template-columns: 1fr;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(246,239,227,.12);
}
.footer__brand h3{
  font-family:'Cormorant Garamond', serif;
  font-weight: 400;
  color: var(--white);
  font-size: 32px;
  margin: 0 0 8px;
}
.footer__brand small{
  font-size: 10px; letter-spacing: .32em; text-transform:uppercase;
  color: rgba(246,239,227,.5);
}
.footer__brand p{ margin-top: 24px; max-width: 32ch; font-size: 14px; }
.footer h4{
  font-family:'Inter',sans-serif; color: var(--white);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 500;
}
.footer ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap: 10px; font-size: 14px; }
.footer ul a:hover{ color: var(--white); }
.footer__bottom{
  padding-top: 28px;
  display:flex; flex-direction: column-reverse; gap: 14px;
  align-items: flex-start; justify-content: space-between;
  font-size: 12px; color: rgba(246,239,227,.5);
  letter-spacing: .08em;
}
.footer__socials{ display:flex; gap: 10px; }
.footer__socials a{
  width:36px; height:36px; border-radius:999px; border: 1px solid rgba(246,239,227,.2);
  display:inline-flex; align-items:center; justify-content:center;
  transition: background .25s, color .25s, border-color .25s;
}
.footer__socials a:hover{ background: var(--white); color: var(--ink); border-color: var(--white); }
.footer__socials svg{ width:14px; height:14px; }

@media (min-width: 700px){
  .footer__grid{ grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; }
  .footer__bottom{ flex-direction: row; align-items:center; }
}

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

/* ================= UTIL ================= */
.noscroll{ overflow:hidden; }
::selection{ background: var(--accent); color: var(--accent-ink); }

/* ============== FOUT защита ============== */
/* До загрузки Cormorant Garamond скрываем serif-заголовки,
   чтобы не было моргания при переключении шрифта */
html:not(.fonts-ready) h1,
html:not(.fonts-ready) h2,
html:not(.fonts-ready) h3,
html:not(.fonts-ready) .serif,
html:not(.fonts-ready) .nav__logo em,
html:not(.fonts-ready) .footer__brand h3 {
  opacity: 0;
}
html.fonts-ready h1,
html.fonts-ready h2,
html.fonts-ready h3,
html.fonts-ready .serif,
html.fonts-ready .nav__logo em,
html.fonts-ready .footer__brand h3 {
  opacity: 1;
  transition: opacity 0.25s ease-out;
}

/* Кнопка "Войти в CRM" в футере */
.footer__crm {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-top: 12px;
  min-width: 180px;
  transition: all 0.2s ease;
}
.footer__crm:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white) !important;
  transform: translateX(2px);
}

/* Кнопка "Кабинет" в навигации (справа от ссылок, перед CTA) */
.nav__account {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  padding: 6px 10px;
  border-radius: 8px;
  margin-left: 8px;
  transition: all 0.18s ease;
}
.nav__account:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.nav.is-scrolled .nav__account {
  color: var(--ink-2);
}
.nav.is-scrolled .nav__account:hover {
  color: var(--ink);
  background: rgba(0,0,0,0.05);
}
@media (min-width: 900px) {
  .nav__account { display: inline-flex; }
}
