/* ===================================================================
   infeel.design — Аліна Злобіна
   Тепла мінімалістична естетика з преміальним акцентом
   =================================================================== */

/* ===== Pricing page ===== */
.price-hero { text-align: center; padding-top: clamp(130px, 18vw, 190px); padding-bottom: clamp(30px, 5vw, 50px); }
.price-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 400; margin: 10px 0 18px; }
.price-hero .hero-lead { margin-left: auto; margin-right: auto; }
.price-groups { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px) clamp(60px, 9vw, 120px); }
.price-group { margin-top: clamp(46px, 7vw, 84px); }
.price-group-head { margin-bottom: 30px; }
.price-group-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 400; }
.price-group-head .section-label { margin-bottom: 10px; }
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.price-grid.single { grid-template-columns: 1fr; }

.price-card {
  display: flex; flex-direction: column; position: relative;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(28px, 3.5vw, 44px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.price-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 24px 50px -26px rgba(140,74,38,0.45); }
.price-card.featured { border-color: var(--accent); background: linear-gradient(160deg, rgba(140,74,38,0.06), var(--bg-soft) 60%); }
.price-badge {
  position: absolute; top: 20px; right: 22px; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--accent); color: var(--ink); padding: 5px 13px; border-radius: 100px; font-weight: 600;
}
.price-cat { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.price-plan { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin: 6px 0 0; }
.price-amount {
  font-family: var(--serif); font-size: clamp(3rem, 6vw, 4rem); font-weight: 600; color: var(--accent);
  line-height: 1; margin: 20px 0 26px; font-variant-numeric: lining-nums;
}
.price-amount .cur { font-size: 0.5em; vertical-align: super; margin-left: 2px; }
.price-amount .from { font-family: var(--sans); font-size: 0.9rem; font-weight: 500; color: var(--cream-dim); display: block; margin-bottom: 4px; letter-spacing: 0.04em; }
.price-features { list-style: none; flex: 1; display: grid; gap: 13px; margin-bottom: 28px; }
.price-features li { position: relative; padding-left: 28px; font-size: 0.96rem; color: var(--cream); line-height: 1.5; }
.price-features li::before { content: '✦'; position: absolute; left: 0; top: 1px; color: var(--accent); font-size: 0.85rem; }
.price-features li .muted { color: var(--cream-dim); }
.price-features li strong { font-weight: 600; }
.price-foot { border-top: 1px solid var(--line); padding-top: 22px; margin-top: auto; }
.price-term { font-size: 0.92rem; color: var(--cream); margin-bottom: 4px; }
.price-term strong { color: var(--accent); }
.price-note { font-size: 0.82rem; color: var(--cream-dim); margin-bottom: 20px; }
.price-cta { width: 100%; justify-content: center; }

.price-cols { columns: 2; column-gap: 30px; }
.price-cols li { break-inside: avoid; }
.price-hint { font-size: 0.86rem; color: var(--cream-dim); margin-top: 18px; font-style: italic; }

.price-faq { max-width: 760px; margin: 0 auto; padding: clamp(50px,8vw,100px) clamp(20px,5vw,60px); text-align: center; }
.price-faq h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; margin-bottom: 16px; }
.price-faq p { color: var(--cream-dim); margin-bottom: 30px; }

@media (max-width: 760px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-cols { columns: 1; }
}

/* ===== About / Journey page ===== */
.journey-hero { text-align: center; padding-top: clamp(130px, 18vw, 190px); padding-bottom: clamp(20px, 4vw, 44px); }
.journey-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 400; margin: 10px 0 18px; }
.journey-hero .hero-lead { margin-left: auto; margin-right: auto; }
.journey-photo { max-width: 300px; margin: 34px auto 0; position: relative; }
.journey-photo img { width: 100%; height: auto; border-radius: 200px 200px var(--r) var(--r); border: 1px solid var(--line); display: block; }

.journey { max-width: 800px; margin: 0 auto; padding: clamp(30px, 5vw, 60px) clamp(20px, 5vw, 60px) clamp(50px, 8vw, 100px); }
.timeline { position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 9px; top: 8px; bottom: 30px; width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2) 55%, rgba(140,74,38,0.15));
}
.tl-item { position: relative; padding-left: 46px; padding-bottom: clamp(34px, 5vw, 56px); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 5px var(--bg); z-index: 1;
}
.tl-item.mark::before { background: var(--accent); }
.tl-year { display: inline-block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.tl-title { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.05rem); font-weight: 500; line-height: 1.16; margin-bottom: 10px; }
.tl-item.big .tl-title { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.tl-text { color: var(--cream-dim); font-size: 1rem; margin-bottom: 8px; }
.tl-text:last-child { margin-bottom: 0; }
.brand { color: var(--accent); font-weight: 600; }
.tl-list { list-style: none; display: grid; gap: 9px; margin-top: 14px; }
.tl-list li { position: relative; padding-left: 22px; color: var(--cream-dim); font-size: 0.95rem; line-height: 1.5; }
.tl-list li::before { content: '✦'; position: absolute; left: 0; top: 1px; color: var(--accent); font-size: 0.78rem; }
.tl-list li b { color: var(--cream); font-weight: 600; }

/* Certificates */
.certs { background: var(--bg-soft); }
.certs-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
.cert-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg); display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.cert-card:hover { transform: translateY(-5px); box-shadow: 0 22px 46px -26px rgba(140,74,38,0.4); }
.cert-card > img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--line); }
.cert-body { padding: clamp(24px, 3vw, 34px); }
.cert-issuer { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.cert-body h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; margin-bottom: 18px; }
.cert-grade { display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; }
.cert-grade b { font-family: var(--serif); font-size: 3rem; color: var(--accent); font-variant-numeric: lining-nums; line-height: 1; }
.cert-grade small { color: var(--cream-dim); font-size: 1rem; }
.cert-rows { display: grid; gap: 0; }
.cert-row { display: flex; justify-content: space-between; gap: 14px; font-size: 0.92rem; padding: 10px 0; border-top: 1px solid var(--line); }
.cert-row span:first-child { color: var(--cream-dim); }
.cert-row span:last-child { color: var(--cream); font-weight: 500; text-align: right; }
.cert-hint { font-size: 0.86rem; color: var(--cream-dim); font-style: italic; margin-top: 16px; line-height: 1.6; }

@media (max-width: 760px) { .certs-grid { grid-template-columns: 1fr; } }

/* ===== Portfolio page (grouped projects) ===== */
.portfolio-hero { text-align: center; padding-top: clamp(130px, 18vw, 190px); padding-bottom: clamp(10px, 3vw, 30px); }
.portfolio-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 400; margin: 10px 0 18px; }
.portfolio-hero .hero-lead { margin-left: auto; margin-right: auto; }
.projects-wrap { max-width: var(--wrap); margin: 0 auto; padding: clamp(20px,4vw,40px) clamp(20px, 5vw, 60px) clamp(60px, 9vw, 120px); }
.project {
  display: grid; grid-template-columns: 1fr minmax(280px, 400px);
  gap: clamp(28px, 5vw, 60px); align-items: center; padding: clamp(40px, 6vw, 74px) 0;
}
.project + .project { border-top: 1px solid var(--line); }
.project:nth-child(even) .project-head { order: 2; }
.project-head { max-width: 560px; }
.project-cat { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.project-name { font-size: clamp(2rem, 5vw, 3rem); font-weight: 500; letter-spacing: -0.01em; margin: 8px 0 16px; }
.project-desc { color: var(--cream-dim); font-size: 1.02rem; line-height: 1.7; }
.project-media { display: flex; justify-content: center; }

/* Стек проєкту (головне фото + інші визирають знизу) */
.project-stack {
  position: relative; display: block; width: 100%; max-width: 400px;
  border: none; background: none; padding: 0; margin: 0 6px; cursor: pointer; border-radius: var(--r);
}
.project-stack img { border-radius: var(--r); border: 1px solid var(--line); display: block; }
.project-stack .stack-cover {
  position: relative; z-index: 3; width: 100%; height: auto;
  box-shadow: 0 26px 54px -24px rgba(0,0,0,0.42); transition: transform 0.45s var(--ease);
}
.project-stack .stack-back { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.project-stack .stack-b1 { z-index: 2; transform: rotate(3.5deg) translate(11px, 8px) scale(0.985); }
.project-stack .stack-b2 { z-index: 1; transform: rotate(-4.5deg) translate(-13px, 12px) scale(0.97); }
.project-stack:hover .stack-b1 { transform: rotate(6.5deg) translate(20px, 9px) scale(0.985); }
.project-stack:hover .stack-b2 { transform: rotate(-8deg) translate(-22px, 13px) scale(0.97); }
.project-stack:hover .stack-cover { transform: translateY(-3px); }
.project-stack .stack-badge {
  position: absolute; z-index: 4; bottom: 14px; right: 14px; pointer-events: none;
  background: rgba(28,28,20,0.78); color: #f2efe4; font-size: 0.76rem; font-weight: 600;
  padding: 6px 13px; border-radius: 100px; backdrop-filter: blur(4px);
}
.project-stack .stack-hint {
  position: absolute; z-index: 4; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s var(--ease); pointer-events: none;
}
.project-stack .stack-hint span { background: var(--accent); color: var(--ink); font-size: 0.82rem; font-weight: 600; padding: 9px 18px; border-radius: 100px; }
.project-stack:hover .stack-hint { opacity: 1; }

@media (max-width: 760px) {
  .project { grid-template-columns: 1fr; gap: 22px; padding: clamp(34px,7vw,54px) 0; }
  .project-head { order: 0 !important; }
  .project-media { order: 2; }
  .project-stack { max-width: 320px; margin: 0 auto; }
}

/* ===== Home: about teaser — journey path (не кнопки) ===== */
.journey-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 24px 0 32px; }
.journey-chips span { font-size: 0.9rem; color: var(--cream-dim); display: inline-flex; align-items: center; white-space: nowrap; }
.journey-chips span:not(:last-child)::after { content: '→'; margin: 0 11px; color: var(--accent); opacity: 0.55; font-size: 0.85rem; }
.journey-chips span.on { color: var(--accent); font-weight: 600; }

/* ===== Home: FAQ ===== */
.faq { background: var(--bg-soft); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; color: var(--cream);
  font-family: var(--sans); font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 500;
  padding: 24px 40px 24px 0; position: relative; display: flex; align-items: center; }
.faq-q::after { content: '+'; position: absolute; right: 4px; font-size: 1.6rem; color: var(--accent); transition: transform 0.3s var(--ease); font-weight: 300; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { color: var(--cream-dim); padding: 0 0 24px; line-height: 1.7; max-width: 700px; }
.faq-a a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

:root {
  --bg:        #e8e4d7;   /* світлий бежевий фон */
  --bg-soft:   #ded9c8;   /* трохи глибший бежевий для секцій */
  --cream:     #2c2c1f;   /* темна олива — основний текст */
  --cream-dim: #6d6b56;   /* приглушений текст */
  --ink:       #f2efe4;   /* світлий текст на акценті/кнопці */
  --accent:    #8c4a26;   /* теракотово-коричневий */
  --accent-2:  #a35c2b;   /* насичена теракота */
  --line:      rgba(44, 44, 31, 0.14);
  --card:      rgba(44, 44, 31, 0.035);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Manrope', system-ui, sans-serif;

  --r: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--ink); }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }

.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 28%, #e6c49c 46%, var(--accent-2) 64%, var(--accent) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer { 0%,100% { background-position: 130% 0; } 50% { background-position: -30% 0; } }

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

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 60px);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.scrolled {
  padding: 14px clamp(20px, 5vw, 60px);
  background: rgba(232, 228, 215, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 600;
  letter-spacing: 0.5px; color: var(--cream);
}
.logo-mark { color: var(--accent); }
.logo-dot { color: var(--accent-2); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 0.92rem; color: var(--cream-dim); transition: color 0.25s; position: relative; }
.nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: var(--accent); transition: width 0.3s var(--ease);
}
.nav a:not(.nav-cta):hover { color: var(--cream); }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  padding: 9px 20px; border: 1px solid var(--line); border-radius: 100px;
  color: var(--cream); transition: all 0.3s var(--ease);
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 2px; background: var(--cream); transition: 0.3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: 100px; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.35s var(--ease); border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(140,74,38,0.5); }
.btn-ghost { border-color: var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(20px, 5vw, 60px) 80px; overflow: hidden;
}
.hero-bg-glow {
  position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(140,74,38,0.14), transparent 62%);
  filter: blur(20px); z-index: 0; pointer-events: none; animation: float 14s ease-in-out infinite;
}
@keyframes float { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-4%,4%) scale(1.08);} }

.hero-inner { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; width: 100%; }
.eyebrow {
  font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 26px;
}
.hero-title { font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 400; letter-spacing: -0.02em; }
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--cream-dim);
  max-width: 620px; margin: 30px 0 40px; font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-meta { display: flex; gap: clamp(28px, 5vw, 64px); margin-top: 70px; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong {
  font-family: var(--sans); font-size: 2.7rem; font-weight: 700; color: var(--accent); line-height: 1;
  display: inline-flex; align-items: baseline; gap: 3px; letter-spacing: -0.02em;
}
.hero-meta strong .small { font-size: 1.25rem; font-weight: 600; color: inherit; letter-spacing: 0; }
.hero-meta div > span:not(.small) { font-size: 0.85rem; color: var(--cream-dim); margin-top: 10px; }
.hero-meta .num { font-size: inherit; color: inherit; margin: 0; }

.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 20px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-hint span { width: 4px; height: 8px; border-radius: 4px; background: var(--accent); animation: scroll-dot 1.6s ease-in-out infinite; }
@keyframes scroll-dot { 0%{ transform: translateY(0); opacity:1;} 70%{ transform: translateY(14px); opacity:0;} 100%{opacity:0;} }

/* ===== Marquee ===== */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: var(--bg-soft); }
.marquee-track { display: flex; gap: 30px; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: 1.7rem; font-style: italic; color: var(--cream-dim); }
.marquee-track span:nth-child(even) { color: var(--accent); font-style: normal; }
@keyframes marquee { from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ===== Section shells ===== */
section { padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 60px); }
.section-head { max-width: var(--wrap); margin: 0 auto clamp(40px, 6vw, 70px); }
.section-label { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 400; }
.section-sub { color: var(--cream-dim); margin-top: 16px; max-width: 480px; }

/* ===== About ===== */
.about {
  display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(40px, 6vw, 90px);
  align-items: center; max-width: var(--wrap); margin: 0 auto;
}
.about-photo { position: relative; }
.photo-frame {
  aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; position: relative;
  background: linear-gradient(145deg, #d4cfbd, #c6c1ac); border: 1px solid var(--line);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.photo-hint { text-align: center; color: var(--cream-dim); font-size: 0.9rem; line-height: 1.7; }
.photo-hint small { font-size: 0.72rem; opacity: 0.6; }
.photo-frame.has-img .photo-hint { display: none; }
.photo-badge {
  position: absolute; bottom: -22px; right: -14px; background: var(--accent);
  color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.5rem;
  padding: 16px 24px; border-radius: 14px;
}
.photo-badge span { color: var(--bg); }
.about-text h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); margin-bottom: 24px; }
.about-text p { color: var(--cream-dim); margin-bottom: 18px; max-width: 540px; }
.about-list { list-style: none; margin-top: 30px; display: grid; gap: 14px; }
.about-list li { position: relative; padding-left: 30px; color: var(--cream); font-size: 0.98rem; }
.about-list li::before {
  content: '✦'; position: absolute; left: 0; color: var(--accent); font-size: 0.9rem; top: 2px;
}

/* ===== Services ===== */
.services { background: var(--bg-soft); }
.services-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.service-card {
  background: var(--bg-soft); padding: clamp(28px, 3.5vw, 44px);
  transition: background 0.4s var(--ease); position: relative; min-height: 230px;
  display: flex; flex-direction: column;
}
.service-card:hover { background: var(--card); }
.service-num { font-family: var(--serif); font-size: 1rem; color: var(--accent); letter-spacing: 0.1em; }
.service-card h3 { font-size: 1.4rem; margin: 18px 0 12px; font-weight: 500; }
.service-card p { color: var(--cream-dim); font-size: 0.94rem; }
.service-card::after {
  content: '→'; position: absolute; right: 30px; bottom: 28px; color: var(--accent);
  opacity: 0; transform: translateX(-8px); transition: all 0.35s var(--ease);
}
.service-card:hover::after { opacity: 1; transform: translateX(0); }

/* ===== Portfolio — masonry ===== */
.gallery.masonry {
  max-width: var(--wrap); margin: 0 auto;
  column-count: 3; column-gap: 18px;
}
.gallery-item {
  position: relative; break-inside: avoid; margin-bottom: 18px;
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); display: block;
}
.gallery-item img {
  display: block; width: 100%; height: auto;
  transition: transform 0.6s var(--ease); backface-visibility: hidden;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: rgba(140,74,38,0); transition: background 0.4s var(--ease); pointer-events: none;
}
.gallery-item:hover::before { background: rgba(140,74,38,0.10); }
.gallery-item::after {
  content: '↗'; position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--ink); border-radius: 50%; font-size: 1rem;
  opacity: 0; transform: scale(0.6); transition: all 0.35s var(--ease);
}
.gallery-item:hover::after { opacity: 1; transform: scale(1); }
.portfolio-more { display: inline-flex; margin: 46px auto 0; }
.portfolio { text-align: center; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 2600; display: flex; align-items: center; justify-content: center;
  background: rgba(28, 28, 20, 0.92); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-img {
  max-width: 88vw; max-height: 86vh; border-radius: 10px; object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  transform: scale(0.96); transition: transform 0.35s var(--ease);
}
.lightbox.open .lb-img { transform: scale(1); }
.lb-close, .lb-nav {
  position: absolute; background: rgba(242,239,228,0.12); border: 1px solid rgba(242,239,228,0.25);
  color: #f2efe4; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease); z-index: 2;
}
.lb-close:hover, .lb-nav:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.lb-close { top: 22px; right: 26px; width: 46px; height: 46px; font-size: 1.7rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 24px; } .lb-next { right: 24px; }
.lb-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: #f2efe4; font-size: 0.9rem; letter-spacing: 0.1em; opacity: 0.8;
}

/* ===== Contact photo ===== */
.contact-photo img {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover; object-position: center 20%;
  border: 2px solid var(--accent); margin: 0 auto 22px; display: block;
  box-shadow: 0 14px 34px -12px rgba(140,74,38,0.4);
}
.portfolio .section-head, .portfolio .gallery { text-align: left; }

/* ===== Process ===== */
.process { background: var(--bg-soft); }
.steps { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { padding: 30px 0; border-top: 2px solid var(--line); transition: border-color 0.4s var(--ease); }
.step:hover { border-color: var(--accent); }
.step-n {
  font-family: var(--serif); font-size: 3rem; font-weight: 600; color: var(--accent);
  display: block; line-height: 1; margin-bottom: 18px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 10px; font-weight: 500; }
.step p { color: var(--cream-dim); font-size: 0.92rem; }

/* ===== Contact ===== */
.contact { position: relative; overflow: hidden; text-align: center; }
.contact::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(140,74,38,0.15), transparent 62%); filter: blur(30px); z-index: 0;
}
.contact-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.contact h2 { font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 400; margin: 8px 0 24px; }
.contact-lead { color: var(--cream-dim); font-size: 1.15rem; margin-bottom: 46px; }
.contact-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.contact-card {
  display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 22px 28px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); min-width: 280px; transition: all 0.35s var(--ease);
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-4px); background: rgba(140,74,38,0.06); }
.contact-ic { color: var(--accent); display: flex; }
.contact-tx { display: flex; flex-direction: column; flex: 1; }
.contact-tx strong { font-size: 1.05rem; font-weight: 600; }
.contact-tx small { color: var(--cream-dim); font-size: 0.85rem; }
.contact-arrow { color: var(--accent); font-size: 1.3rem; transition: transform 0.35s var(--ease); }
.contact-card:hover .contact-arrow { transform: translateX(6px); }

/* ===== Footer ===== */
.site-footer {
  padding: 50px clamp(20px, 5vw, 60px); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.footer-brand .logo-mark { color: var(--accent); }
.footer-brand .logo-dot { color: var(--accent-2); }
.site-footer p { color: var(--cream-dim); font-size: 0.85rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--cream-dim); font-size: 0.88rem; transition: color 0.25s; }
.footer-links a:hover { color: var(--accent); }

/* ===== Mobile menu ===== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 850; background: rgba(232,228,215,0.97); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a { font-family: var(--serif); font-size: 2rem; color: var(--cream); font-style: italic; }
.mobile-menu a:hover { color: var(--accent); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Mask reveal — для заголовків проявляється з-під маски */
.reveal-mask { clip-path: inset(0 0 108% 0); transition: clip-path 1.05s var(--ease), opacity 0.9s var(--ease); }
.reveal-mask.in { clip-path: inset(0 0 -8% 0); }

/* ===== Intro preloader ===== */
body.loading { overflow: hidden; }
.preloader {
  position: fixed; inset: 0; z-index: 3000; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.9s var(--ease);
}
.preloader.done { transform: translateY(-100%); }
.preloader-logo {
  font-family: var(--serif); font-size: clamp(2.4rem, 8vw, 4.6rem); font-weight: 600;
  letter-spacing: 0.5px; color: var(--cream);
  opacity: 0; transform: translateY(14px); animation: preload-in 1s var(--ease) 0.15s forwards;
}
.preloader-logo .logo-mark { color: var(--accent); }
.preloader-logo .logo-dot { color: var(--accent-2); }
@keyframes preload-in { to { opacity: 1; transform: translateY(0); } }

/* ===== Kinetic hero title ===== */
.hero-title { font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 400; letter-spacing: -0.02em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line-in { display: block; transform: translateY(115%); transition: transform 1s var(--ease); }
.hero-title.in .line:nth-child(1) .line-in { transition-delay: 0.05s; }
.hero-title.in .line:nth-child(2) .line-in { transition-delay: 0.18s; }
.hero-title.in .line-in { transform: translateY(0); }

/* ===== Custom cursor (arrow) ===== */
.cursor-arrow {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 4000;
  opacity: 0; transform-origin: 3px 3px;
  transition: transform 0.18s var(--ease), opacity 0.25s var(--ease);
  filter: drop-shadow(0 2px 4px rgba(28, 28, 20, 0.25));
}
.cursor-arrow svg { display: block; }
.cursor-arrow svg path {
  fill: var(--accent); stroke: var(--bg); stroke-width: 1.4;
  stroke-linejoin: round; transition: fill 0.25s var(--ease);
}
.cursor-arrow.grow { transform: scale(1.4) rotate(-8deg); }
.cursor-arrow.grow svg path { fill: var(--accent-2); }
body.cursor-on, body.cursor-on * { cursor: none !important; }
@media (hover: none), (pointer: coarse) { .cursor-arrow { display: none; } }

/* ===== Service cards — enhanced hover ===== */
.service-card { transition: background 0.4s var(--ease), transform 0.4s var(--ease); }
.service-card:hover { transform: translateY(-4px); }
.service-card h3 { transition: color 0.3s var(--ease); }
.service-card:hover h3 { color: var(--accent); }
.service-num { transition: transform 0.4s var(--ease); display: inline-block; }
.service-card:hover .service-num { transform: translateX(4px); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery.masonry { column-count: 2; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery.masonry { column-count: 1; }
  .hero-meta { gap: 26px; }
  .hero-meta strong { font-size: 2.1rem; }
  .contact-card { min-width: unset; width: 100%; }
  .lb-nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-mask { clip-path: none; }
  .hero-title .line-in { transform: none; }
  .preloader-logo { opacity: 1; transform: none; }
  .preloader { display: none; }
  .cursor-arrow { display: none; }
}
