:root {
  --bg: #fff8f5;
  --bg-soft: #f8ebe7;
  --text: #291622;
  --muted: #725b68;
  --brand: #9f486b;
  --brand-dark: #6d2949;
  --accent: #e7b8a0;
  --card: #ffffff;
  --line: rgba(72, 36, 58, 0.14);
  --shadow: 0 24px 70px rgba(77, 37, 57, 0.14);
  --radius: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 248, 245, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-weight: 800;
  font-size: 24px;
  box-shadow: 0 12px 28px rgba(159, 72, 107, 0.28);
}

.brand-logo {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(159, 72, 107, 0.24));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Vladimir Script", "Pinyon Script", "Bickham Script Pro", "Edwardian Script ITC", cursive;
  font-size: 42px;
  font-weight: 400;
  line-height: 0.76;
  letter-spacing: 0.01em;
  color: #161016;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 3px rgba(41, 22, 34, 0.18);
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-weight: 600;
}

.nav a:hover,
.header-phone:hover {
  color: var(--brand-dark);
}

.header-phone {
  color: var(--brand-dark);
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.55;
}

.hero::before {
  width: 420px;
  height: 420px;
  left: -160px;
  top: 40px;
  background: #ffd8cb;
}

.hero::after {
  width: 320px;
  height: 320px;
  right: -120px;
  bottom: 20px;
  background: #f0b6cf;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  font-size: clamp(42px, 7vw, 82px);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(32px, 4.8vw, 56px);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 18px 34px rgba(109, 41, 73, 0.26);
}

.btn-secondary {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.hero-stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 30px;
  line-height: 1;
}

.hero-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  position: relative;
  min-height: 580px;
}

.hero-media img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  border-radius: 42px;
  box-shadow: var(--shadow);
}

.floating-card {
  position: absolute;
  left: -28px;
  bottom: 48px;
  width: 230px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 52px rgba(72, 36, 58, 0.18);
  backdrop-filter: blur(16px);
}

.floating-card span,
.floating-card strong {
  display: block;
}

.floating-card span {
  color: var(--muted);
  font-size: 13px;
}

.floating-card strong {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.15;
}

.strip {
  padding: 28px 0;
  background: var(--text);
  color: #fff;
}

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

.strip span,
.strip strong {
  display: block;
}

.strip span {
  color: #e6c8d3;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.strip strong {
  margin-top: 4px;
}

.split {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 60px;
}

.text-block {
  color: var(--muted);
  font-size: 18px;
}

.text-block p:first-child {
  margin-top: 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

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

.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 48px rgba(77, 37, 57, 0.07);
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #f8ded3;
  font-size: 13px;
  font-weight: 800;
}

.course-card ul {
  padding-left: 20px;
  margin-bottom: 0;
  color: var(--muted);
}

.promo,
.lead {
  background: var(--bg-soft);
}

.promo-grid,
.lead-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.promo-image img,
.contact-card img {
  width: 100%;
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.promo-image img {
  height: 560px;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.check-list p {
  display: flex;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.check-list span {
  display: inline-grid;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 48px rgba(77, 37, 57, 0.07);
}

.service-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.service-card div {
  padding: 24px;
}

.service-card p {
  color: var(--muted);
}

.service-card a {
  color: var(--brand-dark);
  font-weight: 900;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 230px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #f3ded7;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "Открыть";
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(41, 22, 34, 0.42);
  font-weight: 900;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item.is-hidden {
  display: none;
}

.gallery.is-expanded .gallery-item.is-hidden {
  display: block;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(5),
.gallery-item:nth-child(13) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(3),
.gallery-item:nth-child(4),
.gallery-item:nth-child(6),
.gallery-item:nth-child(9),
.gallery-item:nth-child(12),
.gallery-item:nth-child(16) {
  grid-column: span 2;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

input:focus,
select:focus {
  outline: 3px solid rgba(159, 72, 107, 0.18);
  border-color: var(--brand);
}

.lead-form small {
  color: var(--muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

details {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 18px;
}

.contact-list a {
  color: var(--brand-dark);
  font-weight: 800;
}

.contact-card {
  padding: 18px;
  border-radius: 42px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(77, 37, 57, 0.07);
}

.footer {
  padding: 28px 0 96px;
  color: #e6c8d3;
  background: var(--text);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 18px;
}

.footer-copy {
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: 12.8px;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
  gap: 14px 22px;
}

.footer a,
.legal-content a {
  color: #fff;
  font-weight: 800;
}

.legal-hero {
  padding: 72px 0 42px;
  background: linear-gradient(135deg, rgba(248, 222, 211, 0.9), rgba(255, 248, 245, 0.95));
}

.legal-hero h1 {
  max-width: 940px;
  font-size: clamp(38px, 5.8vw, 70px);
}

.legal-updated {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.legal-section {
  padding-top: 54px;
}

.legal-content {
  max-width: 900px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(77, 37, 57, 0.07);
}

.legal-content h2 {
  margin-top: 36px;
  font-size: clamp(24px, 3.2vw, 34px);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 17px;
}

.legal-content a {
  color: var(--brand-dark);
}

.legal-content ul {
  padding-left: 22px;
}

.sticky-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 20px;
  border-radius: 999px;
  color: #fff;
  background: #19a863;
  box-shadow: 0 16px 36px rgba(25, 168, 99, 0.32);
  font-weight: 900;
}

@media (max-width: 1040px) {
  .hero-grid,
  .promo-grid,
  .lead-grid,
  .contact-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-media img,
  .promo-image img {
    min-height: auto;
    height: 480px;
  }

  .cards,
  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .section {
    padding: 64px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px;
  }

  .header-phone {
    display: none;
  }

  .strip-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-lead,
  .text-block,
  .section-head p:not(.eyebrow),
  .check-list p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }

  .hero-stats,
  .cards,
  .cards-4 {
    grid-template-columns: 1fr;
  }

  .hero-media img,
  .promo-image img {
    height: 360px;
    border-radius: 28px;
  }

  .floating-card {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }

  .gallery {
    grid-auto-rows: 190px;
  }

  .lead-form {
    padding: 20px;
    border-radius: 24px;
  }

  .legal-content {
    padding: 24px;
    border-radius: 24px;
  }

  .sticky-whatsapp {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
