/* ============================================================
   ГРАНЬ — styles
   Premium renovation / interior studio landing
   ============================================================ */

:root {
  /* Light theme */
  --bg:        #F7F4EF;
  --bg-soft:   #FFFFFF;
  --surface:   #FFFFFF;
  --ink:       #16130F;
  --ink-soft:  #4B453D;
  --muted:     #857D71;
  --line:      #E4DDD1;
  --line-soft: #EFE9DF;
  --accent:    #A9803F;   /* burnished brass */
  --accent-2:  #C7A05A;
  --accent-ink:#8A6730;
  --dark-panel:#1A1611;

  --shadow-sm: 0 2px 8px rgba(30,22,12,.05);
  --shadow-md: 0 18px 50px -24px rgba(30,22,12,.28);
  --shadow-lg: 0 40px 90px -40px rgba(30,22,12,.45);

  --radius:   18px;
  --radius-lg:26px;

  --ff-display: "Cormorant Garamond", Georgia, serif;
  --ff-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --container: 1200px;
  --pad: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

html[data-theme="dark"] {
  --bg:        #121009;
  --bg-soft:   #17140D;
  --surface:   #1B1710;
  --ink:       #F3EEE4;
  --ink-soft:  #C7BFB1;
  --muted:     #8E8676;
  --line:      #2C271D;
  --line-soft: #241F17;
  --accent:    #CBA25C;
  --accent-2:  #E0C079;
  --accent-ink:#E0C079;
  --dark-panel:#0D0B06;
  --shadow-md: 0 18px 50px -24px rgba(0,0,0,.7);
  --shadow-lg: 0 40px 90px -40px rgba(0,0,0,.85);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }

.section { padding-block: clamp(72px, 11vw, 150px); }

/* ---------- typographic helpers ---------- */
.eyebrow {
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-ink);
}
.eyebrow--light { color: var(--accent-2); }

.section__head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--row {
  max-width: none; display: flex; justify-content: space-between;
  align-items: flex-end; gap: 40px; flex-wrap: wrap;
}
.section__title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin-top: 18px;
}
.section__desc { color: var(--ink-soft); font-size: 1.05rem; max-width: 420px; margin-top: 20px; }
.section__head--row .section__desc { margin-top: 0; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600; font-size: .95rem;
  background: var(--btn-bg); color: var(--btn-fg);
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 140% at 50% 120%, var(--accent) 0%, transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(-1px); }

.btn--primary { --btn-bg: var(--ink); --btn-fg: var(--bg); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost::after { background: radial-gradient(120% 140% at 50% 120%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 60%); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--light { --btn-bg: #F7F4EF; --btn-fg: #16130F; }
.btn--sm { padding: 11px 20px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 200; transition: width .1s linear;
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; width: min(320px, 70vw); }
.preloader__logo {
  font-family: var(--ff-display); font-size: 2.6rem; letter-spacing: .12em;
  display: block; margin-bottom: 22px;
}
.preloader__bar { height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.preloader__bar span { display: block; height: 100%; width: 0%; background: var(--accent); transition: width .2s var(--ease); }
.preloader__count { display: block; margin-top: 14px; font-size: .8rem; letter-spacing: .2em; color: var(--muted); }

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: transform .5s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 22px;
  transition: padding .4s var(--ease);
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line-soft);
}
.header.is-scrolled .header__inner { padding-block: 13px; }
.header.is-hidden { transform: translateY(-100%); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.logo__mark { color: var(--accent); font-size: 1.1rem; transition: transform .6s var(--ease); }
.logo:hover .logo__mark { transform: rotate(180deg); }
.logo__text { font-family: var(--ff-display); font-size: 1.5rem; letter-spacing: .14em; font-weight: 600; }

.nav { display: flex; gap: 4px; }
.nav__link {
  position: relative; padding: 8px 16px; font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone { font-weight: 600; font-size: .92rem; letter-spacing: .01em; }
.header__phone:hover { color: var(--accent-ink); }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; position: relative; overflow: hidden;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle__icon { position: absolute; font-size: 1rem; transition: transform .5s var(--ease), opacity .4s var(--ease); }
.theme-toggle__icon--sun { transform: translateY(0); opacity: 0; }
.theme-toggle__icon--moon { transform: translateY(0); opacity: 1; }
html[data-theme="dark"] .theme-toggle__icon--sun { opacity: 1; }
html[data-theme="dark"] .theme-toggle__icon--moon { opacity: 0; }

.burger { display: none; width: 40px; height: 40px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 22px; height: 2px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s var(--ease); }
.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); }

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg); padding: 120px var(--pad) 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateY(-100%); transition: transform .6s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__link {
  font-family: var(--ff-display); font-size: clamp(2rem, 9vw, 3rem);
  padding-block: 12px; border-bottom: 1px solid var(--line-soft);
}
.mobile-menu__phone { font-size: 1.4rem; font-weight: 600; margin-top: 32px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-block: 140px clamp(48px, 8vw, 90px); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img {
  position: absolute; inset: -12% 0 0 0; height: 124%;
  background: url("https://images.unsplash.com/photo-1616594039964-ae9021a400a0?w=1920&q=80&auto=format&fit=crop") center/cover no-repeat;
  will-change: transform;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,8,5,.42) 0%, rgba(10,8,5,.12) 32%, rgba(10,8,5,.55) 100%),
    linear-gradient(90deg, rgba(10,8,5,.5) 0%, transparent 62%);
}
.hero__inner { position: relative; z-index: 2; color: #F7F4EF; width: 100%; }
.hero__eyebrow { color: var(--accent-2); margin-bottom: 26px; }

.hero__title {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 6.6rem); line-height: .98; letter-spacing: -.015em;
}
.hero__title em { font-style: italic; color: var(--accent-2); }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; transform: translateY(110%); }
.is-hero-in .hero__title .line > span { transform: translateY(0); transition: transform 1s var(--ease-out); }
.is-hero-in .hero__title .line:nth-child(1) > span { transition-delay: .15s; }
.is-hero-in .hero__title .line:nth-child(2) > span { transition-delay: .27s; }
.is-hero-in .hero__title .line:nth-child(3) > span { transition-delay: .39s; }

.hero__lead { max-width: 460px; margin-top: 28px; font-size: 1.12rem; color: rgba(247,244,239,.86); }
.hero__cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero .btn--ghost { --btn-fg: #F7F4EF; border-color: rgba(247,244,239,.35); }
.hero .btn--ghost:hover { border-color: var(--accent-2); }

.hero__price {
  margin-top: 46px; display: inline-flex; align-items: baseline; gap: 16px;
  padding-top: 26px; border-top: 1px solid rgba(247,244,239,.22);
}
.hero__price-label { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(247,244,239,.7); }
.hero__price-value { font-family: var(--ff-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; }
.hero__price-value span { font-size: .45em; font-family: var(--ff-body); color: rgba(247,244,239,.7); }

/* reveal helpers for hero non-title elements */
.hero .reveal { opacity: 0; transform: translateY(26px); }
.is-hero-in .hero .reveal { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.is-hero-in .hero__lead { transition-delay: .5s; }
.is-hero-in .hero__cta { transition-delay: .62s; }
.is-hero-in .hero__price { transition-delay: .74s; }
.is-hero-in .hero__eyebrow { transition-delay: .1s; }

.hero__scroll {
  position: absolute; z-index: 2; bottom: 34px; right: var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(247,244,239,.7); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
}
.hero__scroll-line { width: 1px; height: 46px; background: rgba(247,244,239,.4); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--accent-2); animation: scrollDown 2s var(--ease) infinite;
}
@keyframes scrollDown { 0% { top: -50%; } 100% { top: 100%; } }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--ink); color: var(--bg); }
html[data-theme="dark"] .stats { background: var(--dark-panel); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: clamp(44px, 6vw, 72px);
}
.stat { text-align: center; padding: 12px; border-right: 1px solid rgba(247,244,239,.12); }
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--ff-display); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 600;
  line-height: 1; display: block; color: var(--accent-2);
}
.stat__label { display: block; margin-top: 12px; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,244,239,.62); }

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.service {
  background: var(--surface); padding: clamp(28px, 3vw, 44px);
  min-height: 260px; display: flex; flex-direction: column;
  position: relative; transition: background .45s var(--ease); overflow: hidden;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease);
}
.service:hover { background: var(--bg-soft); }
.service:hover::before { transform: scaleY(1); }
.service__index { font-family: var(--ff-display); font-size: 1.1rem; color: var(--accent-ink); letter-spacing: .1em; }
.service__title { font-family: var(--ff-display); font-size: 1.85rem; font-weight: 500; margin-top: 18px; transition: transform .5s var(--ease); }
.service:hover .service__title { transform: translateX(6px); }
.service__text { color: var(--ink-soft); margin-top: 14px; flex: 1; }
.service__price { margin-top: 22px; font-weight: 600; color: var(--accent-ink); font-size: .95rem; }

/* ============================================================
   WORKS
   ============================================================ */
.works__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(16px, 2vw, 24px); grid-auto-rows: 300px; }
.work {
  grid-column: span 2; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: var(--ink); box-shadow: var(--shadow-md); isolation: isolate;
}
.work--tall { grid-column: span 2; grid-row: span 2; }
.work--wide { grid-column: span 4; }
@media (min-width: 861px){
  .work { grid-column: span 3; }
  .work--tall { grid-column: span 3; grid-row: span 2; }
  .work--wide { grid-column: span 6; }
}
.work__media { position: absolute; inset: 0; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s var(--ease); }
.work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,8,5,.78) 100%); z-index: 1; }
.work:hover .work__media img { transform: scale(1.07); }
.work__body { position: absolute; inset: 0; z-index: 2; padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; justify-content: flex-end; color: #F7F4EF; }
.work__top { margin-top: auto; }
.work__tag { display: inline-block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); background: rgba(10,8,5,.35); padding: 5px 12px; border-radius: 100px; backdrop-filter: blur(6px); }
.work__title { font-family: var(--ff-display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 500; margin-top: 12px; }
.work__meta {
  list-style: none; display: flex; gap: 26px; margin-top: 18px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .6s var(--ease), opacity .5s var(--ease), margin-top .6s var(--ease);
}
.work:hover .work__meta { max-height: 80px; opacity: 1; }
.work__meta li { display: flex; flex-direction: column; gap: 3px; }
.work__meta span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(247,244,239,.6); }
.work__meta b { font-size: 1.05rem; font-weight: 600; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-section { border-block: 1px solid var(--line); padding-block: clamp(28px, 4vw, 44px); overflow: hidden; }
.marquee { display: flex; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 46px; white-space: nowrap; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--ff-display); font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 500; color: var(--muted); transition: color .3s var(--ease); }
.marquee__track span:hover { color: var(--ink); }
.marquee__track i { color: var(--accent); font-style: normal; font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   PROMO
   ============================================================ */
.promo {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--dark-panel); color: #F7F4EF;
  padding: clamp(44px, 7vw, 96px); box-shadow: var(--shadow-lg);
}
.promo__glow { position: absolute; width: 60%; height: 160%; right: -10%; top: -30%; background: radial-gradient(closest-side, rgba(199,160,90,.5), transparent 70%); filter: blur(30px); z-index: 0; }
.promo__content { position: relative; z-index: 1; max-width: 640px; }
.promo__title { font-family: var(--ff-display); font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.04; margin: 18px 0 16px; }
.promo__text { color: rgba(247,244,239,.75); font-size: 1.08rem; margin-bottom: 34px; max-width: 460px; }

/* ============================================================
   PROCESS
   ============================================================ */
.process__list { list-style: none; border-top: 1px solid var(--line); }
.process__item {
  display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start;
  padding-block: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease), background .4s var(--ease);
}
.process__item:hover { padding-left: 20px; }
.process__num { font-family: var(--ff-display); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; color: var(--accent); line-height: 1; }
.process__body { max-width: 620px; }
.process__body h3 { font-family: var(--ff-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.process__body p { color: var(--ink-soft); margin-top: 10px; font-size: 1.05rem; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews__slider { overflow: hidden; }
.reviews__track { display: flex; transition: transform .7s var(--ease-out); }
.review {
  min-width: 100%; padding-right: clamp(0px, 6vw, 120px);
}
.review blockquote {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.9rem); line-height: 1.24; letter-spacing: -.01em;
}
.review blockquote::before { content: "«"; display: none; }
.review figcaption { margin-top: 30px; display: flex; flex-direction: column; gap: 4px; }
.review figcaption b { font-size: 1.05rem; font-weight: 700; }
.review figcaption span { color: var(--muted); font-size: .95rem; }

.reviews__controls { display: flex; align-items: center; gap: 20px; margin-top: 44px; }
.reviews__btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.1rem; color: var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.reviews__btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }
.reviews__dots { display: flex; gap: 8px; margin-inline: auto 0; }
.reviews__dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: width .4s var(--ease), background .4s var(--ease); }
.reviews__dots button.is-active { width: 26px; border-radius: 100px; background: var(--accent); }

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts { background: var(--bg-soft); }
html[data-theme="dark"] .contacts { background: var(--bg-soft); }
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contacts__text { color: var(--ink-soft); margin-top: 22px; font-size: 1.08rem; max-width: 420px; }
.contacts__list { list-style: none; margin-top: 40px; display: grid; gap: 20px; }
.contacts__list li { display: flex; flex-direction: column; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contacts__list span { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contacts__list a { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 500; transition: color .3s var(--ease); }
.contacts__list a:hover { color: var(--accent-ink); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 46px); box-shadow: var(--shadow-md); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin-bottom: 20px; }
.field__label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field__input {
  width: 100%; padding: 15px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-family: inherit; font-size: 1rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.field__input::placeholder { color: var(--muted); }
.field--check { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--ink-soft); }
.field--check input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; }
.form__note { margin-top: 14px; font-size: .9rem; min-height: 1.2em; text-align: center; color: var(--accent-ink); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--bg); padding-block: clamp(48px, 6vw, 76px) 28px; }
html[data-theme="dark"] .footer { background: var(--dark-panel); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; padding-bottom: 44px; border-bottom: 1px solid rgba(247,244,239,.12); }
.logo--footer .logo__text { color: var(--bg); }
.footer__brand p { color: rgba(247,244,239,.6); margin-top: 16px; max-width: 320px; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a { color: rgba(247,244,239,.75); width: fit-content; transition: color .3s var(--ease); }
.footer__nav a:hover { color: var(--accent-2); }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(247,244,239,.2); display: grid; place-items: center; font-size: .8rem; font-weight: 600; letter-spacing: .05em; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.footer__socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: .84rem; color: rgba(247,244,239,.5); flex-wrap: wrap; gap: 12px; }

/* ============================================================
   REVEAL (scroll-in)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
/* hero reveals handled separately above */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px){
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid rgba(247,244,239,.12); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .contacts__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px){
  .nav, .header__phone { display: none; }
  .burger { display: flex; }
  .header__actions .btn--primary { display: none; }
  .works__grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .work, .work--tall, .work--wide { grid-column: span 1 !important; grid-row: span 1 !important; }
  .work__meta { max-height: 80px; opacity: 1; }
}
@media (max-width: 620px){
  .services__grid { grid-template-columns: 1fr; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .form__row { grid-template-columns: 1fr; }
  .process__item { grid-template-columns: 60px 1fr; gap: 14px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(140px, 18vh, 220px) 0 clamp(48px, 7vw, 90px);
  color: #F7F4EF;
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("https://images.unsplash.com/photo-1615529182904-14819c35db37?w=1920&q=80&auto=format&fit=crop") center/cover no-repeat;
}
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,5,.62) 0%, rgba(10,8,5,.42) 45%, rgba(10,8,5,.85) 100%);
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--accent-2); }
.page-hero__title {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1; letter-spacing: -.015em;
  margin: 18px 0 22px;
}
.page-hero__title em { font-style: italic; color: var(--accent-2); }
.page-hero__lead { max-width: 520px; font-size: 1.12rem; color: rgba(247,244,239,.85); }
.page-hero__stats { display: flex; gap: clamp(24px, 4vw, 54px); margin-top: 40px; flex-wrap: wrap; }
.page-hero__stat { display: flex; flex-direction: column; gap: 4px; }
.page-hero__stat b { font-family: var(--ff-display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; color: var(--accent-2); line-height: 1; }
.page-hero__stat span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,244,239,.7); }

.crumbs { position: relative; z-index: 1; font-size: .84rem; color: rgba(247,244,239,.7); margin-bottom: 6px; }
.crumbs a:hover { color: var(--accent-2); }

/* filters */
.filters { position: sticky; top: 62px; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); transition: transform .5s var(--ease); will-change: transform; }
.filters.is-hidden { transform: translateY(calc(-100% - 72px)); pointer-events: none; }
.filters__inner { padding-block: 18px; display: flex; flex-direction: column; gap: 14px; }
.filters__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters__label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-right: 6px; min-width: 60px; }
.filter-btn {
  padding: 9px 18px; border-radius: 100px; border: 1px solid var(--line);
  font-size: .88rem; font-weight: 500; color: var(--ink-soft); background: var(--surface);
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.filter-btn.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-btn--style.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
html[data-theme="dark"] .filter-btn--style.is-active { color: #16130F; }

/* gallery grid */
.gallery { padding-block: clamp(40px, 5vw, 64px) clamp(72px, 9vw, 120px); }
.gallery__count { color: var(--muted); font-size: .92rem; margin-bottom: 26px; }
.gallery__count b { color: var(--ink); font-weight: 600; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 30px); }

.gcard {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .5s var(--ease);
}
.gcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.gcard.is-hidden { display: none; }
.gcard__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ink); }
.gcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gcard:hover .gcard__media img { transform: scale(1.06); }
.gcard__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: #F7F4EF; background: rgba(10,8,5,.5); backdrop-filter: blur(6px);
  padding: 6px 12px; border-radius: 100px;
}
.gcard__zoom {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10,8,5,.45); color: #fff; backdrop-filter: blur(6px);
  opacity: 0; transform: scale(.8); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gcard:hover .gcard__zoom { opacity: 1; transform: scale(1); }
.gcard__body { padding: 20px 22px 24px; }
.gcard__style { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.gcard__title { font-family: var(--ff-display); font-size: 1.6rem; font-weight: 500; margin: 8px 0 4px; }
.gcard__loc { color: var(--muted); font-size: .9rem; }
.gcard__meta { display: flex; gap: 20px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.gcard__meta div { display: flex; flex-direction: column; gap: 2px; }
.gcard__meta span { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gcard__meta b { font-size: .98rem; font-weight: 600; }

.gallery__empty { text-align: center; color: var(--muted); padding: 60px 0; display: none; }
.gallery__empty.is-shown { display: block; }

.gallery__more { display: flex; justify-content: center; margin-top: 48px; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(8,6,4,.9); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s var(--ease);
  padding: 24px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { position: relative; max-width: min(1000px, 92vw); width: 100%; }
.lightbox__img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__cap { color: #F7F4EF; margin-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.lightbox__cap h3 { font-family: var(--ff-display); font-weight: 500; font-size: 1.6rem; }
.lightbox__cap span { color: rgba(247,244,239,.7); font-size: .9rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(247,244,239,.14); color: #fff; display: grid; place-items: center; font-size: 1.3rem;
  transition: background .3s var(--ease), transform .3s var(--ease); backdrop-filter: blur(6px);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); transform: scale(1.06); }
.lightbox__close { top: -8px; right: -8px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: -8px; }
.lightbox__nav--next { right: -8px; }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__dots { display: flex; gap: 7px; justify-content: center; margin-top: 16px; }
.lightbox__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(247,244,239,.35); transition: background .3s var(--ease), width .3s var(--ease); }
.lightbox__dots i.is-active { background: var(--accent-2); width: 22px; border-radius: 100px; }

@media (max-width: 980px){ .gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){
  .gallery__grid { grid-template-columns: 1fr; }
  .filters { top: 58px; }
  .filters__label { min-width: auto; width: 100%; }
  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }
  .lightbox__close { top: 4px; right: 4px; }
}
