    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', sans-serif;
      background-color: #ffffff;
      color: #1e2a3e;
      line-height: 1.4;
      scroll-behavior: smooth;
    }

    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 24px;
    }

    /* header / nav */
    .top-bar {
      background: #0b2b3b;
      color: #f0f7fa;
      padding: 10px 0;
      font-size: 14px;
    }
    .top-bar .container {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }
    .top-contacts i, .top-info i {
      margin-right: 8px;
      color: #6bc2d9;
    }
    .top-contacts a {
      color: #fff;
      text-decoration: none;
      font-weight: 500;
      margin-right: 24px;
      transition: 0.2s;
    }
    .top-contacts a:hover {
      color: #ffcd7e;
    }
    .top-info span {
      margin-right: 20px;
    }
    
    
    .main-nav {
      background: rgb(255, 255, 255);
      box-shadow: 0 8px 20px rgba(0,0,0,0.05);
      position: sticky;
      top: 0;
      z-index: 100;
    }
    .nav-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 24px;
      max-width: 1280px;
      margin: 0 auto;
    }
    .logo {
      letter-spacing: -0.5px;
    }
    .telefon{
      display: none;
      color: #0a3a46;
      position: absolute;
      top: 26px;
      left: 230px;
    }

    
    

    .nav-links {
      display: flex;
      gap: 32px;
      list-style: none;
    }
    .nav-links a {
      text-decoration: none;
      font-weight: 600;
      color: #1e2a3e;
      transition: 0.2s;
      font-size: 1rem;
    }
    .nav-links a:hover, .nav-links a.active {
      color: #c73d2f;
      border-bottom: 2px solid #c73d2f;
      padding-bottom: 4px;
    }
    .phone-btn {
      background: #c73d2f;
      padding: 10px 20px;
      border-radius: 40px;
      color: white !important;
      font-weight: 700;
    }
    .phone-btn:hover {
      background: #a53124;
      border-bottom: none !important;
    }
    .menu-toggle {
      display: none;
      font-size: 28px;
      cursor: pointer;
    }
    
    
    /* Стили для выпадающего меню */
.nav-links li {
  position: relative;
  list-style: none;
}

.dropdown > a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown > a i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.dropdown:hover > a i,
.dropdown.active > a i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 250px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border-radius: 16px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
  border: 1px solid #eef2f5;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #1e2a3e;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
  background: #f8fafc;
  color: #c73d2f;
  padding-left: 26px;
}

/* Мобильная версия - исправленная */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
    gap: 15px;
    z-index: 200;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .dropdown {
    width: 100%;
    position: relative;
  }
  
  .dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #1e2a3e;
    text-decoration: none;
    font-weight: 600;
  }
  
  .dropdown > a i {
    font-size: 12px;
    transition: transform 0.3s ease;
  }
  
  .dropdown.active > a i {
    transform: rotate(180deg);
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    padding: 10px 0 10px 20px;
    margin-top: 5px;
    background: #f8fafc;
    border-radius: 12px;
    width: 100%;
    min-width: auto;
    border: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #1e2a3e;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  
  .dropdown-menu li a:hover {
    background: #e8f0f5;
    color: #c73d2f;
    padding-left: 20px;
  }
}
    
    

/* Плавное появление блоков */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s ease-out forwards;
}

.fade-up-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s ease-out 0.2s forwards;
}

.fade-up-delay-2 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s ease-out 0.5s forwards;
}

.fade-up-delay-3 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s ease-out 0.8s forwards;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


    /* hero */
    .hero {
      background-image: url('../img/ффо.webp');
      background-repeat: no-repeat;
      background-position: left;
      background-size: cover;
      padding: 60px 0 70px;
    }
    .hero-grid {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 40px;
    }
    .hero-text {
      flex: 1.2;
    }
    .hero-text h1 {
      font-size: 300%;
      font-weight: 800;
      line-height: 1.2;
      color: #0a3a46;
    }
    .hero-text h2 {
      font-size: 3rem;
      font-weight: 800;
      line-height: 1.2;
      color: #0a3a46;
      margin-bottom: 20px;
    }
    .hero-text p {
      font-size: 1.2rem;
      color: #2c4b5a;
      margin-bottom: 30px;
    }
    .hero-badge {
      background: #ffcd7e;
      display: inline-block;
      padding: 6px 18px;
      border-radius: 30px;
      font-weight: 700;
      font-size: 0.9rem;
      margin-bottom: 20px;
    }
    .btn {
      display: inline-block;
      background: #c73d2f;
      color: white;
      padding: 14px 32px;
      border-radius: 50px;
      font-weight: 700;
      text-decoration: none;
      transition: 0.3s;
      box-shadow: 0 6px 14px rgba(0,0,0,0.08);
      border: none;
      cursor: pointer;
      font-size: 1rem;
    }
    .btn-outline {
      background: transparent;
      border: 2px solid #c73d2f;
      color: #c73d2f;
      margin-left: 16px;
    }
    .btn-outline:hover {
      background: #c73d2f;
      color: white;
    }
    .hero-image {
      flex: 1;
      text-align: center;
    }
    .hero-image img {
      max-width: 100%;
      border-radius: 32px;
      box-shadow: 0 20px 35px rgba(0,0,0,0.1);
    }
    
    
    
    .service-strip-dark {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  background: #0a3a46;
}

.strip-btn-dark {
  flex: 1;
  text-align: center;
  padding: 18px 14px;
  background: #0a3a46;
  color: #ffffff;
  font-weight: 800;
  font-size: 17px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  border-right: 1px solid #1a5a6a;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.strip-btn-dark:last-child {
  border-right: none;
}

/* При наведении — светлее */
.strip-btn-dark:hover {
  background: #0f4d5c;
  color: #ffffff;
}

/* Эффект нажатия */
.strip-btn-dark:active {
  transform: translateY(1px);
}

/* Мобильная адаптация до 850px */
@media (max-width: 850px) {
  .strip-btn-dark {
    padding: 14px 10px;
    font-size: 15px;
    white-space: normal;
    word-break: keep-all;
  }
}

/* Планшеты и мобильные (650px и ниже) */
@media (max-width: 650px) {
  .service-strip-dark {
    flex-direction: column;
  }
  
  .strip-btn-dark {
    border-right: none;
    border-bottom: 1px solid #1a5a6a;
    text-align: center;
    padding: 14px 12px;
    font-size: 16px;
    width: 100%;
  }
  
  .strip-btn-dark:last-child {
    border-bottom: none;
  }
}

@media (max-width: 450px) {
  .strip-btn-dark {
    padding: 12px 10px;
    font-size: 14px;
  }
}
    
    

    /* services section */
    .section {
      padding: 80px 0;
    }
    .section-title {
      text-align: center;
      font-size: 2.5rem;
      font-weight: 800;
      margin-bottom: 20px;
      color: #0b2b3b;
    }
    .section-sub {
      text-align: center;
      color: #5a6e7c;
      max-width: 700px;
      margin: 0 auto 50px auto;
      font-size: 1.1rem;
    }
    .services-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      justify-content: center;
    }
    .service-card {
      background: #ffffff;
      border-radius: 28px;
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
      padding: 32px 24px;
      text-align: center;
      flex: 1 1 280px;
      transition: all 0.3s ease;
      border: 1px solid #eef2f5;
    }
    .service-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 25px 40px rgba(0, 0, 0, 0.1);
    }
    .service-icon {
      font-size: 3.5rem;
      color: #c73d2f;
      margin-bottom: 20px;
    }
    .service-card h3 {
      font-size: 1.6rem;
      margin-bottom: 16px;
    }
    .service-card p {
      color: #4a6272;
    }

    /* КАЛЬКУЛЯТОР ОКОН С ФИКСИРОВАННЫМИ ТИПАМИ */
    .calc-section {
      background: #f8fafc;
      padding: 60px 0;
    }
    .calc-container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 24px;
    }
    .calc-title {
      text-align: center;
      font-size: 2.2rem;
      font-weight: 800;
      color: #0b2b3b;
      margin-bottom: 12px;
    }
    .calc-desc {
      text-align: center;
      color: #5a6e7c;
      margin-bottom: 40px;
      font-size: 1rem;
    }
    .calc-badge {
      background: #c73d2f10;
      display: inline-block;
      padding: 4px 12px;
      border-radius: 30px;
      font-size: 0.8rem;
      color: #c73d2f;
      font-weight: 600;
      margin-bottom: 16px;
    }
    .price-cards {
      display: flex;
      flex-wrap: wrap;
      gap: 24px;
      justify-content: center;
      margin-bottom: 40px;
    }
    .price-card {
      background: white;
      border-radius: 28px;
      overflow: hidden;
      box-shadow: 0 12px 28px rgba(0,0,0,0.08);
      flex: 1 1 280px;
      transition: 0.2s;
      border: 1px solid #eef2f5;
    }
    .price-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 20px 35px rgba(0,0,0,0.12);
    }
    .card-img {
      background: url(../img/фо.webp);
      background-size: cover;
      height: 180px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 4rem;
      color: #c73d2f;
    }
    .card-info {
      padding: 24px 20px;
      text-align: center;
    }
    .card-info h3 {
      font-size: 1.5rem;
      margin-bottom: 12px;
      color: #1e2a3e;
    }
    .card-pric {
      font-size: 1.8rem;
      font-weight: 800;
      color: #c73d2f;
      margin: 12px 0;
    }
    .card-pric span {
      font-size: 1rem;
      font-weight: 400;
      color: #5a6e7c;
    }
    .card-desc {
      font-size: 0.85rem;
      color: #5a6e7c;
      margin-bottom: 16px;
    }
    .card-btn {
      background: #c73d2f;
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 40px;
      font-weight: 600;
      cursor: pointer;
      transition: 0.2s;
      width: 100%;
    }
    .card-btn:hover {
      background: #a53124;
    }
    .calc-note {
      text-align: center;
      font-size: 0.85rem;
      color: #6c8b9c;
      background: #ffffff;
      padding: 16px;
      border-radius: 60px;
      max-width: 500px;
      margin: 20px auto 0;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    .calc-note i {
      color: #c73d2f;
      margin-right: 6px;
    }

    /* преимущества */
    .advantages {
      background: #f8fafc;
    }
    .adv-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 40px;
      justify-content: space-between;
    }
    .adv-item {
      flex: 1;
      text-align: center;
      padding: 20px;
    }
    .adv-item i {
      font-size: 2.8rem;
      color: #c73d2f;
      margin-bottom: 16px;
    }
    .adv-item h4 {
      font-size: 1.5rem;
      margin-bottom: 12px;
    }

    /* portfolio / gallery */
    .gallery {
      display: flex;
      flex-wrap: wrap;
      gap: 24px;
      justify-content: center;
      margin-top: 30px;
    }
    .gallery-item {
      flex: 1 1 280px;
      border-radius: 24px;
      overflow: hidden;
      box-shadow: 0 12px 25px rgba(0,0,0,0.08);
      transition: 0.2s;
    }
    .gallery-item img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      display: block;
      transition: 0.3s;
    }
    .gallery-item:hover img {
      transform: scale(1.02);
    }
    .gallery-caption {
      padding: 16px;
      background: white;
      text-align: center;
      font-weight: 600;
    }

    /* form */
    .form-section {
      background: linear-gradient(120deg, #eef5f7, #ffffff);
    }
    .form-wrap {
      background: white;
      border-radius: 40px;
      padding: 40px;
      box-shadow: 0 25px 45px rgba(0,0,0,0.05);
      max-width: 750px;
      margin: 0 auto;
    }
    .input-group {
      margin-bottom: 20px;
    }
    .input-group input, .input-group select, .input-group textarea {
      width: 100%;
      padding: 14px 18px;
      border: 1px solid #dce5ea;
      border-radius: 60px;
      font-size: 1rem;
      font-family: inherit;
      transition: 0.2s;
    }
    .input-group textarea {
      border-radius: 24px;
      resize: vertical;
    }
    .input-group input:focus, .input-group select:focus {
      outline: none;
      border-color: #c73d2f;
      box-shadow: 0 0 0 3px rgba(199,61,47,0.2);
    }
    .form-row {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
    }
    .form-row .input-group {
      flex: 1;
    }
    .submit-btn {
      background: #c73d2f;
      width: 100%;
      padding: 16px;
      font-weight: 800;
      font-size: 1.1rem;
    }
    .submit-btn:hover {
      background: #a53124;
    }

    /* footer */
    footer {
      background: #0b2b3b;
      color: #d4e6ed;
      padding: 50px 0 30px;
    }
    .footer-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 40px;
      justify-content: space-between;
    }
    .footer-col {
      flex: 1;
      min-width: 200px;
    }
    .footer-col h4 {
      color: white;
      margin-bottom: 20px;
      font-size: 1.2rem;
    }
    .footer-col p, .footer-col a {
      color: #cbdbe2;
      text-decoration: none;
      line-height: 1.7;
      display: block;
      margin-bottom: 8px;
    }
    .footer-col i {
      width: 28px;
    }
    .copyright {
      text-align: center;
      margin-top: 50px;
      padding-top: 20px;
      border-top: 1px solid #255e6e;
      font-size: 0.85rem;
    }
    @media (max-width: 1160px) {
      .hero {
          background-size:cover;
        }
    }
    @media (max-width: 900px) {
        .zamer{
        display: none;
      }
      .telefon{
        display: block;
      }
      .hero-text h1 {
        font-size: 250%;
      }
      .nav-links {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 20px 30px rgba(0,0,0,0.1);
        gap: 20px;
      }
      .nav-links.active {
        display: flex;
      }
      .menu-toggle {
        display: block;
      }
      .hero-text h2 {
        font-size: 2.2rem;
      }
      .btn-outline {
        margin-left: 0;
        margin-top: 12px;
      }
      .hero-grid {
        flex-direction: column;
      }
    }





 /* ---------- НОВАЯ ПРЕМИАЛЬНАЯ ГАЛЕРЕЯ И МОДАЛЬНОЕ ОКНО (строгий люкс) ---------- */
    .luxury-gallery {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 28px;
      margin-top: 40px;
    }
    .luxury-gallery-item {
      position: relative;
      cursor: pointer;
      overflow: hidden;
      border-radius: 24px;
      background: #0a0c12;
      box-shadow: 0 20px 35px -12px rgba(0,0,0,0.3);
      transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
      aspect-ratio: 4 / 3;
    }
    .luxury-gallery-item:hover {
      transform: translateY(-8px);
      box-shadow: 0 30px 45px -15px rgba(0,0,0,0.5);
    }
    .luxury-gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.7s ease;
      filter: brightness(0.96) contrast(1.05);
    }
    .luxury-gallery-item:hover img {
      transform: scale(1.05);
      filter: brightness(1) contrast(1.08);
    }
    .gallery-caption-premium {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 80%, transparent);
      padding: 18px 20px 14px;
      color: #fff;
      font-weight: 500;
      letter-spacing: 0.3px;
      backdrop-filter: blur(2px);
      font-size: 1rem;
      border-bottom-left-radius: 24px;
      border-bottom-right-radius: 24px;
    }

    /* Модальное окно — строгий люкс, черная элегантность */
    .premium-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(8, 8, 14, 0.96);
      backdrop-filter: blur(12px);
      z-index: 9999;
      justify-content: center;
      align-items: center;
      font-family: 'Inter', sans-serif;
      transition: opacity 0.3s ease;
    }
    .premium-modal.active {
      display: flex;
      animation: fadeInModal 0.3s ease;
    }
    @keyframes fadeInModal {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    .premium-modal-container {
      position: relative;
      max-width: 90vw;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    .premium-modal-image-wrapper {
      position: relative;
      background: #0b0d14;
      border-radius: 32px;
      overflow: hidden;
      box-shadow: 0 35px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
    }
    .premium-modal-image {
      max-width: 85vw;
      max-height: 75vh;
      object-fit: contain;
      display: block;
      transition: transform 0.2s;
      background: #030507;
    }
    .premium-modal-info {
      margin-top: 24px;
      text-align: center;
      color: #eef2ff;
      font-weight: 400;
      letter-spacing: 0.2px;
      background: rgba(15, 18, 25, 0.7);
      backdrop-filter: blur(16px);
      padding: 12px 28px;
      border-radius: 60px;
      border: 0.5px solid rgba(255,255,255,0.15);
      font-size: 0.95rem;
    }
    .premium-modal-info h4 {
      margin: 0 0 6px 0;
      font-weight: 600;
      font-size: 1.2rem;
      letter-spacing: -0.2px;
    }
    .premium-modal-info p {
      margin: 0;
      opacity: 0.8;
      font-size: 0.85rem;
    }
    .premium-close {
      position: absolute;
      top: -40px;
      right: -10px;
      background: rgba(0,0,0,0.7);
      border: 1px solid rgba(255,255,255,0.25);
      border-radius: 50%;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
      backdrop-filter: blur(4px);
      color: #fff;
      font-size: 28px;
      font-weight: 300;
    }
    .premium-close:hover {
      background: #c0392b;
      transform: scale(1.05);
      border-color: transparent;
    }
    .premium-nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(10, 12, 20, 0.75);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 60px;
      width: 52px;
      height: 52px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
      color: #fff;
      font-size: 32px;
      font-weight: 300;
    }
    .premium-nav-btn:hover {
      background: #1e2a3e;
      border-color: rgba(255,215,150,0.6);
      color: #f5c542;
    }
    .prev-btn-modal {
      left: -70px;
    }
    .next-btn-modal {
      right: -70px;
    }
    .premium-counter {
      position: absolute;
      bottom: -45px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(12px);
      padding: 6px 18px;
      border-radius: 40px;
      font-size: 0.85rem;
      font-weight: 500;
      color: #ddd;
      letter-spacing: 0.5px;
    }
    @media (max-width: 780px) {
      .premium-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 24px;
      }
      .prev-btn-modal { left: -20px; }
      .next-btn-modal { right: -20px; }
      .premium-close { top: -30px; right: 0px; width: 40px; height: 40px; font-size: 24px; }
      .premium-modal-info { padding: 8px 20px; margin-top: 18px; }
    }

        /* Убираем старые стили галереи, чтобы не мешали */
      .gallery-modal, #galleryModal, .image-modal, #imageModal { display: none !important; }

    .hero-image {
    position: relative;
    width: 100%;
}

.hero-slider {
    position: relative;
    width: 100%;
    
    /* Задаем пропорции, чтобы изображения не обрезались */
    padding-bottom: 86%; /* Соотношение сторон 4:3, можно изменить */
   
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* <-- КЛЮЧЕВОЙ МОМЕНТ: изображение видно целиком, без обрезки */
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    
}

.hero-slide.active {
    opacity: 1;
}

/* Адаптация под мобильные устройства */
@media (max-width: 768px) {
    .hero-slider {
        padding-bottom: 85%; /* Соотношение 3:2 для мобильных */
    }
}

    





/* ===== СЛАЙДЕРЫ ДО/ПОСЛЕ ===== */
.projects-sliders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.before-after-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.15);
}

.before-after-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: default;
  background: #1a1a2e;
  
  user-select: none;
}

.slider-images-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.before-container {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}


.before-img {
  position: absolute;
  top: 0;
  left: 0;
  /* ВАЖНО: ширина 100% от оригинального изображения, а не от контейнера */
  width: auto;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  /* Изображение будет обрезаться, а не сжиматься */
}
 .after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.after-img {
  z-index: 1;
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: white;
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  
  pointer-events: auto;
}

.slider-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  z-index: 11;

  cursor: ew-resize;
  /* Увеличиваем область касания */
  
}

.slider-handle::after {
  content: '◀ ▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: #c73d2f;
  font-weight: bold;
  letter-spacing: 4px;
  pointer-events: none;
  z-index: 12;
}

.card-info-slider {
  padding: 20px 24px 24px;
  text-align: center;
  background: white;
}

.card-info-slider h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: #0b2b3b;
}

.card-info-slider p {
  color: #5a6e7c;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .projects-sliders-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .slider-handle::before {
    width: 48px;
    height: 48px;
  }
}



/* ========== БЛОК "О КОМПАНИИ" - ПОЛНОСТЬЮ РАБОТАЕТ НА МОБИЛЬНЫХ ========== */

/* Основные стили блока */
.about-company-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #ffffff 0%, #fef9f5 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Контейнер - важное исправление для мобильных */
.about-company-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Декоративный фон */
.about-company-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(199,61,47,0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    display: block;
}

.about-company-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,205,126,0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    display: block;
}

/* Декоративный элемент вверху */
.about-decoration {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
    width: 100% !important;
}

.decoration-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c73d2f, #ffcd7e, #c73d2f, transparent);
    display: block !important;
}

.decoration-icon {
    width: 40px;
    height: 40px;
    background: rgba(199,61,47,0.1);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #c73d2f;
    font-size: 1.2rem;
}

/* Центрирование текста */
.about-company-grid {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.about-text.text-center {
    text-align: center;
    width: 100%;
}

/* Заголовок */
.about-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0b2b3b;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    text-align: center;
    width: auto;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #c73d2f;
    border-radius: 3px;
}

/* Кавычки */
.about-quote {
    margin: 20px 0 25px;
    text-align: center;
}

.about-quote i {
    font-size: 2rem;
    color: rgba(199,61,47,0.3);
    opacity: 0.5;
}

/* Основной текст */
.about-welcome {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.about-welcome p {
    color: #2c4b5a;
    line-height: 1.6;
    margin-bottom: 18px;
    font-size: 1rem;
}

.about-welcome strong {
    color: #c73d2f;
    font-weight: 600;
}

/* Выделенные блоки */
.about-highlight {
    background: linear-gradient(90deg, rgba(199,61,47,0.08) 0%, rgba(199,61,47,0.03) 100%);
    padding: 12px 18px;
    border-radius: 50px;
    margin: 18px 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #1e2a3e;
    width: auto;
    max-width: 100%;
}

.about-highlight i {
    color: #c73d2f;
    font-size: 1rem;
}

/* Подпись руководителя */
.about-signature-block {
    margin-top: 35px;
    text-align: center;
    padding: 0 15px;
}

.signature-line {
    width: 70px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c73d2f, #ffcd7e, #c73d2f, transparent);
    margin: 12px auto;
}

.signature-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0b2b3b;
    letter-spacing: 0.5px;
}

.signature-position {
    font-size: 0.85rem;
    color: #5a6e7c;
    margin-top: 6px;
}

/* ========== БЛОК ПРЕИМУЩЕСТВ (4 ПУНКТА) ========== */
.about-features {
    margin-top: 60px;
    padding: 40px 25px;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(199,61,47,0.1);
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    width: 100%;
}

.feature-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 15px 12px;
    transition: all 0.3s ease;
    border-radius: 20px;
    background: transparent;
}

.feature-item:hover {
    transform: translateY(-3px);
    background: #fef9f5;
}

.feature-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: #c73d2f;
    background: linear-gradient(135deg, #fff5f2 0%, #fff0ea 100%);
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(199,61,47,0.1);
    text-align: center;
}

.feature-item:hover .feature-icon {
    background: #c73d2f;
    color: white;
    transform: scale(1.03);
}

.feature-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0b2b3b;
}

.feature-item p {
    color: #5a6e7c;
    font-size: 0.85rem;
    line-height: 1.45;
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ (ГЛАВНОЕ ИСПРАВЛЕНИЕ) ========== */
@media (max-width: 768px) {
    .about-company-section {
        padding: 40px 0;
    }
    
    .about-company-section .container {
        padding: 0 16px;
    }
    
    .about-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .about-title::after {
        bottom: -8px;
        width: 50px;
        height: 2px;
    }
    
    .about-decoration {
        gap: 12px !important;
        margin-bottom: 20px !important;
    }
    
    .decoration-line {
        width: 35px;
    }
    
    .decoration-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .about-quote {
        margin: 15px 0 20px;
    }
    
    .about-quote i {
        font-size: 1.6rem;
    }
    
    .about-welcome {
        padding: 0 10px;
    }
    
    .about-welcome p {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: 15px;
    }
    
    .about-highlight {
        padding: 10px 15px;
        margin: 15px 0;
        font-size: 0.9rem;
        display: flex;
        width: auto;
        justify-content: center;
    }
    
    .about-highlight i {
        font-size: 0.9rem;
    }
    
    .about-signature-block {
        margin-top: 30px;
    }
    
    .signature-line {
        width: 60px;
        margin: 10px auto;
    }
    
    .signature-name {
        font-size: 1.2rem;
    }
    
    .signature-position {
        font-size: 0.8rem;
    }
    
    /* Блок преимуществ на мобильных */
    .about-features {
        margin-top: 45px;
        padding: 30px 20px;
        border-radius: 28px;
    }
    
    .features-grid {
        flex-direction: column;
        gap: 25px;
    }
    
    .feature-item {
        min-width: auto;
        padding: 12px 10px;
    }
    
    .feature-icon {
        width: 65px;
        height: 65px;
        line-height: 65px;
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .feature-item h4 {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }
    
    .feature-item p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Дополнительная адаптация для очень маленьких экранов */
@media (max-width: 480px) {
    .about-company-section .container {
        padding: 0 12px;
    }
    
    .about-title {
        font-size: 1.6rem;
    }
    
    .about-welcome p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .about-highlight {
        padding: 8px 12px;
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
        line-height: 55px;
        font-size: 1.4rem;
    }
    
    .feature-item h4 {
        font-size: 1rem;
    }
    
    .feature-item p {
        font-size: 0.8rem;
    }
    
    .signature-name {
        font-size: 1.1rem;
    }
}

/* Обеспечиваем, чтобы все элементы были видны */
.about-company-section * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Исправление для inline-flex на мобильных */
@media (max-width: 768px) {
    .about-highlight {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
}



/* Карточка услуги */
.service-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    padding: 32px 24px;
    text-align: center;
    flex: 1 1 320px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
    border-color: #ffcd7e;
}

.service-icon {
    font-size: 3.2rem;
    color: #c73d2f;
    margin-bottom: 20px;
    background: #fff5f2;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: #c73d2f;
    color: white;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    font-weight: 700;
    color: #0b2b3b;
}

.service-card p {
    color: #4a6272;
    line-height: 1.5;
    margin-bottom: 28px;
    flex-grow: 1;
}

/* Кнопка в карточке */
.service-card .card-btn {
    background: #c73d2f;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
    margin-top: auto;
    
}

.service-card .card-btn:hover {
    background: #a53124;
    transform: scale(1.02);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .service-card .card-btn{
        display: none;
    }
    .services-section {
        padding: 50px 0;
    }
    .service-card {
        padding: 28px 20px;
    }
    .service-card h3 {
        font-size: 1.4rem;
    }
}





/* Стили для карточек услуг */
.service-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Кнопка всегда видна и на десктопе, и на мобильном */
.card-btn {
  display: inline-block !important;
  position: relative;
  z-index: 2;
  margin-top: 20px;
  padding: 10px 20px;
  background: #c73d2f;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.card-btn:hover {
  background: #a53124;
  color: #fff;
}

/* Эффект нажатия на карточку */
.service-card:active {
  transform: scale(0.98);
}

/* Дополнительно: делаем ссылку внутри карточки некликабельной, 
   чтобы срабатывал onclick на карточке, но кнопка оставалась визуально */
.service-card a.card-btn {
  pointer-events: none;
}




/* Анимация движения при первом заходе на страницу */
@keyframes hintMove {
  0% {
    left: 43%;
  }

  100% {
    left: 50%;
  }
}


.before-after-slider:hover .slider-handle {
  animation: hintMove 1s ease-in-out 1;
}


.slider-handle:hover {
  width: 6px;
  background: #ffcd7e;
}



.slider-handle::before {
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
}


.slider-images-container::before,
.slider-images-container::after {
  content: '◀';
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  font-size: 24px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.5);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slider-images-container::after {
  content: '▶';
  left: auto;
  right: 10px;
}

.before-after-slider .slider-images-container::before,
.before-after-slider .slider-images-container::after {
  opacity: 1;
}






 /* Кнопка БОЛЬШЕ ФОТО */
  .more-photo-btn {
    display: block;
    width: 18%;
    font-size: 24px;
    font-weight: bold;
    background: #b93035;
    color: white;
    padding: 15px 20px;
    margin: auto;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    letter-spacing: 3px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }
  
  .more-photo-btn:hover {
    background: #b0151a;
    transform: scale(1.02);
  }
  
  /* Стили для карточек работ */
  .works-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
  }
  
  .work-item {
    flex: 1 1 300px;
    background: #f9f9f9;
    border-radius: 15px;
    overflow: hidden;
    padding: 15px;
  }
  
  .work-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    cursor: pointer;
  }
  
  @media (max-width: 700px) {
    .work-item {
      flex-basis: 100%;
    }
    .more-photo-btn {
    width: 80%;
    font-size: 20px;
  }
  }






    /* Основной контейнер */
    .errors-container {
      max-width: 1000px;
      width: 100%;
      margin: 0 auto;
    }

    /* Заголовки */
    .errors-title {
      font-size: 32px;
      font-weight: 700;
      margin-bottom: 12px;
      color: #1a2a3a;
      border-left: 5px solid #ff8c00;
      padding-left: 20px;
    }

    .errors-sub {
      color: #4a5b6e;
      margin-bottom: 32px;
      font-size: 18px;
      padding-left: 25px;
    }

    /* Аккордеон */
    .accordion {
      background: #ffffff;
      border-radius: 24px;
      border: 1px solid #e9eef3;
      overflow: hidden;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    }

    .error-item {
      border-bottom: 1px solid #eef2f6;
    }

    .error-item:last-child {
      border-bottom: none;
    }

    .error-header {
      background: #fff;
      padding: 20px 24px;
      font-size: 18px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #0c4e6e;
      transition: all 0.2s ease;
    }

    .error-header:hover {
      background: #fef9e6;
    }

    .error-header .arrow {
      font-size: 20px;
      font-weight: bold;
      color: #ff8c00;
      transition: transform 0.2s ease;
    }

    .error-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease-out;
      background: #fefdf8;
      padding: 0 24px;
      color: #2c3e50;
      line-height: 1.6;
    }

    .error-content-inner {
      padding: 8px 0 24px 0;
    }

    .error-content.show {
      max-height: 600px;
    }

    /* Зеленый блок с правильным решением */
    .good-advice {
      background: #e6f7ec;
      border-radius: 16px;
      padding: 14px 20px;
      margin-top: 16px;
      font-size: 15px;
      border-left: 4px solid #2e7d32;
      color: #1e4620;
    }

    /* Адаптив для мобильных */
    @media (max-width: 640px) {
      .errors-title {
        font-size: 24px;
        padding-left: 16px;
      }
      .errors-sub {
        font-size: 16px;
        padding-left: 21px;
      }
      .error-header {
        padding: 16px 18px;
        font-size: 15px;
      }
      .error-content-inner {
        font-size: 14px;
      }
      .good-advice {
        font-size: 13px;
        padding: 12px 16px;
      }
    }





/* ===== Блок: как выбрать толщину профиля и стеклопакета ===== */
.guide-container {
  max-width: 1100px;
  width: 100%;
  margin: 40px auto;
}

.guide-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a2a3a;
  border-left: 5px solid #ff8c00;
  padding-left: 20px;
}

.guide-sub {
  color: #4a5b6e;
  margin-bottom: 32px;
  font-size: 18px;
  padding-left: 25px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.compare-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}

.compare-card:hover {
  transform: translateY(-4px);
}

.card-header {
  padding: 20px 24px;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
}

.card-header.profile {
  background: linear-gradient(135deg, #1a2a3a 0%, #2c4a6e 100%);
  color: white;
}

.card-header.glass {
  background: linear-gradient(135deg, #2c5f8a 0%, #1e88e5 100%);
  color: white;
}

.card-body {
  padding: 24px;
}

.card-price {
  font-size: 28px;
  font-weight: 800;
  color: #ff8c00;
  margin: 16px 0;
  text-align: center;
}

.spec-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.spec-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.spec-list li:last-child {
  border-bottom: none;
}

.check-good {
  color: #2e7d32;
  font-weight: bold;
}

.badge {
  display: inline-block;
  background: #e6f7ec;
  color: #2e7d32;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

.how-to-choose {
  background: white;
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.how-to-choose h3 {
  font-size: 24px;
  margin-bottom: 24px;
  color: #1a2a3a;
  display: flex;
  align-items: center;
  gap: 12px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.step {
  background: #f8fafc;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: #ff8c00;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #1a2a3a;
}

.step p {
  color: #4a5b6e;
  font-size: 14px;
  line-height: 1.5;
}

.recommend-table {
  background: white;
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
}

.recommend-table h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #1a2a3a;
}

.recommend-table table {
  width: 100%;
  border-collapse: collapse;
}

.recommend-table th,
.recommend-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #eef2f6;
}

.recommend-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #1a2a3a;
}

.recommend-table td:first-child,
.recommend-table th:first-child {
  font-weight: 600;
}

.recommend-good {
  color: #2e7d32;
  font-weight: 600;
}

.simple-lang {
  background: #fef9e6;
  border-radius: 20px;
  padding: 20px 28px;
  margin-top: 30px;
  border-left: 5px solid #ff8c00;
}

.simple-lang p {
  font-size: 16px;
  line-height: 1.6;
  color: #3a2a1a;
}

@media (max-width: 768px) {
  .guide-title {
    font-size: 30px;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .recommend-table th,
  .recommend-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
  .how-to-choose {
    padding: 20px;
  }
  .simple-lang {
    padding: 16px 20px;
  }
}




/* ======================== */
/* === ИНТЕРАКТИВНЫЙ ГИД ПО ОКНАМ === */
/* ======================== */
.guide-section {
    background: #f8fafc;
}

.guide-interactive-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 40px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.guide-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid #eef2f5;
    padding-right: 20px;
}

.guide-tab {
    padding: 18px 22px;
    background: #f8fafc;
    border-radius: 20px;
    font-weight: 600;
    color: #2c4b5a;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.guide-tab .tab-icon {
    font-size: 22px;
}

.guide-tab:hover {
    background: #fff;
    border-color: #ffcd7e;
}

.guide-tab.active {
    background: #c73d2f;
    color: white;
    box-shadow: 0 8px 16px rgba(199,61,47,0.2);
}

.guide-pane {
    display: none;
    padding: 10px 0;
}

.guide-pane.active {
    display: block;
    animation: fadeInGuide 0.3s ease;
}

.guide-pane h3 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #0b2b3b;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.guide-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.guide-list li::before {
    content: "✓";
    color: #c73d2f;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.glass-compare {
    display: flex;
    gap: 20px;
    margin: 25px 0;
}

.glass-item {
    flex: 1;
    padding: 20px;
    text-align: center;
    border-radius: 24px;
    font-weight: 600;
}

.glass-item.bad {
    background: #fff3f0;
    color: #a53124;
}

.glass-item.bad span,
.glass-item.good span {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    margin-top: 8px;
    opacity: 0.8;
}

.glass-item.good {
    background: #e8f5e9;
    color: #2e7d32;
}

.guide-tip {
    background: #fef9e6;
    padding: 20px;
    border-radius: 20px;
    margin-top: 30px;
    display: flex;
    gap: 15px;
    border-left: 5px solid #ffcd7e;
}

.guide-tip i {
    font-size: 24px;
    color: #c73d2f;
}

.open-types div {
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.open-types div i {
    font-size: 20px;
}

@keyframes fadeInGuide {
    from { 
        opacity: 0; 
        transform: translateY(5px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Адаптив для планшетов и мобильных */
@media (max-width: 768px) {
    .guide-interactive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .guide-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        padding-right: 0;
    }
    
    .guide-tab {
        flex: 1 0 calc(50% - 10px);
        padding: 14px 12px;
        font-size: 14px;
    }
    
    .glass-compare {
        flex-direction: column;
    }
    
    .guide-pane h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .guide-tab {
        flex: 1 0 100%;
    }
    
    .guide-tip {
        flex-direction: column;
        gap: 10px;
    }
}



/* ======================== */
/* === СТРУКТУРА СТОИМОСТИ (ПЛАВНАЯ КРАСИВАЯ АНИМАЦИЯ) === */
/* ======================== */

.price-structure-section {
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
}

/* Вкладки переключения */
.price-structure-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.structure-tab {
    padding: 14px 28px;
    background: #f0f4f8;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    color: #4a6272;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.structure-tab i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.structure-tab:hover {
    background: #e8edf2;
    color: #1e2a3e;
    transform: translateY(-2px);
}

.structure-tab:hover i {
    transform: scale(1.1);
}

.structure-tab.active {
    background: #c73d2f;
    color: white;
    box-shadow: 0 8px 20px rgba(199, 61, 47, 0.25);
}

/* Контейнер для панелей */
.structure-panes-wrapper {
    position: relative;
    min-height: 500px;
}

/* Панели контента - абсолютное позиционирование для плавного crossfade */
.structure-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.structure-pane.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Визуальная часть с диаграммой */
.structure-visual {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    background: white;
    border-radius: 32px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    animation: slideUpFade 0.6s ease-out;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Круговая диаграмма */
.pie-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pie-chart {
    position: relative;
    width: 200px;
    height: 200px;
    animation: rotateIn 0.8s ease-out;
}

@keyframes rotateIn {
    0% {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.pie-chart svg circle {
    transition: stroke-dasharray 0.5s ease;
}

.pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 1.1rem;
    color: #0b2b3b;
    text-align: center;
    background: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    50% {
        box-shadow: 0 6px 20px rgba(199, 61, 47, 0.2);
    }
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #4a6272;
    animation: fadeInStagger 0.5s ease-out backwards;
}

.legend-item:nth-child(1) { animation-delay: 0.1s; }
.legend-item:nth-child(2) { animation-delay: 0.2s; }
.legend-item:nth-child(3) { animation-delay: 0.3s; }
.legend-item:nth-child(4) { animation-delay: 0.4s; }
.legend-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInStagger {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.legend-item:hover .color-dot {
    transform: scale(1.3);
}

/* Детали структуры */
.structure-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    gap: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eef2f5;
    animation: fadeInStagger 0.5s ease-out backwards;
}

.detail-item:nth-child(1) { animation-delay: 0.15s; }
.detail-item:nth-child(2) { animation-delay: 0.3s; }
.detail-item:nth-child(3) { animation-delay: 0.45s; }
.detail-item:nth-child(4) { animation-delay: 0.6s; }
.detail-item:nth-child(5) { animation-delay: 0.75s; }

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #c73d2f;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.detail-item:hover .detail-icon {
    background: #c73d2f;
    color: white;
    transform: scale(1.05) rotate(5deg);
}

.detail-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0b2b3b;
    transition: color 0.3s ease;
}

.detail-item:hover .detail-text h4 {
    color: #c73d2f;
}

.detail-text p {
    font-size: 0.9rem;
    color: #5a6e7c;
    line-height: 1.5;
    margin: 0;
}

/* Лента выгодных условий */
.benefits-ribbon {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    animation: slideUpFade 0.6s ease-out 0.3s backwards;
}

.benefit-badge {
    background: linear-gradient(135deg, #fef9e6 0%, #fff8e1 100%);
    padding: 16px 28px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px dashed #ffcd7e;
    box-shadow: 0 4px 12px rgba(255, 205, 126, 0.15);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.benefit-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 205, 126, 0.3);
    border-style: solid;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.benefit-badge i {
    font-size: 1.8rem;
    color: #c73d2f;
    transition: transform 0.3s ease;
}

.benefit-badge:hover i {
    transform: rotate(10deg);
}

.benefit-badge span {
    font-size: 1rem;
    color: #1e2a3e;
}

.benefit-badge strong {
    color: #c73d2f;
    font-size: 1.1rem;
}

/* Блок факторов цены */
.price-factors {
    background: white;
    border-radius: 32px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    animation: slideUpFade 0.6s ease-out 0.5s backwards;
}

.price-factors h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #0b2b3b;
}

.price-factors h3 i {
    color: #c73d2f;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.factors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.factor-card {
    padding: 25px;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.factor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.factor-card.increase {
    background: #fff5f2;
    border: 1px solid rgba(199, 61, 47, 0.15);
}

.factor-card.decrease {
    background: #e8f5e9;
    border: 1px solid rgba(46, 125, 50, 0.15);
}

.factor-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.factor-card:hover .factor-icon {
    transform: scale(1.1);
}

.factor-card h4 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    font-weight: 700;
}

.factor-card ul {
    list-style: none;
    padding: 0;
}

.factor-card li {
    padding: 8px 0 8px 25px;
    position: relative;
    font-size: 0.95rem;
    color: #2c4b5a;
    transition: padding-left 0.3s ease;
}

.factor-card li:hover {
    padding-left: 30px;
}

.factor-card.increase li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: #c73d2f;
    font-weight: bold;
}

.factor-card.decrease li::before {
    content: "−";
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: bold;
    font-size: 1.2rem;
}

.factor-card .highlight {
    background: #ffcd7e;
    padding: 2px 8px;
    border-radius: 20px;
    color: #0b2b3b;
    transition: background 0.3s ease;
}

.factor-card .highlight:hover {
    background: #ffd700;
}

/* CTA блок */
.price-cta {
    text-align: center;
    background: linear-gradient(135deg, #1e2a3e 0%, #0b2b3b 100%);
    padding: 30px 40px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    animation: slideUpFade 0.6s ease-out 0.7s backwards;
}

.price-cta p {
    color: #f0f7fa;
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-cta p i {
    color: #4caf50;
    font-size: 1.8rem;
    animation: checkPulse 2s infinite;
}

@keyframes checkPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: #66bb6a;
    }
}

.price-cta .btn {
    background: #ffcd7e;
    color: #0b2b3b;
    padding: 16px 40px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(255, 205, 126, 0.3);
    transition: all 0.3s ease;
}

.price-cta .btn:hover {
    background: #ffe0a3;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 205, 126, 0.4);
}

/* Адаптивность */
@media (max-width: 1000px) {
    .structure-tab {
        padding: 12px 20px;
        font-size: 0.9rem;
        white-space: normal;
    }
    
    .structure-panes-wrapper {
        min-height: 600px;
    }
}

@media (max-width: 900px) {
    .structure-visual {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pie-chart-container {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .factors-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-ribbon {
        flex-direction: column;
        align-items: stretch;
    }
    
    .benefit-badge {
        justify-content: center;
    }
    
    .price-cta {
        flex-direction: column;
        text-align: center;
        border-radius: 30px;
        padding: 25px 20px;
    }
    
    .price-cta p {
        justify-content: center;
    }
    
    .structure-panes-wrapper {
        min-height: 700px;
    }
}

@media (max-width: 600px) {
    .price-structure-tabs {
        gap: 8px;
    }
    
    .structure-tab {
        flex: 1 0 calc(50% - 8px);
        justify-content: center;
        padding: 12px 10px;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .detail-icon {
        margin: 0 auto;
    }
    
    .factor-card {
        padding: 20px;
    }
    
    .structure-panes-wrapper {
        min-height: 800px;
    }
}


/* ==================== БЫСТРЫЕ УСЛУГИ (ПОЛОСА С АКЦЕНТАМИ) ==================== */
.quick-services-strip {
    background: linear-gradient(135deg, #0a3a46 0%, #0f4d5c 100%);
    padding: 12px 0;
    position: relative;
    top: 0px;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quick-services-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 5px;
}

.quick-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
    min-width: 100px;
    position: relative;
}

.quick-service-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.quick-service-item i {
    font-size: 1.6rem;
    color: #6bc2d9;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.quick-service-item:hover i {
    color: #ffcd7e;
    transform: scale(1.1);
}

.quick-service-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.quick-service-item small {
    font-size: 0.7rem;
    color: #a0d4e4;
    margin-top: 3px;
    font-weight: 500;
}

/* Горячее предложение */
.quick-service-item.hot {
    background: rgba(199, 61, 47, 0.2);
}

.quick-service-item.hot small {
    color: #ffcd7e;
    font-weight: 600;
    animation: pulseHot 1.5s infinite;
}

.quick-service-item.hot::before {
    content: '';
    position: absolute;
    top: -2px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #ff4d4d;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes pulseHot {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; text-shadow: 0 0 8px #ffcd7e; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@media (max-width: 700px) {
    .quick-services-strip {
        padding: 8px 0;
    }
    
    .quick-service-item {
        flex: 1 0 calc(33.33% - 10px);
        padding: 10px 5px;
        min-width: auto;
    }
    
    .quick-service-item i {
        font-size: 1.3rem;
    }
    
    .quick-service-item span {
        font-size: 0.8rem;
    }
    
    .quick-service-item small {
        font-size: 0.6rem;
    }
}




/* ==================== ЭКСПЕРТНЫЙ ГИД (СКРЫТЫЙ БЛОК) ==================== */
.expert-guide-section {
    background: #f8fafc;
    padding: 60px 0;
}

/* Кнопка-триггер */
.expert-trigger-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.expert-trigger-btn {
    background: linear-gradient(135deg, #0a3a46 0%, #0f4d5c 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 60px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(10, 58, 70, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.expert-trigger-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(10, 58, 70, 0.4);
    background: linear-gradient(135deg, #0f4d5c 0%, #146070 100%);
}

.expert-trigger-btn .trigger-icon {
    font-size: 1.8rem;
    color: #ffcd7e;
}

.expert-trigger-btn .trigger-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.expert-trigger-btn.active .trigger-arrow {
    transform: rotate(180deg);
}

.trigger-hint {
    margin-top: 15px;
    color: #5a6e7c;
    font-size: 1rem;
}

/* Скрытый контент */
.expert-hidden-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.3s ease;
    margin-top: 0;
}

.expert-hidden-content.active {
    max-height: 5000px;
    opacity: 1;
    margin-top: 30px;
}

/* Вступление */
.expert-intro {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    font-size: 1.2rem;
    color: #2c4b5a;
    line-height: 1.6;
}

/* Аккордеон */
.expert-accordion {
    max-width: 900px;
    margin: 0 auto 40px;
}

.expert-item {
    background: white;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f5;
    overflow: hidden;
}

.expert-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.expert-header:hover {
    background: #fafbfc;
}

.expert-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #c73d2f;
    opacity: 0.4;
    min-width: 45px;
}

.expert-header h3 {
    flex: 1;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b2b3b;
    margin: 0;
}

.expert-arrow {
    color: #c73d2f;
    transition: transform 0.3s ease;
}

.expert-item.active .expert-arrow {
    transform: rotate(180deg);
}

.expert-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.expert-item.active .expert-content {
    max-height: 2000px;
}

.expert-content-inner {
    padding: 0 25px 25px;
}

.expert-lead {
    font-size: 1rem;
    font-weight: 500;
    color: #1e2a3e;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ffcd7e;
}

/* Шаги */
.expert-steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 20px;
}

.expert-step {
    display: flex;
    gap: 15px;
}

.step-marker {
    width: 32px;
    height: 32px;
    background: #c73d2f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #0b2b3b;
}

.step-content p {
    color: #5a6e7c;
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}

/* Сетка */
.expert-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.expert-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 18px;
}

.expert-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    margin-bottom: 10px;
}

.expert-card h4 i {
    color: #c73d2f;
}

.expert-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expert-card li {
    padding: 4px 0 4px 18px;
    position: relative;
    font-size: 0.85rem;
    color: #2c4b5a;
}

.expert-card li::before {
    content: "•";
    color: #c73d2f;
    position: absolute;
    left: 5px;
}

/* Таблица */
.compare-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #eef2f5;
    margin-bottom: 20px;
}

.expert-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.expert-table th {
    background: #0a3a46;
    color: white;
    padding: 12px;
    text-align: left;
}

.expert-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f5;
}

/* Стеклопакет */
.expert-glass-info {
    background: #f0f7fa;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
}

.expert-glass-info h4 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.expert-glass-info ul {
    list-style: none;
    padding: 0;
}

.expert-glass-info li {
    padding: 4px 0 4px 20px;
    position: relative;
    font-size: 0.9rem;
}

.expert-glass-info li::before {
    content: "▹";
    color: #c73d2f;
    position: absolute;
    left: 5px;
}

/* Карточки дверей */
.expert-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.option-card {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
}

.option-header {
    padding: 18px;
    text-align: center;
    color: white;
}

.option-header.pvc {
    background: linear-gradient(135deg, #c73d2f, #a53124);
}

.option-header.aluminum {
    background: linear-gradient(135deg, #607d8b, #455a64);
}

.option-header i {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.option-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.option-body {
    padding: 18px;
}

.option-body h5 {
    font-size: 0.95rem;
    margin: 12px 0 8px;
}

.option-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.option-body li {
    padding: 4px 0 4px 20px;
    position: relative;
    font-size: 0.85rem;
}

.option-body li::before {
    content: "✓";
    color: #2e7d32;
    position: absolute;
    left: 0;
}

.option-verdict {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #ccc;
    font-size: 0.85rem;
}

/* Панорама */
.type-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f5;
}

.type-name {
    flex: 0 0 180px;
    font-weight: 600;
    color: #0b2b3b;
    font-size: 0.9rem;
}

.type-desc {
    flex: 1;
    color: #5a6e7c;
    font-size: 0.9rem;
}

.expert-musthave {
    background: #e8f5e9;
    border-radius: 16px;
    padding: 18px;
    margin: 20px 0;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.checklist li {
    padding: 6px 0 6px 28px;
    position: relative;
    font-size: 0.9rem;
}

.checklist li i {
    color: #2e7d32;
    position: absolute;
    left: 0;
    top: 8px;
}

/* Критичные пункты */
.expert-critical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.critical-item {
    display: flex;
    gap: 15px;
    padding: 14px;
    background: #fff5f2;
    border-radius: 14px;
    border-left: 3px solid #c73d2f;
}

.critical-rank {
    font-size: 1.3rem;
    font-weight: 800;
    color: #c73d2f;
    opacity: 0.4;
    min-width: 40px;
}

.critical-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.critical-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #5a6e7c;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.faq-item {
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px;
}

.faq-question {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.faq-question i {
    color: #c73d2f;
}

.faq-question span {
    font-weight: 600;
    font-size: 0.95rem;
}

.faq-answer {
    padding-left: 28px;
    font-size: 0.85rem;
    color: #5a6e7c;
}

/* Советы */
.expert-tip, .expert-warning {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    margin-top: 18px;
}

.expert-tip {
    background: #fef9e6;
    border-left: 3px solid #ffcd7e;
}

.expert-warning {
    background: #fff3f0;
    border-left: 3px solid #c73d2f;
}

.expert-tip.warning {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.expert-tip i, .expert-warning i {
    font-size: 1.3rem;
    color: #c73d2f;
}

/* CTA */
.expert-cta {
    background: linear-gradient(135deg, #0a3a46 0%, #0f4d5c 100%);
    border-radius: 30px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

.expert-cta-content h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.expert-cta-content p {
    color: #cbdbe2;
    margin: 0;
}

.expert-cta-buttons {
    display: flex;
    gap: 12px;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Адаптив */
@media (max-width: 768px) {
    .expert-trigger-btn {
        padding: 16px 24px;
        font-size: 1rem;
    }
    
    .expert-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .expert-options {
        grid-template-columns: 1fr;
    }
    
    .type-row {
        flex-direction: column;
        gap: 6px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .expert-cta {
        flex-direction: column;
        text-align: center;
    }
    
    .expert-cta-buttons {
        justify-content: center;
    }
}




/* ==================== АНИМАЦИЯ ПРИ СКРОЛЛЕ ДО БЛОКА ==================== */

/* Начальное состояние блока до скролла */
.price-structure-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Состояние после скролла */
.price-structure-section.scrolled-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Сбрасываем анимации внутренних элементов до скролла */
.price-structure-section:not(.scrolled-visible) .structure-visual,
.price-structure-section:not(.scrolled-visible) .benefits-ribbon,
.price-structure-section:not(.scrolled-visible) .price-factors,
.price-structure-section:not(.scrolled-visible) .price-cta {
    animation: none;
    opacity: 0;
}

/* Вкладки изначально скрыты до скролла */
.price-structure-section:not(.scrolled-visible) .structure-tab {
    opacity: 0;
    transform: translateY(20px);
    animation: none;
}

/* После скролла вкладки появляются последовательно */
.price-structure-section.scrolled-visible .structure-tab {
    animation: fadeInTab 0.5s ease forwards;
}

.price-structure-section.scrolled-visible .structure-tab:nth-child(1) { animation-delay: 0.1s; }
.price-structure-section.scrolled-visible .structure-tab:nth-child(2) { animation-delay: 0.2s; }
.price-structure-section.scrolled-visible .structure-tab:nth-child(3) { animation-delay: 0.3s; }
.price-structure-section.scrolled-visible .structure-tab:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInTab {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== АНИМАЦИЯ ПРИ ПЕРЕКЛЮЧЕНИИ ВКЛАДОК ==================== */

/* Базовая анимация для панели при переключении */
.structure-pane {
    animation-duration: 0.6s;
    animation-fill-mode: forwards;
}

/* Анимация появления активной панели */
.structure-pane.active {
    animation-name: paneFadeIn;
}

@keyframes paneFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.97);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Диаграмма при переключении */
.structure-pane.active .pie-chart {
    animation: chartRotate 0.7s ease-out;
}

@keyframes chartRotate {
    0% {
        opacity: 0;
        transform: rotate(-90deg) scale(0.7);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Легенда при переключении */
.structure-pane.active .legend-item {
    opacity: 0;
    animation: legendSlide 0.4s ease forwards;
}

.structure-pane.active .legend-item:nth-child(1) { animation-delay: 0.1s; }
.structure-pane.active .legend-item:nth-child(2) { animation-delay: 0.2s; }
.structure-pane.active .legend-item:nth-child(3) { animation-delay: 0.3s; }
.structure-pane.active .legend-item:nth-child(4) { animation-delay: 0.4s; }
.structure-pane.active .legend-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes legendSlide {
    0% {
        opacity: 0;
        transform: translateX(-15px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Детали при переключении */
.structure-pane.active .detail-item {
    opacity: 0;
    animation: detailFade 0.4s ease forwards;
}

.structure-pane.active .detail-item:nth-child(1) { animation-delay: 0.15s; }
.structure-pane.active .detail-item:nth-child(2) { animation-delay: 0.25s; }
.structure-pane.active .detail-item:nth-child(3) { animation-delay: 0.35s; }
.structure-pane.active .detail-item:nth-child(4) { animation-delay: 0.45s; }
.structure-pane.active .detail-item:nth-child(5) { animation-delay: 0.55s; }

@keyframes detailFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Лента бейджей при переключении */
.structure-pane.active .benefits-ribbon {
    animation: ribbonPop 0.5s ease 0.3s both;
}

@keyframes ribbonPop {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Бейджи при переключении */
.structure-pane.active .benefit-badge {
    opacity: 0;
    animation: badgeBounce 0.4s ease forwards;
}

.structure-pane.active .benefit-badge:nth-child(1) { animation-delay: 0.4s; }
.structure-pane.active .benefit-badge:nth-child(2) { animation-delay: 0.5s; }
.structure-pane.active .benefit-badge:nth-child(3) { animation-delay: 0.6s; }

@keyframes badgeBounce {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Центр диаграммы */
.structure-pane.active .pie-center {
    animation: centerPop 0.5s ease 0.3s both;
}

@keyframes centerPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}