/* ===== CHATBOT-SETUP.RU — Main Stylesheet ===== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #e8f0fe;
  --accent: #ff6d00;
  --accent-dark: #e65100;
  --dark: #1a1a2e;
  --gray-900: #212529;
  --gray-700: #495057;
  --gray-500: #6c757d;
  --gray-300: #dee2e6;
  --gray-100: #f8f9fa;
  --white: #ffffff;
  --success: #28a745;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

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

h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.header {
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo__icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
}

.logo span { color: var(--primary); }

/* Navigation */
.nav { display: flex; align-items: center; gap: 8px; }

.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav__link:hover { color: var(--primary); background: var(--primary-light); }
.nav__link--active { color: var(--primary); background: var(--primary-light); }

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__dropdown-toggle::after {
  content: '▼';
  font-size: 0.55em;
  margin-left: 2px;
}

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 8px 0;
  min-width: 260px;
  z-index: 100;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown--open .nav__dropdown-menu { display: block; }

.nav__dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--gray-700);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.nav__dropdown-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.header__phone {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}

.header__phone small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gray-500);
}

/* Личный кабинет button */
.nav__cabinet {
  background: #1a73e8;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  margin-left: 12px;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.nav__cabinet:hover {
  background: #1557b0;
  color: #fff !important;
}
/* Скрыть дубль кнопки внутри nav на десктопе */
.nav > .nav__cabinet {
  display: none;
}

/* Mobile menu button */
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  padding: 4px;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 50%, #0f3460 100%);
  color: var(--white);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,115,232,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }

.hero__text {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__chat-demo {
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.chat-demo__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-300);
  margin-bottom: 16px;
}

.chat-demo__avatar {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

.chat-demo__name {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.chat-demo__status {
  font-size: 0.75rem;
  color: var(--success);
}

.chat-demo__messages { display: flex; flex-direction: column; gap: 12px; }

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeInUp 0.5s ease both;
}

.chat-msg--bot {
  background: var(--primary-light);
  color: var(--dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg--user {
  background: var(--primary);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg:nth-child(2) { animation-delay: 0.3s; }
.chat-msg:nth-child(3) { animation-delay: 0.6s; }
.chat-msg:nth-child(4) { animation-delay: 0.9s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
  justify-content: center;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,109,0,0.4);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

.btn--blue {
  background: var(--primary);
  color: var(--white);
}

.btn--blue:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26,115,232,0.4);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section--gray { background: var(--gray-100); }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section__header p {
  margin-top: 16px;
  color: var(--gray-500);
  font-size: 1.1rem;
}

/* --- Service Cards Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.service-card__icon--blue { background: #e8f0fe; color: var(--primary); }
.service-card__icon--green { background: #e6f4ea; color: #28a745; }
.service-card__icon--purple { background: #f3e8fd; color: #7c3aed; }
.service-card__icon--orange { background: #fff3e0; color: var(--accent); }
.service-card__icon--pink { background: #fce4ec; color: #e91e63; }
.service-card__icon--teal { background: #e0f2f1; color: #00897b; }
.service-card__icon--red { background: #ffebee; color: #c62828; }
.service-card__icon--indigo { background: #e8eaf6; color: #3f51b5; }
.service-card__icon--yellow { background: #fff8e1; color: #f9a825; }

.service-card h3 { margin-bottom: 12px; }

.service-card p {
  color: var(--gray-500);
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.service-card__link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card__link::after { content: '→'; transition: transform var(--transition); }
.service-card__link:hover::after { transform: translateX(4px); }

/* --- Advantages --- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px;
}

.advantage {
  text-align: center;
  padding: 24px;
}

.advantage__number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 16px;
}

.advantage h3 { margin-bottom: 8px; }
.advantage p { color: var(--gray-500); font-size: 0.95rem; }

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  padding: 48px 0;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.section--dark .stat__number { color: var(--accent); }

.stat__label {
  margin-top: 8px;
  color: var(--gray-500);
  font-size: 0.95rem;
}

.section--dark .stat__label { color: rgba(255,255,255,0.7); }

/* --- How it works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--gray-500); font-size: 0.95rem; }

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.pricing-card--featured {
  border-color: var(--primary);
  transform: scale(1.02);
}

.pricing-card__badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.pricing-card h3 { margin-bottom: 16px; }

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-500);
}

.pricing-card__period {
  color: var(--gray-500);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.pricing-card__features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-card__features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
  color: var(--gray-700);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-card__features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* Pricing horizontal layout for single card */
.pricing-card--horizontal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 48px;
  gap: 40px;
  align-items: start;
}
.pricing-card--horizontal .pricing-card__left { text-align: center; }
.pricing-card--horizontal .pricing-card__price { margin-bottom: 8px; }
.pricing-card--horizontal .pricing-card__period { margin-bottom: 28px; }
.pricing-card--horizontal .pricing-card__features { margin-bottom: 0; }
.pricing-card--horizontal .pricing-card__install {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 0.9rem;
  text-align: center;
}
.pricing-card--horizontal .pricing-card__install > div { flex: 1; }

@media (max-width: 768px) {
  .pricing-card--horizontal {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 24px;
    text-align: center;
  }
  .pricing-card--horizontal .pricing-card__features { text-align: left; }
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.testimonial__stars { color: #f9a825; margin-bottom: 12px; font-size: 1.1rem; }

.testimonial__text {
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.7;
}

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

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial__name { font-weight: 600; }
.testimonial__role { font-size: 0.85rem; color: var(--gray-500); }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--gray-300);
}

.faq-item__question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--dark);
  transition: color var(--transition);
}

.faq-item__question:hover { color: var(--primary); }

.faq-item__question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform var(--transition);
}

.faq-item--open .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item--open .faq-item__answer {
  max-height: 500px;
  padding-bottom: 20px;
}

.faq-item__answer p {
  color: var(--gray-700);
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta h2 { color: var(--white); margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-bottom: 32px; }

.cta .btn--primary {
  background: var(--accent);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer .logo { color: var(--white); }

.footer__about p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer__links {
  list-style: none;
}

.footer__links li { margin-bottom: 8px; }

.footer__links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--white); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.footer__bottom-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.footer__bottom-links a { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer__bottom-links a:hover { color: var(--white); }

/* --- Service Page Specific --- */
.service-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
  color: var(--white);
  padding: 60px 0 80px;
}

.service-hero .breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.service-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.service-hero .breadcrumb a:hover { color: var(--white); }
.service-hero .breadcrumb span { color: rgba(255,255,255,0.4); }

.service-hero h1 { color: var(--white); margin-bottom: 16px; }
.service-hero h1 em { color: var(--accent); font-style: normal; }

.service-hero__text {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 700px;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* Benefits list */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.benefit {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.benefit__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.benefit h3 { margin-bottom: 6px; font-size: 1.1rem; }
.benefit p { color: var(--gray-500); font-size: 0.9rem; }

/* Use cases */
.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.use-case {
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
}

.use-case h4 { margin-bottom: 8px; font-size: 1rem; }
.use-case p { color: var(--gray-500); font-size: 0.9rem; }

/* Result block */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.result-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.result-card__value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.result-card__label {
  margin-top: 8px;
  color: var(--gray-500);
  font-size: 0.95rem;
}

/* --- Tablet & Mobile Responsive --- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__buttons { justify-content: center; }
  .hero__visual { margin-top: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .header__phone { display: none; }
  .header__inner > .nav__cabinet { display: none; }

  /* Мобильное меню — fullscreen под header */
  .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 24px;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.25s ease;
    pointer-events: none;
  }
  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link {
    text-align: left;
    width: 100%;
    padding: 14px 0;
    font-size: 1.1rem;
    background: none !important;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
  }
  .nav__link:hover {
    background: none !important;
    color: var(--primary);
  }
  .nav__link--active {
    color: var(--primary);
    font-weight: 700;
  }

  /* Пункты меню — появление с задержкой */
  .nav > * {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav--open > * {
    opacity: 1;
    transform: translateY(0);
  }
  .nav--open > *:nth-child(1) { transition-delay: 0.05s; }
  .nav--open > *:nth-child(2) { transition-delay: 0.1s; }
  .nav--open > *:nth-child(3) { transition-delay: 0.15s; }
  .nav--open > *:nth-child(4) { transition-delay: 0.2s; }
  .nav--open > *:nth-child(5) { transition-delay: 0.25s; }

  /* Dropdown «Услуги» — плавное раскрытие */
  .nav__dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 16px;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }
  .nav__dropdown--open .nav__dropdown-menu {
    max-height: 500px;
    opacity: 1;
  }
  .nav__dropdown:hover .nav__dropdown-menu {
    max-height: 0;
    opacity: 0;
  }
  .nav__dropdown--open:hover .nav__dropdown-menu {
    max-height: 500px;
    opacity: 1;
  }

  /* Стрелка «Услуги» — поворот при раскрытии */
  .nav__dropdown-toggle::after {
    transition: transform 0.25s ease;
  }
  .nav__dropdown--open .nav__dropdown-toggle::after {
    transform: rotate(180deg);
  }

  /* Бургер — анимация иконки */
  .burger {
    display: block;
    transition: transform 0.2s ease;
  }
  .burger:active {
    transform: scale(0.85);
  }

  .header__phone { display: none; }
  .header__inner > .nav__cabinet { display: none; }
  .nav .nav__cabinet {
    display: block;
    margin: 16px 0 0;
    text-align: center;
    border-radius: 8px;
    padding: 14px 22px;
    font-size: 1.05rem;
  }
  .nav__dropdown-toggle {
    padding: 12px 0;
    font-size: 1.05rem;
  }
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  body { padding-top: 64px; }
  .logo { font-size: 1.05rem; }
  .logo__icon { width: 32px; height: 32px; font-size: 1.1rem; }

  /* Блокировка скролла body когда меню открыто */
  body.menu-open { overflow: hidden; }

  .hero { padding: 48px 0 64px; }
  .section { padding: 48px 0; }

  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  /* Footer мобильный */
  .footer { padding: 40px 0 24px; }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
  }
  .footer__about .logo { margin-bottom: 8px; }
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding-top: 20px;
  }
  .footer__bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .footer__contact-item { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .hero__buttons { flex-direction: column; }
  .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat__number { font-size: 2rem; }
  .contact-form { padding: 24px; }
  .footer__bottom-links {
    flex-direction: column;
    gap: 8px;
  }
}

/* --- Contact Buttons Block --- */
.contact-buttons {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  transition: all var(--transition);
  text-align: left;
}

.contact-btn:hover {
  transform: translateY(-3px);
  color: var(--white);
}

.contact-btn__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-btn__text small {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 2px;
}

.contact-btn--phone {
  background: linear-gradient(135deg, #28a745, #20c997);
  box-shadow: 0 4px 16px rgba(40,167,69,0.3);
}
.contact-btn--phone:hover { box-shadow: 0 8px 24px rgba(40,167,69,0.4); }

.contact-btn--telegram {
  background: linear-gradient(135deg, #0088cc, #00b4d8);
  box-shadow: 0 4px 16px rgba(0,136,204,0.3);
}
.contact-btn--telegram:hover { box-shadow: 0 8px 24px rgba(0,136,204,0.4); }

@media (max-width: 480px) {
  .contact-btn { padding: 16px 20px; font-size: 1rem; }
  .contact-btn__icon { width: 44px; height: 44px; font-size: 1.3rem; }
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
