/* ═══════════════════════════════════════════════
   THE TOUCH CLINIC — style.css v2
   ═══════════════════════════════════════════════ */

:root {
  --cream:       #f5f6f0;
  --cream-warm:  #f4ece8;
  --blush:       #d9bfb0;
  --blush-light: #f0e5df;
  --blush-mid:   #f7f2ef;
  --dark:        #2b2623;
  --brown:       #6d6058;
  --grey:        #898685;
  --white:       #ffffff;
  --green:       #5a8a6a;
  --font-d: 'Cormorant Garamond', Georgia, serif;
  --font-b: 'Montserrat', sans-serif;
  --nav-h: 78px;
  --r: 10px;
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-b); background: var(--cream); color: var(--dark); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
::selection { background: var(--blush); color: var(--dark); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--blush); border-radius: 3px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 100px 0; }

.section__tag { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--brown); margin-bottom: 1.25rem; }
.section__tag--light { color: var(--blush); }
.section__title { font-family: var(--font-d); font-size: clamp(2.4rem,5vw,4rem); font-weight: 300; line-height: 1.15; color: var(--dark); margin-bottom: 1.5rem; }
.section__title em { font-style: italic; color: var(--brown); }
.section__title--light { color: var(--cream); }
.section__title--light em { color: var(--blush); }
.section__header { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
.section__desc { color: var(--grey); font-size: .88rem; font-weight: 300; }

/* ── BUTTONS ── */
.btn { display: inline-block; font-family: var(--font-b); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: .95rem 2.4rem; border-radius: 2px; transition: all .3s var(--ease); cursor: pointer; }
.btn--primary { background: var(--dark); color: var(--cream); border: 1.5px solid var(--dark); }
.btn--primary:hover { background: var(--brown); border-color: var(--brown); opacity: 1; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--dark); border: 1.5px solid var(--dark); }
.btn--outline:hover { background: var(--dark); color: var(--cream); opacity: 1; }
.btn--sm { padding: .6rem 1.4rem; font-size: .72rem; }
.btn--full { width: 100%; text-align: center; padding: 1.1rem; font-size: .85rem; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--right { transform: translateX(36px); }
.reveal--right.visible { transform: translateX(0); }
.reveal--delay  { transition-delay: .15s; }
.reveal--delay-2 { transition-delay: .3s; }
.reveal--delay-3 { transition-delay: .45s; }

/* ════════════ NAV ════════════ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; transition: background .4s, backdrop-filter .4s, box-shadow .4s; }
.nav.scrolled { background: rgba(245,246,240,.95); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(43,38,35,.07); }
.nav__logo { display: flex; align-items: center; gap: .4rem; }
.nav__logo-img { height: 36px; width: auto; }
.nav__logo-fallback { display: flex; flex-direction: column; line-height: 1; }
.nl-the { font-family: var(--font-d); font-style: italic; font-size: .9rem; color: var(--dark); }
.nl-touch { font-family: var(--font-b); font-weight: 300; font-size: 1.1rem; letter-spacing: .25em; color: var(--dark); }
.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__link { font-size: .72rem; font-weight: 400; letter-spacing: .07em; color: var(--dark); position: relative; padding-bottom: 2px; }
.nav__link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--brown); transition: width .3s; }
.nav__link:hover { opacity: 1; }
.nav__link:hover::after, .nav__link--active::after { width: 100%; }
.nav__link--active { color: var(--brown); }
.nav__cta { font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--dark); border: 1.5px solid var(--dark); padding: .5rem 1.3rem; border-radius: 2px; transition: all .3s; }
.nav__cta:hover { background: var(--dark); color: var(--cream); opacity: 1; }
.nav__burger { display: none; flex-direction: column; gap: 5px; width: 26px; padding: 4px 0; z-index: 1001; }
.nav__burger span { display: block; height: 1.5px; background: var(--dark); transition: transform .3s, opacity .3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ════════════ HERO ════════════ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--cream); overflow: hidden; text-align: center; }
.hero__orb { position: absolute; border-radius: 50%; opacity: .45; animation: float 12s ease-in-out infinite; }
.hero__orb--1 { width: 600px; height: 600px; background: radial-gradient(circle, var(--blush-light), transparent 70%); top: -100px; right: -150px; }
.hero__orb--2 { width: 400px; height: 400px; background: radial-gradient(circle, var(--blush), transparent 70%); bottom: -50px; left: -100px; animation-delay: -4s; }
.hero__orb--3 { width: 280px; height: 280px; background: radial-gradient(circle, var(--cream-warm), transparent 70%); top: 40%; left: 15%; animation-delay: -8s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(20px,-20px) scale(1.05); } 66% { transform: translate(-15px,15px) scale(.95); } }
.hero__content { position: relative; z-index: 1; max-width: 800px; padding: 0 2rem; animation: heroIn 1.2s var(--ease-out) both; }
@keyframes heroIn { from { opacity:0; transform: translateY(28px); } to { opacity:1; transform: translateY(0); } }
.hero__logo-wrap { margin-bottom: 2.5rem; }
.hero__logo-wrap img { height: 60px; margin: 0 auto; }
.hero__logo-text { display: flex; flex-direction: column; align-items: center; }
.ht-the { font-family: var(--font-d); font-style: italic; font-weight: 300; font-size: 1.4rem; color: var(--dark); line-height: 1; }
.ht-touch { font-family: var(--font-b); font-weight: 300; font-size: 3rem; letter-spacing: .4em; color: var(--dark); line-height: 1; }
.ht-sub { font-family: var(--font-b); font-size: .68rem; letter-spacing: .3em; color: var(--brown); margin-top: .5rem; }
.hero__title { font-family: var(--font-d); font-size: clamp(2.8rem,6vw,5rem); font-weight: 300; line-height: 1.1; color: var(--dark); margin-bottom: 1.25rem; }
.hero__title em { font-style: italic; color: var(--brown); }
.hero__desc { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-bottom: 2rem; }
.hero__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.75rem; }
.hero__badges span { font-size: .68rem; letter-spacing: .1em; color: var(--brown); border: 1px solid var(--blush); padding: .35rem .9rem; border-radius: 100px; background: rgba(255,255,255,.5); }
.hero__scroll { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); animation: heroIn 1.5s var(--ease-out) .5s both; }
.hero__scroll svg { animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ════════════ ABOUT ════════════ */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about__text p { color: var(--brown); font-size: .93rem; font-weight: 300; line-height: 1.85; margin-bottom: 1.2rem; }
.about__stats { display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--blush); }
.stat { display: flex; flex-direction: column; gap: .25rem; }
.stat__num { font-family: var(--font-d); font-size: 2.5rem; font-weight: 300; color: var(--dark); line-height: 1; }
.stat__plus { font-family: var(--font-d); font-size: 2rem; color: var(--brown); }
.stat__text { font-family: var(--font-d); font-size: 2.5rem; font-weight: 300; color: var(--dark); line-height: 1; }
.stat__label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.about__media { position: relative; }
.about__img-placeholder { aspect-ratio: 4/5; background: var(--blush-mid); border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--brown); border: 2px dashed var(--blush); }
.about__img-placeholder p { font-weight: 500; font-size: .85rem; }
.about__img-placeholder small { font-family: monospace; font-size: .68rem; color: var(--grey); }
.about__img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); }
.about__img-accent { position: absolute; bottom: -18px; right: -18px; width: 55%; height: 55%; border: 2px solid var(--blush); border-radius: var(--r); z-index: -1; }

/* ════════════ TEAM ════════════ */
.team { background: var(--blush-mid); }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.team__card { background: var(--white); border-radius: var(--r); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.team__card:hover { transform: translateY(-5px); box-shadow: 0 18px 50px rgba(43,38,35,.1); }
.team__photo-wrap { position: relative; }
.team__photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.team__photo-ph { aspect-ratio: 3/4; background: var(--blush-light); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; }
.team__photo-ph span { font-family: monospace; font-size: .62rem; color: var(--grey); padding: 0 1rem; text-align: center; }
.team__badge { position: absolute; top: .85rem; left: .85rem; background: var(--dark); color: var(--cream); font-size: .6rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 100px; }
.team__info { padding: 1.5rem; }
.team__name { font-family: var(--font-d); font-size: 1.35rem; font-weight: 400; color: var(--dark); margin-bottom: .2rem; }
.team__spec { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brown); margin-bottom: .85rem; }
.team__creds { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.25rem; }
.team__creds li { font-size: .78rem; color: var(--grey); font-weight: 300; padding-left: .9rem; position: relative; line-height: 1.5; }
.team__creds li::before { content: '—'; position: absolute; left: 0; color: var(--blush); }
.team__actions { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.team__insta { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--brown); font-weight: 500; }

/* ════════════ WORKS ════════════ */
.works__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.works__item {}
.works__ba { position: relative; aspect-ratio: 4/5; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: var(--r); overflow: hidden; }
.works__side { display: flex; align-items: center; justify-content: center; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.works__side--before { background: var(--blush-light); }
.works__side--after { background: var(--blush-mid); }
/* For real images: */
.works__side img { width: 100%; height: 100%; object-fit: cover; }
.works__ba-label { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: .55rem .75rem; background: rgba(43,38,35,.55); }
.works__ba-label span { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }
.works__proc { font-size: .78rem; letter-spacing: .07em; color: var(--brown); font-weight: 400; margin-top: .7rem; text-align: center; }

/* ════════════ GALLERY ════════════ */
.gallery { background: var(--blush-mid); padding-bottom: 0; }
.gallery__grid { display: grid; grid-template-columns: repeat(4,1fr); grid-template-rows: 260px 260px; gap: 4px; margin-top: 3rem; }
.gallery__item { overflow: hidden; background: var(--blush-light); cursor: pointer; }
.gallery__item img, .gallery__item video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img, .gallery__item:hover video { transform: scale(1.04); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; color: var(--brown); font-size: .75rem; border: 2px dashed var(--blush); }
.gallery__ph small { font-family: monospace; font-size: .62rem; color: var(--grey); }
.gallery__ph--video { background: var(--cream-warm); gap: .65rem; }
.gallery__ph--video svg { color: var(--brown); }

/* ════════════ PRICE ════════════ */
.price__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--blush); }
.price__tab { font-family: var(--font-b); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); padding: .6rem 1.3rem; border: 1.5px solid transparent; border-radius: 2px; transition: all .3s; }
.price__tab:hover { color: var(--dark); border-color: var(--blush); }
.price__tab.active { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.price__panel { display: none; }
.price__panel.active { display: block; animation: panelIn .35s var(--ease-out) both; }
@keyframes panelIn { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform:none; } }
.price__dual-note { display: inline-block; font-size: .75rem; color: var(--grey); font-style: italic; margin-bottom: 2.5rem; padding: .6rem 1rem; background: var(--blush-mid); border-radius: 4px; border-left: 3px solid var(--blush); line-height: 1.6; }
.price__cat { margin-bottom: 2.75rem; }
.price__cat-title { font-family: var(--font-d); font-size: 1.55rem; font-weight: 400; color: var(--dark); margin-bottom: .7rem; }
.price__note { font-size: .78rem; color: var(--grey); font-style: italic; margin-bottom: .9rem; font-weight: 300; }
.price__subcat { margin: 1.25rem 0 .75rem; }
.price__subcat h4 { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); margin-bottom: .7rem; padding-bottom: .35rem; border-bottom: 1px solid var(--blush); }
.price__list { border-top: 1px solid var(--blush-mid); }
.price__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .82rem 0; border-bottom: 1px solid var(--blush-mid); transition: background .18s, padding .18s; position: relative; }
.price__row:hover { background: var(--blush-mid); padding-left: .75rem; padding-right: .75rem; margin: 0 -.75rem; border-radius: 6px; }
.price__row > span:first-child { font-size: .86rem; color: var(--dark); font-weight: 300; flex: 1; line-height: 1.5; }
.price__row > span:first-child em { display: block; font-size: .76rem; color: var(--grey); font-style: italic; font-weight: 300; margin-top: .1rem; }
.price__val { font-family: var(--font-d); font-size: 1rem; font-weight: 400; color: var(--dark); white-space: nowrap; flex-shrink: 0; transition: margin-right .2s; }
.price__row--accent { background: var(--blush-mid); }
.price__row--accent .price__val { color: var(--brown); }

/* Cart add button (injected by JS) */
.btn-add { width: 28px; height: 28px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--blush); color: var(--brown); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; margin-left: .5rem; transition: all .2s; line-height: 1; }
.btn-add:hover { background: var(--dark); border-color: var(--dark); color: var(--cream); }
.btn-add.in-cart { background: var(--dark); border-color: var(--dark); color: var(--cream); }
.btn-add.in-cart::after { content: '✓'; font-size: .7rem; }
.btn-add.in-cart .btn-add-icon { display: none; }

/* ════════════ REVIEWS ════════════ */
.reviews { background: var(--blush-mid); }
.reviews__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.review__card { background: var(--white); padding: 1.65rem; border-radius: var(--r); transition: transform .3s, box-shadow .3s; }
.review__card:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(43,38,35,.08); }
.review__top { display: flex; align-items: center; gap: .65rem; margin-bottom: .85rem; }
.review__ava { width: 38px; height: 38px; background: var(--blush); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-size: 1.1rem; color: var(--dark); flex-shrink: 0; }
.review__top strong { display: block; font-size: .85rem; font-weight: 500; color: var(--dark); }
.review__stars { color: #c8a882; font-size: .78rem; letter-spacing: .05em; }
.review__card p { font-size: .84rem; color: var(--brown); font-weight: 300; line-height: 1.7; font-style: italic; }
.reviews__cta { text-align: center; }

/* ════════════ CONTACTS ════════════ */
.contacts__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: start; }
.contacts__list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.65rem; }
.contacts__list li { display: flex; gap: .9rem; align-items: flex-start; }
.contacts__list svg { flex-shrink: 0; margin-top: 3px; color: var(--brown); }
.contacts__list strong { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dark); margin-bottom: .25rem; }
.contacts__list span, .contacts__list p { font-size: .84rem; color: var(--grey); font-weight: 300; display: block; }
.contacts__list a { font-size: .84rem; color: var(--brown); font-weight: 400; display: block; }
.contacts__map iframe { border-radius: var(--r); width: 100%; box-shadow: 0 10px 35px rgba(43,38,35,.07); }

/* ════════════ FOOTER ════════════ */
.footer { background: var(--dark); color: var(--cream); padding: 5rem 0 2rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 4rem; padding-bottom: 4rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer__logo-text { display: flex; flex-direction: column; margin-bottom: 1rem; }
.footer__logo-img { display: block; width: 150px; height: auto; margin-bottom: 1rem; }

/* ════════════ ЮРИДИЧНІ СТОРІНКИ ════════════ */
.container--narrow { max-width: 780px; }
.legal { padding-top: 3rem; }
.legal h2 {
  font-family: var(--font-d); font-size: 1.6rem; font-weight: 400;
  color: var(--dark); margin: 2.75rem 0 1rem;
}
.legal h2:first-child { margin-top: 0; }
.legal p { font-size: .92rem; font-weight: 300; color: var(--brown); margin-bottom: 1rem; }
.legal strong { font-weight: 500; color: var(--dark); }
.legal ul { margin: 0 0 1.25rem; padding-left: 0; }
.legal li {
  position: relative; padding-left: 1.4rem; margin-bottom: .55rem;
  font-size: .92rem; font-weight: 300; color: var(--brown);
}
.legal li::before {
  content: ''; position: absolute; left: 0; top: .65em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--blush);
}
.legal a { color: var(--dark); border-bottom: 1px solid var(--blush); }
.legal a:hover { border-bottom-color: var(--brown); opacity: 1; }
.legal__contacts li::before { display: none; }
.legal__contacts li { padding-left: 0; }
.ft-the { font-family: var(--font-d); font-style: italic; font-size: 1.1rem; color: var(--blush); line-height: 1; }
.ft-touch { font-family: var(--font-b); font-weight: 300; font-size: 1.8rem; letter-spacing: .35em; color: var(--cream); line-height: 1; }
.footer__brand p { font-size: .78rem; color: var(--grey); font-weight: 300; line-height: 1.65; margin-top: .6rem; }
.footer__address { margin-top: .3rem; }
.footer__nav h4, .footer__contact h4 { font-size: .63rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--blush); margin-bottom: 1.4rem; }
.footer__nav ul { display: flex; flex-direction: column; gap: .65rem; }
.footer__nav a { font-size: .8rem; color: var(--grey); font-weight: 300; }
.footer__nav a:hover { color: var(--cream); opacity: 1; }
.footer__clink { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--grey); font-weight: 300; margin-bottom: .6rem; }
.footer__clink:hover { color: var(--cream); opacity: 1; }
.footer__bottom { padding-top: 2rem; text-align: center; }
.footer__bottom p { font-size: .7rem; color: rgba(137,134,133,.45); letter-spacing: .05em; }

/* ════════════ CART FLOAT ════════════ */
.cart-float { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(120%); z-index: 800; transition: transform .4s var(--ease-out); pointer-events: none; }
.cart-float.visible { transform: translateX(-50%) translateY(0); pointer-events: all; }
.cart-float__btn { display: flex; align-items: center; gap: .75rem; background: var(--dark); color: var(--cream); padding: .85rem 2rem; border-radius: 100px; font-size: .8rem; font-weight: 400; box-shadow: 0 8px 30px rgba(43,38,35,.35); transition: background .2s, transform .2s; white-space: nowrap; }
.cart-float__btn:hover { background: var(--brown); transform: scale(1.03); }
.cart-float__btn strong { font-weight: 600; font-size: .95rem; }
.cart-float__arrow { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }

/* ════════════ MODAL ════════════ */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal.open { opacity: 1; pointer-events: all; }
.modal__overlay { position: absolute; inset: 0; background: rgba(43,38,35,.6); backdrop-filter: blur(4px); }
.modal__box { position: relative; background: var(--white); border-radius: var(--r); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; padding: 3rem 3rem 2.5rem; margin: 1rem; box-shadow: 0 30px 80px rgba(43,38,35,.25); transform: translateY(20px) scale(.98); transition: transform .3s; }
.modal.open .modal__box { transform: translateY(0) scale(1); }
.modal__close { position: absolute; top: 1.25rem; right: 1.25rem; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--grey); transition: background .2s, color .2s; }
.modal__close:hover { background: var(--blush-mid); color: var(--dark); }
.modal__head { margin-bottom: 2rem; }
.modal__title { font-family: var(--font-d); font-size: 2rem; font-weight: 300; color: var(--dark); margin-bottom: .4rem; }
.modal__subtitle { font-size: .82rem; color: var(--grey); font-weight: 300; line-height: 1.6; }

/* Cart summary in modal */
.modal__cart { background: var(--blush-mid); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.modal__cart h4 { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); margin-bottom: .75rem; }
.modal__cart ul { display: flex; flex-direction: column; gap: .4rem; }
.modal__cart li { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: var(--dark); font-weight: 300; }
.modal__cart-item-remove { background: none; border: none; color: var(--grey); font-size: .85rem; cursor: pointer; padding: 0 .25rem; transition: color .2s; }
.modal__cart-item-remove:hover { color: var(--dark); }
.modal__cart-clear { margin-top: .75rem; font-size: .7rem; color: var(--grey); background: none; border: none; cursor: pointer; text-decoration: underline; }
.modal__cart-clear:hover { color: var(--dark); }

/* Form */
.form__group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.form__group label { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dark); }
.form__group input, .form__group select, .form__group textarea { font-family: var(--font-b); font-size: .88rem; font-weight: 300; color: var(--dark); background: var(--cream); border: 1.5px solid var(--blush); border-radius: 6px; padding: .75rem 1rem; transition: border-color .2s; outline: none; }
.form__group input::placeholder, .form__group textarea::placeholder { color: var(--grey); }
.form__group input:focus, .form__group select:focus, .form__group textarea:focus { border-color: var(--brown); }
.form__group input.error, .form__group select.error { border-color: #c0392b; }
.form__error { font-size: .72rem; color: #c0392b; min-height: 1rem; }
.form__group textarea { resize: vertical; min-height: 90px; }
.form__privacy { font-size: .7rem; color: var(--grey); text-align: center; margin-top: .85rem; line-height: 1.5; }

/* Success */
.modal__success { text-align: center; padding: 2rem 1rem; }
.success__icon { width: 72px; height: 72px; background: var(--blush-mid); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: var(--brown); }
.modal__success h3 { font-family: var(--font-d); font-size: 2rem; font-weight: 300; color: var(--dark); margin-bottom: .75rem; }
.modal__success p { font-size: .88rem; color: var(--brown); font-weight: 300; line-height: 1.75; margin-bottom: .75rem; }
.success__insta a { color: var(--brown); font-weight: 500; }
.modal__success .btn { margin-top: 1.5rem; }

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 1100px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { gap: 4rem; }
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__links.open { display: flex; flex-direction: column; position: fixed; inset: 0; background: var(--cream); justify-content: center; align-items: center; gap: 2.5rem; z-index: 999; }
  .nav__links.open .nav__link { font-size: 1rem; }
  .nav__links.open .nav__cta { font-size: .85rem; padding: .7rem 1.8rem; }
  .nav__burger { display: flex; }
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__img-accent { display: none; }
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2,1fr); grid-template-rows: auto; }
  .gallery__item--tall { grid-row: span 1; }
  .gallery__item--wide { grid-column: span 2; }
  .contacts__grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 720px) {
  .team__grid { grid-template-columns: 1fr 1fr; }
  .reviews__grid { grid-template-columns: 1fr 1fr; }
  .modal__box { padding: 2rem 1.5rem; }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .container { padding: 0 1.25rem; }
  .hero__title { font-size: 2.4rem; }
  .hero__badges { flex-direction: column; align-items: center; }
  .about__stats { flex-direction: column; gap: 1.25rem; }
  .team__grid { grid-template-columns: 1fr; }
  .works__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .price__tabs { gap: .35rem; }
  .price__tab { font-size: .65rem; padding: .5rem .85rem; }
  .reviews__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
  .cart-float { bottom: 1rem; left: 1rem; right: 1rem; transform: translateY(120%); }
  .cart-float.visible { transform: translateY(0); left: 1rem; }
  .cart-float__btn { justify-content: center; width: 100%; }
  .modal__box { margin: 0; border-radius: var(--r) var(--r) 0 0; align-self: flex-end; max-height: 92vh; }
  .modal { align-items: flex-end; }
}

/* ════════════ TEAM BIO TEXT ════════════ */
.team__bio {
  font-size: .8rem;
  color: var(--brown);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: .75rem;
  font-style: italic;
}

/* ════════════ WORKS VERTICAL ════════════ */
.works__ba--vertical {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Скидаємо aspect-ratio: 4/5 від .works__ba — інакше контейнер нижчий
     за два фото 4:3 і «Після» обрізається знизу. Висоту задають самі половини. */
  aspect-ratio: auto;
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
}
.works__ba--vertical .works__side {
  width: 100%;
  aspect-ratio: 4/3;
  flex: 0 0 auto;          /* обидві половини однакові й не стискаються */
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: .6rem .75rem;
}
.works__ba--vertical .works__side img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.works__label {
  position: relative;
  z-index: 1;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dark);
  background: rgba(245,246,240,.88);
  padding: .25rem .65rem;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.works__divider {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  font-size: .85rem;
  color: var(--brown);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.works__divider::before,
.works__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--blush);
}
.works__divider span { padding: 0 .75rem; color: var(--brown); font-size: .8rem; }

/* ════════════ PHONE WRAP ════════════ */
.phone-wrap {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--blush);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .2s;
}
.phone-wrap:focus-within { border-color: var(--brown); }
.phone-country {
  font-family: var(--font-b);
  font-size: .82rem;
  font-weight: 400;
  color: var(--dark);
  background: var(--blush-mid);
  border: none;
  border-right: 1.5px solid var(--blush);
  padding: .75rem .65rem;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236d6058' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .4rem center;
}
.phone-wrap input[type="tel"] {
  border: none;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}
.phone-wrap input[type="tel"]:focus { border-color: transparent; }

/* ═══════════════════════════════════════════════
   ПІДСТОРІНКИ (works.html, about.html)
   ═══════════════════════════════════════════════ */
.subpage { padding-top: var(--nav-h); }

.subhero {
  padding: 3.5rem 0 2.5rem;
  background: var(--blush-mid);
  text-align: center;
}
.subhero .section__title { margin-bottom: 1rem; }
.subhero .section__desc { max-width: 560px; margin: 0 auto; }
.subhero__back {
  display: inline-block; font-size: .72rem; letter-spacing: .1em;
  color: var(--brown); margin-bottom: 1.5rem;
}

/* ─────────── ФІЛЬТРИ ─────────── */
.filters {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.5rem; background: var(--blush-mid);
  border-radius: var(--r); margin-bottom: 1.5rem;
}
.filters__row { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.filters__label {
  font-size: .65rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brown);
  padding-top: .45rem; min-width: 90px; flex-shrink: 0;
}
.filters__chips { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1; }
.chip {
  font-family: var(--font-b); font-size: .72rem; font-weight: 400;
  color: var(--brown); background: var(--white);
  border: 1.5px solid transparent; border-radius: 100px;
  padding: .35rem 1rem; transition: all .2s; cursor: pointer;
}
.chip:hover { border-color: var(--blush); }
.chip.active { background: var(--dark); color: var(--cream); border-color: var(--dark); }

.works__count { font-size: .75rem; color: var(--grey); margin-bottom: 1.5rem; }
.works__loading { grid-column: 1/-1; text-align: center; padding: 3rem 0; color: var(--grey); font-size: .85rem; }
.works__empty { text-align: center; padding: 3rem 0; }
.works__empty p { color: var(--grey); font-size: .88rem; margin-bottom: 1rem; }
.works__doc { font-size: .72rem; color: var(--grey); text-align: center; margin-top: .15rem; }
.works__item { cursor: pointer; }
.works__item:hover .works__ba { box-shadow: 0 10px 30px rgba(43,38,35,.12); }
.works__ba { transition: box-shadow .3s; }

.works__cta {
  text-align: center; margin-top: 5rem; padding: 3rem 2rem;
  background: var(--blush-mid); border-radius: var(--r);
}
.works__cta h3 {
  font-family: var(--font-d); font-size: 1.8rem; font-weight: 300;
  color: var(--dark); margin-bottom: .5rem;
}
.works__cta p { font-size: .85rem; color: var(--brown); margin-bottom: 1.5rem; font-weight: 300; }

/* ─────────── ЛАЙТБОКС ─────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(43,38,35,.92); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
  padding: 2rem;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox__inner { max-width: 800px; width: 100%; }
.lightbox__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lightbox__pair figure { margin: 0; text-align: center; }
.lightbox__pair img {
  /* Фіксована висота, а не max-height: інакше фото з різними пропорціями
     виходять різного розміру. object-fit: contain нічого не ріже. */
  width: 100%; height: 62vh; object-fit: contain;
  border-radius: 8px; background: var(--dark);
}
.lightbox__pair figcaption {
  font-size: .65rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blush); margin-top: .6rem;
}
.lightbox__meta { text-align: center; margin-top: 1.5rem; }
.lightbox__meta strong {
  display: block; font-family: var(--font-d); font-size: 1.4rem;
  font-weight: 400; color: var(--cream);
}
.lightbox__meta span { font-size: .78rem; color: var(--blush); }
.lightbox__meta p { font-size: .8rem; color: var(--grey); margin-top: .5rem; font-style: italic; }
.lightbox__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.2); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--cream);
  font-size: 1.8rem; line-height: 1; transition: background .2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

/* ─────────── СПІЛЬНЕ ФОТО КОМАНДИ ─────────── */
.team-photo { padding: 3rem 0 0; }
.team-photo__wrap { margin: 0; }
.team-photo__wrap img {
  width: 100%; max-height: 560px; object-fit: cover;
  border-radius: var(--r);
}
.team-photo__wrap figcaption {
  text-align: center; font-size: .72rem; letter-spacing: .1em;
  color: var(--grey); margin-top: .75rem;
}

/* ─────────── АДМІНІСТРАТОРИ ─────────── */
.staff { background: var(--blush-mid); }
.staff__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.staff__card {
  background: var(--white); border-radius: var(--r);
  padding: 1.5rem; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.staff__card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(43,38,35,.08); }
.staff__photo-wrap {
  width: 120px; height: 120px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 1rem;
  background: var(--blush-light);
  display: flex; align-items: center; justify-content: center;
}
.staff__photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.staff__photo-ph { font-family: var(--font-d); font-size: 2.5rem; color: var(--brown); }
.staff__name {
  font-family: var(--font-d); font-size: 1.2rem; font-weight: 400;
  color: var(--dark); margin-bottom: .2rem;
}
.staff__role {
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brown); margin-bottom: .75rem;
}
.staff__bio { font-size: .78rem; color: var(--grey); font-weight: 300; line-height: 1.6; }

/* ─────────── КНОПКА «ВСІ РОБОТИ» ─────────── */
.works__more { text-align: center; margin-top: 3rem; }

@media (max-width: 960px) {
  .staff__grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox { padding: 1rem; }
  .lightbox__nav { width: 38px; height: 38px; }
  .lightbox__nav--prev { left: .5rem; }
  .lightbox__nav--next { right: .5rem; }
}
@media (max-width: 640px) {
  .staff__grid { grid-template-columns: 1fr; }
  .filters__label { min-width: 100%; padding-top: 0; }
  .lightbox__pair { grid-template-columns: 1fr; gap: .5rem; }
  .lightbox__pair img { height: 34vh; }
}
