/* Roboto — normal */
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto/Roboto-VariableFont_wdth,wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Roboto — italic */
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto/Roboto-Italic-VariableFont_wdth,wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  color: white;
  font-weight: 100;
  overflow-x: hidden;
  width: 100%;
}

/* hero контейнер */
  /* ======= Общие стили ======= */
header {
  min-height: 100vh;
  background: url('background.png') no-repeat center center/cover;

  background-attachment: fixed;
  margin: 0;
  padding: 0;
}

.hero-image img {
  position: absolute;
  top: 20px;
  left: 60px;
  width: 60px;
}

/* Навигация */
.underline {
  padding: 25px 0;
  border-top: 0.1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 0.1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-top: 10px;
}

nav a {
  text-decoration: none;
  color: white;
  font-size: 1em;
  transition: 0.3s;
  font-weight: 100;
}
nav a span {
  color: #f57c00 !important;

}

nav a:hover {
  color: #f57c00;

}



/* ======= Герой ======= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.overlay {
  position: absolute;
  
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none; /* чтобы не блокировала клики */
}

.content {
  position: relative;
  z-index: 2;
  border-left: 4px solid #ff9604;
  padding: 0px 20px;
  text-align: justify;
  transform: translateX(-200px);
  margin-bottom: 150px;
}

.content h1 {
  font-size: 4.3em;
  text-transform: uppercase;
  line-height: 1;
}

.content h1 span {
  color: #ff9604;
}

.content h1 .hero-subtitle {
  color: #ffffff;
  font-size: 0.5em;
  font-weight: 100;
}

.content p {
  font-size: 2em;
  margin-top: 10px;
  font-weight: 100;
}

/* ======= Соцсети ======= */
.social-icons {
  position: absolute;
  bottom: 100px;
  right: 40px;
  display: flex;
  gap: 60px;
  z-index: 2;
}

.social-icons img {
  width: 42px;
  height: 42px;
  filter: brightness(0) invert(1);
  transition: 0.3s;
}

.social-icons img:hover {
  filter: invert(54%) sepia(93%) saturate(2801%) hue-rotate(18deg)
    brightness(100%) contrast(102%);
}

.transparent-img {
    opacity: 0.5; /* Полупрозрачное изображение (50%) */
}


/* ======= Бургер ======= */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  top: 25px;
  right: 30px;
  z-index: 10000;
  gap: 6px;
}

.burger span {
  height: 3px;
  width: 25px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* ======= Меню по умолчанию ======= */
.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px; /* управляет расстоянием */
  position: relative;
}

/* Телефон в правом углу */
.header-phone {
  position: absolute;
  right: 40px;
  top: 45px;
  transform: translateY(-50%);
  margin: 0;
}

.header-phone a {
  color: #FD7E14;
  font-size: 1.2em;
  font-weight: 400;
  text-decoration: none;
}

.header-phone a:hover {
  color: white;
}

/* Показываем телефон только до 1080px */
@media (max-width: 1080px) {
  .header-phone {
    position: absolute;
    left: 45px;
    top: 240px;
    transform: translateY(-50%);
    margin: 0;
    display: block;
  }

   .header-phone img {
    display: none;
  }

  .header-phone a {
    color: #f57c00;
    font-size: 1.2em;
    font-weight: 400;
    text-decoration: none;
  }

  .header-phone a:hover {
    color: white;
  }
}

/* УБРАТЬ телефон на 768px и ниже */
@media (max-width: 768px) {
  .header-phone {
    position: absolute;
    left: 45px;
    top: 330px;
    transform: translateY(-50%);
    margin: 0;
    display: block;
  }
}

/* УБРАТЬ телефон на 480px и ниже */
@media (max-width: 480px) {
  .header-phone {
    display: none !important;
  }
}

.btn-hero-orange {
  position: relative;
  display: inline-block;
  margin: 30px 0px 20px;
  border-radius: 3px;
  color: #ffffff;
  text-decoration: none;
  background-color: rgba(255, 156, 16, 0.834);
  padding: 15px 15px;
  font-size: 1.3em;
  font-weight: 300;
  overflow: hidden; /* нужно для блеска */
  transition: background-color 0.3s ease;
}

.btn-hero-orange {
  position: relative;
  display: inline-block;
  margin: 30px 0px 20px;
  border-radius: 3px;
  color: #ffffff;
  text-decoration: none;
  background-color: rgba(255, 156, 16, 0.9);
  padding: 15px 25px;
  font-size: 1.3em;
  font-weight: 300;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

/* Анимированный блеск */
.btn-hero-orange {
  position: relative;
  display: inline-block;
  margin: 30px 0px 20px;
  border-radius: 3px;
  color: #ffffff;
  text-decoration: none;
  background-color: rgba(255, 156, 16, 0.9);
  padding: 15px 25px;
  font-size: 1.3em;
  font-weight: 300;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

/* Медленный блеск */
.btn-hero-orange::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100px;
  width: 60px;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0)
  );
  transform: skewX(-25deg);
  animation: slowShine 3s infinite ease-in-out;
}

/* Плавная анимация перелива */
@keyframes slowShine {
  0% {
    left: -100px;
  }
  15% {
    left: 120%;
  }
  100% {
    left: 120%;
  }
}

/* Цвет при наведении */
.btn-hero-orange:hover {
  background-color: rgb(208, 124, 7);
}

/* ==============================
   АДАПТАЦИЯ 769–1080
============================== */
@media (min-width: 769px) and (max-width: 1080px) {
  .burger {
    display: flex;
  }

  .underline {
    border: none;
  }

  nav.underline {
    display: none;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -100%;
    width: 75%;
    max-width: 300px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 80px 20px;
    gap: 20px;
    transition: left 0.3s ease;
    z-index: 9999;
  }

  .nav-menu.active {
    left: 0;
    display: flex;
  }

  .nav-menu .underline {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .nav-menu a {
    color: white;
    font-size: 1.1em;
    text-decoration: none;
  }

  .nav-menu a:hover {
    color: orange;
  }

  .hero-image img {
    left: 30px;
    width: 50px;
  }

  .content {
    transform: none;
    margin-bottom: 100px;
    padding: 15px;
    text-align: center;
  }

  .content h1 {
    font-size: 3.2em;
    text-align: center;
  }

  .content p {
    font-size: 2.2em;
    text-align: center;
  }

   .btn-hero-orange {
    font-size: 1.2em;
    padding: 15px 20px;
  }
}

/* ==============================
   АДАПТАЦИЯ ДО 768
============================== */
/* ==============================
   БУРГЕР-МЕНЮ 480–768px
============================== */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .underline {
    border: none;
  }

   .btn-hero-orange {
    font-size: 1em;
    padding: 15px 20px;
  }

  /* Меню скрыто по умолчанию */
  .nav-menu {
    position: absolute;
    top: -100%; /* прячем вверх */
    left: 0;
    width: 100%;
    height: 400px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0px;
    transition: top 0.4s ease;
    z-index: 9999;
  }

  /* Когда активно — опускается вниз */
  .nav-menu.active {
    top: 0;
  }

  /* Чтобы .underline не ломала вертикаль */
  .nav-menu .underline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  /* Ссылки меню */
  .nav-menu a {
    color: white;
    font-size: 1.1em;
    text-decoration: none;
    transition: color 0.3s;
  }

  .nav-menu a:hover {
    color: #f57c00;
  }

  /* Контент */
  .content {
    transform: none;
    margin-bottom: 100px;
    padding: 10px;
  }

  .content h1 {
    font-size: 2.5em;
    text-align: center;
  }

  .content p {
    font-size: 1.2em;
    text-align: center;
  }

  .content {
   text-align:center;
  }

  /* Соц. иконки */
  .social-icons {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    bottom: 60px;
    right: 0;
  }

  /* Логотип */
  .hero-image img {
    left: 25px;
    width: 50px;
  }
}

/* ==============================
   ДО 480px
============================== */
@media (max-width: 480px) {
  .hero-image img {
    left: 20px;
    width: 40px;
  }

  /* Меню чуть компактнее */
  .nav-menu {
   background-color: rgba(0, 0, 0, 0.3);
   padding: 0 0;
  }

  .btn-hero-orange {
    font-size: 0.9em;
    padding: 15px 20px;

  }
  .nav-menu a {
    font-size: 1em;
  }

  .content h1 {
    font-size: 2em;
  }

  .content p {
    font-size: 1em;
  }

  .content {
   text-align:center;
  }

  .social-icons img {
    width: 32px;
    height: 32px;
  }
}

@supports (-webkit-touch-callout: none) {
  header {
    background-attachment: scroll !important;
  }
}

        /* Footer Styles */
.footer {
    background-color: #333;
    color: #eee;
    padding: 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    
}

.footer-section {
    width: 23%; /* 4 колонки */
    padding: 10px;
    text-align: left;
    box-sizing: border-box;
}

.footer-section h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-family: "Roboto", sans-serif;
}

.footer-section a {
    color: #eee;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    font-family: "Roboto", sans-serif;
    line-height: 30px;
    font-weight: 300;
}

.footer-section a:hover {
    color: #f57c00;
}

.footer-section p {
    line-height: 26px;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 25px;
    font-size: 0.8em;
}


.footer-bottom a {
    color:#f57c00;
    text-decoration: none;
}


/* Tablets — 2 колонки */
@media (max-width: 768px) {
    .footer-section {
        width: 48%;
        text-align: center;
    }
}

/* Phones — 1 колонка */
@media (max-width: 480px) {
    .footer-section {
        width: 100%;
        text-align: left;
    }
    .footer-section a,
    .footer-section p {
        font-size: 0.9em;
    }
}




/* ТРЕТИЙ БЛОК */
.background-timeline {
  background-color: #F6F6F6;
  padding: 50px 0;
  margin-top: 50px;
}

.always-carousel {
  margin: 50px 0;
  border-left: 3px solid black;
  padding-left: 20px;
  font-weight: bold;
  min-width: 150px;
  font-size: 1.6em;
  color: #000;
  margin-left: 100px;
}
.always-carousel span {
  color:#f57c00;
}

@media (max-width: 1080px) {
  .always-carousel {
    font-size: 1.4em;
    margin-left: 60px;
  } 
.always-carousel span {
  color: #f57c00;
} }

@media (max-width: 768px) {
  .always-carousel {
    margin-left: 40px;
    font-size: 1.3em;
  } }
@media (max-width: 480px) {
  .always-carousel {
    margin-left: 20px;
    font-size: 1.1em;
  } }



.always-title {
  border-left: 3px solid black;
  padding-left: 20px;
  font-weight: bold;
  min-width: 150px;
  font-size: 1.6em;
  color: #000;
  margin-left: 100px;
}

.always-title span {
  color: #f57c00;
}
.always-title-gallary {
  border-left: 3px solid black;
  padding-left: 20px;
  font-weight: bold;
  min-width: 150px;
  font-size: 1.6em;
  color: #000;
  margin-left: 100px;
  margin: 40px;
}

@media (max-width: 480px) {
.always-title {
 margin-left: 20px!important;
font-size: 1.1em!important;
}
}
@media (max-width: 768px) {
  .always-title {
   margin-left: 35px!important;
    font-size: 1.1em;
  }
}

@media (max-width: 1080px) {
  .always-title{
    font-size: 1.4em;
    margin-left: 60px;
  }
}
/* ЧЕТВЕРТЫЙ БЛОК */
.experience {
  max-width: 1000px;
  margin: 0px auto;
  padding: 40px;

}

.checkbox-label {
  color: #000;
}


.experience h2 {
  font-size: 1.6em;
  color: #000;
  font-weight: 600;
  margin-bottom: 50px;
  position: relative;
  padding-left: 20px;
}

.experience h2 span {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: black;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-row {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9em;
  color: #000;
}

.checkbox-label {
  color: #000;
}

.checkbox-label a{
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1em;
  color: #666;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px; /* More spacing */
  margin-bottom: 10px;
  width: 18px;    /* Larger checkbox */
  height: 18px;
}

input,
textarea {
  background-color: #fff;
  border: none;
  outline: none;
  padding: 12px 15px;
  font-size: 1em;
  color: #000;
  font-family: 'Roboto', sans-serif;
 
}

textarea {
  resize: none;
  height: 120px;
}


#comment, #name, #phone, #company {
  font-size: 0.9em; /* любой нужный размер */
}

.full-width {
  width: 100%;
}

.submit-btn {
  align-self: center;
  border-radius: 3px;
  width: 250px;
  height: 45px;
  background-color: #f57c00;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 1em;
  transition: 0.3s;
}

.submit-btn:hover {
  background-color: #b5661f;
  
}

.checkbox-label {
  font-weight:300;
}

select {
  background-color: #fff;
  border: none;
  outline: none;
  padding: 12px 15px;
  margin-bottom: 20px;
  font-size: 0.9em;
  color: #666;
  font-size: 100;
  cursor: pointer;
}

/* ======= Адаптация ======= */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .submit-btn {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .experience {
    padding: 20px;
  }

  .experience h2 {
    font-size: 1.3em;
    margin-bottom: 30px;
  }

  input,
  textarea {
    font-size: 0.95em;
  }

  .submit-btn {
    width: 180px;
    height: 40px;
  }
  .checkbox-label {
  font-size: 0.95em;
}
}

    

.faq-section {
  background-color: #3b3b3b;
  color: #fff;
  padding: 20px;
  font-family: "Roboto", sans-serif;
}

.faq-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  font-family: "Roboto", sans-serif;
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-list li {
  padding: 15px 0;
  border-bottom: 1px solid #fff;
  cursor: pointer; /* Indicates the item is clickable */
}

.faq-list li:last-child {
  border-bottom: none;
}

.faq-item {
  display: flex;
  justify-content: space-between; /* Positions question and toggle */
  align-items: center;

}

.faq-question {
  flex-grow: 1;  /* Take up available space */
  font-size: 1.3em;
  font-weight: 300;
 font-family: "Roboto", sans-serif;
}

.faq-toggle {
  font-size: 2em;
  transition: transform 0.3s ease;
  user-select: none; /* Prevent text selection during click */
  min-width: 20px;   /* Ensure it takes up some space, even if empty */
  text-align: center;

}

.faq-list li.open .faq-toggle {
  transform: rotate(45deg); /* Rotates the plus sign */
  user-select: none;
}

.faq-answer {
  padding: 10px 0;
  display: none;   /* Hidden by default */
  font-family: "Roboto", sans-serif;
  font-weight: 200;
  font-style: normal;
  color: rgb(255, 255, 255);
  font-size: 1.1em;
}

.faq-list li.open .faq-answer {
  display: block;   /* Show when 'open' class is applied */
}

@media (min-width: 360px) and (max-width: 480px) {
  .faq-title {
    margin-bottom: 15px;
    font-size: 1.5em;
    
  }

  .faq-question {
    font-size: 1em;
    
  }

  .faq-answer {
    font-size: 0.8em;
  }

  .faq-toggle {
    font-size: 1.6em;
  }

  .faq-list li {
    padding: 10px 0;
  }
}

/* For screens between 461px and 768px (e.g., phones and small tablets) */
@media (min-width: 481px) and (max-width: 768px) {
  .faq-title {
    font-size: 1.5em;
    margin-bottom: 18px;
  }

  .faq-question {
    font-size: 1.2em;
  }

  .faq-answer {
    font-size: 1em;
  }
}

/* For screens between 769px and 1080px (e.g., tablets and smaller laptops) */
@media (min-width: 769px) and (max-width: 1080px) {
  .faq-question {
    font-size: 1.2em;
  }

  .faq-answer {
    font-size: 1.05em;
  }

  .faq-toggle {
    font-size: 1.8em;
  }

   .faq-list li {
    padding: 12px 0;
  }
}

/*For screens larger than 1080px (e.g., larger laptops and desktops)*/
@media (min-width: 1081px) {
   .faq-section{
       padding: 30px;
   }
   .faq-title{
       font-size: 1.8em;
       margin-bottom: 25px;
   }
   .faq-question{
       font-size: 1.2em;
   }
   .faq-answer{
       font-size: 1em;
       
   }
}


/* ====== ГАЛЕРЕЯ ====== */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;                /* расстояние между фото */
    background-color: #fff;
    width: 90%;
    margin: 0 auto;
    padding: 5px;            /* общий внутренний отступ */
}
.gallery-item {
    flex: 0 0 calc(33.333% - 5px);  /* 3 в ряд + мелкий отступ */
    cursor: pointer;
}


.gallery-item:hover {
    opacity: 1;
}
.gallery-item img {
    width: 100%;             /* убирает лишние отступы */
    height: 250px;           /* можно 250px или авто */
    object-fit: cover;
}
.gallery-content {
    font-size: .8em;
}

.lightbox {
    position: fixed;
    display: none;
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;              
    overflow: auto;
    top: 0;
    left: 0;
}
.lightbox-content {
    position: relative;
    width: 70%;
    height: 100%;
    margin: 5% auto;
}
.lightbox-content img {
    border-radius: 7px;
    box-shadow: 0 0 3px 0 rgba(225, 225, 225, .25);
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 7px;
    top: 45%;
    cursor: pointer;
}
.lightbox-prev {
    left: 0;
}
.lightbox-next {
    right: 0;
}
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: .8;
}

/* Media query for screens up to 480px */
@media (max-width: 480px) {
    .gallery-container {
        width: 95%;          /* Take up more screen width */
        padding: 5px;        /* Reduce padding */
    }

    .gallery-item {
        flex-basis: 100%;   /* One image per row */
        margin-bottom: 10px; /* Add more spacing between images */
    }

    .gallery-item img {
        width: 100%;        /* Make image take up the full width */
        height: auto;       /* Maintain aspect ratio */
    }

    .lightbox-content {
        width: 90%;          /* Take up more screen width */
        margin: 10% auto;     /* Adjust margin */
    }

    .del {
      display: none;
    }

}

/* Media query for screens between 481px and 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .gallery-container {
        width: 90%;          /* Take up more screen width */
    }

    .gallery-item {
        flex-basis: 48%;     /* Two images per row */
        margin-bottom: 8px;  /* Adjust spacing */
    }

    .gallery-item img {
        width: 100%;        /* Ensure image takes full width */
        height: 100%;       /* Maintain aspect ratio */
    }

    .lightbox-content {
        width: 80%;          /* Adjust width */
    }

    .del, .del_t {
      display: none;
    }
}

/* Media query for screens between 769px and 1080px */
@media (min-width: 769px) and (max-width: 1080px) {
    .gallery-container {
        width: 85%;          /* Take up more screen width */
    }

    .gallery-item img {
        width: 100%;        /* Ensure image takes full width */
        height: 200px;       /* Maintain aspect ratio */
    }
}

/* ====== ГАЛЕРЕЯ 2 ====== */
.gallery-container_2 {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;                /* расстояние между фото */
    background-color: #fff;
    width: 90%;
    margin: 0 auto;
    padding: 5px;            /* общий внутренний отступ */
}

.gallery-item_2 {
    flex: 0 0 calc(33.333% - 7px);  /* 3 в ряд с gap */
    cursor: pointer;
}

.gallery-item_2:hover {
    opacity: 1;
}

.gallery-item_2 img {
    width: 100%;             /* фото занимает всю ширину блока */
    height: 250px;
    object-fit: cover;
}

/* ====== Лайтбокс (оставляем стандартный) ====== */
.lightbox {
    position: fixed;
    display: none;
    background-color: rgba(0,0,0,0.8);
    width: 100%;
    height: 100%;
    overflow: auto;
    top: 0;
    left: 0;
}

.lightbox-content {
    position: relative;
    width: 70%;
    height: 100%;
    margin: 5% auto;
}

.lightbox-content img {
    border-radius: 7px;
    box-shadow: 0 0 3px 0 rgba(225,225,225,0.25);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    padding: 7px;
    top: 45%;
    cursor: pointer;
}

.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

.lightbox-prev:hover,
.lightbox-next:hover { opacity: .8; }

/* ====== Адаптив ====== */

/* Телефоны до 480px */
@media (max-width: 480px) {
    .gallery-container_2 {
        width: 95%;
        padding: 5px;
    }

    .gallery-item_2 {
        flex: 0 0 100%;   /* одно фото в ряд */
        margin-bottom: 5px;
    }

    .gallery-item_2 img {
        width: 100%;
        height: auto;     /* сохраняем пропорции */
    }

    .gallery-item_2 .del,
    .gallery-item_2 .del_t {
        display: none;    /* скрываем лишние фото */
    }

    .lightbox-content {
        width: 90%;
        margin: 10% auto;
    }
}

/* Планшеты 481px - 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .gallery-container_2 {
        width: 90%;
    }

    .gallery-item_2 {
        flex: 0 0 calc(50% - 7px);  /* два фото в ряд */
        margin-bottom: 5px;
    }

    .gallery-item_2 img {
        width: 100%;
        height: auto;
    }

    .gallery-item_2 .del,
    .gallery-item_2 .del_t {
        display: none;
    }

    .lightbox-content {
        width: 80%;
    }
}

/* ПК 769px - 1080px */
@media (min-width: 769px) and (max-width: 1080px) {
    .gallery-container_2 {
        width: 85%;
    }

    .gallery-item_2 {
        flex: 0 0 calc(33.333% - 7px);  /* 3 фото в ряд */
    }

    .gallery-item_2 img {
        width: 100%;
        height: 180px;
    }
}

/* Широкие экраны >1080px */
@media (min-width: 1081px) {
    .gallery-container_2 {
        width: 90%;
    }

    .gallery-item_2 {
        flex: 0 0 calc(33.333% - 7px);
    }

    .gallery-item_2 img {
        width: 100%;
        height: 250px;
    }
}

.contacts-section {
  padding: 40px 0 80px;
  background: #fff;
  margin-left: 40px;
  color: #000;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
}

.contacts-title {
  font-size: 36px;
  margin-left: 40px;
  margin-bottom: 40px;
  font-weight: 700;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px; /* расстояние как на макете */
  max-width: 1400px;
  margin-left: 40px;
  align-items: start;
}

/* КАРТА */
.map-placeholder {
  width: 600px;
  height: 400px;
  position: relative;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
}

/* ПРАВАЯ КОЛОНКА */
.right-info {
  display: flex;
  flex-direction: column;
  gap: 40px; /* расстояние между блоками */
}

/* CONTACT INFO */
.contact-title {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 600;
}

.contact-info p {
  margin: 5px 0 15px;
  font-size: 1.2em;
  line-height: 1.5em;
}

.contact-phone {
  font-weight: 500;
}

.contact-email {
  font-size: 20px;
  color: #000;
  font-weight: 500;
  text-decoration: none;
}

.contact-email:hover {
  color: #f57c00;
}

/* КНОПКИ */
.contact-buttons {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.btn {
  padding: 12px 25px;
  font-size: 1em;
  font-weight: 500;
  border-radius: 3px;
  text-decoration: none;
  border: 2px solid #f57c00;
  color: #f57c00;
}

.whatsapp-btn {
  background: #f57c00;
  color: white;
  border-color: #f57c00;
  transition: 0.3s;
}

.whatsapp-btn:hover {
  background: #e67301;
  border-color: #e67301;
}

.question-btn {
  transition: 0.3s;
}

.question-btn:hover {
  background: #f57c00;
  border-color: #f57c00;
  color: white;
}


/* ПРЕДСТАВИТЕЛЬ */
.representetive .rep-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.rep-link img {
  vertical-align: middle;
  margin-right: 8px;
}

.rep-link a {
  font-size: 18px;
  color: black;
  text-decoration: none;
}

.rep-link a:hover {
  color: #f57c00;
}


/* --------------------------------------- */
/*        АДАПТАЦИЯ ДО 1080px              */
/* --------------------------------------- */
@media (max-width: 1080px) {

  .contacts-grid {
    grid-template-columns: 1fr; /* одна колонка */
    margin-left: 20px;
  }

  .map-placeholder {
    width: 100%;
    height: 350px;
  }

  .contacts-title {
    margin-left: 20px;
  }
}

/* --------------------------------------- */
/*        АДАПТАЦИЯ ДО 768px               */
/* --------------------------------------- */
/* --------------------------------------- */
/*        АДАПТАЦИЯ ДО 768px               */
/* --------------------------------------- */
@media (max-width: 768px) {

  .contacts-section {
    margin-left: 20px; /* ОТСТУП СЛЕВА */
    padding: 30px 0 60px;
  }

  .contact-title {
    font-size: 1.5em; 
   }

  .contacts-title {
    margin-left: 20px; /* ОТСТУП СЛЕВА */
    text-align: left;
  }

  .contacts-grid {
    margin-left: 20px; /* ОТСТУП СЛЕВА */
  }
}

/* --------------------------------------- */
/*        АДАПТАЦИЯ ДО 480px               */
/* --------------------------------------- */
@media (max-width: 480px) {

  .contacts-section {
    margin-left: 15px; /* НЕМНОГО МЕНЬШЕ НА СОВСЕМ МАЛЕНЬКОМ ЭКРАНЕ */
    padding: 20px 0 40px;
  }

  .contacts-title {
    margin-left: 15px; /* ОТСТУП СЛЕВА */
  }
  
  .contact-info  {
    font-size: 0.9em;
  }
  .contacts-grid {
    margin-left: 15px; /* ОТСТУП СЛЕВА */
  }
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 50px;
    justify-content: center; /* центрирование последних карточек */
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    height: 320px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    cursor: pointer;
}


.card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 1;
}

/* затемнение */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 2;
}

.card-content {
    position: relative;
    z-index: 3;
    padding: 20px;
       transform: translateY(10px);
    opacity: 0.9;
    transition: transform 0.35s ease, opacity 0.35s ease;
    
}
.card:hover .card-content {
    transform: translateY(0);
    opacity: 1;
}
.card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
}

.card p {
    font-size: 16px;
    line-height: 1.35;
    margin-bottom: 15px;
}

/* Оранжевая кнопка */
.btn_cut {
    display: inline-block;
    background: #ff7a00;
    padding: 10px 20px;
    border-radius: 3px;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    transition: background 0.3s;
    margin-right: 10px;
    white-space: nowrap;
}

.btn_cut:hover {
    background: #e56c00;
}

/* Белая кнопка */
.btn_white {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 3px;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    background: transparent;
    transition: 0.3s;
}

.btn_white:hover {
    background: rgba(255,255,255,0.25);
}

/* ----------- 1080px ----------- */
@media (max-width: 1080px) {
    .services {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        padding: 40px;
        gap: 20px;
    }

    .card {
        height: 300px;
    }

    .card h3 {
        font-size: 20px;
    }

    .card p {
        font-size: 15px;
    }
}

/* ----------- 768px (планшеты) ----------- */
@media (max-width: 768px) {
    .services {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        padding: 30px;
        gap: 18px;
    }

    .card {
        height: 260px;
    }

    .card-content {
        padding: 15px;
    }

    .card h3 {
        font-size: 18px;
    }

    .card p {
        font-size: 14px;
    }

    .btn_cut,
    .btn_white {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* ----------- 480px (телефоны) ----------- */
@media (max-width: 480px) {
    .services {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
    }

    .card {
        height: 240px;
    }

    .card-content {
        padding: 15px;
    }

    .card h3 {
        font-size: 17px;
        line-height: 1.25;
    }

    .card p {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    /* кнопки на мобильных в столбик или в строку — выбирай */
    .btn_cut,
    .btn_white {
        width: 35%;         /* кнопки на всю ширину */
        text-align: center;
        margin-right: 0;
        margin-bottom: 8px;
        padding: 10px 0;
    }
}

.about {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    color: #000000;
    
}

/* Правая сторона */
.about-right {
    margin-left: 50px;
}

.about h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* Общий текст */
.about p {
    font-size: 18px;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 25px;
}

/* Стиль текста отдельно */
.about-right p,
.about-right li,
.about-left p,
.about-left li {
    font-weight: 300;
    text-align: justify;
}

/* Изображения */
.about-img {
    width: 85%;
    border-radius: 3px;
    margin-top: 40px;
}

.about-img-small {
    width: 70%;
    border-radius: 3px;
    margin-bottom: 25px;
}

/* Список с галочками */
.about-list {
    list-style: none;
    padding-left: 0;
    margin: 30px 0;
}

.about-list li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 30px;
    font-size: 1em;
    font-weight: 200;
    text-align: justify;
}

.about-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #d67b31;
    font-size: 18px;
}

/* Кнопка */
.about-btn {
    display: inline-block;
    padding: 14px 40px;
    background-color: #ff7a00;
    font-size: 1em;
    text-decoration: none;
    color: #ffffff;
    border-radius: 4px;
    transition: 0.3s;
    font-weight: 300;
}

.about-btn:hover {
    background: #d67b31;
    color: #fff;
}

/* ===========================
   1080px — ноутбуки
=========================== */
@media (max-width: 1080px) {
    .about {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 50px!important;
    }

    .about-right {
        margin-left: 0;
    }

    .about-img {
    width: 60%;
    margin: 20px auto 0; /* auto — центрирует */
    display: block;       /* делает margin auto рабочим */
        
    }

    .about-img-small {
        width: 60%;
        margin: 0 auto 20px;
        display: block;
    }

    .about h2 {
        font-size: 40px;
    }

    .about p,
    .about-list li {
        font-size: 17px;
        text-align: justify;
    }
}

/* ===========================
   768px — планшеты
=========================== */
@media (max-width: 768px) {
    .about {
        padding: 40px 15px;
        gap: 30px;
    }

     .about-img {
      width: 400px;
     }

    .about h2 {
        font-size: 34px;
    }

    .about p,
    .about-list li {
        font-size: 16px;
    }

    .about-img-small {
        width: 75%;
    }

    .about-btn {
        padding: 12px 32px;
        font-size: 0.95em;
    }
}

/* ===========================
   480px — мобильные
=========================== */
@media (max-width: 480px) {
    .about {
        padding: 35px 20px;
        gap: 25px;
    }

    .about h2 {
        font-size: 28px;
        line-height: 1.2;
        text-align: left;
    }

    .about p {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .about-img,
    .about-img-small {
        width: 100%;
    }

    .about-list li {
        font-size: 15px;
        padding-left: 26px;
    }

    .about-btn {
        width: 100%;
        padding: 14px 0;
        font-size: 1em;
        text-align: center;
    }
}

/* ===========================
   Видео
=========================== */

 .video-wrapper {
      position: relative;
      width: 100%;
      max-width: 800px;
      margin: 0 auto;
      cursor: pointer;
      margin-bottom: 25px;
    }

    .video-wrapper img.poster-img,
    .video-wrapper .play-btn {
      display: block;
    }

    .poster-img {
      width: 100%;
      height: auto;
      object-fit: cover;
      border-radius: 3px;
    }

    .play-btn {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 80px;
      height: 80px;
      transform: translate(-50%, -50%);
      background: rgba(0, 0, 0, 0.5);
      border-radius: 50%;
      transition: 0.3s;
    }

    .play-btn::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-35%, -50%);
      border-style: solid;
      border-width: 20px 0 20px 35px;
      border-color: transparent transparent transparent white;
    }

    .play-btn:hover {
      background: rgba(0, 0, 0, 0.7);
    }

    video {
      display: none;
      height: 300px;
      width: 400px;
      border-radius: 3px;
    }
/* Адаптив видео */
@media (max-width: 1080px) {
    .video-wrapper {
     width: 400px;
     
    margin: 10px auto 30px; 
    display: block;       
    }

    .poster-img {
      width: 100%;
      height: 300px;
      object-fit: cover;
      border-radius: 3px;
    }
      video {
      display: none;
      height: 300px;
      width: 100%;
      border-radius: 3px;
    }
}

@media (max-width: 768px) {
    .video-wrapper {
        width: 400px;
        max-width: 500px;
        height: auto;
    }

      video {
      display: none;
      height: 300px;
      width: 100%;
      border-radius: 3px;
    }

    .play-btn {
        width: 60px;
        height: 60px;
    }

    .play-btn::after {
        left: 24px;
        top: 17px;
        border-width: 13px 0 13px 22px;
    }
}

@media (max-width: 480px) {
    .video-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        margin-bottom: 15px;
    }

      video {
      display: none;
      height: 200px;
      width: 100%;
      border-radius: 3px;
    }

    .play-btn {
        width: 50px;
        height: 50px;
    }

    .play-btn::after {
        left: 20px;
        top: 15px;
        border-width: 10px 0 10px 18px;
    }
}


/* Общий контейнер для сетки товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3 карточки в ряд, адаптивно */
    gap: 40px; /* Расстояние между карточками */
    padding: 20px;
    max-width: 1200px; /* Максимальная ширина сетки */
    margin: 50px auto; /* Центрирование сетки */
    box-sizing: border-box;

}

/* Стили для отдельной карточки товара */
.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Легкая тень */
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Плавный переход для поднятия */
    cursor: pointer; /* Указываем, что элемент интерактивный */
}

/* Эффект поднятия при наведении */
.product-card:hover {
    transform: translateY(-5px); /* Поднимаем карточку на 5px вверх */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Усиливаем тень */
}

/* Стили для изображения товара */
.product-image {
    width: 100%;
    height: 180px; /* Фиксированная высота для единообразия */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden; /* Обрезаем, если изображение выходит за рамки */
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Сохраняет пропорции, вписывая изображение */
}

/* Стили для блока характеристик/преимуществ */
.product-features {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Расстояние между элементами "Быстрая доставка", "Характеристики" */
}

.product-features span {
    white-space: nowrap; /* Чтобы текст не переносился */
}

/* Стили для заголовка товара */

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 20px;
    display: -webkit-box;
    
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
/* Стили для цены */
.product-price {
    font-size: 1.4em;
    text-align: left;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px; /* Уменьшаем отступ снизу, чтобы сократить расстояние до кнопок */
    margin-top: 0; /* Убедимся, что нет верхнего отступа, который бы добавлял расстояние */
}
/* Стили для кнопок */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px; /* Уменьшаем отступ сверху, чтобы кнопки были ближе к цене */
    /* Было auto, теперь фиксированное значение.
       Это может повлиять на прижатие кнопок к низу,
       если содержимое карточки очень сильно меняется по высоте.
       Если карточки должны быть фиксированной высоты,
       можно использовать padding-bottom для .product-card вместо этого margin. */
}

.btns {
    padding: 10px 15px;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
    flex-grow: 1; /* Кнопки будут равномерно растягиваться */
    text-align: center;
    text-decoration: none;
}

.buy-btn {
    background-color: #ff8c00; /* Оранжевый цвет */
    color: #fff;
    border: 1px solid #ff8c00;
}

.buy-btn:hover {
    background-color: #e07b00;
    border-color: #e07b00;
}

.price-btn {
    background-color: #fff;
    color: #ff8c00; /* Оранжевый цвет текста */
    border: 1px solid #ff8c00;
    transition: 0.2s;
}

.price-btn:hover {
  background-color:  #ff8c00;
  color: white;
  
}



/* Медиа-запросы для адаптивности (если нужно) */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Меньше колонок на узких экранах */
    }
}

@media (max-width: 480px) {
    .product-actions {
        flex-direction: column; /* Кнопки одна под другой на очень узких экранах */
    }
    .product-card {
        padding: 10px;
    }
}
/* ... (весь предыдущий CSS код) ... */

/* Контейнер для тултипа, устанавливаем относительное позиционирование */
.features-tooltip-container {
    position: relative;
    display: inline-block; /* Чтобы span занимал только необходимую ширину */
    cursor: help; /* Меняем курсор на "помощь" */
}

/* Стили для самого всплывающего окна (тултипа) */
.features-tooltip {
    visibility: hidden; /* Скрываем по умолчанию */
    opacity: 0; /* Делаем его невидимым по умолчанию */
    width: 330px; /* Ширина всплывающего окна */
    background-color: #333; /* Темный фон */
    color: #fff; /* Белый текст */
    text-align: left; /* Выравнивание текста внутри */
    border-radius: 6px; /* Закругленные углы */
    padding: 10px;
    position: absolute; /* Абсолютное позиционирование */
    z-index: 100; /* Чтобы был поверх других элементов */
    bottom: 125%; /* Располагаем над элементом "Характеристики" */
    left: 50%;
    margin-left: -100px; /* Центрируем по горизонтали (половина ширины) */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Легкая тень */
    transition: opacity 0.3s ease; /* Плавное появление */
}

/* Стрелочка внизу всплывающего окна */
.features-tooltip::after {
    content: "";
    position: absolute;
    top: 100%; /* Располагаем внизу тултипа */
    left: 50%;
    margin-left: -5px; /* Центрируем стрелку */
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent; /* Цвет стрелки совпадает с фоном тултипа */
}

/* Стили для списка внутри тултипа */
.features-tooltip ul {
    list-style: none; /* Убираем стандартные маркеры списка */
    padding: 0;
    margin: 0;
}

.features-tooltip li {
    padding: 3px 0;
    font-size: 13px;
    white-space: normal; /* Разрешаем перенос текста */
}


/* Появление тултипа при наведении на контейнер */
.features-tooltip-container:hover .features-tooltip {
    visibility: visible; /* Делаем видимым */
    opacity: 1; /* Полностью показываем */
}

/* Если хотите, чтобы текст "Характеристики" был другого цвета, когда тултип активен */
.features-tooltip-container:hover {
    color: #ff8c00; /* Пример: оранжевый цвет текста "Характеристики" */
}

/* Остальные стили для .product-features, если они есть, могут быть такими: */
.product-features {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px; /* Уменьшен отступ, как мы делали ранее */
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 768px) {
    .features-tooltip {
        width: 260px;
        margin-left: -130px;
        padding: 8px;
    }

    .features-tooltip li {
        font-size: 12px;
    }

    .features-tooltip::after {
        margin-left: -4px;
    }
}


/* ============================== */
/*        📱 480px (PHONE)        */
/* ============================== */
@media (max-width: 480px) {
    .features-tooltip {
        width: 280px;
        margin-left: -110px;
        padding: 7px;
        font-size: 12px;
        bottom: 115%; /* чтобы не выходил за экран */
    }

    .features-tooltip li {
        font-size: 11px;
    }

    .features-tooltip::after {
        margin-left: -4px;
        border-width: 4px;
    }

    .product-features {
        font-size: 12px;
        gap: 6px;
    }
}
.delivery-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 40px 0;
    color: #000;
    margin-left: 100px;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* --- ЛЕВАЯ колонка --- */
.left-side {
    flex: 2;

    max-width: 600px;
    
}

.lead {
    font-weight: 300;
    font-size: 1.2em;
    margin-bottom: 20px;
    
}

.city-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.col h3 {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.city-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.city-list li {
    margin-bottom: 6px;
    padding: 6px 10px;
    background: #eee;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.2s;
}
.city-link a {
  color: rgb(0, 0, 0);
  text-decoration: none;
}

.city-link a:hover {
  color: rgb(255, 255, 255);
  text-decoration: none;
}

.city-list li:hover {
    background-color: #f57c00;
    color: white;
}

/* --- ПРАВАЯ колонка --- */
.contact-info-td {
  display: flex;
  flex-direction: column;
 
}
.contact-info-td p {
  margin: 5px 0 15px;
  font-size: 1.2em;
  line-height: 1.5em;
  font-weight: 300;
}

.contact-title-td {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 600;
}

.contact-phone-td {
    font-size: 1.2em;
    font-weight: 500;
}

.contact-email-td {
    color: #f57c00;
     font-size: 20px;
  color: #000;
  font-weight: 500;
  text-decoration: none;
}

/* базовое поведение: всегда в строку, запрещаем перенос */
.contact-buttons-td {
  margin-top: 20px;
  display: flex;
  flex-direction: row;   /* в одну линию */
  gap: 20px;
  flex-wrap: nowrap;     /* запрет переноса */
  align-items: center;
}

/* кнопки — убедись, что класс совпадает с HTML */
.btn-td { /* включил .btn на всякий случай, если у тебя используется такой класс */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px;
  border-radius: 3px;
  background: #f57c00;
  color: white;
  text-decoration: none;
  white-space: nowrap;   /* не ломать текст */
  min-width: 0; /* чтобыflex-элемент мог сжиматься */
}

/* отдельные стили для каждой кнопки */
.whatsapp-btn-td {
  background: #f57c00;
  border: 1px solid #f57c00;
  transition: 0.2s;
  color: #eee;
}

.whatsapp-btn-td:hover {
  background: #e67301;
  border-color: #e67301;
}

.question-btn-td {
  background: transparent;
  color: #f57c00;
  border: 1px solid #f57c00;
  transition: 0.2s;
}

.question-btn-td:hover {
  background: #f57c00;
  color: #fff;
}

/* ---- адаптация под экраны ---- */
/* до 1080px — чуть уменьшаем паддинг/шрифт */
@media (max-width: 1080px) {
  .btn-td, .btn {
    padding: 10px 16px;
    font-size: 0.98rem;
  }
  .contact-buttons-td {
    gap: 18px;
  }
}

/* до 768px — уменьшаем ещё, но НЕ переводим в колонку */
@media (max-width: 768px) {
  .btn-td, .btn {
    padding: 9px 14px;
    font-size: 0.95rem;
  }
  .contact-buttons-td {
    gap: 14px;
    /* на случай, если где-то ранее прописали column — принудительно вернуть row */
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
}

/* до 480px — кнопки ещё компактнее, остаются в строку */
@media (max-width: 480px) {
  .btn-td, .btn {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
  .contact-buttons-td {
    gap: 8px;
    overflow-x: auto; /* если всё же не влезли — появится горизонтальный скролл, лучше чем колонка */
    -webkit-overflow-scrolling: touch;
  }
  /* чтобы при скролле каждый элемент не растягивался */
  .contact-buttons-td > .btn-td,
  .contact-buttons-td > .btn {
    flex: 0 0 auto;
  }
}



/* --- Адаптивность --- */
@media (max-width: 900px) {
    .delivery-card {
        flex-direction: column;
        margin-left: 0;
    }
}

@media (max-width: 700px) {
    .city-columns {
        grid-template-columns: 1fr;
    }
}


/* --- до 1080px --- */
@media (max-width: 1080px) {
  .delivery-card {
    gap: 30px;
    margin-left: 60px;
  }

  .contact-title-td {
    font-size: 28px;
  }

  .contact-info-td p {
    font-size: 1.1em;
  }
}

/* --- до 769px (планшеты) --- */
@media (max-width: 769px) {
  .delivery-card {
    flex-direction: column;
    margin-left: 40px;
  }

  .contact-info-td {
    margin-top: 20px;
  }

  .contact-title-td {
    font-size: 26px;
  }

  .contact-buttons-td {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
.delivery-card {
margin-left: 15px;
}
}

/* --- до 480px (телефоны) --- */
@media (max-width: 480px) {
  .contact-title-td {
    font-size: 24px;
  }

  .contact-info-td p {
    font-size: 1em;
  }

  .contact-email-td {
    font-size: 18px;
  }

 
}

/* ===== БАЗОВАЯ КНОПКА ===== */
.tg-question-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;

  display: flex;
  align-items: center;
  gap: 10px;

  background-color: #0088cc;
  color: #fff;

  padding: 14px 18px;
  border-radius: 50px;

  font-family: Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;

  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* появление */
.tg-question-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== ИКОНКА ===== */
.tg-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tg-icon img {
  width: 100%;
  height: 100%;
  display: block;
    transition: transform 0.3s ease;
}

/* ===== ТЕКСТ ===== */
.tg-text {
  white-space: nowrap;
}

/* Поворот иконки при hover */
@media (hover: hover) {
  .tg-question-btn:hover .tg-icon img {
    transform: rotate(-12deg) scale(1.05);
  }
}

/* ===== HOVER (desktop) ===== */
@media (hover: hover) {
  .tg-question-btn:hover {
    background-color: #0095e6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
}

/* ================================================= */
/* ===== MOBILE ≤ 480px : ИДЕАЛЬНЫЙ КРУГ ===== */
/* ================================================= */

@media (max-width: 480px) {

  .tg-question-btn {
    right: 14px;
    bottom: 14px;

    width: 56px;
    height: 56px;
    padding: 0;

    border-radius: 50%;

    justify-content: center;
  }

  .tg-text {
    display: none;
  }

  .tg-icon {
    width: 20px;
    height: 20px;
  }
}
