/* ============================================================
   DR.IGNATENKO — DESIGN SYSTEM
   ============================================================ */

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

body {
  overflow-x: hidden;
}

:root {
  --bg:           #FDFAF6;
  --bg-soft:      #F5EDE0;
  --bg-card:      #EEE4D8;
  --accent:       #B8956A;
  --accent-hover: #9A7A52;
  --text:         #2A2520;
  --text-muted:   #8C7E70;
  --border:       #E5DDD3;
  --white:        #FFFFFF;
  --dark:         #1E1A17;

  --shadow-sm: 0 1px 4px rgba(42,37,32,0.06);
  --shadow:    0 6px 28px rgba(42,37,32,0.09);

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

  --radius:    14px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 100px 0; }

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 18px;
}

.section-title--light { color: var(--white); }

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .03em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,149,106,.35);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn--ghost:hover { color: var(--text); }

.btn--light {
  background: var(--white);
  color: var(--text);
  border-color: var(--white);
}
.btn--light:hover {
  background: var(--bg);
  color: var(--accent);
}

.btn--full { width: 100%; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,250,246,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  isolation: isolate;
  transition: box-shadow .3s;
}
.nav--scrolled { box-shadow: var(--shadow-sm); }

.nav__inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 40px;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  flex-shrink: 0;
  letter-spacing: .01em;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 36px;
  margin-left: auto;
}
.nav__links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: .02em;
  transition: color .2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--text); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all .3s;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero__pretitle {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -.01em;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 380px;
  margin-bottom: 44px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 600px;
  background: linear-gradient(160deg, var(--bg-soft) 0%, var(--bg-card) 100%);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: .06em;
  border: 1px dashed var(--border);
  position: relative;
  overflow: hidden;
}
.hero__photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% top;
  border-radius: inherit;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about { background: var(--bg-soft); }

.about__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: start;
}

.photo-placeholder--round {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
  overflow: hidden;
}

.photo-placeholder--round img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.about__content p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 16px;
  max-width: 540px;
}

.about__stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat span {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .02em;
}

/* ============================================================
   SERVICES
   ============================================================ */

.services__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  flex: 0 1 calc(33.333% - 16px);
  min-width: 260px;
  transition: all .3s ease;
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card--bg {
  background-image: linear-gradient(rgba(253,250,246,.82), rgba(253,250,246,.82)), var(--card-bg);
  background-size: cover;
  background-position: center;
  border-color: var(--border);
}
.service-card--bg:hover {
  background-image: linear-gradient(rgba(253,250,246,.72), rgba(253,250,246,.72)), var(--card-bg);
}

.service-card__icon {
  font-size: 26px;
  margin-bottom: 18px;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   BIOPATID PROMO (блок на головній)
   ============================================================ */

.biopatid-promo {
  background: var(--dark);
  padding: 100px 0;
  overflow: hidden;
}

.biopatid-promo__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

.biopatid-promo .section-label { color: var(--accent); }
.biopatid-promo .section-title { color: var(--white); }

.biopatid-promo p {
  color: rgba(255,255,255,.6);
  font-size: 16px;
  max-width: 500px;
  margin-bottom: 36px;
}

.biopatid-circle {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(184,149,106,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--accent);
  flex-shrink: 0;
  letter-spacing: .04em;
}

.biopatid-promo__img {
  width: 320px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,.4));
}

/* ============================================================
   BOOKING FORM
   ============================================================ */

.booking-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.form-group input,
.form-group select {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder { color: var(--border); }
.form-group input:focus,
.form-group select:focus { border-color: var(--accent); }

.form-select-wrapper {
  position: relative;
}
.form-select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 13px;
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 18px;
}
.form-note a { color: var(--accent); }

.form-success {
  display: none;
  max-width: 560px;
  margin: 0 auto 32px;
  padding: 24px 32px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text);
  text-align: center;
}
.form-success[style*="display"] { display: block; }

.form-error-msg {
  max-width: 560px;
  margin: 0 auto 16px;
  font-size: 13px;
  color: #c0392b;
  text-align: center;
}

.form-field-error {
  font-size: 12px;
  color: #c0392b;
  margin-top: 4px;
  display: block;
}

/* ============================================================
   CONTACTS
   ============================================================ */

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.contact-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}

.contact-card__icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
}

.contact-card a {
  color: var(--text-muted);
  font-size: 14px;
  display: block;
  transition: color .2s;
}
.contact-card a:hover { color: var(--accent); }
.contact-card small { font-size: 12px; color: var(--text-muted); opacity: .7; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--dark);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--white);
}

.footer__copy {
  font-size: 13px;
  color: rgba(255,255,255,.35);
}

.footer__social {
  display: flex;
  gap: 20px;
}
.footer__social a {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  letter-spacing: .08em;
  transition: color .2s;
}
.footer__social a:hover { color: var(--accent); }

/* ============================================================
   BIOPATID PAGE
   ============================================================ */

.bp-hero {
  padding: 120px 0 100px;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(20,14,30,.52) 0%, rgba(20,14,30,.38) 100%),
    url('Gemini_Generated_Image_ajhk4eajhk4eajhk.png') center/cover no-repeat;
  position: relative;
}

.bp-hero .section-label { color: rgba(255,255,255,.65); }

.bp-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 300;
  color: var(--white);
  margin: 12px 0 24px;
  letter-spacing: -.01em;
}

.bp-hero__subtitle {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin: 0 auto 44px;
}

.bp-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.bp-intro__text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 16px;
}
.bp-intro__text strong { color: var(--text); font-weight: 500; }

.bp-visual-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
}

.bp-visual-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

/* Effects block */
.bp-effects { background: var(--dark); }
.bp-effects .section-label,
.bp-effects .section-title { color: var(--white); }
.bp-effects .section-label { color: var(--accent); }

.bp-effects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border-radius: var(--radius);
  overflow: hidden;
}

.bp-effect-item {
  background: rgba(255,255,255,.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  gap: 12px;
  transition: background .2s;
}
.bp-effect-item:hover { background: rgba(255,255,255,.07); }

.bp-effect-item strong {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--accent);
  font-weight: 300;
}

.bp-effect-item span {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
}

/* Who is it for */
.bp-who { background: var(--bg-soft); }

.bp-who__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bp-who-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 14px;
}
.bp-who-item::before {
  content: "✓";
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
  font-size: 16px;
}

/* Contraindications */
.bp-contra__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.bp-contra-item {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-size: 15px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 14px;
}
.bp-contra-item::before {
  content: "—";
  color: var(--border);
  flex-shrink: 0;
}

/* CTA block on biopatid page */
.bp-cta {
  background: var(--accent);
  padding: 100px 0;
  text-align: center;
}

.bp-cta__inner {
  max-width: 600px;
  margin: 0 auto;
}

.bp-cta p {
  color: rgba(255,255,255,.82);
  font-size: 16px;
  margin-bottom: 36px;
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */

.gallery-hero {
  padding: 80px 0 60px;
  text-align: center;
  background: var(--bg-soft);
}

.gallery-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--text);
  margin: 12px 0 16px;
}

.gallery-hero__subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

/* Filter tabs */
.gallery-filter {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 72px;
  background: rgba(253,250,246,.95);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 9px 22px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Gallery grid */
.gallery-grid { padding-top: 60px; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Single card */
.gallery-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}

.gallery-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.gallery-card__label {
  padding: 14px 18px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.gallery-card__pair {
  display: flex;
  position: relative;
}

.gallery-card__side {
  flex: 1;
  position: relative;
}

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background: linear-gradient(145deg, var(--bg-soft), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.gallery-card__divider {
  width: 1px;
  background: var(--white);
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(255,255,255,.6);
}

.gallery-card__tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(42,37,32,.45);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 50px;
}

.gallery-card__tag--after {
  left: auto;
  right: 10px;
  background: rgba(184,149,106,.7);
}

/* Responsive gallery */
@media (max-width: 960px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .filter-tabs { justify-content: center; }
}

/* ============================================================
   REVIEWS PAGE
   ============================================================ */

.reviews-section { background: var(--bg); }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow .3s, transform .3s;
}

.review-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.review-card__stars {
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 2px;
}

.review-card__text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.review-card__author strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.review-card__author span {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .04em;
}

@media (max-width: 960px) {
  .reviews__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .reviews__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FLOATING SOCIAL BUTTONS
   ============================================================ */

.floating-social {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}

.floating-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  color: var(--white);
}

.floating-btn--tg { background: #29A8EB; }
.floating-btn--ig {
  background: radial-gradient(circle at 30% 110%, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 52px;
    text-align: center;
  }
  .hero__subtitle { margin: 0 auto 44px; }
  .hero__actions { justify-content: center; }
  .hero__photo-placeholder { max-height: 420px; }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .photo-placeholder--round { margin: 0 auto; }
  .about__stats { justify-content: center; }
  .about__content p { margin: 0 auto 16px; }

  .biopatid-promo__inner { grid-template-columns: 1fr; gap: 48px; }
  .biopatid-promo__img { width: 220px; margin: 0 auto; }

  .contacts__grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }

  .bp-intro { grid-template-columns: 1fr; gap: 48px; }
  .bp-effects__grid { grid-template-columns: 1fr 1fr; }
  .bp-who__grid { grid-template-columns: 1fr 1fr; }
  .bp-contra__list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: 60px 0; }

  .nav__links,
  .nav__inner > .btn--outline { display: none; }
  .nav__burger { display: flex; }

  /* Mobile nav open state — dropdown */
  .nav__links.nav__links--open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(42,37,32,.12);
    flex-direction: column;
    align-items: center;
    padding: 36px 24px 40px;
    gap: 28px;
    z-index: 99;
    list-style: none;
  }
  .nav__links.nav__links--open a {
    font-size: 18px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: .02em;
  }
  .nav__links.nav__links--open a:hover,
  .nav__links.nav__links--open a.active { color: var(--accent); }

  .form-row { grid-template-columns: 1fr; }
  .service-card { flex: 0 1 100%; }
  .about__stats { flex-direction: column; gap: 28px; }

  .footer__inner { flex-direction: column; gap: 16px; text-align: center; }

  .bp-effects__grid,
  .bp-who__grid,
  .bp-contra__list { grid-template-columns: 1fr; }

  /* Мобільна версія фону Біопатид — легка JPEG замість 5MB PNG */
  .bp-hero {
    background:
      linear-gradient(to bottom, rgba(20,14,30,.52) 0%, rgba(20,14,30,.38) 100%),
      url('biopatid-hero-mobile.jpg') center/cover no-repeat;
  }

  /* Hero кнопки — стакаємо вертикально */
  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .hero__actions .btn--primary { width: 100%; max-width: 320px; }
  .hero__actions .btn--ghost { width: 100%; max-width: 320px; justify-content: center; }

  /* Контейнер — збільшуємо відступи на малих екранах */
  .container { padding: 0 20px; }

  /* Subtitle без фіксованої ширини */
  .hero__subtitle { max-width: 100%; }

  /* Gallery filter — скролимо горизонтально */
  .filter-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .filter-tab { flex-shrink: 0; }
}
