/* Общие стили */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #e0f7fa;
  }
  main {
    padding-top: 17vh;
  }
  #success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 150, 136, 0.9);
    color: #fff;
    padding: 2rem 3rem;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 9999;
    text-align: center;
    animation: fadeOut 0.5s ease-in-out 4.5s forwards;
  }
  
  /* Плавное исчезновение через 5 секунд */
  @keyframes fadeOut {
    to {
      opacity: 0;
      visibility: hidden;
    }
  }
    .form-wrapper{
    order:-1;
    width:100%;
    display:flex;            /* flex-контейнер */
    flex-direction:column;   /* заголовок + форма столбиком */
    align-items:center;      /* центр по горизонтали */
    justify-content:center;  /* центр по вертикали */
    margin-bottom:1.5rem;
    z-index:20;
    position:relative;
    text-align:center;       /* перенос длинных строк h1 */
  }
  h1{
    font-size:clamp(24px,3.5vw,42px);
    overflow-wrap:break-word; /* переносит слово */
    hyphens:auto;             /* перенос с дефисом если нужно */
  }
  section h1 {
  font-size: clamp(24px, 3.5vw, 42px);
}
  .nav-categories {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 8vw;
    margin-right: 1vw;
    margin-top: -1vh; /* прилипают к заголовку */
    gap: 0.3em;
  }
  
  .nav-categories a {
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(90deg, #ffffff, #2196f3, #ffffff);
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: textShine 3s ease-in-out infinite;
  }
  
  /* Анимация цвета текста */
  @keyframes textShine {
    0% {
      background-position: 0% center;
    }
    50% {
      background-position: 100% center;
    }
    100% {
      background-position: 0% center;
    }
  }
  
  header.site-header {
    background: #00796b;
    color: #fff;
    padding: 2vh 2vw;
    position: fixed;
    box-sizing: border-box;
    top: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
  }
  
  /* Логотип адаптивно масштабируется */
  header.site-header img {
    height: clamp(60px, 10vw, 120px); /* авто-масштаб по экрану */
    width: auto;
    margin-left: 4vw;
    transform: scaleX(2); /* увеличь значение, если нужно сильнее */

  }
  
  /* Контейнер */
  header.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
  }
  
  /* Логотип и текст */
  .logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 2vw;
  }
  .logo {
    font-size: clamp(20px, 3vw, 50px);
    font-weight: bold;
    margin-left: 5vw;
    color: #fff;
    text-decoration: none;
  }
  
  header.site-header .logo {
    font-size: clamp(20px, 3vw, 50px); /* от 20px до 50px */
    font-weight: bold;
    margin-left: 1vw;
  }
  
  .right-block {
    display: flex;
    align-items: center;
    margin-left: auto; /* прижимает к правому краю */
    gap: 2vw;
  }
  
  header.site-header .contact {
    font-size: clamp(20px, 3vw, 36px);
  }
  
  
  header.site-header .contact a {
    color: #fff;
    text-decoration: none;
  }
  
  header.site-header .language-selector {
    display: flex;
    gap: 0.5vw;         /* расстояние между RU и UK — минимальное */
    flex-wrap: wrap;     /* если мало места — перенос */
    justify-content: flex-end;
    max-width: 100%;
    overflow: hidden;
  }
  
  header.site-header .language-selector a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(12px, 1.2vw, 16px); /* чуть компактнее */
    white-space: nowrap; /* не переносить RU/UK на две строки */
  }
  /* Мобильная версия */
  @media (max-width: 768px) {
.logo-wrapper {
    display: none;
  }
    /* Скрыть логотип (картинку) */
    .site-header img {
      display: none;
    }
  
/* Заголовок по центру и крупнее */
.site-header .logo {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center;
    display: block;
    line-height: 2.5;
  }

  /* Центрируем номер телефона */
  .site-header .contact {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center;
    display: block;
  }

  /* Убираем правый блок или перестраиваем */
  .right-block {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1vh;
    margin-left: 0 !important;
    width: 100%;
  }

  
    /* Языковой переключатель — правый верхний угол */
    .site-header .language-selector {
      position: absolute;
      top: 10px;
      right: 10px;
      font-size: 4vw;
    }
  
    .site-header .language-selector a {
      color: #fff;
      text-decoration: none;
      margin: 0 1vw;
    }
  
    .site-header {
      flex-direction: column;
      align-items: center;
      position: relative;
      padding: 2vh 4vw;
    }
  
    .right-block {
      flex-direction: column;
      align-items: center;
      margin: 0;
      width: 100%;
    }
  }

  .hero {
    position: relative;
    height: 100vh;
    background: url('/images/index2.webp') center/cover no-repeat; /* Уютный фон */

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }
  

  
  .corner-box {
    position: absolute;
    width: clamp(140px, 25vw, 500px);
    height: auto;
    min-height: clamp(160px, 30vh, 1000px);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6); /* ← вот здесь прозрачность */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-weight: 600;
    color: #00796b;
    text-align: center;
    font-size: clamp(12px, 1.5vw, 18px);
    z-index: 10;
    opacity: 0;
    transform: translateX(0) translateY(0);
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .corner-box h3 {
    margin: 0;
    font-size: clamp(16px, 2vw, 22px);
    color: #00796b;
  }
  
  .corner-box .price {
    margin-top: 0.5rem;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: bold;
  }
  
  .corner-box .price .old {
    color: red;
    text-decoration: line-through;
    margin-right: 0.5rem;
  }
  
  .corner-box .price .new {
    color: #00796b;
  }

  
  /* Позиции */
  .top-left {
    top: 2vw;
    left: 2vw;
    transform: translateX(-150%);
  }
  .top-right {
    top: 2vw;
    right: 2vw;
    transform: translateX(150%);
  }
  .bottom-left {
    bottom: 2vw;
    left: 2vw;
    transform: translateY(150%);
  }
  .bottom-right {
    bottom: 2vw;
    right: 2vw;
    transform: translateY(150%);
  }
  
  /* Анимация появления */
  .corner-box.animate-in {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
  
  /* Адаптивность */
  @media (max-width: 768px) {
    /* Секция hero: перестраиваем в колонку */
    .hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px 1rem 2rem; /* отступ сверху + по бокам */
      background: url('/images/index2.jpg') center/cover no-repeat;
      min-height: auto;
      height: auto !important;
      overflow: visible !important;
      padding-bottom: 3rem; /* чтобы не прилипало к футеру */
      
    }
  
    /* Форма — всегда первая */
    .form-wrapper {
      order: -1;
      width: 100%;
      display: flex;
      justify-content: center;
      margin-bottom: 1.5rem;
    }
  
    .form-wrapper form {
      width: 100%;
      max-width: 500px;
      background: rgba(255, 255, 255, 0.6);
      backdrop-filter: blur(5px);
      border-radius: 12px;
      padding: 1.5rem;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
  
    .form-wrapper h2 {
      font-size: 20px;
      text-align: center;
      margin-bottom: 1rem;
      color: #00796b;
    }
  
    /* Блоки corner-box — один под одним */
    .corner-box {
      position: static !important;
      transform: none !important;
      opacity: 1 !important;
      width: 100%;
      max-width: 500px;
      margin-bottom: 1.5rem;
      padding: 1rem;
      background: rgba(255, 255, 255, 0.6);
      backdrop-filter: blur(5px);
      border-radius: 12px;
      z-index: 10;
    }
  
    .corner-box h3 {
      font-size: 18px;
      margin-bottom: 0.5rem;
      text-align: center;
    }
  
    .corner-box p {
      font-size: 14px;
      line-height: 1.5;
      text-align: left;
    }
  
    .corner-box .price {
      font-size: 16px;
      margin-top: 0.5rem;
      text-align: center;
    }
  
    .corner-box .price .old {
      color: red;
      text-decoration: line-through;
      margin-right: 0.5rem;
    }
  
    .corner-box .price .new {
      color: green;
    }
  }
  
  
  
  /* Футер */
  footer {
    background-color: #00796b;
    color: #fff;
    padding: 20px;
  }
  footer .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  footer a {
    color: #80deea;
    text-decoration: none;
    margin-right: 15px;
  }
  
  /* Эффект падающего снега */
  .snowflake {
    position: fixed;
    top: -10px;
    color: #fff;
    font-size: 1em;
    user-select: none;
    z-index: 1000;
    animation: fall linear infinite;
  }
  @keyframes fall {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
  }
  
  /* Адаптивность */
  @media (max-width: 768px) {
    header.site-header .container {
      flex-direction: column;
      text-align: center;
    }
    section.hero h1 {
      font-size: 36px;
    }
    section.services .container {
      flex-direction: column;
      align-items: center;
    }
    .nav-categories {

      margin-left: 0vw;
      margin-right: 0vw;
      margin-top: 2vh; /* прилипают к заголовку */
      display: block;
      text-align: center;

    }
  }
    .call-now-btn {
    display: none;
    background-color: #ff5252;
    color: #fff;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    margin-bottom: 1rem;
    animation: pulse 1.5s infinite;
  }
  
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 82, 82, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
  }
  
  @media (max-width: 768px) {
    .call-now-btn {
      display: block;
    }
  }

  /* SEO-блоки под основным контентом */
  .seo-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    background: #fff;
    color: #333;
  }
  .seo-section {
    margin-bottom: 2.5rem;
  }
  .seo-h2 {
    font-size: 1.5rem;
    color: #00796b;
    margin-bottom: 1rem;
    border-bottom: 2px solid #00796b;
    padding-bottom: 0.5rem;
  }
  .seo-h3 {
    font-size: 1.2rem;
    color: #00796b;
    margin: 1.25rem 0 0.5rem;
  }
  .steps-list {
    padding-left: 1.5rem;
    line-height: 1.8;
    margin: 0;
  }
  .steps-list li {
    margin-bottom: 0.35rem;
  }
  .district-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    list-style: none;
    padding-left: 0;
    margin: 0;
  }
  .district-list li {
    padding: 0.4rem 0.6rem;
    background: #e0f7fa;
    border-radius: 8px;
    color: #00796b;
  }
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }
  .gallery-item {
    margin: 0;
    text-align: center;
  }
  .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
  }
  .gallery-item figcaption {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.5rem;
  }
  .faq-list {
    margin: 0;
  }
  .faq-list dt {
    font-weight: 600;
    color: #00796b;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
  }
  .faq-list dd {
    margin: 0 0 0 1rem;
    padding-bottom: 0.5rem;
    line-height: 1.5;
  }
  .seo-text-block p {
    margin: 0.5rem 0 1rem;
    line-height: 1.65;
  }
  @media (max-width: 768px) {
    .seo-content {
      padding: 1.5rem 1rem 2rem;
    }
    .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item img {
      height: 160px;
    }
  }

  /* Страница района */
  .district-page .seo-h1 {
    font-size: 1.75rem;
    color: #00796b;
    margin-bottom: 1rem;
  }
  .district-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }
  .services-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }
  .services-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
  }
  .services-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00796b;
    font-weight: bold;
  }
  .district-list.district-links a {
    color: #00796b;
    text-decoration: none;
  }
  .district-list.district-links a:hover {
    text-decoration: underline;
  }
  .district-list li.current {
    font-weight: 600;
    background: #b2dfdb;
  }
  .district-cta {
    margin-top: 2rem;
    text-align: center;
  }
  .btn-order {
    display: inline-block;
    background: #00796b;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
  }
  .btn-order:hover {
    background: #00695c;
    color: #fff;
  }

  /* Блок преимуществ на странице района */
  .benefits-section .benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
  }
  .benefits-section .benefits-list li {
    padding: 0.75rem 1rem;
    background: #e0f7fa;
    border-radius: 8px;
    color: #00796b;
    position: relative;
    padding-left: 2.25rem;
  }
  .benefits-section .benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0.75rem;
    font-weight: bold;
    color: #00796b;
  }
  .district-gallery.gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .district-page .seo-section p {
    margin: 0.5rem 0 1rem;
    line-height: 1.65;
  }
  @media (max-width: 768px) {
    .benefits-section .benefits-list {
      grid-template-columns: 1fr;
    }
    .district-gallery.gallery-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

