:root {
  --accent: #29C6B9;
  --main-bg: #f8fafb;
  --title: #0d1b2a;
  --text: #2b3a4b;
  --card-bg: #fff;
  --shadow: 0 1px 8px rgba(13, 27, 42, 0.08);
  --muted-text: #6b7280;
}
[data-theme="dark"] {
  --main-bg: #1a1d21;
  --card-bg: #23272A;
  --title: #f8fafb;
  --text: #e8f4f3;
  --shadow: 0 8px 32px rgba(41, 198, 185, 0.15);
  --muted-text: #a8b5c7;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--main-bg);
  color: var(--text);
  font: 18px/1.6 'Inter', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* ---------- HEADER ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(248,250,251,0.97);
  min-height: 56px;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(41,198,185,0.11);
  transition: padding 0.3s, min-height 0.3s, background 0.3s;
}
[data-theme="dark"] .nav {
  background: rgba(26,29,33,0.98);
  border-bottom: 1px solid rgba(41,198,185,0.18);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  filter: drop-shadow(0 0 10px var(--accent));
  height: 32px;
  width: 32px;
}
.site-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 17px;
}
.accent-link {
  color: var(--accent)!important;
  font-weight: 700;
  background: rgba(41,198,185,.1)!important;
}
[data-theme="dark"] .nav-links a {
  color: var(--text);
}
.nav-links a:hover {
  color: var(--accent);
  background: rgba(41,198,185,0.10);
  transform: translateY(-2px);
}
.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
#theme-switch {
  background: linear-gradient(135deg, var(--accent) 0%, #70e1bb 100%);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(41,198,185,0.12);
  color: white;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
[data-theme="dark"] #theme-switch {
  background: linear-gradient(135deg, #70e1bb 0%, var(--accent) 100%);
}
#theme-switch:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(41,198,185,.18);
}

/* Бургер */
.burger { display: none; }

/* ---------- MOBILE HEADER ---------- */
@media (max-width: 800px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 8px;
    min-height: 56px;
  }
  .site-title { font-size: 18px; }
  .nav-links { font-size: 16px; gap: 9px; }
  .accent-link { font-size: 15px; padding: 8px 13px; border-radius: 9px; }
  .nav-controls { gap: 8px; }
  .logo img { height: 28px; width: 28px; }
  .logo { gap: 8px; }
}

/* ---------- MOBILE MENU DROPDOWN ---------- */
@media (max-width: 800px) {
  .burger {
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    padding: 7px;
    border-radius: 7px;
    background: none;
    border: none;
  }
  .burger span {
    width: 22px; height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
  }
  .burger.active span:nth-child(1) { transform: rotate(45deg) translate(4px,5px);}
  .burger.active span:nth-child(2) { opacity: 0;}
  .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px);}
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background: var(--main-bg);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1200;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    padding: 10px 13px 10px 13px;
    box-shadow: 0 8px 20px rgba(41,198,185,0.11);
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ---------- MAIN OFF-HEADER BLOCKS ---------- */
#hero, section.hero {
  margin-top: 58px;
}
@media (max-width:800px) {
  #hero, section.hero { margin-top: 64px; }
}
@media (max-width:480px) {
  #hero, section.hero { margin-top: 75px; }
}
section {
  padding: 62px 8px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- СЕО Heading Styles ---------- */
h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 45px;
  color: var(--title);
  margin-bottom: 28px;
  text-align: center;
  background: linear-gradient(135deg, #29C6B9 0%, #70e1bb 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 33px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--title);
}
h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  margin-bottom: 18px;
  color: var(--title);
}

/* ---------- CARDS & BLOCKS (ОСТАНОВИТЕСЬ СО СТАРЫМИ СТИЛЯМИ) ---------- */
.card-anim { transition: all 0.3s ease; }
.card-anim:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 12px 30px rgba(41,198,185,0.15); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 28px 20px;
  transition: all 0.3s;
  cursor: pointer;
  text-align: center;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  position: relative;
}
.service-icon { width: 62px; height: 62px; margin-bottom: 16px; filter: drop-shadow(0 0 10px #29C6B9); transition: all 0.3s;}
.service-card:hover .service-icon { transform: scale(1.08); filter: drop-shadow(0 0 15px #29C6B9);}
.service-card h3 { margin-bottom: 18px; color: var(--title);}
.service-card ul { list-style: none; text-align: left; margin-bottom: 18px; }
.service-card li { padding: 8px 0 8px 20px; position: relative; color: var(--text);}
.service-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: bold;}
.service-price { color: var(--accent); font-size: 20px; font-weight: 700; margin-bottom: 16px;}
.card-cta {
  background: linear-gradient(135deg, #29C6B9 0%, #70e1bb 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(41,198,185,0.18);
}
.card-cta:hover { transform: scale(1.04); box-shadow: 0 8px 20px rgba(41,198,185,0.22); }

/* ---------- BENEFITS GRID & BLOCKS ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .benefits-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .benefits-grid { grid-template-columns: 1fr; }
}
.benefit-block {
  text-align: center;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 21px;
  transition: all 0.3s;
  width: 100%;
  max-width: 270px;
  margin: 0 auto;
  position: relative;
}
.benefit-block img { width: 55px; height: 55px; margin-bottom: 16px; filter: drop-shadow(0 0 8px #29C6B9);}
.benefit-block h3 { margin-bottom: 13px; color: var(--title);}
.benefit-block p { color: var(--text); line-height: 1.6;}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.review-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px;
  transition: all 0.3s;
  width: 100%;
  max-width: 370px;
  margin: 0 auto;
  position: relative;
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 9px 22px rgba(41,198,185,0.10);}
.review-card blockquote { font-style: italic; margin-bottom: 11px; line-height: 1.7; font-size: 15px; color: var(--text);}
.review-card footer { display: none; }

/* ------ ФОРМА -------- */
.leadform {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 35px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.lead-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--muted-text);
  background: rgba(41,198,185,0.07);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(41,198,185,0.10);
}
.lead-guarantee img { width: 16px; height: 16px; filter: drop-shadow(0 0 5px var(--accent)); }

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 22px 10px 18px;
  color: var(--muted-text);
  font-size: 14px;
  border-top: 1px solid rgba(229, 231, 235, 0.18);
  background: var(--main-bg);
}
footer a { color: var(--accent); text-decoration: none;}
footer a:hover { text-decoration: underline; }
.studio-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.8;
  margin-top: 10px;
}
.studio-link img {
  height: 14px;
  width: auto;
  display: inline-block;
}
@media (max-width: 480px) {
  .studio-credit { flex-direction: column; gap: 5px; }
  .studio-link img { height: 13px; }
}

/* ---------- GENERAL ADAPTIVE ---------- */
@media (max-width: 700px) {
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  h3 { font-size: 16px; }
  .lead { font-size: 15px; }
  section, .leadform { padding: 22px 5px; }
  .service-card, .benefit-block, .review-card, .leadform { padding: 10px; }
}

