/* static/styles/index_style.css */

/* Подключаем Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Roboto:wght@400;500&display=swap');

/* Base styles and CSS variables */
:root {
  --primary-color: #301C50;
  --primary-hover: #9747FF;
  --text-color: #4C4C4C;
  --padding-standard: 30px;
  --max-width: 1920px;
  --card-width-1440: 360px;
  --card-width-1920: 384px;
  --card-height: 312px;

  /* Notification colors */
  --success-color: #4CAF50;
  --info-color: #2196F3;
  --warning-color: #FF9800;
  --error-color: #F44336;

  /* Footer colors */
  --footer-bg: #F8F8F8;
  --footer-text: #333333;
  --footer-link-hover: var(--primary-hover);
}

html {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

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

/* Notification Container */
#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
}

/* Notification Styles */
.notification {
  display: flex;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  cursor: pointer;
  min-width: 280px;
  max-width: 100%;
  animation: slideIn 0.3s ease forwards;
  position: relative;
}

.notification.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(50px);
  }
}

/* Notification Type Bar */
.notification-bar {
  width: 4px;
  margin: 5px 0 5px 5px;
  border-radius: 2px;
}

.notification-bar.success {
  background-color: var(--success-color);
}

.notification-bar.info {
  background-color: var(--info-color);
}

.notification-bar.warning {
  background-color: var(--warning-color);
}

.notification-bar.error {
  background-color: var(--error-color);
}

/* Notification Content */
.notification-content {
  padding: 5px 15px 5px 10px;
  flex: 1;
}

.notification-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  margin: 0;
  margin-bottom: 5px;
}

.notification-text {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--text-color);
  margin: 0;
  margin-bottom: 5px;
  line-height: 1.4;
}

/* Demo buttons */
.notification-demo button {
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 8px 12px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transition: background-color 0.3s ease;
}

.notification-demo button:hover {
  background-color: var(--primary-hover);
}

.container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--padding-standard);
  box-sizing: border-box;
  overflow: hidden;
}

/* Заголовки */
h1,
h2,
h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin: 0;
}

h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  margin: 0;
}

/* По умолчанию для текстов */
p,
span,
li,
a {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}

/* Кнопки (если будут) */
button,
.btn {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}

/* Стили самого header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
  z-index: 1000;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0 var(--padding-standard);
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: inline-block;
}

/* Навигация */
.main-nav {
  margin-left: 50px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Расстояние 24px между пунктами меню */
.main-nav ul li+li {
  margin-left: 24px;
}

/* Общие стили ссылок */
.main-nav ul li a {
  position: relative;
  /* Для псевдо-элемента underline */
  text-decoration: none;
  color: #323030;
  font-size: 16px;
  /* размер шрифта в ссылках */
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 1;
  transition: color 0.3s ease;
  /* плавная смена цвета при наведении */
}

/* Псевдо-элемент для анимированного подчёркивания */
.main-nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  /* отступ линии от текста */
  width: 0;
  height: 2px;
  /* толщина линии */
  background-color: var(--primary-color);
  /* цвет линии по умолчанию */
  transition: width 0.3s ease;
}

/* Ховер-состояние: меняем цвет текста и раскрываем линию */
.main-nav ul li a:hover {
  color: var(--primary-color);
  /* желаемый цвет при наведении */
}

.main-nav ul li a:hover::after {
  width: 100%;
}

/* Mobile menu button (hidden by default) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* hero.css */

/* Обёртка всей hero-секции */
.hero-section {
  width: 100%;
  height: auto;
  min-height: 720px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

/* Контейнер для левой и правой частей */
.hero-container {
  display: flex;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: 720px;
}

/* Левая часть (изначально 840px) */
.hero-left {
  width: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: var(--padding-standard);
  box-sizing: border-box;
  z-index: 2;
  flex-shrink: 0;
}

/* Подзаголовок над названием (снизу до заголовка 15px) */
.hero-subtitle {
  margin: 0;
  margin-bottom: 15px;
  /* отступ до H1 */
  color: #000;
  /* Шрифт у нас глобально — Roboto Regular */
}

/* Основной заголовок (H1), две строки подряд без отступов */
.hero-title {
  margin: 0;
  color: #000;
  line-height: 1;

  /* каждая строка обёрнута в <span> и будет блоком */
}

.hero-title span {
  display: block;
  font-weight: bold;
  font-size: clamp(32px, 5vw, 56px);
}

/* Контейнер для кнопок, размещён на 30px ниже H1 */
.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  /* расстояние между кнопками */
  flex-wrap: wrap;
}

/* Базовые стили для обеих кнопок */
.btn-outline,
.btn-filled {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  /* Roboto Medium задан глобально, вес 500 */
  font-weight: 500;
  border-radius: 0;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Кнопка «Подробнее» — прозрачная с обводкой */
.btn-outline {
  border: 2px solid var(--primary-color);
  background-color: transparent;
  color: var(--primary-color);
}

/* Hover для «Подробнее»: закрашиваем фоном, текст становится белым */
.btn-outline:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

/* Кнопка «Каталог» — изначально залита акцентным цветом */
.btn-filled {
  border: none;
  background-color: var(--primary-color);
  color: #FFFFFF;
}

/* Hover для «Каталог»: цвет фона плавно меняется на #9747FF, текст остаётся белым */
.btn-filled:hover {
  background-color: var(--primary-hover);
}

/* Правая часть (изначально 600px) */
.hero-right {
  width: 720px;
  height: 720px;
  z-index: 1;
  flex-shrink: 0;
  position: absolute;
  top: 0;
  right: 0;
}

.hero-right img {
  width: 720px;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

/* Full-width images container */
.full-width-image {
  width: 100%;
  margin: 0;
  padding: 0;
}

.full-width-image img {
  width: 720px;
  height: auto;
  display: block;
}

/* О компании секция */
.about-section {
  background-color: #F6F6F6;
  width: 100%;
  overflow: hidden;
}

.about-container {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Левая часть - изображение */
.about-image {
  width: 50%;
  display: flex;
}

.about-image img.full-width-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Правая часть - текст и статистика */
.about-content {
  width: 50%;
  padding: 60px var(--padding-standard) 60px 60px;
  box-sizing: border-box;
}

/* Заголовок секции */
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #000;
  /* margin-bottom: 30px;
  margin-left: 30px;
  margin-top: 30px; */
}

/* Текст описания */
.about-text {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 40px;
}

/* Контейнер для статистики */
.stats-container {
  display: flex;
  flex-wrap: wrap;
}

/* Отдельный блок статистики */
.stat-item {
  margin-right: 60px;
  margin-bottom: 30px;
}

/* Число в статистике */
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  white-space: nowrap;
}

/* Ensure counter numbers are also bold */
.counter-number {
  font-weight: 700;
}

/* Подпись к числу */
.stat-label {
  font-size: 16px;
  color: #333;
  font-weight: 700;
}

/* Каталог продукции */
.catalog-section {
  padding: 0;
  background-color: #fff;
  width: 100%;
  overflow: hidden;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--card-width-1440))), 1fr));
  gap: 0;
  margin-top: 40px;
  width: 100%;
  padding: 0;
}

@media (min-width: 1600px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--card-width-1920))), 1fr));
  }
}

/* Карточка продукта */
.product-card {
  display: flex;
  flex-direction: column-reverse;
  background-color: #fff;
  border: 1px solid #E0E0E0;
  overflow: hidden;
  text-decoration: none;
  height: var(--card-height);
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Изображение продукта */
.product-image {
  height: 210px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Название продукта */
.product-title {
  padding: 20px;
  font-size: 18px;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  flex-grow: 1;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.product-card:hover .product-title {
  color: var(--primary-hover);
}

/* Карточка "Вся продукция" */
.product-card.all-products {
  background-color: var(--primary-color);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.all-products-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  color: #fff;
  width: 100%;
  height: 100%;
}

.arrow-icon {
  font-size: 32px;
  margin-right: 15px;
}

.all-products-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 20px;
}

.product-card.all-products:hover {
  background-color: var(--primary-hover);
}

/* Container adjustments to make cards touch edges */
.catalog-section .container {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}

@media (min-width: 1440px) {
  .catalog-section .container {
    max-width: var(--max-width);
    padding-left: 0;
    padding-right: 0;
  }
}

/* Анимации */

/* Fade-in анимация */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Lift-down анимация для header */
@keyframes liftDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Scroll-up анимация */
@keyframes scrollUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Классы анимаций */
.animate-header {
  opacity: 0;
}

.animate-header.visible {
  animation: fadeIn 0.5s ease forwards, liftDown 0.5s ease forwards;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.scroll-animation {
  opacity: 0;
}

.scroll-animation.visible {
  animation: scrollUp 0.8s ease forwards;
}

/* Media Queries for Responsive Design */

/* Desktop (1440px+) */
@media (min-width: 1440px) {
  .container {
    padding: 0 60px;
    max-width: var(--max-width);
    margin: 0 auto;
  }

  .catalog-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .advantages-container {
    max-width: var(--max-width);
    margin: 0 auto;
  }
}

/* Tablets (768px - 1439px) */
@media (min-width: 768px) and (max-width: 1439px) {
  .container {
    padding: 0 30px;
    max-width: 100%;
  }

  .site-header {
    height: 70px;
  }
  
  .logo img {
    max-height: 55px;
    height: auto;
    width: auto;
  }

  .hero-section {
    min-height: auto;
    padding: 80px 0 60px;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    height: auto;
  }

  .hero-left {
    width: 100%;
    padding: 40px 30px;
    align-items: center;
    z-index: 3;
  }

  .hero-title span {
    font-size: clamp(32px, 6vw, 42px);
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .hero-right {
    display: none;
  }

  /* About section */
  .about-container {
    flex-direction: column;
  }

  .about-image,
  .about-content {
    width: 100%;
  }

  .about-content {
    padding: 40px 30px;
  }

  .stats-container {
    justify-content: center;
    text-align: center;
  }

  .stat-item {
    margin: 0 20px 30px 0;
  }

  /* Catalog */
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 32px;
  }

  /* Advantages */
  .advantages-container {
    flex-direction: column-reverse;
  }

  .advantages-image,
  .advantages-content {
    width: 100%;
  }

  .advantages-image {
    height: 350px;
    margin-bottom: 30px;
  }

  .advantage-buttons {
    position: relative;
    justify-content: center;
    margin-top: 20px;
  }

  /* Contact section */
  .contact-container {
    flex-direction: column;
    gap: 40px;
  }

  .contact-info,
  .contact-form-container {
    width: 100%;
    padding: 0;
  }

  /* Footer */
  .footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 30px;
  }

  .footer-logo-section {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding-left: 0;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .footer-logo-img {
    max-width: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  .footer-heading {
    font-size: 15px;
  }
  
  .footer-links li a, 
  .footer-contacts li, 
  .footer-contacts li a {
    font-size: 14px;
  }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
  :root {
    --padding-standard: 15px;
  }

  .container {
    padding: 0 15px;
    max-width: 100%;
    overflow: hidden;
  }

  /* Header */
  .site-header {
    height: 60px;
  }

  .header-container {
    padding: 0 15px;
    justify-content: space-between;
  }

  .logo img {
    width: auto;
    height: 40px;
    max-height: 40px;
  }

  .menu-toggle {
    display: block !important;
    z-index: 1001;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    margin: 0;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav ul li+li {
    margin-left: 0;
    margin-top: 20px;
  }

  .main-nav ul li a {
    font-size: 18px;
  }

  /* Hero section */
  .hero-section {
    padding: 0;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    height: auto;
    min-height: auto;
    justify-content: center;
    align-items: center;
  }

  .hero-left {
    padding: 40px 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-right {
    display: none;
  }

  .hero-title span {
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    align-items: center;
    width: 100%;
  }

  .btn-outline,
  .btn-filled {
    width: 100%;
    padding: 12px 20px;
  }

  /* About section */
  .about-container {
    flex-direction: column;
  }

  .about-image,
  .about-content {
    width: 100%;
  }

  .about-content {
    padding: 30px 15px;
  }

  .section-title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 20px;
  }

  .about-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
  }

  .stats-container {
    flex-direction: column;
    text-align: center;
  }

  .stat-item {
    margin: 0 0 25px 0;
  }

  .stat-number {
    font-size: clamp(32px, 8vw, 40px);
  }

  /* Catalog */
  .catalog-section {
    padding: 0;
    margin-bottom: 0;
    margin-top: 0;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .product-title {
    font-size: 16px;
    padding: 15px;
  }

  /* Advantages */
  .advantages-section {
    padding: 0;
    position: relative;
    margin-bottom: 0;
    margin-top: 0;
  }

  .advantages-container {
    flex-direction: column-reverse;
  }

  .advantages-image {
    height: 250px;
    margin-bottom: 30px;
  }

  .advantages-content {
    width: 100%;
    padding-bottom: 0;
  }

  .advantages-description {
    padding: 0 15px;
    font-size: 15px;
  }

  .advantage-item-container {
    padding: 0 15px;
    min-height: 120px;
  }

  .advantage-title {
    font-size: 20px;
  }

  .advantage-text {
    font-size: 15px;
  }

  .advantage-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    gap: 0;
    z-index: 10;
    border-top: 1px solid #E0E0E0;
    background-color: #F6F6F6;
  }

  .advantage-nav-button {
    width: 50%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F6F6F6;
    border: none;
    border-right: 1px solid #E0E0E0;
    cursor: pointer;
  }

  .advantage-nav-button:last-child {
    border-right: none;
  }

  /* Contact section */
  .contact-section {
    padding: 40px 0;
  }

  .contact-container {
    flex-direction: column;
    gap: 30px;
  }

  .contact-info,
  .contact-form-container {
    width: 100%;
    padding: 0;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .contact-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
  }

  .contact-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    padding: 0 15px;
  }

  .footer-logo-section {
    padding-left: 0;
  }

  .footer-logo {
    justify-content: center;
    width: 100%;
  }
  
  .footer-logo-img {
    max-width: 180px;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .footer-links,
  .footer-contacts {
    align-items: center;
  }

  /* Notifications */
  #notification-container {
    right: 10px;
    left: 10px;
    top: 10px;
    max-width: calc(100% - 20px);
  }

  .notification {
    width: 100%;
    min-width: auto;
  }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .header-container {
    padding: 0 10px;
  }

  .logo img {
    width: auto;
    height: 35px;
    max-height: 35px;
  }

  .hero-title span {
    font-size: clamp(24px, 7vw, 32px);
  }

  .section-title {
    font-size: clamp(20px, 5vw, 28px);
  }

  .stat-number {
    font-size: clamp(28px, 7vw, 36px);
  }

  .advantages-description,
  .advantage-item-container {
    padding: 0 10px;
  }

  .advantage-title {
    font-size: 18px;
  }

  .advantage-text {
    font-size: 14px;
  }

  .product-card {
    height: auto;
    min-height: 260px;
  }

  .product-image {
    height: 160px;
  }

  .product-title {
    font-size: 15px;
    padding: 12px;
  }

  .form-control,
  .btn-submit {
    height: 44px;
    font-size: 16px;
    /* Prevents zoom on iOS */
  }

  .footer-container {
    padding: 0 10px;
  }
  
  .footer-logo-img {
    max-width: 150px;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .footer-heading {
    font-size: 14px;
  }

  .footer-links li a,
  .footer-contacts li,
  .footer-contacts li a {
    font-size: 13px;
  }
}

/* Наши преимущества */
.advantages-section {
  width: 100%;
  padding: 0;
  background-color: #F6F6F6;
  position: relative;
  overflow: hidden;
}

.advantages-container {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

/* Левая часть - текст */
.advantages-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-right: 0;
}

.advantages-section .section-title {
  margin-top: 30px;
}

.advantages-description {
  margin-bottom: 30px;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  padding: 0 30px;
}

/* Блок с преимуществами */
.advantage-item-container {
  margin-bottom: 40px;
  min-height: 130px;
  padding: 0 30px;
}

.advantage-item {
  display: none;
  transition: opacity 0.3s ease;
}

.advantage-item.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Стилизация цифры в заголовке преимущества акцентным цветом */
.advantage-number {
  color: #9747FF;
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

.advantage-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #000;
}

.advantage-text {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

/* Кнопки переключения преимуществ */
.advantage-buttons {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 50%;
  display: flex;
  justify-content: flex-end;
  gap: 0;
  z-index: 10;
  border-top: 1px solid #E0E0E0;
  border-bottom: 1px solid #E0E0E0;
  background-color: #F6F6F6;
}

.advantage-nav-button {
  width: 94px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F6F6F6;
  border: none;
  border-left: 1px solid #E0E0E0;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.advantage-nav-button:last-child {
  border-right: 1px solid #E0E0E0;
}

.advantage-nav-button .arrow-icon {
  width: 24px;
  height: 24px;
  color: #636363;
  transition: filter 0.3s ease;
  display: block;
  margin: 0 auto;
}

.advantage-nav-button .arrow-left {
  transform: scaleX(-1);
}

.advantage-nav-button:hover .arrow-icon {
  filter: brightness(0) saturate(100%) invert(14%) sepia(32%) saturate(5073%) hue-rotate(254deg) brightness(93%) contrast(94%);
}

.advantage-nav-button:active {
  background-color: #f9f9f9;
}

/* Правая часть - изображение */
.advantages-image {
  flex: 1;
  height: 500px;
  overflow: hidden;
  position: relative;
}

.advantages-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Адаптивность для преимуществ - Планшет */
@media (min-width: 768px) and (max-width: 1439px) {
  .advantages-container {
    flex-direction: column-reverse;
  }

  .advantages-image {
    width: 100%;
    height: 350px;
    margin-bottom: 30px;
  }

  .advantages-content {
    width: 100%;
  }

  .advantage-buttons {
    left: auto;
    right: 0;
    transform: none;
  }
}

@media (max-width: 767px) {
  .advantages-section {
    padding: 0;
    position: relative;
    margin-bottom: 0;
    margin-top: 0;
  }

  .advantage-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    gap: 0;
    z-index: 10;
    border-top: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
    background-color: #F6F6F6;
    width: 100%;
  }

  .advantage-nav-button {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F6F6F6;
    border: none;
    border-left: 1px solid #E0E0E0;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
  }

  .advantage-nav-button:last-child {
    border-right: 1px solid #E0E0E0;
  }

  .advantage-nav-button .arrow-icon {
    width: 20px;
    height: 20px;
  }

  .advantage-title {
    font-size: 20px;
  }

  .advantages-image {
    height: 250px;
  }
}

/* Container adjustments to make cards touch edges */
.advantages-section .container {
  padding-left: 0;
  padding-right: 0;
}

/* Секция обратной связи */
.contact-section {
  background-color: #fff;
  padding: 80px 0;
  width: 100%;
  overflow: hidden;
}

.contact-container {
  display: flex;
  gap: 30px;
}

/* Левая колонка - контактная информация */
.contact-info {
  flex: 1;
  padding-right: 30px;
}

.contact-details {
  margin-top: 40px;
}

.contact-item {
  display: flex;
  margin-bottom: 30px;
}

.contact-icon {
  margin-right: 15px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-text p {
  margin: 0;
  margin-bottom: 5px;
  color: #323030;
  font-size: 16px;
  line-height: 1.5;
}

/* Правая колонка - форма обратной связи */
.contact-form-container {
  flex: 1;
  background-color: #fff;
  padding: 0 0 0 30px;
}

.form-subtitle {
  margin-bottom: 30px;
  color: #323030;
  font-size: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-size: 16px;
  color: #323030;
  font-weight: 500;
}

.form-control {
  height: 50px;
  padding: 0 15px;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  font-size: 16px;
  color: #323030;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
}

textarea.form-control {
  padding: 15px;
  height: auto;
  resize: none;
}

.form-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
}

.form-checkbox label {
  margin-bottom: 0;
  font-size: 14px;
  color: #323030;
  font-weight: 400;
}

.btn-submit {
  width: 100%;
  height: 50px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

/* Адаптивность для формы обратной связи - Планшет */
@media (min-width: 768px) and (max-width: 1439px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-info,
  .contact-form-container {
    width: 100%;
    padding: 0 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 767px) {


  .contact-section {
    padding: 40px 0;
  }

  .contact-item {
    flex-direction: column;
  }

  .contact-icon {
    margin-bottom: 10px;
  }
}

/* Footer styles */
.site-footer {
  background-color: var(--footer-bg);
  padding: 50px 0;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid #E0E0E0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  align-items: flex-start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-standard);
  width: 100%;
  box-sizing: border-box;
}

/* Logo section */
.footer-logo-section {
  display: flex;
  flex-direction: column;
  padding-left: 30px;
}

.footer-logo {
  display: flex;
  align-items: flex-start;
}

.footer-logo-line {
  width: 4px;
  min-height: 120px;
  background-color: var(--primary-color);
  margin-right: 20px;
  border-radius: 2px;
}

.footer-logo-img {
  width: 281px;
  height: 122px;
  margin-top: 0;
}

.footer-company-name {
  display: flex;
  flex-direction: column;
}

.footer-company-name h3 {
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
  color: var(--primary-color);
  font-weight: 700;
}

/* Links sections */
.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-links,
.footer-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a,
.footer-contacts li,
.footer-contacts li a {
  font-size: 14px;
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links li a:hover,
.footer-contacts li a:hover {
  color: var(--footer-link-hover);
}

.footer-contacts-section {
  padding-right: 30px;
}

/* Mobile phones (up to 767px) */
@media (max-width: 767px) {

  /* Footer responsive styles for mobile */
  .site-footer {
    padding: 40px 0;
    margin-top: 40px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    padding: 0 15px;
    width: 100%;
  }

  .footer-logo-section {
    margin-bottom: 20px;
    width: 100%;
    padding-left: 0;
  }

  .footer-logo {
    justify-content: center;
    display: flex;
  }

  .footer-links,
  .footer-contacts {
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .footer-links-section,
  .footer-products-section,
  .footer-services-section,
  .footer-contacts-section {
    width: 100%;
    padding-right: 0;
  }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
  .site-footer {
    padding: 30px 0;
  }

  .footer-container {
    gap: 25px;
    padding: 0 10px;
  }

  .footer-heading {
    font-size: 15px;
    margin-bottom: 15px;
  }

  .footer-links li,
  .footer-contacts li {
    margin-bottom: 8px;
  }
}