body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;

  background:
    linear-gradient(rgba(10,10,20,0.75), rgba(10,10,20,0.75)),
    url("img/bg.jpg") center / cover no-repeat fixed;

  color: #fff;
}
.title {
  text-align: center;
  margin-bottom: 30px;
}
html {
  scroll-behavior: smooth;
}
.content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
/*кармашек */
.top-nav {
  position: sticky;
  top: 20px;
  z-index: 1000;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 30px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 16px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.logo {
  font-weight: bold;
  font-size: 18px;
  color: white;
}

.top-nav nav {
  display: flex;
  gap: 24px;
}

.top-nav nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.top-nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

.top-nav nav a:hover::after {
  width: 100%;
}
/* форма */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;

  max-width: 900px;
  margin: 40px auto 0 auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.contact-form {
  color: #000;
}
/* колонки */
.form-left, .form-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* поля */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* большое поле */
.contact-form textarea {
  height: 200px;
  resize: none;
}

/* чекбокс */
.checkbox {
  display: inline-flex;       /* ставим элементы в ряд */
  align-items: center; /* выравниваем по центру по вертикали */
  gap: 8px;        /* расстояние между квадратом и текстом */
  white-space: nowrap;
  font-size: 13px;
  max-width: fit-content; /* контейнер занимает только нужную ширину */
}

/* кнопка */
.contact-form button {
  grid-column: 1 / 3;
  padding: 14px;
  font-size: 16px;
  background: black;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}
button:hover {
  background: #3a3a3a;
}


.lang-switch {
  display: inline-flex;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.lang-switch button {
  padding: 10px 25px;
  border: none;
  background-color: white;
  color: black;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-switch button:hover {
  background-color: #ddd;
}

.lang-switch button.active {
  background-color: black;
  color: white;
}
@media (max-width: 480px) {
  .lang-switch button {
    padding: 10px 16px;  /* чуть больше вертикально и горизонтально */
    font-size: 15px;     /* текст чуть крупнее для читаемости */
    min-width: 50px;     /* минимальная ширина для клика */
  }
}
.panel {
  max-width: 1100px;
  margin: 80px auto;
  padding: 40px;
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.contact-form label[for="agreeCheckbox"] {
  display: inline-flex;      /* label ведёт себя как строчный, но можно центрировать с checkbox */
  align-items: center;       /* вертикально выравниваем текст с чекбоксом */
  white-space: nowrap;       /* запрещаем перенос текста */
  gap: 5px;                  /* отступ между чекбоксом и текстом */
  cursor: pointer;
}

/* фото */
.images {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  max-width: 1680px;
  margin: 0 auto;
}

/* верхний ряд — 3 картинки шире */
.images img:nth-child(1),
.images img:nth-child(2),
.images img:nth-child(3) {
  grid-column: span 4; /* 3×4 = 12 → идеально помещается */
  width: 100%;
}
/* нижний ряд — оставляем как есть */
.images img:nth-child(4) {
  grid-column: 3 / span 4; /* смещена вправо */
  width: 100%;
  max-height: 600px; 
}

.images img:nth-child(5) {
  grid-column: 7 / span 4; /* смещена ещё дальше */
  width: 100%;
  max-height: 600px;
}

/* картинки вертикальные, фиксированная высота */
.lang-img {
  width: 100%;      /* занимает всю ширину ячейки */
  height: auto;     /* высота подстраивается под пропорции */
  max-height: 600px; /* чтобы не было слишком высоко */
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.images {
  margin-top: 10px; /* можешь поставить 20–40px */
}




.hero {
  min-height: 175vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;

  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.hero-content {
  max-width: 600px;
  width: 100%;
  margin-left: auto;
  padding-right: 80px;
  color: white;
  text-align: right;
  transform: translateY(-100px);
}


.hero-btn {
  display: inline-block;
  margin-top: 40px;

  padding: 16px 36px;
  border-radius: 999px;

  background: #2da9ff;
  color: white;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;

  box-shadow: 0 12px 30px rgba(45, 169, 255, 0.4);
  transition: all 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(45, 169, 255, 0.6);
}
.hero-btn {
  align-self: flex-start;
}

.site-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.site-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
}

.main-nav a:hover {
  color: #2da9ff;
}

.site-info {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #666;
}
.site-bar .logo {
  color: #111;        /* тёмный */
  font-weight: 700;
}

.footer {
  margin-top: 120px;
  background: #000000;
  color: #ccc;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 30px;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-logo {
  font-size: 18px;
  font-weight: bold;
  color: white;
  margin-bottom: 12px;
}

.footer p {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.5;
}

/* мобильная версия */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}
span, .address-link {
  vertical-align: middle; /* выравнивание по центру */
  line-height: 1.2;
}

.address-link {
  color: #333333;          /* основной цвет текста */
  text-decoration: none;   /* убрать подчеркивание */
}

/* hover */
.address-link:hover {
  color: #ffcc00;           /* оранжевый при наведении */
  text-decoration: underline;
}

/* посещённые ссылки */
.address-link:visited {
  color: #333333;
}
/* основной стиль верхней ссылки */
.address-link.top-link {
  color: #333333;          /* серый */
  text-decoration: none;
  cursor: pointer;
}

/* hover */
.address-link.top-link:hover {
  color: #ffcc00;          /* оранжевый */
  text-decoration: underline;
}

.footer p a.address-link {
  color: white !important;       /* все ссылки в футере <p> будут белые */
}
.phone-link {
  color: black;             /* основной цвет текста */
  text-decoration: none;    /* убрать подчеркивание */
  cursor: pointer;          /* показать, что кликабельная */
}

.phone-link:hover {
  color: #ffcc00;           /* опциональная подсветка при наведении */
  text-decoration: underline; /* лёгкий эффект при hover */
}
.logo {
  display: flex;
  align-items: center; /* выравнивание по высоте */
  gap: 10px;           /* расстояние между логотипом и текстом */
  font-size: 24px;
  font-weight: bold;
}

.logo img {
  height: 60px;        /* подгоняй под высоту бара */
  width: auto;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;          /* расстояние между логотипом и текстом */
  font-size: 18px;    /* в футере обычно меньше, чем в шапке */
  font-weight: 500;
}

.footer-logo img {
  height: 60px;       /* чуть меньше, чем в шапке */
  width: auto;
}
#contact {
  font-size: 48px;
  font-weight: 2200;

  margin-left: 10%; /* вместо 600px */
  margin-top: 70px;
}
#contactPhone {

   margin-left: 10%; /* вместо 600px */
  margin-top: 10px;
}
#contactEmail {

   margin-left: 10%;
  margin-top: 10px;
}


.social-icons {
  margin-top: 10px;       /* расстояние между контактами и иконками */
  display: flex;
  gap: 10px;              /* расстояние между иконками */
  align-items: center;
}

.social-icon {
  width: 32px;            /* размер иконки, можно изменить */
  height: 32px;
  cursor: pointer;        /* показывает, что элемент кликабельный */
  transition: transform 0.2s; /* лёгкий эффект при наведении */

  position: relative; /* добавляем для сдвига */
  top: -5px;         /* вверх/вниз, отрицательное — поднимать */
  left: 186px;  
}

.social-icon:hover {

  transform: scale(1.1);  /* немного увеличивается при наведении */

}
.instagram-link {
  display: flex;           /* иконка + текст в строку */
  align-items: center;     /* выравниваем текст по центру иконки */
  gap: 8px;                /* расстояние между иконкой и текстом */
  text-decoration: none;
  color: #fff;             /* белый текст */
}
.instagram-link:hover {
  opacity: 0.8;            /* лёгкая подсветка при наведении */
}

.social-icon {
  width: 32px;
  height: 32px;
}

.social-text {
  font-size: 16px;  

position: relative; /* добавляем для сдвига */
  top: -5px;         /* вверх/вниз, отрицательное — поднимать */
  left: 186px;       /* размер текста */

  border-bottom: 0.5px solid #fff;   /* белая линия под текстом */
  padding-bottom: 0.5px; 
}
.map-container {
  width: 90%;
  height: 450px;       /* высота карты */
  margin-left: 170px;  /* если нужно отступ слева и справа */
  overflow: hidden;
}


/* --- Адаптация для экранов до 768px --- */
@media (max-width: 768px) {
  /* Центрируем социальные иконки */
  .social-icons {
    display: flex;
    justify-content: flex-start; /* можно center, если хочешь по центру */
    margin-left: 10px;           /* небольшой отступ слева */
    margin-bottom: 15px;
  }

    .instagram-link {
    flex-wrap: nowrap;       /* убираем перенос текста под иконку */
    gap: 6px;               /* немного уменьшаем расстояние */
  }

  .social-icon {
    width: 28px;
    height: 28px;
  }

  .social-text {
    font-size: 14px;
    color: #fff;            /* повторно задаём белый цвет, чтобы не менялся */
  }

  /* Контактные блоки */
  #contact, #contactPhone, #contactEmail {
    margin-left: 10px;           /* минимальный отступ слева */
  }

  .contact-block {
    left: 5px;
    top: 50px;
  }

  /* Карта */
  .map-container {
    width: 95%;                  /* почти на весь экран */
    margin-left: auto;            /* центрируем */
    margin-right: auto;
    height: 350px;               /* чуть меньше на мобиле */
  }
}


.gallery {
  max-width: 1200px;       /* ограничение ширины всей галереи */
  margin: 0 auto;          /* центрирование */
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;               /* расстояние между рядами */
}

.gallery-row {
  display: flex;
  justify-content: center; /* центрирует по умолчанию */
  gap: 15px;               /* расстояние между фото */
  
  position: relative;      /* чтобы сдвигать весь блок */
  left: -20px;             /* сдвиг влево, положительное — вправо, отрицательное — влево */
}

.gallery-img {
  width: 40.3%;      /* фото чуть шире */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s;
}
@media (max-width: 768px) {
  .gallery-row {
    flex-direction: column;   /* фото идут сверху вниз */
    gap: 15px;                /* расстояние между фото */
    align-items: center;      /* центрируем фото */
    left: 0;                  /* убираем сдвиг влево */
  }

  .gallery-img {
    width: 100%;              /* фото на всю ширину контейнера */
    max-width: 100%;          /* чтобы не выходило за экран */
    height: auto;             /* сохраняем пропорции */
  }
}
.main-nav a {
  font-family: 'SN Pro', sans-serif;
  font-weight: 750;   /* можно 400–700 */
  font-size: 19px;
  letter-spacing: 0.5px;
}
.site-info {
  font-family: 'SN Pro', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.5px;
  
}
.footer {
  font-family: 'SN Pro', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.5px;
}
.footer-logo span {
  font-family: Arial, sans-serif;
}

#heroText {
  font-family: 'SN Pro', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.5px;
}

.contact p,
.social-text {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.5px;
}

/* ======================================
   Мобильная версия
====================================== */
@media (max-width: 768px) {
  .site-bar-inner {
    display: flex;
    flex-direction: column; /* элементы друг под другом */
    padding: 10px 15px;
    background: #ffffff;
    border-radius: 16px;
  }

  /* верхняя строка: логотип слева, языки справа */
  .site-bar-inner > .logo,
  .site-bar-inner > .lang-switch {
    display: inline-flex;
    align-items: center;
  }

  .site-bar-inner > .logo {
    order: 1; /* логотип слева */
  }

  .site-bar-inner > .lang-switch {
    order: 1; /* вместе с логотипом, но сдвигается вправо через margin-left:auto */
    margin-left: auto;
  }

  /* навигация под ними */
  .main-nav {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 8px;
    font-size: 14px;
  }

  /* контакты под навигацией */
  .site-info {
    order: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    margin-top: 4px;
    color: #000; /* черный текст */
  }

  .lang-switch button {
    padding: 6px 12px;
    font-size: 14px;
  }
}
@media (max-width: 768px) {

  /* Центрируем навигацию */
  .main-nav {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .main-nav a {
    text-align: center;
  }

  /* Центрируем адрес и телефон */
  .site-info {
    align-items: center;
    text-align: center;
    width: 100%;
  }

}



@media (max-width: 768px) {
  .site-bar-inner {
    padding: 4px 8px !important;
    border-radius: 12px !important;
    gap: 4px !important;
  }

  .logo img {
    height: 48px !important;
  }

  .logo span {
    font-size: 18px !important;
  }

  .main-nav {
    gap: 10px !important;
    margin-top: 2px !important;
  }

  .main-nav a {
    font-size: 17px !important;
  }

  .site-info {
    gap: 2px !important;
    margin-top: 2px !important;
    line-height: 1.3 !important;
    font-size: 14px !important;
  }

  .lang-switch button {
    padding: 5px 10px !important;
    font-size: 14px !important;
  }

  .site-bar {
    position: static;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden; /* убираем дергание вбок */
  }

  /* принудительно ограничиваем ширину всех блоков на мобиле */
  .site-bar-inner,
  .main-nav,
  .site-info,
  .lang-switch,
  .footer-inner {
    max-width: 100%;
    box-sizing: border-box; /* чтобы padding не вылезал за экран */
  }
.footer {
    width: 100%;
    box-sizing: border-box;
  }
}


@media (max-width: 768px) {
  .contact-form {
    grid-template-columns: 1fr;
    padding: 20px;       /* внутренние отступы для воздуха */
    margin: 0 10px;      /* немного от края экрана */
    box-sizing: border-box; /* чтобы padding не ломал ширину */
  }

  .contact-form button {
    grid-column: 1;
  }
}


@media (max-width: 768px) {
  .images { 
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding-left: 6px !important;  /* чуть больше отступа слева */
    padding-right: 6px !important; /* чуть больше отступа справа */
    box-sizing: border-box !important;
    width: calc(100% - 12px) !important; /* учитываем padding */
    
    margin-top: 10px !important;   /* чуть подняли блок */
    margin-bottom: 20px !important;
  } 

  .images img {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-top: 8px !important;    /* чуть меньше сверху каждой фотки */
    margin-bottom: 8px !important; /* чуть меньше снизу каждой фотки */
  } 
}

@media (max-width: 768px) {
  .hero {
    min-height: auto !important;     /* не растягивать */
    height: 70vh !important;         /* подбираешь под видимую часть фото */
    background-size: cover !important; /* чтобы фото вписывалось */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important; /* текст снизу */
    padding: 0 !important;
    position: relative !important;
  }

  .hero-content {
    position: relative !important;
   margin: 0 !important;                 /* убираем внешние отступы */
    padding: 0 16px 16px 0 !important;    /* справа и снизу минимальный "воздух" */   
    max-width: 100% !important;
    text-align: right !important;
    width: 100% !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .hero-content {
    font-size: 14px !important;  /* базовый размер текста */
  }

  .hero-content h1 {
    font-size: 22px !important;   /* заголовок чуть меньше */
    line-height: 1.2 !important;
  }

  .hero-content h2 {
    font-size: 18px !important;   /* подзаголовки */
    line-height: 1.2 !important;
  }

  .hero-content p {
    font-size: 14px !important;   /* обычный текст */
    line-height: 1.4 !important;
  }

  .hero-btn {
    padding: 9px 22px !important;  /* кнопка чуть меньше */
    font-size: 14px !important;
  }
}

@media (max-width: 768px) {
  /* уменьшаем отступ после параграфа */
  .hero-content p {
    margin-bottom: 6px !important;  /* по умолчанию у <p> может быть 16–20px */
  }

  /* уменьшаем отступ кнопки сверху */
  .hero-btn {
    margin-top: 6px !important;    /* вместо 40px */
  }
}