/* ═══ Studio Elegance — журнальний мінімалізм: повітря, serif, квадратна сітка ═══ */
:root {
  --ink: #111111; --text: #4a4a4a; --dim: #8f8f8f;
  --bg: #ffffff; --soft: #f4f2f0; --line: #e8e4e0;
  --accent: #b8896a;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.ic { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.06; letter-spacing: .005em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 3rem); }
.mini { font-size: .64rem; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; display: flex; align-items: center; gap: 12px; }
.sec-n { color: var(--dim); letter-spacing: .18em; }
.sec-note { font-size: .88rem; color: var(--dim); max-width: 520px; margin-top: 14px; }

/* ── HEADER (прозорий, стає щільним при скролі) ── */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 64px); transition: background .4s, padding .4s; }
.header.solid { background: rgba(255,255,255,.96); backdrop-filter: blur(14px); padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.logo { font-family: var(--serif); font-size: 1.2rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.nav { display: flex; gap: 30px; }
.nav a { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text); transition: color .25s; padding: 6px 0; }
.nav a:hover { color: var(--accent); }
.head-r { display: flex; align-items: center; gap: 18px; }
.lang { appearance: none; -webkit-appearance: none; background: none; border: 0; font-size: .7rem; letter-spacing: .16em; color: var(--text); cursor: pointer; text-transform: uppercase; min-height: 44px; padding: 0 4px; }
.btn-ink { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; padding: 15px 26px; min-height: 46px; transition: background .3s; border: 0; cursor: pointer; font-family: var(--sans); }
.btn-ink:hover { background: var(--accent); }
.btn-full { width: 100%; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 1px; background: var(--ink); margin: 7px 0; transition: .3s; }

/* ── HERO — split: вертикальне фото + текст ── */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(100vh, 720px); }
.hero-img { position: relative; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-txt { display: flex; flex-direction: column; justify-content: center; padding: clamp(70px, 9vw, 140px) clamp(28px, 6vw, 96px); background: var(--soft); }
.hero-txt h1 { margin-bottom: 26px; }
.hero-txt > p { font-size: 1rem; color: var(--dim); max-width: 400px; margin-bottom: 34px; }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 8px; width: fit-content; min-height: 44px; transition: all .3s; }
.link-arrow:hover { gap: 20px; color: var(--accent); border-color: var(--accent); }
.hero-years { display: flex; align-items: baseline; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 320px; }
.hero-years strong { font-family: var(--serif); font-size: 2.3rem; color: var(--ink); line-height: 1; }
.hero-years span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

/* ── MARQUEE — підпис-стрічка під hero ── */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 15px 0; }
.marquee-in { display: flex; white-space: nowrap; animation: slide 34s linear infinite; }
.marquee-in span { font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; padding-right: 42px; color: #d8d3ce; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── СЕКЦІЇ ── */
.sec { padding: clamp(72px, 9vw, 140px) clamp(20px, 5vw, 64px); }
.sec-soft { background: var(--soft); }
.sec-dark { background: var(--ink); }
.sec-dark h2 { color: #fff; }
.sec-dark .mini { color: var(--accent); }
.sec-dark .sec-n { color: #6b6b6b; }
.sec-head { max-width: 1160px; margin: 0 auto 52px; }

/* ── ГАЛЕРЕЯ РОБІТ — квадратна Instagram-сітка без проміжків ── */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; max-width: 1160px; margin: 0 auto; }
.wk { padding: 0; border: 0; background: var(--soft); aspect-ratio: 1; overflow: hidden; cursor: pointer; display: block; position: relative; }
.wk img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .4s; }
.wk:hover img { transform: scale(1.06); opacity: .92; }
.work-note { text-align: center; margin-top: 44px; }
.ig-link { display: inline-flex; align-items: center; gap: 10px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 7px; min-height: 44px; }
.ig-link:hover { color: var(--accent); border-color: var(--accent); }

/* ── ПРАЙС — групи за категоріями, рядки без рамок ── */
.price-list { max-width: 980px; margin: 0 auto; }
.p-group { margin-bottom: 46px; }
.p-group:last-child { margin-bottom: 0; }
.p-cat { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--ink); letter-spacing: .02em;
  padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--ink); }
.p-row { display: flex; align-items: baseline; gap: 18px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.p-name { font-family: var(--serif); font-size: 1.16rem; color: var(--ink); flex: 1; }
.p-desc { font-size: .84rem; color: var(--dim); flex: 1.25; }
.p-price { font-family: var(--serif); font-size: 1.14rem; color: var(--ink); white-space: nowrap; }

/* ── КОМАНДА ── */
.team-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; max-width: 1160px; margin: 0 auto; }
.tm-img { aspect-ratio: 3/4; overflow: hidden; background: #1e1e1e; margin-bottom: 20px; }
.tm-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%); transition: transform .7s, filter .5s; }
.tm:hover .tm-img img { transform: scale(1.05); filter: grayscale(0); }
.tm h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: #fff; margin-bottom: 5px; }
.tm .r { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.tm .e { font-size: .84rem; color: #8a8a8a; }

/* ── ЦИТАТИ ── */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; max-width: 1160px; margin: 0 auto; }
.q { text-align: center; padding-top: 28px; border-top: 1px solid var(--line); }
.q p { font-family: var(--serif); font-size: 1.22rem; font-style: italic; color: var(--ink); line-height: 1.5; margin-bottom: 18px; }
.q .a { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

/* ── ЗАПИС ── */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); max-width: 1160px; margin: 0 auto; align-items: start; }
.book-txt h2 { margin-bottom: 16px; }
.book-txt > p { color: var(--dim); margin-bottom: 32px; max-width: 380px; }
.ct { display: grid; gap: 15px; }
.ct a, .ct > span { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--text); min-height: 32px; }
.ct a:hover { color: var(--accent); }
.form { display: grid; gap: 20px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 8px; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.form input, .form select { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 16px; font-family: var(--sans); color: var(--ink); min-height: 44px; transition: border-color .25s; border-radius: 0; }
.form input:focus, .form select:focus { outline: none; border-bottom-color: var(--ink); }
.chk { display: flex !important; flex-direction: row; align-items: flex-start; gap: 10px; font-size: .72rem !important; letter-spacing: normal !important; text-transform: none !important; color: var(--dim) !important; }
.chk input { width: auto; min-height: 0; accent-color: var(--ink); }
.fnote { font-size: .82rem; text-align: center; color: var(--accent); min-height: 18px; }
.mini-map { position: relative; margin-top: 26px; border: 1px solid var(--line); overflow: hidden; }
.mini-map iframe { width: 100%; height: 210px; border: 0; display: block; filter: grayscale(35%); }
.map-link { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(17,17,17,.9); color: #fff; padding: 13px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; min-height: 44px; }
.map-link:hover { background: var(--accent); }

/* ── FOOTER ── */
.footer { background: var(--ink); color: #8a8a8a; padding: 70px clamp(20px, 5vw, 64px) 34px; text-align: center; }
.foot-logo { font-family: var(--serif); font-size: 1.4rem; letter-spacing: .22em; text-transform: uppercase; color: #fff; margin-bottom: 26px; }
.foot-links { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.foot-links a { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: #8a8a8a; }
.foot-links a:hover { color: #fff; }
.foot-copy { font-size: .7rem; color: #5c5c5c; }

/* ── LIGHTBOX ── */
.lightbox { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; background: rgba(17,17,17,.97); padding: 24px; }
.lightbox[hidden] { display: none; }
.lb-fig { max-width: min(1100px, 92vw); }
.lb-fig img { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; }
.lb-fig figcaption { display: flex; justify-content: center; gap: 16px; color: #e6e2de; font-size: .78rem; letter-spacing: .1em; margin-top: 16px; }
.lb-fig figcaption em { font-style: normal; color: #8a8a8a; }
.lb-btn { position: absolute; background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; width: 48px; height: 48px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .25s; }
.lb-btn:hover { background: var(--accent); border-color: var(--accent); }
.lb-x { top: 24px; right: 24px; }
.lb-p { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-p .ic { transform: rotate(180deg); }
.lb-n { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-btn .ic { width: 20px; height: 20px; }

/* ── АДАПТИВНІСТЬ ── */
@media (max-width: 980px) {
  .header { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); padding-top: 14px; padding-bottom: 14px; }
  .nav { display: none; position: fixed; inset: 0; background: rgba(255,255,255,.99); flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
  .nav.open { display: flex; }
  .nav a { font-size: .95rem; letter-spacing: .24em; }
  .burger { display: block; z-index: 200; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-img { aspect-ratio: 4/3; }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .team-row { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; gap: 32px; }
  .book { grid-template-columns: 1fr; }
  .p-desc { display: none; }
}
@media (max-width: 600px) {
  .header { padding: 18px; }
  .logo { font-size: .96rem; letter-spacing: .16em; }
  .btn-ink:not(.btn-full) { display: none; }
  .hero-txt { padding: 52px 20px; }
  .hero-years { margin-top: 32px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .team-row { grid-template-columns: 1fr; }
  .sec { padding: 62px 18px; }
  .sec-head { margin-bottom: 36px; }
  .p-row { flex-wrap: wrap; gap: 6px 14px; }
  .p-name { flex: 1 1 auto; }
  .p-price { flex: 0 0 auto; }
  .f2 { grid-template-columns: 1fr; }
  .lb-p, .lb-n { width: 42px; height: 42px; }
  .lb-p { left: 8px; } .lb-n { right: 8px; }
}

/* ── ДОСТУПНІСТЬ ── */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--ink); color: #fff; padding: 12px 20px; font-size: .85rem; }
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } .marquee-in { animation: none; } }
@media (hover: none) { .wk:hover img, .tm:hover .tm-img img { transform: none; } }
