/* Общие стили */
html, body {
  height: 100%;
    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;
    }
  }
  .main-heading {
    font-size: clamp(24px, 4vw, 36px);
    text-align: center;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

  .page-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
.main-content {
  flex: 1;
}
  .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) {

    /* Скрыть логотип (картинку) */
    .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.webp') 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;
    }
  }
  .filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding: 20px;
    background-color: #f7f9fc;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 30px;
}

.filter-form select,
.filter-form input {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background-color: #fff;
}

.filter-form select:focus,
.filter-form input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.filter-form button {
    background-color: #007bff;
    color: white;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-form button:hover {
    background-color: #0056b3;
}

  
  
  /* Футер */
  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;

    }
  }
  