/* ==========================================================================
   ТРОПИНКА — UI Kit tokens (official palette, one color = one role)
   Source: project doc "Стратегия — маркетинг, хуки и UI Kit"
   Design system reference: Impeccable (pbakaus/impeccable)
   ========================================================================== */

:root {
  /* Official palette — do not repurpose a color outside its assigned role */
  --sky: #6AC6ED;         /* brand background / header */
  --sun: #FFD233;         /* primary CTA button — only role */
  --orange: #F0702F;      /* accent, progress bars */
  --green: #2FA050;       /* success, "spots available" */
  --sea: #1F8F90;         /* secondary action, icons */
  --sea-dark: #135D5E;    /* text on color, links, active nav */
  --plum: #802F80;        /* logo text, accent headings */
  --raspberry: #C02080;   /* promo badges, "new" */
  --red: #E23430;         /* errors/warnings only */
  --olive: #8FA33F;       /* category tags */
  --ink: #3B2A4A;         /* body text */

  /* Neutral support (systemic, not in the named palette) */
  --surface: #F7FBFD;
  --border: #DCEBF3;
  --border-soft: #EAF2F7;
  --text-secondary: #6E5C79;
  --white: #FFFFFF;

  /* Type scale */
  --font-display: 'Comfortaa', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  /* Shape */
  --radius-pill: 999px;
  --radius-card: 22px;
  --radius-card-lg: 24px;
  --container-max: 1180px;

  /* Tinted shadows — colored halo, never gray */
  --shadow-sun: 0 8px 18px -10px rgba(214, 164, 0, 0.9);
  --shadow-sea: 0 18px 40px -22px rgba(31, 143, 144, 0.55);
  --shadow-card: 0 14px 34px -24px rgba(59, 42, 74, 0.35);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  /* Brand canvas: the whole site sits on the sky-blue brand background
     (official kit gradient, previously only used on the header/hero panel).
     Content sections are white "panels"/cards floating on this canvas;
     headings and labels that sit directly on the blue go white. */
  background: linear-gradient(160deg, #6AC6ED 0%, #8FD6F2 55%, #6AC6ED 100%) fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
}
h1 { font-weight: 700; font-size: 40px; line-height: 1.12; }
h2 { font-weight: 700; font-size: 30px; line-height: 1.22; }
h3 { font-weight: 600; font-size: 20px; line-height: 1.3; }

@media (min-width: 720px) {
  h1 { font-size: 48px; line-height: 1.1; }
  h2 { font-size: 32px; }
}

p { margin: 0 0 12px; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
/* Labels/headings sitting directly on the blue canvas (not inside a white
   card) — the sun-yellow label + white heading pairing used throughout. */
.eyebrow-onblue { color: var(--sun) !important; }
.on-blue-muted { color: rgba(255, 255, 255, 0.88) !important; }
.section-head h2 {
  color: #fff;
  text-shadow: 0 2px 16px rgba(11, 49, 56, 0.18);
}
.caption {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 64px 0; }
@media (min-width: 960px) { section { padding: 96px 0; } }

.section-head {
  max-width: 680px;
  margin: 0 0 40px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 17px 30px;
  border-radius: var(--radius-pill);
  border: none;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--sun);
  color: var(--ink);
  box-shadow: var(--shadow-sun);
}
.btn-primary:hover { background: #FFDA52; }

.btn-secondary {
  background: var(--sea);
  color: var(--white);
  box-shadow: var(--shadow-sea);
}
.btn-secondary:hover { background: #24A3A4; }

.btn-ghost {
  background: transparent;
  color: var(--sea-dark);
  border: 2px solid var(--border);
  box-shadow: none;
  padding: 15px 28px;
}
.btn-ghost:hover { border-color: var(--sea); }

.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ==========================================================================
   Badges / tags
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}
.badge-success { background: rgba(47, 160, 80, 0.14); color: var(--green); }
.badge-new { background: var(--sun); color: var(--ink); }
.badge-promo { background: rgba(192, 32, 128, 0.12); color: var(--raspberry); }
.tag {
  display: inline-flex;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  color: var(--olive);
  background: rgba(143, 163, 63, 0.14);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px -18px rgba(11, 49, 56, 0.4);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 84px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--plum);
}
.logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: var(--shadow-sun);
  flex-shrink: 0;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 16px;
}
.nav-links a {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--sea-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: none;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  color: var(--sea-dark);
  white-space: nowrap;
}
@media (min-width: 1200px) {
  .nav-links { display: flex; }
}
@media (min-width: 1440px) {
  .header-phone { display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  /* Official kit header gradient — brand banner treatment, now the hero. */
  background: linear-gradient(160deg, #6AC6ED, #8FD6F2);
  padding: 44px 0 64px;
  overflow: hidden;
}
@media (min-width: 960px) { .hero { padding: 56px 0 80px; } }

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
}

/* Single-column hero variant (kept for reuse — no illustration) */
.hero-grid.hero-grid-single {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero-grid-single h1 { margin-left: auto; margin-right: auto; }
.hero-grid-single .hero-cta-row { justify-content: center; }
.hero-grid-single .hero-address {
  display: inline-flex;
  margin: 24px auto 0;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.hero-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  font-weight: 800;
  font-size: 15px;
  color: var(--sea-dark);
  box-shadow: var(--shadow-card);
  max-width: 100%;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}
@media (min-width: 720px) {
  .hero-trust-chip { font-size: 16px; padding: 14px 24px; }
}
.hero-trust-chip .stars { color: var(--sun-dark, #E0A800); }

.hero h1 { color: #fff; margin-bottom: 20px; text-shadow: 0 4px 24px rgba(11, 49, 56, 0.22); }
.hero h1 .accent { color: var(--sun); }
.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.hero-cta-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}
.hero-address {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-top: 22px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  transition: text-decoration-color 0.15s ease;
}
.hero-address:hover { text-decoration-color: #fff; }

.hero-media { position: relative; }
.hero-media-card {
  background: var(--white);
  border-radius: var(--radius-card-lg);
  box-shadow: 0 26px 50px -20px rgba(11, 49, 56, 0.45);
  padding: 14px;
  transform: rotate(1.5deg);
}
.hero-media-card img {
  border-radius: 18px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* Ghost button variant for use directly on saturated blue backgrounds —
   the default .btn-ghost's light border/text would nearly disappear here. */
.btn-ghost-invert {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  padding: 15px 28px;
}
.btn-ghost-invert:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }

/* ==========================================================================
   Cards grid — generic
   ========================================================================== */

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: minmax(0, 1fr); }
.grid-3 { grid-template-columns: minmax(0, 1fr); }
.grid-4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 28px;
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-secondary); margin-bottom: 0; }

/* ==========================================================================
   About — "Развиваем" icon grid
   Distinct visualization for the About section: colorful round icon badges
   in a wrapping grid, rather than a plain bulleted list.
   ========================================================================== */

.develop-title {
  color: #fff;
  text-align: center;
  margin-bottom: 24px;
  text-shadow: 0 2px 16px rgba(11, 49, 56, 0.18);
}
.develop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 640px) { .develop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.develop-item {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.develop-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.develop-item:nth-child(8n+1) .develop-icon { background: rgba(106,198,237,0.28); }
.develop-item:nth-child(8n+2) .develop-icon { background: rgba(255,210,51,0.35); }
.develop-item:nth-child(8n+3) .develop-icon { background: rgba(192,32,128,0.14); }
.develop-item:nth-child(8n+4) .develop-icon { background: rgba(143,163,63,0.2); }
.develop-item:nth-child(8n+5) .develop-icon { background: rgba(240,112,47,0.16); }
.develop-item:nth-child(8n+6) .develop-icon { background: rgba(47,160,80,0.16); }
.develop-item:nth-child(8n+7) .develop-icon { background: rgba(128,47,128,0.14); }
.develop-item:nth-child(8n+8) .develop-icon { background: rgba(31,143,144,0.16); }

/* ==========================================================================
   How a lesson works — timeline
   ========================================================================== */

.flow-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 8px 0 48px;
}
.flow-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 14px 24px 14px 14px;
  box-shadow: var(--shadow-card);
}
.flow-step .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.flow-step:nth-child(1) .icon { background: rgba(106,198,237,0.25); }
.flow-step:nth-child(3) .icon { background: rgba(255,210,51,0.35); }
.flow-step:nth-child(5) .icon { background: rgba(192,32,128,0.14); }
.flow-step strong { font-family: var(--font-display); font-size: 15px; }
.flow-arrow { color: var(--border); font-size: 22px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-box {
  text-align: center;
  padding: 22px 16px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.stat-box .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  color: var(--orange);
}
.stat-box .lbl { font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-top: 4px; }

/* "Как проходят занятия" — third distinct visualization: horizontal
   icon-and-text cards, a different shape from the flow-strip pills above
   and the number-led stat boxes. */
.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 720px) { .approach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.approach-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.approach-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(31,143,144,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.approach-item h3 { font-size: 17px; margin-bottom: 4px; }
.approach-item p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* ==========================================================================
   Programs / pricing
   ========================================================================== */

.program-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.program-card.flagship {
  border: 2px solid var(--sun);
  box-shadow: var(--shadow-sun);
  background: linear-gradient(180deg, #FFFDF3, var(--white) 40%);
}
.program-card .badge { align-self: flex-start; margin-bottom: 14px; }
.program-card h3 { font-size: 22px; margin-bottom: 6px; }
.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}
.program-meta span {
  font-size: 13px;
  font-weight: 700;
  color: var(--sea-dark);
  background: rgba(31,143,144,0.1);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}
.program-card ul { margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.program-card li { display: flex; gap: 10px; font-size: 15px; color: var(--ink); }
.program-card li svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.program-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--ink);
  margin-bottom: 4px;
}
.program-price .period { font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--text-secondary); }
.program-card .btn { margin-top: auto; }

/* Anchor / comparison block */
.anchor-block {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card-lg);
  padding: 32px;
  display: grid;
  gap: 24px;
}
@media (min-width: 820px) { .anchor-block { grid-template-columns: 1fr 1fr; align-items: center; } }
.anchor-list { display: flex; flex-direction: column; gap: 14px; }
.anchor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 700;
}
.anchor-row .price { color: var(--text-secondary); font-weight: 800; }
.anchor-total {
  background: var(--ink);
  color: var(--white);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.anchor-total .label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 800; opacity: 0.7; }
.anchor-total .price {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--sun);
  margin: 8px 0;
}
.anchor-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* ==========================================================================
   Why trust us
   ========================================================================== */

.trust-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.trust-card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(106,198,237,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.trust-card h3 { margin-bottom: 6px; }
.trust-card p { color: var(--text-secondary); margin: 0; }

/* ==========================================================================
   Reviews
   ========================================================================== */

.review-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.review-stars { color: var(--sun); font-size: 15px; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { flex: 1; font-size: 15px; color: var(--ink); margin-bottom: 16px; }
.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sea);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.review-author .name { font-weight: 800; font-size: 14px; }
.review-author .verified { font-size: 12px; color: var(--green); font-weight: 700; }

.reviews-cta { text-align: center; margin-top: 36px; }

/* ==========================================================================
   Teachers
   ========================================================================== */

.teacher-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-align: center;
}
.teacher-photo {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #EAF7FD, #F7FBFD);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.teacher-photo svg { width: 46%; height: 46%; color: var(--border); }
.teacher-photo .photo-note {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(59,42,74,0.72);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.teacher-info { padding: 20px; }
.teacher-info h3 { margin-bottom: 4px; }
.teacher-role { font-size: 13px; font-weight: 700; color: var(--sea-dark); margin-bottom: 8px; }
.teacher-info p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* ==========================================================================
   Instagram teaser
   ========================================================================== */

.insta-link { transition: opacity 0.15s ease; }
.insta-link:hover { opacity: 0.85; text-decoration: underline; }

/* Bubble gallery — round photo "balls" of mixed sizes, scattered rather
   than gridded, floating directly on the blue canvas. Click expands the
   photo in the lightbox (see .lightbox below) instead of navigating away. */
.bubble-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 12px;
  margin-bottom: 36px;
  padding: 8px 0;
}
.bubble {
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 16px 30px -16px rgba(11, 49, 56, 0.45);
  cursor: pointer;
  background: var(--border-soft);
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: none;
}
.bubble:hover, .bubble:focus-visible {
  transform: scale(1.07);
  box-shadow: 0 20px 36px -14px rgba(11, 49, 56, 0.55);
  outline: none;
}
.bubble img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bubble-lg { width: clamp(128px, 19vw, 208px); height: clamp(128px, 19vw, 208px); }
.bubble-md { width: clamp(96px, 14vw, 156px); height: clamp(96px, 14vw, 156px); }
.bubble-sm { width: clamp(68px, 10vw, 112px); height: clamp(68px, 10vw, 112px); }

/* Gentle organic scatter instead of a strict row grid */
.bubble-gallery .bubble:nth-child(4n+2) { margin-top: -18px; }
.bubble-gallery .bubble:nth-child(5n+4) { margin-top: 16px; }
.bubble-gallery .bubble:nth-child(3n+1) { margin-top: 6px; }

.insta-cta { text-align: center; }
.insta-handle { font-weight: 800; color: var(--sun); }

/* Lightbox — click-to-expand overlay for the bubble gallery */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(11, 49, 56, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(92vw, 920px);
  max-height: 86vh;
  border-radius: 20px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.55);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Location
   ========================================================================== */

.location-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) { .location-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.location-map {
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  border: 4px solid #fff;
  min-height: 320px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.location-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.location-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  background: #fff;
  border-radius: var(--radius-card-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.location-row { display: flex; gap: 14px; align-items: flex-start; }
.location-row .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(31,143,144,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.location-row h3 { font-size: 16px; margin-bottom: 2px; }
.location-row p { color: var(--text-secondary); margin: 0; }
.location-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  background: linear-gradient(135deg, var(--sea-dark), #0E4647);
  border-radius: var(--radius-card-lg);
  padding: 48px 28px;
  text-align: center;
  color: var(--white);
}
@media (min-width: 720px) { .final-cta { padding: 64px 48px; } }
.final-cta h2 { color: var(--white); margin-bottom: 14px; }
.final-cta p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 28px; }
.final-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ==========================================================================
   Lead form
   ========================================================================== */

.lead-form {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.lead-form h3 { margin-bottom: 6px; }
.lead-form .sub { color: var(--text-secondary); margin-bottom: 20px; font-size: 14px; }
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--sea-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.form-row input,
.form-row select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--sea);
}
.form-consent {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 12px;
  text-align: center;
}
.form-consent a { color: var(--sea-dark); font-weight: 700; text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }
.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(47,160,80,0.14); color: var(--green); }
.form-status.err { background: rgba(226,52,48,0.12); color: var(--red); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 48px 0 28px; }
.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: minmax(0,1.2fr) minmax(0,0.9fr) minmax(0,0.9fr) minmax(0,0.9fr); } }
.footer-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--white); margin-bottom: 12px; }
.footer-col h4 { font-family: var(--font-body); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--white); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--white); }

.social-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.15s ease, color 0.15s ease;
}
.social-icon svg { width: 20px; height: 20px; }
.social-icon:hover { background: var(--sun); color: var(--ink); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */

.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -12px rgba(47,160,80,0.65);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ==========================================================================
   Mobile nav
   ========================================================================== */

.mobile-menu-btn {
  display: flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  align-items: center;
  justify-content: center;
}
@media (min-width: 1200px) { .mobile-menu-btn { display: none; } }

/* Narrow phones (iPhone SE / small Android, ~320-480px): the logo text +
   "Записаться" button + hamburger no longer fit at their default desktop
   sizing, so trim them down a notch to avoid horizontal overflow. */
@media (max-width: 480px) {
  .site-header .container { gap: 8px; height: 72px; }
  .logo { font-size: 16px; gap: 6px; }
  .logo-mark { width: 36px; height: 36px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-primary { padding: 10px 14px; font-size: 11px; }
  .mobile-menu-btn { width: 36px; height: 36px; }
}
@media (max-width: 340px) {
  .logo span, .logo { font-size: 14px; }
  .header-actions .btn-primary { padding: 9px 11px; font-size: 10px; }
}
@media (max-width: 480px) {
  .mobile-nav { inset: 72px 0 0 0; }
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--white);
  z-index: 49;
  padding: 24px 20px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 16px 4px;
  font-weight: 700;
  font-size: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav .btn { margin-top: 20px; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
