* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  color: white;
  font-family: 'Roboto', sans-serif;
  font-weight: 100;
}

/* hero контейнер */
  /* ======= Общие стили ======= */
header {
  min-height: 100vh;
  margin: 0;
  padding: 0;

  /* Адаптивный фон с поддержкой Retina */
  background-image: 
  url('background.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  /* Эффект фиксированного фона (для десктопов) */
  background-attachment: fixed;
}

.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;
}

.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;
}

.transparent-img {
    opacity: 0.7; /* Полупрозрачное изображение (50%) */
}


.social-icons img:hover {
  filter: invert(54%) sepia(93%) saturate(2801%) hue-rotate(18deg)
    brightness(100%) contrast(102%);
}

/* ======= Бургер ======= */
.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: #f57c00;
  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: 50px;
    top: 300px;
    transform: translateY(-50%);
    margin: 0;
    display: block;
  }

  .header-phone a {
    color: #FD7E14;
    font-size: 1.2em;
    font-weight: 400;
    text-decoration: none;
  }

  .header-phone a:hover {
    color: white;
  }
   .header-phone img {
    display: none;
  }
}

/* УБРАТЬ телефон на 768px и ниже */
@media (max-width: 768px) {
  .header-phone {
    display: none !important;
  }
}

/* УБРАТЬ телефон на 480px и ниже */
@media (max-width: 480px) {
  .header-phone {
    display: none !important;
  }
}




/* ==============================
   АДАПТАЦИЯ 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;
  }

  .content h1 {
    font-size: 3.2em;
    text-align: center;
  }

  .content p {
    font-size: 2.2em;
    text-align: center;
  }
}

/* ==============================
   АДАПТАЦИЯ ДО 768
============================== */
/* ==============================
   БУРГЕР-МЕНЮ 480–768px
============================== */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .underline {
    border: none;
  }

  /* Меню скрыто по умолчанию */
  .nav-menu {
    position: absolute;
    top: -100%; /* прячем вверх */
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    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;
  }

  /* Соц. иконки */
  .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;
  }
  .nav-menu a {
    font-size: 1em;
  }

  .content h1 {
    font-size: 2em;
  }

  .content p {
    font-size: 1em;
  }

  .social-icons img {
    width: 32px;
    height: 32px;
  }
}

@supports (-webkit-touch-callout: none) {
  header {
    background-attachment: scroll !important;
  }
}
/* ============================= */
.container {
  display: flex;
  height: 100vh;
  position: relative;
  justify-content: flex-start;
  margin: 0 auto;
  margin-left: 100px;
  gap: 100px;
}

/* Левая панель */
.sidebar {
  width: 350px;
  height: 100%;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  background-color: #DA8827;
  color: #000;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-text {
  margin-bottom: 20px;
  text-align: center;
  color: #ffffff;
  font-size: 1.4em;
  font-weight: 300;
}

.profile-image {
  width: 100%;

  max-height: 650px;
  object-fit: cover;
  margin-bottom: 20px;
}

.description {
  font-size: 1.2em;
  text-align: left;
  margin-bottom: auto;
  font-weight: 300;
  text-align: left;
  padding: 0px 10px;
  color: #ffffff;
}

.bottom-text {
  margin-top: 0px;
  font-size: 1.2em;
  font-weight: 400;
  padding-left: 10px;
  align-self: flex-start;
  color: #ffffff;
}

/* Правая панель с текстом */
.text-section {
  max-width: 700px;
  padding: 20px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  color: #000;
  justify-content: center;
  font-weight: 300;
}

.text-section h2 {
  margin-bottom: 15px;
  font-size: 2.1em;
  color: #333;
}

.text-section p {
  font-size: 1.2em;
  line-height: 1.6;
  color: #444;
  margin-bottom: 15px;
  text-align: justify;
}

/* ==============================
   АДАПТАЦИЯ ДО 1080px
============================== */
@media (max-width: 1080px) {
  .container {
    gap: 40px;
    margin-left: 60px;
  }

  .profile-image {
 width: 95%;
  }

  .sidebar {
    width: 80%;
    text-align: center;
  }

  .text-section {
    width: 90%;
  }

  .text-section h2 {
    font-size: 1.7em;
  }

  .text-section p {
    font-size: 1em;
  }
}

/* ==============================
   АДАПТАЦИЯ ДО 768px
============================== */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    margin-left: 0;
    gap: 40px;
    height: auto;
    padding: 20px;
  }

    .profile-image {
 width: 100%;
  }

  .sidebar {
    width: 65%;
    text-align: center;
  }

  .description {
    text-align: center;
  }

  .text-section {
    max-width: 95%;
    padding: 15px;
  }

  .text-section h2 {
    font-size: 1.6em;
  }

  .text-section p {
    font-size: 1em;
  }

  .description {
    text-align: left;
     font-size: 1em;
  }
}

/* ==============================
   АДАПТАЦИЯ ДО 480px
============================== */
@media (max-width: 480px) {
  .container {
    gap: 30px;
    padding: 10px;
  }

  .profile-image {
 width: 100%;
  }

  .sidebar {
    width: 65%;
    text-align: center;
  }

  .top-text {
    font-size: 1.2em;
  }


  .description {
    font-size: 0.9em;
    text-align: left;
  
  }

  .bottom-text {
    font-size: 0.9em;
    text-align: left;
  }

  .text-section {
    width: 100%;
    padding: 10px;
  }

  .text-section h2 {
    font-size: 1.4em;
  }

  .text-section p {
    font-size: 0.95em;
  }
}


/* ТРЕТИЙ БЛОК */
.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;
  } }






.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 70px;
}

/* Вертикальная линия */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 200px;
  width: 2px;
  background-color: black;
  z-index: 0;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  color: #000;
}

.left {
  width: 180px;
  text-align: right;
  padding-right: 20px;
  font-size: 1.4em;
  font-weight: 500;
}

.center {
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.doty {
  width: 20px;
  height: 20px;
  background: black;
}

.right {
  flex: 1;
  padding-left: 20px;
  font-size: 1.1em;
  font-weight: 300;
}

.right strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.2em;
  font-weight: bold;
}

.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;
  margin-top: 0px;
}

.always-title span {
  color:#f57c00; }

/* ==============================
   АДАПТАЦИЯ ДО 1080px
============================== */
@media (max-width: 1080px) {
  .always-title {
    font-size: 1.4em;
    margin-left: 60px;
  }

  .timeline {
    max-width: 800px;
    gap: 50px;
  }

  .left {
    font-size: 1.2em;
    width: 150px;
  }

  .right {
    font-size: 1em;
  }

  .timeline::before {
    left: 160px;
  }

.doty {
  height: 15px;
  width: 15px;
}
.center {
  right: 9px;
}
}

/* ==============================
   АДАПТАЦИЯ ДО 768px
============================== */
@media (max-width: 768px) {
  .always-title {
    margin-left: 40px;
    font-size: 1.3em;
  }

  .timeline {
    gap: 40px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding-left: 40px;
  }

  .timeline::before {
    left: 20px;
  }

  .left {
    text-align: left;
    padding: 0;
    width: auto;
    font-size: 1.1em;
    margin-bottom: 5px;
  }

  .center {
    position: absolute;
    left: 10px;
    top: 10px;
  }

  .doty {
    display: none;
  }

  .right {
    padding-left: 0;
    font-size: 1em;
  }
}

/* ==============================
   АДАПТАЦИЯ ДО 480px
============================== */
@media (max-width: 480px) {
  .always-title {
    margin-left: 20px;
    font-size: 1.1em;
  }

  .timeline {
    gap: 30px;
    margin-top: 40px;
  }

  .timeline-item {
    padding-left: 30px;
  }

  .timeline::before {
    left: 12px;
  }

  .left {
    font-size: 1em;
  }

  .right {
    font-size: 0.9em;
  }

  .doty {
    display: none;
  }
}

/* ЧЕТВЕРТЫЙ БЛОК */
.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: Arial, 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: 8px 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;
}
}

/* ГАЛЕРЕЯ */
 .main-gallery {
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #070707;
  background: #ffffff;
  margin-left: 0;

  /* Use whichever works best for you */
  min-block-size: 100vh;
  min-block-size: 100dvh;
  min-block-size: 100svh;

  display: grid;
  grid-template-columns:
    [sidebar-start]
    5rem
    [sidebar-end main-start]
    1fr
    [main-end];
}
@media (max-width: 480px) {
  .main-gallery {
    margin-left: -60px;
  }
}

@media (max-width: 768px) {
  .main-gallery {
    margin-left: -60px;
  }
}

@media (max-width: 1080px) {
  .main-gallery {
    margin-left: -60px;
  }
}

/* Телефоны */
@media (max-width: 480px) {
  figure.exception {
    display: none!important;
  }
}

/* Планшеты */
@media (max-width: 768px) and (min-width: 481px) {
  figure.exception {
    display: none!important;
  }
}



.main {
  grid-column: main;
  padding: 1.25rem;
  
}

/* Photo Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  grid-auto-rows: 12.5rem;
  grid-auto-flow: dense;
  gap: 0.75rem;
 
}



.gallery figure {
  /* container-type: inline-size; */
  container: figure / inline-size;
  overflow: hidden;

  display: grid;
  /* grid-template-columns: 1fr; */
  /* grid-template-rows: 1fr; */

  /*
    Because 1fr = minmax(auto, 1fr),
    to prevent the grid blowout,
    set the minimum to zero.
  */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}



.gallery img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  /* grid-row: 1 / -1; */
  /* grid-column: 1 / -1; */
  grid-area: 1 / 1 / -1 / -1;

  transition: scale 1s ease-in-out;
}

.gallery figure:hover img {
  scale: 1.125;
}

.gallery figcaption {
  grid-area: 1 / 1 / -1 / -1;
  align-self: end;
  z-index: 1;

  padding: 3em 15% 1em 1em;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.3;
  background: linear-gradient(transparent 25%, rgb(0 0 0 / 0.75));
  display: none;
}

figcaption p {
  font-weight: 200;
}



@media (min-width: 600px) {
  .gallery figure.normal-size {
    grid-row: span 1 !important;
    grid-column: span 1 !important;
  }
}
@container figure (width > 20rem) {
  .gallery figcaption {
    display: block;
  }

}

@media (width > 600px) {
  .gallery figure:nth-child(1) {
    grid-area: span 2 / span 2;
  }

  .gallery figure:nth-child(4n + 1) {
    grid-row: span 2;
  }

  .gallery figure:nth-child(4n + 2) {
    grid-column: span 2;
  }
}




    .services {
      max-width: 1200px;
      margin: 50px auto;
      padding: 0 20px;
    }


    .consult-button {
      display: inline-block;
      border: 2px solid #f57c00;
      color: #f57c00;
      padding: 12px 25px;
      text-decoration: none;
      border-radius: 5px;
      font-weight: 600;
      transition: all 0.3s ease;
      margin-left: 20px;
    }

    .consult-button:hover {
      background: #f57c00;
      color: #fff;
    }

    /* ===== Карусель ===== */
    .carousel {
      position: relative;
      overflow: hidden;
      width: 100%;
    }

    .carousel-track {
      display: flex;
      transition: transform 0.5s ease-in-out;
    }

    .card {
      min-width: 50%;
      box-sizing: border-box;
      position: relative;
      color: #fff;
      border-radius: 0px;
      overflow: hidden;
      margin: 10px;
    }

    .card img {
      width: 100%;
      height: 300px;
      object-fit: cover;
      filter: brightness(60%);
      transition: transform 0.3s ease;
    }

    .card:hover img {
      transform: scale(1.05);
    }

    .card-content {
      position: absolute;
      bottom: 30px;
      left: 30px;
      z-index: 2;
    }

    .card h3 {
      font-size: 22px;
      margin: 0 0 10px;
      color: #fff;
    }

    .card p {
      font-size: 15px;
      line-height: 1.4;
      color: #f1f1f1;
      margin-bottom: 20px;
      max-width: 90%;
      font-weight: 300;
    }

    .btn {
      background: #f57c00;
      color: #fff;
      text-decoration: none;
      padding: 10px 18px;
      border-radius: 3px;
      transition:  0.3s;
      font-weight: 300;
    }

    .btn:hover {
      background: #d46300;
    }

    /* Кнопки переключения */
    .carousel-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0, 0, 0, 0.4);
      border: none;
      color: #fff;
      font-size: 28px;
      padding: 10px;
      cursor: pointer;
      border-radius: 50%;
      z-index: 10;
      transition: 0.3s;
    }

    .carousel-btn:hover {
      background: rgba(0, 0, 0, 0.6);
    }

    .carousel-btn.prev {
      left: 0px;
      width: 60px;
    }

    .carousel-btn.next {
      right: 0px;
      width: 60px;
    }

@media (max-width: 1080px) {
  .card {
    min-width: 50%;
  }
  .card img {
    height: 280px;
  }
}

/* До 768px — по 1 карточке в ряд */
@media (max-width: 768px) {
  .card {
    min-width: 100%;
    margin: 5px 0;
  }
  .card img {
    height: 260px;
  }
  .card-content {
    bottom: 20px;
    left: 20px;
  }
  .card h3 {
    font-size: 20px;
  }
  .card p {
    font-size: 14px;
  }
 
}

/* До 480px — оптимизация для смартфонов */
@media (max-width: 480px) {
  .card {
    min-width: 100%;
  }
  .card img {
    height: 220px;
  }
  .card-content {
    bottom: 15px;
    left: 15px;
  }
  .card h3 {
    font-size: 18px;
  }
  .card p {
    font-size: 13px;
  }
  .btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  .carousel-btn {
    font-size: 20px;
    width: 45px;
    height: 45px;
    background-color: transparent;
  }
      .carousel-btn.prev {
      left: 0px;
      width: 50px;
    }

    .carousel-btn.next {
      right: 0px;
      width: 50px;
    }
  
}

        /* 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;
    }
}



      /* REVIEWS */
      .more-review{
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
 
}

.slider-container {
  position: relative;
  width: 900px;
  overflow: hidden;
  width: 70%;
  
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;


}

.slide {
  display: flex;
  justify-content: space-around;
  min-width: 100%;

}

.review {
  background: #ffffff;
  width: 280px;
  height: auto;
  font-family: "Roboto", sans-serif;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  padding: 60px 20px;
  color: #000;

}

.review p {
  font-weight: 200;
}

.review span {
  font-weight: 500;
}

.avatar {
  width: 60px;
  height: 60px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 auto 15px;
}

.author {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.nav {
  position: absolute;
  top: 40%;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.prev {
  left: -30px;
}

.next {
  right: -30px;
}

.dots {
  text-align: center;
  margin-top: 20px;
}

.dot {
  height: 20px;
  width: 20px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  background-color: black;
}

.dot.active {
  background-color: #f57c00;
}

.add-review-btn {
  display: block;
  margin: 55px auto 0;
  align-self: center;
  width: 250px;
  height: 45px;
  background-color:#f57c00;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 3px;
}

.add-review-btn:hover {
  background-color: #d46300;
}

/* Планшет 769px - 1080px */
@media (max-width: 1080px) {
  .slider-container {
    width: 100%;  /* адаптивная ширина */
  }

  .review {
    width: 250px; /* чуть меньше карточки */
    padding: 40px 20px;
  }
}

/* Планшет/малый планшет 480px - 768px */
@media (max-width: 768px) {
  .slider-container {
    width: 90%;
  }

  .slide {
    flex-direction: column; /* отзывы один под другим, если нужно */
    min-width: 100%;
  }

  .review {
    width: 100%; /* на всю ширину слайдера */
    padding: 30px 15px;
  }

  .nav.prev, .nav.next {
    display: none; /* убрать стрелки, если свайп на мобиле */
  }

  .add-review-btn {
    width: 200px;
    height: 40px;
    margin-top: 30px;
  }
}

/* Мобильные устройства до 480px */
@media (max-width: 480px) {
  .slider-container {
    width: 100%;
  }

  .review {
    width: 100%;
    padding: 20px 10px;
  }

  .add-review-btn {
    width: 180px;
    height: 35px;
    margin-top: 20px;
    font-size: 14px;
  }

  .dots {
    margin-top: 10px;
  }
}


/* ЗАГОЛОВОК ДЛЯ ГАЛЕРЕИ */
.always-title-review {
  border-left: 3px solid black;
  padding-left: 20px;
  font-weight: bold;
  min-width: 150px;
  font-size: 1.6em;
  color: #000;
  margin-left: 100px;
  margin-top: 40px;
}
.always-title-review span {
  color:#f57c00; }


  @media (max-width: 480px) {
.always-title-review {
  margin-left: 20px!important;
  font-size: 1.1em!important;
}
}
@media (max-width: 768px) {
 .always-title-review {
    margin-left: 35px!important;
    font-size: 1.1em;
  }
}
@media (max-width: 1080px) {
  .always-title-review {
    font-size: 1.4em;
    margin-left: 60px;
  }
}


/* Модальное окно */
.modal {
  display: none; /* Скрыто по умолчанию */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 3px;
  max-width: 400px;
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

input, textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  height: 80px;
}

.submit-btn {
  background-color: #f57c00;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
}

.submit-btn:hover {
  background-color: #d46300;
}

/* ===== БАЗОВАЯ КНОПКА ===== */
.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;
  }
}
