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

:root {
  --beige: #F5F3EE;
  --cream: #FDFAF4;
  --warm-gray: #8B7E74;
  --sand: #D4BFA6;
  --terracotta: #E8B4A0;
  --warm-brown: #5D534D;
  --shadow: 0 20px 40px rgba(0,0,0,0.08);
  --shadow-lg: 0 30px 60px rgba(0,0,0,0.12);

  --text-main: #5D534D;
  --text-muted: #8B7E74;
  --border-soft: rgba(212,191,166,0.7);
}

/* базово */

html {
  font-size: clamp(14px, 1.2vw + 12px, 16px);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
  color: var(--warm-gray);
  background: var(--cream);
  overflow-x: hidden;
}

.bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(232,180,160,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212,191,166,0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 10%, rgba(245,243,238,0.4) 0%, transparent 60%),
    linear-gradient(135deg, var(--beige) 0%, var(--cream) 100%);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Навигация */

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(253,250,244,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139,126,116,0.15);
  z-index: 1000;
  padding: 1rem 0;
}

.nav .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 40px;
}

/* логотип */

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--warm-brown), var(--sand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

/* меню */

.nav-right {
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-list a {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--warm-gray);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-list a:hover {
  color: var(--warm-brown);
}

.nav-list a:hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 26px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--terracotta), var(--sand));
  border-radius: 999px;
}

/* Телефон */

.phone-link {
  background: linear-gradient(135deg, var(--terracotta), var(--sand));
  color: var(--cream) !important;
  padding: 10px 22px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: 10px;
}

.phone-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--cream) !important;
}

/* Кнопки */

.btn-primary {
  background: linear-gradient(135deg, var(--terracotta), var(--sand));
  color: var(--cream);
  padding: 14px 28px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-primary.large {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-secondary {
  color: var(--warm-gray);
  text-decoration: none;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 16px;
  border: 2px solid var(--sand);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--terracotta);
  color: var(--cream);
}

/* Burger */

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 25px;
  height: 2px;
  background: var(--warm-brown);
  transition: 0.3s;
}

/* Hero */

.hero {
  padding: 140px 0 90px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 500px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2.3rem;
  color: var(--warm-brown);
}

.accent {
  background: linear-gradient(135deg, var(--terracotta), var(--sand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--warm-gray);
  margin-bottom: 3rem;
  max-width: 480px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-image {
  justify-self: end;
  max-width: 470px;
}

.hero-photo {
  width: 100%;
  max-width: 430px;
  height: auto;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* масштаб фото */

.hero-photo-big {
  transform: scale(0.92);
}

/* Общие секции */

.section {
  padding: 70px 0;
  scroll-margin-top: 80px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--warm-brown);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--terracotta), var(--sand));
  border-radius: 2px;
}

/* Направления */

.services {
  padding: 70px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(253,250,244,0.7);
  backdrop-filter: blur(10px);
  padding: 2.4rem;
  border-radius: 28px;
  border: 1px solid rgba(212,191,166,0.3);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.55s ease,
    box-shadow 0.55s ease,
    background 0.55s ease,
    border-color 0.55s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--sand));
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--warm-brown);
}

.service-card p {
  color: var(--warm-gray);
  line-height: 1.8;
  font-size: 1.05rem;
}

.service-card .service-more {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  transition:
    max-height 0.70s ease,
    opacity 0.55s ease,
    margin-top 0.55s ease;
}

.service-card.expanded {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: rgba(253,250,244,0.95);
  border-color: rgba(232,180,160,0.7);
}

.service-card.expanded .service-more {
  max-height: 260px;
  opacity: 1;
  margin-top: 1rem;
}

.service-list {
  margin-top: 0.6rem;
  padding-left: 1.2rem;
  font-size: 0.95rem;
}

.services-hint {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
}

/* Обо мне */

.about {
  padding: 70px 0;
  background: rgba(245,243,238,0.5);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .lead {
  font-size: 1.3rem;
  color: var(--warm-gray);
  margin-bottom: 2.2rem;
  line-height: 1.8;
  font-weight: 300;
}

.features {
  list-style: none;
  padding: 0;
}

.features li {
  padding: 0.9rem 0;
  padding-left: 2.5rem;
  position: relative;
  color: var(--warm-gray);
  font-size: 1.05rem;
}

.features li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-size: 1.2rem;
  font-weight: 700;
}

/* фото обо мне */

.about-image {
  display: flex;
  justify-content: center;
}

.about-photo-small {
  max-width: 340px;
  width: 100%;
}

/* скруглённые фото */

.rounded-img,
.hero-photo,
.about-photo-small {
  border-radius: 32px;
}

/* Стоимость */

.pricing {
  background: rgba(253,250,244,0.9);
}

.pricing-vertical {
  max-width: 1120px;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  gap: 2.4rem;
  align-items: stretch;
}

.pricing-item {
  position: relative;
  border-radius: 32px;
  padding: 1.8rem 1.8rem 1.6rem;
  background: linear-gradient(180deg, #ffffff 0%, #fdfaf4 100%);
  box-shadow: 0 18px 38px rgba(0,0,0,0.06);
  border: 1px solid rgba(212,191,166,0.4);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: 100%;
}

.pricing-item-main {
  background: linear-gradient(180deg, #fdf6ef 0%, #fbe9dd 100%);
  box-shadow: 0 24px 50px rgba(0,0,0,0.10);
}

.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

/* чтобы везде было одинаковое выравнивание */
.pricing-item .pricing-header {
  align-items: center;
  min-height: 3.2rem;
}

.pricing-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--warm-brown);
}

.pricing-price {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--warm-brown);
}

.pricing-rub {
  font-size: 1.2rem;
  margin-left: 0.15rem;
}

.pricing-details {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.98rem;
  color: var(--warm-gray);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pricing-details li::before {
  content: "•";
  margin-right: 0.35rem;
  color: var(--terracotta);
}

.pricing-btn {
  margin-top: auto;
  width: 100%;
  border-radius: 999px;
}

.pricing-note {
  margin-top: 1.6rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--warm-gray);
}

.pricing-gift-label {
  margin-top: 0.4rem;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--warm-gray);
}

.pricing-gift-select {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(212,191,166,0.9);
  background: rgba(255,255,255,0.96);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--warm-brown);
  outline: none;
  margin-bottom: 0.7rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pricing-gift-select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(232,180,160,0.25);
  background: #fff;
}

/* FAQ */

.faq-list {
  max-width: 800px;
  margin: 2rem auto 0;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid rgba(212,191,166,0.4);
  background: rgba(253,250,244,0.95);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.faq-item:hover {
  background: rgba(253,250,244,1);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.faq-item.open {
  box-shadow: var(--shadow-lg);
  border-color: var(--terracotta);
  background: rgba(253,250,244,1);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 1rem 1.3rem;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--warm-brown);
  cursor: pointer;
}

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(212,191,166,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: linear-gradient(135deg, var(--terracotta), var(--sand));
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-icon::before {
  width: 10px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 10px;
}

.faq-item.open .faq-icon::after {
  transform: scaleY(0);
  opacity: 0;
}

.faq-a {
  padding: 0 1.3rem 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a p {
  padding: 0 0 1rem;
  font-size: 0.97rem;
  color: var(--warm-gray);
}

/* Footer */

.footer {
  padding: 4rem 0 3rem;
  background: var(--beige);
  border-top: 1px solid rgba(139,126,116,0.15);
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
}

.footer-brand span {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--warm-brown), var(--sand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.footer-brand p {
  color: var(--warm-gray);
  margin-top: 0.4rem;
  font-size: 1rem;
}

.footer-brand .telegram-link {
  margin-top: 0.8rem;
}

.footer-subscribe {
  display: flex;
  justify-content: flex-end;
}

.footer-subscribe .newsletter {
  max-width: 420px;
  width: 100%;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer-links a {
  color: var(--warm-gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--warm-brown);
}

/* Телеграм в золотых тонах */

.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.telegram-icon-gold {
  width: 28px;
  height: 28px;
  color: #D4BFA6;
}

/* нижняя строка */

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(139,126,116,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--warm-gray);
}

.footer-bottom a {
  color: var(--warm-gray);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-bottom a:hover {
  color: var(--warm-brown);
  text-decoration: underline;
}

/* Мобильное меню */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(93,83,77,0.1);
  backdrop-filter: blur(10px);
}

.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 380px;
  height: 100%;
  background: rgba(253,250,244,0.98);
  backdrop-filter: blur(20px);
  padding: 120px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  border-left: 1px solid rgba(212,191,166,0.3);
}

.menu-panel a {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--warm-brown);
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu-panel a:hover {
  color: var(--terracotta);
}

/* Видео на странице контактов */

.contacts-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.contacts-media-left,
.contacts-media-right {
  min-width: 0;
}

.contacts-subtitle.small-subtitle {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contacts-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 340px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 0.5rem;
}

.contacts-video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.video-play-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--cream);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.65) 0, transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,0.25) 0, transparent 55%),
    linear-gradient(135deg, rgba(232,180,160,0.92), rgba(212,191,166,0.95));
  box-shadow:
    0 10px 20px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.35) inset;
  opacity: 0.9;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.video-play-toggle:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow:
    0 16px 32px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.45) inset;
  opacity: 1;
}

.contacts-video-wrapper.playing .video-play-toggle {
  opacity: 0;
  pointer-events: none;
}

/* Карта */

.contacts-map iframe {
  width: 100%;
  height: 380px;
  border: none;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

/* Текст политики */

.privacy-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.98rem;
  color: var(--warm-gray);
}

.privacy-text h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--warm-brown);
}

.privacy-text p {
  margin-bottom: 0.8rem;
}

.privacy-text ul {
  margin: 0 0 1.2rem 1.5rem;
  padding-left: 0;
}

.privacy-text li {
  margin-bottom: 0.4rem;
}

/* Тесты */

.tests-intro {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
}

.tests-note {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--warm-gray);
  max-width: 760px;
}

.test-card {
  background: rgba(253,250,244,0.85);
  border-radius: 28px;
  padding: 2.2rem 2.3rem;
  border: 1px solid rgba(212,191,166,0.4);
  box-shadow: 0 18px 38px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.test-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: rgba(253,250,244,0.96);
}

.test-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--warm-brown);
  margin-bottom: 0.9rem;
}

.test-description {
  margin-bottom: 1.4rem;
}

.test-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 220px);
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.9rem;
  font-size: 0.97rem;
}

.test-row label {
  cursor: default;
}

.test-row select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(212,191,166,0.9);
  background: rgba(255,255,255,0.9);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--warm-brown);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.test-row select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(232,180,160,0.25);
  background: #fff;
}

.test-button {
  margin-top: 0.8rem;
}

.test-result {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(245,243,238,0.6);
  border: 1px dashed rgba(212,191,166,0.8);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.test-result.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Модальное окно заявки */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(93,83,77,0.25);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  background: rgba(253,250,244,0.97);
  border-radius: 32px;
  padding: 1.8rem 1.8rem 1.6rem;
  box-shadow: 0 26px 60px rgba(0,0,0,0.25);
  border: 1px solid rgba(212,191,166,0.6);
  transform: translateY(12px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.modal.active .modal-dialog {
  opacity: 1;
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(245,243,238,0.9);
  color: var(--warm-brown);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--warm-brown);
  margin-bottom: 0.6rem;
}

.modal-subtitle {
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-row label {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--warm-brown);
  margin-bottom: 0.35rem;
}

.modal-row input,
.modal-row textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  border: 2px solid rgba(212,191,166,0.5);
  background: rgba(255,255,255,0.95);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--warm-brown);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.modal-row input:focus,
.modal-row textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(232,180,160,0.25);
  background: #fff;
}

/* Сообщение об успешной отправке */

.modal-success {
  position: absolute;
  inset: 0;
  padding: 1.8rem 1.8rem 1.6rem;
  border-radius: 32px;
  background: rgba(253,250,244,0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.modal-success.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal-success-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--warm-brown);
  margin-bottom: 0.7rem;
}

.modal-success-text {
  font-size: 0.95rem;
  color: var(--warm-gray);
  max-width: 320px;
}

/* зона согласия */

.modal-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.5;
}

.modal-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modal-checkbox label {
  position: relative;
  padding-left: 1.9rem;
  cursor: pointer;
  color: var(--warm-gray);
}

.modal-checkbox label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1rem;
  height: 1rem;
  border-radius: 6px;
  border: 2px solid rgba(212,191,166,0.9);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.modal-checkbox label::after {
  content: "";
  position: absolute;
  left: 0.18rem;
  top: 0.26rem;
  width: 0.6rem;
  height: 0.35rem;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg);
  opacity: 0;
}

.modal-checkbox input[type="checkbox"]:checked + label::before {
  background: linear-gradient(135deg, var(--terracotta), var(--sand));
  border-color: transparent;
}

.modal-checkbox input[type="checkbox"]:checked + label::after {
  border-left-color: #FDFAF4;
  border-bottom-color: #FDFAF4;
  opacity: 1;
}

.modal-checkbox a {
  color: var(--warm-brown);
  text-decoration: underline;
}

.modal-submit {
  width: 100%;
  margin-top: 0.3rem;
}

.modal-note {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--warm-gray);
}

/* Информационный баннер */

.zk-info-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: 520px;
  width: calc(100% - 32px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.zk-info-banner--visible {
  opacity: 1;
  pointer-events: auto;
}

.zk-info-banner__inner {
  background: #f8f2ea;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #5c4941;
}

.zk-info-banner__text {
  margin: 0;
  flex: 1 1 auto;
}

.zk-info-banner__btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #f1b89a 0%, #e8a88d 100%);
  color: #ffffff;
  font-size: 14px;
  padding: 8px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.zk-info-banner__btn:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.zk-info-banner__btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Newsletter */

.newsletter {
  margin-top: 1.4rem;
  max-width: 420px;
}

.newsletter-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.4rem;
}

.newsletter label {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}

.newsletter input[type="text"],
.newsletter input[type="email"] {
  flex: 1 1 120px;
  min-width: 120px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 0.85rem;
  font-family: inherit;
  background: #FFF;
}

.newsletter button.btn-primary {
  flex: 0 0 auto;
  padding-inline: 16px;
  font-size: 0.85rem;
}

.newsletter-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Toast */

.toast {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
  z-index: 999;
  padding-top: 80px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.toast-inner {
  background: rgba(255, 249, 243, 0.98);
  border-radius: 14px;
  border: 1px solid rgba(212, 191, 166, 0.9);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  padding: 12px 20px;
  font-size: 0.9rem;
  color: #3E3128;
}

.toast--visible {
  opacity: 1;
  pointer-events: auto;
}

/* Ссылки WhatsApp/Telegram в контактах */

.contact-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.contact-link:hover {
  border-bottom-color: rgba(0,0,0,0.35);
}

/* Адаптив */

@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
    max-width: 100%;
  }

  .burger {
    display: flex;
  }

  .nav-right {
    display: none;
  }

  .nav .container {
    grid-template-columns: 1fr auto;
    column-gap: 16px;
  }

  .logo {
    font-size: 1.25rem;
  }

  .phone-link {
    margin-left: 0;
    margin-top: 4px;
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 12px;
  }

  .nav .container > a.logo {
    display: inline-block;
  }
}

@media (max-width: 900px) {
  .contacts-media-grid {
    grid-template-columns: 1fr;
  }

  .contacts-video-wrapper {
    max-width: 100%;
    margin: 0.5rem auto 0;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(24px, 7vw, 30px);
  }

  .hero-subtitle,
  .lead,
  .pricing-details li,
  .faq-a p {
    font-size: 15px;
    line-height: 1.5;
  }

  .hero {
    padding: 90px 0 60px;
    min-height: 100vh;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-image {
    order: 2;
    justify-self: center;
  }

  .hero-photo {
    max-width: 280px;
    width: 90vw;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .pricing-vertical {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-subscribe {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-start;
  }

  .test-row {
    grid-template-columns: 1fr;
  }

  .zk-info-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .zk-info-banner__btn {
    width: 100%;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }

  .section {
    scroll-margin-top: 96px;
  }

  .modal-dialog {
    max-width: 100%;
    padding: 0.8rem 1.1rem 0.8rem;
    border-radius: 24px;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-subtitle {
    font-size: 0.9rem;
  }

  .nav {
    padding: 10px 0;
  }

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

  .nav .container > a.logo {
    display: block;
  }

  .nav .container > .phone-link {
    display: block;
  }

  .burger {
    margin-left: 12px;
  }

  .menu-panel {
    padding: 100px 24px 32px;
  }

  .menu-panel a {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-photo {
    max-width: 250px;
  }

  .modal-dialog {
    max-width: 94%;
    padding: 0.6rem 1rem 0.6rem;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .modal-subtitle {
    font-size: 0.88rem;
  }
}
