/* ======================================
   1. ОБЩИЕ СТИЛИ
   ====================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", Arial, sans-serif;
}

body {
  line-height: 1.6;
  color: var(--text, #333);
  background-color: var(--bg, #f9f9f9);
}

/* Theme variables for easier refactor */
:root{
  --color-primary: #e74c3c;
  --color-secondary: #0f1724;

  --bg: #f9f9f9;
  --surface: #ffffff;
  --surface-alt: #fbfbfb;
  --bg-muted: #f0f0f0;
  --bg-elev: #ebebeb;
  --text: #333333;
  --muted: #666666;
  --muted-soft: #bbbbbb;
  --border: #eeeeee;
  --dark: #222222;

  --radius: 8px;
  --soft-shadow: 0 6px 20px rgba(0,0,0,0.06);
  --color-primary-rgba: 231,76,60;
}

/* --- Тема: CSS переменные (рефакторинг) --- */

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

section {
  padding: 60px 0;
}

/* Добавляем стили для заголовков */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  color: var(--color-secondary);
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--color-primary);
}

/* ======================================
   2. КНОПКИ
   ====================================== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--color-primary);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  border: 2px solid var(--color-primary);
}

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

/* ======================================
   3. НАВИГАЦИЯ
   ====================================== */
nav {
  background-color: var(--surface);
  box-shadow: var(--soft-shadow);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

/* Верхняя навигация */
.top-nav {
  border-bottom: 1px solid var(--border);
  background-color: var(--color-primary); /* Добавляем красный фон */
}

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

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--surface);
  display: flex;
  align-items: center;
}

.logo i {
  color: var(--surface);
  margin-right: 10px;
}

.phone-number a {
  color: var(--surface);
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.phone-number i {
  color: var(--surface);
  margin-right: 8px;
}

/* Основная навигация */
.main-nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  position: relative;
}

.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  margin: 0 15px;
}

.menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
}

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

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  position: absolute;
  right: 20px;
}

/* Анимация гамбургер-иконки */
.hamburger i {
  transition: transform 0.3s ease;
}

.hamburger.active i {
  transform: rotate(90deg);
}

/* ======================================
   4. СЛАЙДЕР/ШАПКА
   ====================================== */
.slider {
  height: 500px;
  max-height: 600px;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 600px;
  padding: 0 20px;
}

/* Заголовок слайдера с эффектом тени */
.slide-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.slide-1 {
  background-image: url("bg/bg2.webp");
}

.slide-2 {
  background-image: url("bg/bg1.webp");
}

.slide-3 {
  background-image: url("bg/bg3.webp");
}

/* ======================================
   5. ПРЕИМУЩЕСТВА
   ====================================== */
.advantages {
  background-color: var(--surface);
}

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

.advantage-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-10px);
}

.advantage-item i {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.advantage-item h3 {
  margin-bottom: 15px;
}

/* ======================================
   6. АКЦИЯ
   ====================================== */
.promotion {
  /* Фон: изображение с градиентным наложением для контрастности текста */
  background-image: linear-gradient(rgba(231,76,60,0.85), rgba(238,99,80,0.6)), url("bg/bg3.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: white;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.promotion::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  background-color: rgba(255, 255, 255, 0.1);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  z-index: 1;
}

.promotion::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  background-color: rgba(255, 255, 255, 0.1);
  width: 250px;
  height: 250px;
  border-radius: 50%;
  z-index: 1;
}

.promotion h2 {
  color: white;
}

.promotion h2::after {
  background: white;
}

.promotion-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  gap: 30px;
}

.promotion-text {
  flex: 1.2;
  padding-right: 30px;
}

.promotion-text h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 10px;
}

.discount {
  font-size: 3rem;
  font-weight: 800;
  margin: 12px 0 18px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  color: #fff;
  background: rgba(0,0,0,0.12);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 8px;
}

.promotion-btn {
  margin-top: 12px;
  background-color: var(--surface);
  color: var(--color-primary);
  border: 2px solid var(--surface);
}

.promotion-btn:hover {
  background-color: transparent;
  color: white;
  border-color: white;
}

.promotion-timer {
  /* Сделать таймер более контрастным и читабельным */
  background: rgba(255,255,255,0.92);
  padding: 22px 18px;
  border-radius: 12px;
  text-align: center;
  min-width: 260px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
}

.promotion-timer p {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-item span:first-child {
  font-size: 2.1rem;
  font-weight: 800;
  /* Сильный контраст: тёмная карточка с белыми цифрами */
  background: linear-gradient(180deg, rgba(15,23,36,0.98), rgba(10,15,20,0.98));
  color: #ffffff;
  border-radius: 10px;
  width: 70px;
  height: 70px;
  line-height: 70px;
  text-align: center;
  margin-bottom: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* New promotion elements */
.promotion .eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.95);
  margin-bottom: 8px;
}

.promotion .promotion-desc {
  color: rgba(255,255,255,0.95);
  font-size: 1rem;
  margin-bottom: 14px;
}

.promotion-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.large-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border: none;
}

/* Bright, attention-grabbing pulse for CTA */
@keyframes pulseBright {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 30px rgba(var(--color-primary-rgba), 0.18), 0 0 0 0 rgba(var(--color-primary-rgba), 0.0);
    filter: brightness(1);
  }
  40% {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 26px 60px rgba(var(--color-primary-rgba), 0.28), 0 0 30px 8px rgba(var(--color-primary-rgba), 0.12);
    filter: brightness(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 30px rgba(var(--color-primary-rgba), 0.18), 0 0 0 0 rgba(var(--color-primary-rgba), 0.0);
    filter: brightness(1);
  }
}

/* short burst: 3 quick pulses */
.cta-bright-burst {
  animation: pulseBright 0.9s ease-in-out 3;
}

/* continuous gentle loop while CTA is visible */
.cta-bright-loop {
  animation: pulseBright 1.6s ease-in-out infinite;
}

/* make sure reduced-motion users don't get animation */
@media (prefers-reduced-motion: reduce) {
  .cta-bright-burst,
  .cta-bright-loop {
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
}

/* CSS-only: apply gentle bright loop to promotion CTA by default (no JS required) */
.promotion-btn.large-cta,
.promotion-btn.large-cta.large-cta {
  /* apply the loop animation to make it cyclic and noticeable */
  animation: pulseBright 1.6s ease-in-out infinite;
}

/* but respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .promotion-btn.large-cta,
  .promotion-btn.large-cta.large-cta {
    animation: none !important;
  }
}

.large-cta .phone-visual {
  font-size: 1.25rem;
  background: linear-gradient(90deg, #ff9b8f, #ff6b5f);
  padding: 8px;
  border-radius: 8px;
}

.large-cta .cta-number {
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.95;
}

.ghost-cta {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 16px;
}

.promotion-trust {
  display: flex;
  gap: 18px;
  list-style: none;
  margin-top: 16px;
  align-items: center;
}

.promotion-trust li {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255,255,255,0.95);
  font-weight: 600;
}

.promotion .timer-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.promotion .small-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
}

/* subtle entrance animation for promo */
.promotion { animation: promoIn 0.9s ease both; }
@keyframes promoIn {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.countdown-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
}

.promotion-timer .timer-title {
  color: var(--color-secondary);
  font-weight: 700;
}

.promotion-timer .small-note {
  color: var(--muted);
}

/* ======================================
   7. УСЛУГИ
   ====================================== */
.services {
  background-color: var(--bg-muted);
}

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

.service-item {
  background-color: var(--surface);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-10px);
}

.service-icon {
  background-color: var(--surface-alt);
  padding: 30px 0;
  text-align: center;
}

.service-icon i {
  font-size: 3rem;
  color: var(--color-primary);
}

.service-content {
  padding: 20px;
}

/* Заголовки в карточках услуг */
.service-content h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

/* ======================================
   7.5. КАК МЫ РАБОТАЕМ
   ====================================== */
.how-we-work {
  background-color: var(--surface);
  padding: 80px 0;
}

.work-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.step-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.step-item h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text);
}

.step-item p {
  color: var(--muted);
  line-height: 1.6;
}

/* ======================================
   8. ПРАЙС-ЛИСТ
   ====================================== */
.price-list {
  background-color: var(--surface);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.price-table th,
.price-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.price-table th {
  background-color: var(--surface-alt);
  font-weight: bold;
}

.price-table tr:hover {
  background-color: var(--bg);
}

/* ======================================
   9. О КОМПАНИИ
   ====================================== */
.about {
  background-color: #f7e8e6;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
}

.about-image {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ======================================
   10. ОТЗЫВЫ
   ====================================== */
.reviews {
  background-color: var(--surface);
}

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

.review-item {
  background-color: var(--surface);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  position: relative;
  border: 1px solid var(--border);
}

.review-item::before {
  content: "\201C";
  font-size: 4rem;
  position: absolute;
  top: 10px;
  left: 10px;
  color: var(--color-primary);
  opacity: 0.2;
}

.review-text {
  margin-bottom: 20px;
  font-style: italic;
}

.reviewer {
  display: flex;
  align-items: center;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  overflow: hidden;
}

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

.reviewer-info h4 {
  margin-bottom: 5px;
}

.stars {
  color: #ffd700;
  margin-top: 5px;
}

/* ======================================
   11. ФОТО РАБОТ
   ====================================== */
.portfolio {
  background-color: var(--bg-elev);
}

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

.portfolio-item {
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  height: 200px;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-nav {
  display: none;
}

.portfolio-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

/* ======================================
   12. ПРОИЗВОДИТЕЛИ
   ====================================== */
.brands {
  background-color: var(--surface);
}

.brands-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  justify-items: center;
  align-items: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.brand-item {
  width: 150px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
  padding: 10px;
  background-color: var(--surface);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.brand-item:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.brand-item img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  display: block;
}

/* ======================================
   12.5. СЕРТИФИКАТЫ
   ====================================== */
.certificates {
  background-color: #f7e8e6;
  padding: 80px 0;
}

.certificates-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  color: var(--muted);
}

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

.certificate-item {
  background-color: var(--surface);
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.certificate-item:hover {
  transform: translateY(-5px);
}

.certificate-icon {
  font-size: 4rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.certificate-item h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text);
}

.certificate-item p {
  color: var(--muted);
  line-height: 1.6;
}

/* ======================================
   13. FAQ
   ====================================== */
.faq {
  background-color: var(--bg-muted);
  padding: 60px 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--surface);
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--bg);
}

.faq-question h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.faq-toggle {
  width: 30px;
  height: 30px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 20px 20px;
}

/* ======================================
   14. ФУТЕР
   ====================================== */
.footer {
  background-color: var(--color-secondary);
  color: var(--surface);
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-primary);
}

.footer-column p,
.footer-column a {
  color: var(--muted-soft);
  margin-bottom: 10px;
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--surface);
}

.social-icons {
  display: flex;
  margin-top: 15px;
}

.social-icons a {
  display: inline-flex;
  width: 35px;
  height: 35px;
  background-color: var(--dark);
  border-radius: 50%;
  margin-right: 10px;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  transition: background 0.3s;
}

.social-icons a:hover {
  background-color: var(--color-primary);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted-soft);
  font-size: 0.9rem;
}

/* ======================================
   15. CALL-TO-ACTION КНОПКА
   ====================================== */
.call-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #2ecc71; /* changed to green to make call button stand out */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 99;
  animation: pulse 2s infinite;
  cursor: pointer;
  text-decoration: none;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    /* pulse color changed to green */
    box-shadow: 0 0 0 0 rgba(46,204,113, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(46,204,113, 0);
  }
  100% {
    transform: scale(1);
  }
}

/* ======================================
   16. МЕДИА-ЗАПРОСЫ
   ====================================== */
/* Десктопы и планшеты */
@media (max-width: 992px) {
  /* Навигация */
  .hamburger {
    display: block;
  }

  .main-nav-container {
    justify-content: flex-end;
    padding-right: 60px;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 0;
  }

  .menu.active {
    display: flex;
  }

  .menu li {
    margin: 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  .menu li:last-child {
    border-bottom: none;
  }

  .menu a {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
  }

  .menu a:hover {
    background-color: var(--bg);
  }
}

/* Планшеты */
@media (max-width: 768px) {
  /* Типография */
  h2 {
    font-size: 1.8rem;
  }

  /* Секции */
  .advantage-item,
  .service-item,
  .review-item {
    padding: 20px 15px;
  }

  /* О компании */
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image {
    order: -1;
    margin-bottom: 20px;
    max-width: 100%;
  }

  .about-text {
    text-align: center;
  }

  /* Слайдер */
  .slide {
    justify-content: center;
    text-align: center;
  }

  .slider {
    height: 400px;
  }

  .slide-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .slide-content p {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  /* Кнопки */
  .btn {
    padding: 8px 20px;
    font-size: 0.8rem;
  }

  /* Портфолио */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Бренды */
  .brand-item {
    width: 120px;
    height: 70px;
  }

  /* Акция */
  .promotion-content {
    flex-direction: column;
    align-items: center;
  }

  .promotion-text {
    padding-right: 0;
    margin-bottom: 30px;
    text-align: center;
  }

  .promotion-timer {
    width: 100%;
    min-width: auto;
    max-width: 350px;
    margin-top: 20px;
    padding: 20px 15px;
  }

  .discount {
    font-size: 2.5rem;
    margin: 15px 0;
  }

  .countdown-item span:first-child {
    font-size: 2rem;
    width: 50px;
    line-height: 50px;
  }

  .countdown {
    gap: 10px;
  }

  .countdown-label {
    font-size: 0.7rem;
  }
}

/* Мобильные устройства */
@media (max-width: 576px) {
  /* Слайдер */
  .slider {
    height: 450px;
    padding-top: 80px;
  }

  .slide {
    align-items: center;
    padding-top: 0;
  }

  .slide-content {
    margin-top: 0;
    padding: 0 15px;
  }

  .slide-content h1 {
    font-size: 1.8rem;
  }

  /* Make promotion content stack and center CTAs on mobile */
  .promotion-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .promotion-text {
    padding: 0;
  }

  .promotion-timer {
    min-width: auto;
    width: 100%;
    max-width: 320px;
  }

  .promotion-cta {
    justify-content: center;
    width: 100%;
  }

  .promotion-cta .large-cta,
  .promotion-cta .ghost-cta {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* On small screens put the CTA label above the phone number */
  /* Compact row CTA: icon left, two stacked lines right */
  .large-cta {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    height: auto;
  }

  .large-cta .phone-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    background: linear-gradient(90deg, #ff9b8f, #ff6b5f);
    padding: 6px;
    border-radius: 8px;
  }

  .large-cta .cta-lines {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
  }

  .large-cta .cta-text {
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .large-cta .cta-number {
    font-size: 0.85rem;
    opacity: 0.95;
    color: var(--color-primary);
  }

  .slide-content p {
    font-size: 0.95rem;
  }

  /* Верхняя навигация - решение проблемы на мобильных */
  .top-nav-container {
    height: 50px;
    padding: 0 5px;
    justify-content: space-between;
  }

  .logo {
    font-size: 1.1rem;
    max-width: 50%;
  }

  .logo i {
    margin-right: 5px;
  }

  .phone-number {
    max-width: 50%;
    text-align: right;
  }

  .phone-number a {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .phone-number i {
    margin-right: 4px;
  }

  .container {
    padding: 0 10px;
  }

  /* FAQ */
  .faq-question h3 {
    font-size: 1rem;
  }

  .faq-question {
    padding: 15px;
  }

  .faq-toggle {
    min-width: 24px;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }

  /* Портфолио для мобильных */
  .portfolio-grid {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 250px;
  }

  .portfolio-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  .portfolio-item.active {
    opacity: 1;
    z-index: 2;
  }

  .portfolio-nav {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.85);
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .portfolio-prev {
    left: 10px;
  }

  .portfolio-next {
    right: 10px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
  /* Оптимизация шапки для самых маленьких экранов */
  .phone-number a span {
    display: none;
  }

  .phone-number a i {
    font-size: 1.5rem;
    margin-right: 0;
  }

  /* Акция */
  .promotion-text h3 {
    font-size: 1.4rem;
  }

  .discount {
    font-size: 2rem;
  }

  .countdown-item span:first-child {
    width: 40px;
    font-size: 1.6rem;
    line-height: 40px;
  }
}

/* ======================================
   16. АНИМАЦИИ НА ПРОКРУТКУ
   ====================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Unused animation helpers removed */

/* Анимации для шагов работы */
.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.2s; }
.step-item:nth-child(3) { animation-delay: 0.3s; }
.step-item:nth-child(4) { animation-delay: 0.4s; }

/* Анимации для сертификатов */
.certificate-item:nth-child(1) { animation-delay: 0.1s; }
.certificate-item:nth-child(2) { animation-delay: 0.2s; }
.certificate-item:nth-child(3) { animation-delay: 0.3s; }
.certificate-item:nth-child(4) { animation-delay: 0.4s; }

/* Unused modal/keyframe definitions removed */
.certificate-item:nth-child(2) { animation-delay: 0.2s; }
