/* CSS RESET & VARIABLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-sans: 'Montserrat', 'Inter', -apple-system, sans-serif;
  
  /* Mockup Colors: White, Light Gray, Bright Teal */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --color-teal: #67afd1;       /* Brand blue from brandbook */
  --color-teal-hover: #539ec2;
  --color-teal-light: rgba(103, 175, 209, 0.1);
  --border-color: #e2e8f0;
  
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

html {
  scroll-behavior: smooth;
}

/* Страховка: никакой горизонтальной прокрутки */
html, body {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

/* UTILITIES */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.sec-head {
  margin-bottom: 60px;
}

.sec-head.center {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-teal);
  margin-bottom: 12px;
  font-weight: 700;
}

.sec-head h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.sec-head h2 b {
  color: var(--color-teal);
  font-weight: 800;
}

.sec-head p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-top: 8px;
}

.sec-head.center p {
  margin-left: auto;
  margin-right: auto;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-teal);
  color: #fff;
  border: 1px solid var(--color-teal);
}

.btn-primary:hover {
  background-color: var(--color-teal-hover);
  border-color: var(--color-teal-hover);
}

.btn-secondary {
  background-color: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-teal);
  border: 1px solid var(--color-teal);
}

.btn-ghost:hover {
  background-color: var(--color-teal);
  color: #fff;
}

/* HEADER */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border-bottom: 1px solid var(--border-color);
}

header.scrolled .logo-txt {
  color: var(--text-primary);
}

header.scrolled .nav-links a {
  color: var(--text-primary);
}

header.scrolled .nav-phone {
  color: var(--text-primary);
}

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

.logo-txt {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--color-teal);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-phone {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  padding: 120px 0 56px;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(10, 16, 30, 0.82) 0%, rgba(10, 16, 30, 0.66) 55%, rgba(15, 23, 42, 0.5) 100%); /* Darker overlay, left side stronger for text */
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 120px;
}

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

.hero h1 {
  font-size: 3.5rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero h1 b {
  color: var(--color-teal);
}

.hero .lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-gift {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-teal);
  font-weight: 600;
}

.hero-chips {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

/* FACTS STRIP */
.facts {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 40px 0;
}

.facts-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.fact {
  text-align: center;
  flex: 1;
  min-width: 140px;
}

.fact-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-teal);
  margin-bottom: 2px;
}

.fact-txt {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* QUIZ / CALCULATOR */
.quiz {
  background-color: var(--bg-primary);
}

.quiz-box {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.quiz-main {
  padding: 48px;
}

.quiz-progress-bar {
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.quiz-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--color-teal);
  transition: width 0.3s ease;
}

.quiz-q {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 28px;
}

.q-opts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.q-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  border-radius: 8px;
}

.q-opt:hover, .q-opt.selected {
  border-color: var(--color-teal);
  background: var(--color-teal-light);
}

.radio-dot {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.q-opt.selected .radio-dot {
  border-color: var(--color-teal);
}

.q-opt.selected .radio-dot::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  background: var(--color-teal);
  border-radius: 50%;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.quiz-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.input-field {
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: #fff;
  border-radius: 6px;
}

.input-field:focus {
  border-color: var(--color-teal);
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.quiz-btn-prev {
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
}

.quiz-btn-prev:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.quiz-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #0f172a;
  color: #fff;
}

.quiz-side-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.quiz-side-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
}

.quiz-side-content h4 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 6px;
}

.quiz-side-content p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* PORTFOLIO / GALLERY */
.gallery {
  background-color: var(--bg-secondary);
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.gcard {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gcard .main {
  height: 250px;
  position: relative;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.gcard .main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gcard .main .garr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
}

.gcard .main .garr:hover {
  background: var(--color-teal);
  color: #fff;
}

.gcard .main .garr.prev { left: 12px; }
.gcard .main .garr.next { right: 12px; }

.gcard .gcount {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.gthumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  background: var(--bg-secondary);
}

.gthumb {
  height: 45px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
}

.gthumb.act, .gthumb:hover {
  border-color: var(--color-teal);
}

.gthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gmeta {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gmeta .m {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.gmeta .go {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-teal);
  text-decoration: none;
}

.gmeta .go:hover {
  color: var(--color-teal-hover);
}

.gal-footer {
  text-align: center;
  margin-top: 48px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.gal-footer a {
  color: var(--color-teal);
  font-weight: 700;
  text-decoration: none;
}

/* PACKAGES */
.pkgs {
  background-color: var(--bg-primary);
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.pkg-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pkg-card.highlight {
  border-color: var(--color-teal);
  background: #fff;
}

.pkg-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-teal);
  color: #fff;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
}

.pkg-img {
  height: 180px;
}

.pkg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pkg-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pkg-body h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.pkg-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-teal);
  margin-bottom: 20px;
}

.pkg-price small {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pkg-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.pkg-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ONLINE CONTROL */
.features {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feat-card {
  background: var(--bg-primary);
  padding: 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.feat-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feat-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* TEAM */
.team {
  background-color: var(--bg-primary);
}

.team-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.team-visual {
  position: relative;
  height: 450px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.team-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--color-teal);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
}

.team-badge h4 {
  font-size: 0.95rem;
  color: #fff;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.team-item h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.team-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* PROCESS TIMELINE */
.process {
  background-color: var(--bg-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg-primary);
  padding: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  position: relative;
  box-shadow: var(--shadow);
}

.step-num {
  font-size: 2.5rem;
  color: var(--color-teal-light);
  position: absolute;
  top: 16px;
  right: 20px;
  font-weight: 800;
}

.step-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* REVIEWS */
.reviews {
  background-color: var(--bg-primary);
}

.rev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.rev-card {
  background: #ffffff;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.rev-card p {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 0;
  font-style: normal;
}

/* SPECIAL OFFERS */
.offers {
  background-color: var(--bg-secondary);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.offer-card {
  background: var(--bg-primary);
  padding: 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.offer-card.highlight {
  border-color: var(--color-teal);
  background: var(--color-teal-light);
}

.offer-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.offer-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.offer-value {
  margin-top: auto;
  font-weight: 700;
  color: var(--color-teal);
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* CTA FORM */
.cta {
  background-color: var(--bg-primary);
}

.cta-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 60px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.cta-left h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.cta-left p {
  color: var(--text-muted);
  font-size: 1rem;
}

.cta-right {
  background: #fff;
  padding: 36px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.cta-right form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-success-message {
  display: none;
  font-size: 1rem;
  color: var(--color-teal);
  text-align: center;
  font-weight: 700;
}

/* CONTACTS */
.contacts {
  background-color: var(--bg-secondary);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
}

.contacts-card {
  background: var(--bg-primary);
  padding: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow);
}

.ci-item h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.ci-item p, .ci-phone-link {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ci-phone-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--color-teal);
}

.contacts-map {
  height: 350px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.contacts-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* FOOTER */
footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 32px 0;
  font-size: 0.85rem;
}

.foot-bottom {
  text-align: center;
}

/* Согласие с документами в формах */
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 0.85rem; line-height: 1.45; color: var(--text-muted); cursor: pointer; text-align: left; }
.consent input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; accent-color: var(--color-teal); cursor: pointer; }
.consent a { color: var(--color-teal); text-decoration: underline; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* FOOTER: реквизиты и документы */
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); text-align: left; }
.foot-req { line-height: 1.75; max-width: 640px; }
.foot-req-title { color: #fff; font-weight: 600; margin-bottom: 4px; font-size: 0.95rem; }
.foot-req a, .foot-links a { color: #cbd5e1; text-decoration: none; transition: color .2s; }
.foot-req a:hover, .foot-links a:hover { color: #fff; }
.foot-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
@media (max-width: 768px) { .foot-links { align-items: flex-start; } }

/* FLOATING CALL CONTROLS */
.float-controls {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  text-decoration: none;
}

.float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.float-btn.wa {
  background-color: #25D366;
}

.float-btn.tel {
  background-color: var(--color-teal);
}

.logo-container img {
  filter: none;
  transition: var(--transition);
}

header.scrolled .logo-container img {
  filter: none;
}

/* MOBILE MENU NAVIGATION & BURGER */
.burger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 110;
  padding: 8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: var(--transition);
}

header.scrolled .burger span {
  background-color: var(--text-primary);
}

.burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-menu-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(12px);
  z-index: 105;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-menu-mobile.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-menu-mobile a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.nav-menu-mobile a:hover {
  color: var(--color-teal);
}

.nav-menu-mobile-phone {
  margin-top: 20px;
  color: var(--color-teal) !important;
}

/* Планшет: компактная шапка, чтобы ничего не наезжало */
@media (max-width: 1240px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.8rem; }
  .nav-right { gap: 12px; }
  .nav-phone { font-size: 0.85rem; white-space: nowrap; }
  .nav-right .btn { padding: 11px 18px; font-size: 0.8rem; white-space: nowrap; }
  .logo-container img { max-height: 34px !important; }
}

/* Узкий планшет: переходим на бургер раньше, чем всё сожмётся */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-right .btn { display: none; }
}

@media (max-width: 992px) {
  .hero h1 { font-size: 2.5rem; }
  .team-grid, .cta-box, .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
  .quiz-box { grid-template-columns: 1fr; }
  .quiz-side { display: none; }
  .nav-links { display: none; }
  .burger { display: flex; }
  header.scrolled .nav-phone { display: none; }
  header .nav-phone { display: none; }
  header .btn-primary { display: none; }
  .cta-box {
    display: flex !important;
    flex-direction: column !important;
    padding: 30px 20px;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .sec-head h2 {
    font-size: 2rem;
  }
  
  .hero {
    height: auto;
    padding: 140px 0 80px 0;
  }
  
  .hero .wrap {
    padding-top: 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .lead {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }
  
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .facts-grid .fact:nth-child(5) {
    grid-column: span 2;
    text-align: center;
  }
  
  .cta-left h2 {
    font-size: 1.8rem;
  }
  
  .cta-right {
    padding: 24px 16px;
  }
  
  .pkg-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .gal-grid {
    grid-template-columns: 1fr;
  }
  
  .rev-grid {
    grid-template-columns: 1fr;
  }
  
  .feat-grid {
    grid-template-columns: 1fr;
  }
  
  .rev-header-row {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 20px !important;
  }
  
  .rev-header-row .sec-head {
    min-width: auto !important;
  }
  
  .rev-header-row h2 {
    font-size: 1.6rem !important;
    word-break: keep-all;
  }
  
  .yandex-rating-badge {
    margin-top: 0 !important;
    width: 100%;
    justify-content: center;
  }
  
  .rev-cta-container .btn {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 12px !important;
    font-size: 0.85rem !important;
  }
  
  .rev-cta-container .btn span {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }
  
  .facts-grid {
    grid-template-columns: 1fr;
  }
  
  .facts-grid .fact:nth-child(5) {
    grid-column: auto;
  }
  
  .quiz-main {
    padding: 20px;
  }
  
  .q-opt {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
  
  .float-controls {
    bottom: 20px;
    right: 20px;
  }
  
  .float-btn {
    width: 48px;
    height: 48px;
  }
  
  .cta-box {
    padding: 24px 16px !important;
  }
  
  .cta-left h2 {
    font-size: 1.5rem;
  }
}
