/* =========================
   GLOBAL RESET
   ========================= */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html, body {
  margin: 0;
  padding: 0;
}

/* =========================
   BODY
   ========================= */
body {
  font-family: "Alegreya SC", serif;
  color: rgba(255, 255, 255, 0.96);
}

/* =========================
   HEADER 
   ========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 2000;

  background: rgba(244, 235, 220, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(42, 38, 35, 0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;

  height: 64px;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  font-family: "Alegreya SC", serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #2a2623;
  white-space: nowrap;
}

/* NAV */
.nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  position: relative;

  font-family: "Alegreya SC", serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: #2a2623;
  text-decoration: none;

  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
}

/* underline on hover */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;

  width: 0;
  height: 2px;
  background: #a0374b;

  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* CTA BUTTON */
.header-btn {
  padding: 10px 20px;
  border: none;
  cursor: pointer;

  font-family: "Alegreya SC", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: #f4ebdc;
  text-decoration: none;

  background: rgba(160, 55, 75, 0.9);
  border-radius: 999px;

  box-shadow: 0 6px 18px rgba(0,0,0,0.25);

  transition: transform 0.2s ease, background 0.2s ease;
  display: inline-block;
}

.header-btn:hover {
  transform: translateY(-2px);
  background: rgba(160, 55, 75, 1);
}

/* Стилизация кнопки записи как ссылка барбера */
.header-booking-btn, .barber-login-link {
  padding: 10px 20px;
  font-family: "Alegreya SC", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f4ebdc;
  text-decoration: none;
  background: rgba(160, 55, 75, 0.9);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, background 0.2s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

/* =========================
   MOBILE HEADER
   ========================= */
@media (max-width: 910px) {
  .nav {
    display: none;
  }

  
}

/* =========================
   HERO SECTION
   ========================= */
.main {
  position: relative;
  overflow: hidden;
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: unset;
  height: auto;
}
/* hero image */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
/* overlay (stronger + gradient for consistent readability) */
.main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.58),
    rgba(0, 0, 0, 0.38),
    rgba(0, 0, 0, 0.58)
  );
}

/* =========================
   HERO TEXT
   ========================= */
.hero-text {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: clamp(16px, 4vw, 56px);
  gap: clamp(6px, 1.2vw, 14px);

  text-align: center;

  /* high contrast on all screens */
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

/* title */
.hero-name {
  font-size: clamp(50px, 6vw, 100px);
  font-weight: 900;
  line-height: 1.05;
  margin: 0;
  color: #F0E8DB;
  padding-bottom: 40px;
}

/* description lines */
.hero-notice1,
.hero-notice2,
.hero-notice3 {
  max-width: min(900px, 92vw);

  font-size: clamp(16px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.25;
  margin: 0;

  /* beige accent but still readable */
  color: rgba(240, 232, 219, 0.95);
}

/* =========================
   GLASS BUTTON
   ========================= */
.hero-butt {
  margin-top: clamp(18px, 4vw, 48px);
  padding: clamp(10px, 1.2vw, 14px) clamp(18px, 2.5vw, 34px);

  /* Шрифты как на скрине */
  font-family: serif; /* Или конкретный шрифт, если используешь */
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 400;
  text-transform: uppercase; /* Текст в верхнем регистре */
  letter-spacing: 0.15em; /* Межбуквенное расстояние чуть больше */

  color: #ffffff;
  background: transparent; /* Полностью прозрачный фон */
  
  /* Красная тонкая обводка */
  border: 1.5px solid #d34c4c; 
  border-radius: 8px; /* На скрине углы чуть более острые, чем 14px */

  /* Эффект стекла */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  cursor: pointer;
  outline: none;
  
  /* Плавный переход для всех свойств */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hero-butt:hover {
  /* При наведении кнопка чуть «наливается» цветом и светится */
  background: rgba(211, 76, 76, 0.1); 
  box-shadow: 0 0 20px rgba(211, 76, 76, 0.4);
  transform: translateY(-2px);
  border-color: #ff5f5f; /* Обводка становится ярче */
}

.hero-butt:active {
  transform: translateY(1px);
  box-shadow: 0 0 10px rgba(211, 76, 76, 0.2);
}

/* =========================
   RESPONSIVE TUNING
   ========================= */

/* small phones */
@media (max-width: 480px) {
  .header {
    height: 40px;
    padding: 0 12px;
  }

  .hero-text {
    padding: 16px;
  }

  .hero-notice1,
  .hero-notice2,
  .hero-notice3 {
    max-width: 96vw;
  }
}

/* =====================================================
   MOBILE HERO — FIXED (как в Figma)
   ===================================================== */
  @media (max-width: 600px) {
  .hero {
    min-height: auto;
  }

  .hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 10; 
    object-fit: cover;
    object-position: center 30%;
    display: block;
  }

  .hero-text {
    justify-content: center;
    object-position: center;
    gap: 12px;
    
  }

  .hero-name {
    font-size: 36px;
    line-height: 1.2;
  }

  .hero-notice1,
  .hero-notice2,
  .hero-notice3 {
    font-size: 16px;
    line-height: 1.4;
    max-width: 100%;
  }

  .hero-butt {
    margin-top: 18px;
    font-size: 15px;
    padding: 12px 22px;
    border-radius: 12px;
  }
}

/* =========================
   SLIDE 2 LAYOUT
   ========================= */
.slide2 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #F4EBDC;
  padding: clamp(16px, 5vw, 64px);
}

/* main box */
.media-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 4vw, 48px);

  max-width: 1200px;
  width: 100%;
}

/* left image */
.media-img {
  border-radius: 18px;
  overflow: hidden;
  margin-right: 100px;
  
}

.media-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center 30%;
  
}

/* right text */
.media-text {
  color: #3F2121;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.media-text h2 {
  font-size: clamp(28px, 4vw, 120px);
  margin-bottom: 16px;
}

.media-text p {
  font-size: clamp(16px, 2vw, 28px);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* =========================
   MOBILE STACKING
   ========================= */
@media (max-width: 768px) {
  .media-box {
    grid-template-columns: 1fr;
  }

  .media-img {
    max-height: 320px;
    margin-right: 0px;
    
  }
}
/* =========================
   TEAM SECTION
   ========================= */
.team {
  min-height: 100vh;
  background-color: #262626;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: clamp(32px, 6vw, 96px);
}

/* title */
.team-title {
  margin-bottom: clamp(32px, 6vw, 70px);

  font-family: "Alegreya SC", serif;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: 0.12em;

  color: #F0E8DB;
  text-align: center;
}

/* grid with 3 cards */
.team-grid {
  width: 100%;
  max-width: 1200px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 48px);
}

/* individual card */
.team-card {
  text-align: center;
  color: #F0E8DB;
  padding-left: 20px;
  padding-right: 20px;
}

/* image */
.team-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

/* name */
.team-card h3 {
  font-size: clamp(18px, 2vw, 24px);
  margin-bottom: 8px;
  font-weight: 600;
}

/* description */
.team-card p {
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.4;
  opacity: 0.9;
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {
  /* 1 колонка (как было), но по ширине — нормально */
  .team-grid{
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 560px;     /* чтобы блок не был слишком широким */
    margin: 0 auto;
    gap: 28px;
  }

  /* карточка становится строкой: фото + текст */
  .team-card{
    padding: 0;
    text-align: left;

    display: grid;
    grid-template-columns: 160px 1fr; /* фото слева, текст справа */
    gap: 18px;
    align-items: center;
  }

  /* фото фиксируем по размеру, как в макете */
  .team-card img{
    width: 160px;
    height: 210px;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 12px;
    margin: 0;
  }

  /* имя и описание */
  .team-card h3{
    margin: 0 0 8px 0;
    letter-spacing: 0.10em;
    text-transform: uppercase;
  }

  .team-card p{
    margin: 0;
    opacity: 0.9;
  }

  /* шахматка: каждая 2-я карточка наоборот (как на скрине) */
  .team-card:nth-child(even) img{
    order: 2;
  }
  .team-card:nth-child(even) h3,
  .team-card:nth-child(even) p{
    order: 1;
  }
}
@media (max-width: 420px) {
  .team-card{
    grid-template-columns: 130px 1fr;
    gap: 14px;
  }
  .team-card img{
    width: 130px;
    height: 180px;
  }
}


/* =========================
   GALLERY (ФОТОГАЛЕРЕЯ)
   ========================= */
.gallery{
  min-height: 100vh;                 /* jeden ekran */
  background: #F4EBDC;
  padding: clamp(28px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* tytuł jak w makiecie (duży, po prawej) */
.gallery-title{
  margin: 0 0 clamp(18px, 4vw, 40px) 0;
  font-family: "Alegreya SC", serif;
  font-size: clamp(34px, 5vw, 80px);
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #2a2623;
  text-align: right;
  display: flex;
  justify-content: center;
}

/* 3 zdjęcia w jednej linii */
.gallery-grid{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
}

.gallery-item{
  margin: 0;
  text-align: center;
}

.gallery-img{
  width: 100%;
  height:auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;


  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.16);
  border: 1px solid rgba(0,0,0,0.08);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-img:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.20);
}

.gallery-cap{
  margin-top: 12px;
  font-family: "Alegreya SC", serif;
  font-size: clamp(14px, 1.5vw, 18px);
  color: rgba(42,38,35,0.70);
}

/* strzałki jak w makiecie */
.gallery-controls{
  margin-top: clamp(18px, 4vw, 38px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.gallery-btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;

  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(42,38,35,0.22);
  color: #2a2623;

  display: grid;
  place-items: center;

  transition: transform 0.15s ease, background 0.2s ease;
}

.gallery-btn:hover{
  background: rgba(255,255,255,0.50);
  transform: translateY(-1px);
}
.gallery-btn:active{ transform: translateY(0); }

.gallery-line{
  width: min(240px, 46vw);
  height: 2px;
  background: rgba(42,38,35,0.20);
  border-radius: 999px;
  position: relative;
}

.gallery-dot{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 2px;
  background: rgba(42,38,35,0.55);
  border-radius: 999px;
}


@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr; /* 1 колонка на маленьких экранах */
    justify-items: center; /* Центрируем единственную картинку */
  }
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3) {
    display: none; /* Скрываем вторую и третью картинки */
  }
  .gallery-item:first-child {
    width: 60%; /* Делаем первую картинку чуть меньше для мобильки, чтобы не была огромной */
    max-width: 400px; /* Ограничение размера, чтобы не растягивалась на весь экран */
    margin: 0 auto; /* Центрируем */
  }
}


/* =========================
   SLIDE: PRICES
   ========================= */
.prices{
  min-height: 100vh;
  background: #161616;
  color: #F0E8DB;
  padding: clamp(28px, 6vw, 80px);
  display: flex;
  align-items: center;
}

.prices-inner{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Title */
.prices-title{
  margin: 0 0 clamp(22px, 4vw, 44px) 0;
  font-family: "Alegreya SC", serif;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* Grid columns */
.prices-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 70px);
}

/* Subtitles */
.prices-subtitle{
  margin: 0 0 14px 0;
  font-family: "Alegreya SC", serif;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  border-bottom: 2px solid rgba(240, 232, 219, 0.65);
  padding-bottom: 6px;
}

.prices-subtitle.mt{ margin-top: 28px; }

/* Rows */
.price-row{
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;

  padding: 14px 0;
  border-bottom: 2px solid rgba(160, 55, 75, 0.55); /* бордовая линия как в макете */
}

.service-name{
  font-family: "Alegreya SC", serif;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.95;
}

.service-price{
  font-family: "Alegreya SC", serif;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* =========================
   TOOLTIP (hover)
   ========================= */
.has-tooltip{
  cursor: help;
}

.tooltip{
  position: absolute;
  left: 0;
  top: -10px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;

  background: #0f0f0f;
  border: 1px solid rgba(240, 232, 219, 0.18);
  color: #F0E8DB;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);

  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.35;
  z-index: 20;
}

.tooltip::after{
  content: "";
  position: absolute;
  top: 100%;
  left: 26px;
  border-width: 7px;
  border-style: solid;
  border-color: #0f0f0f transparent transparent transparent;
}

.tooltip-wide{
  min-width: 220px;
  max-width: 340px;
  white-space: normal;
}

.has-tooltip:hover .tooltip{
  opacity: 1;
  transform: translateY(-110%);
}

/* Title tooltip positioning (центр) */
.prices-title.has-tooltip .tooltip{
  left: 50%;
  transform: translate(-50%, -100%);
  top: 0;
  text-align: center;
}
.prices-title.has-tooltip:hover .tooltip{
  transform: translate(-50%, -110%);
}
.prices-title.has-tooltip .tooltip::after{
  left: 50%;
  transform: translateX(-50%);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 900px){
  .prices-grid{
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .prices{
    align-items: flex-start;
  }
}
/* =========================
   ASSIST (КАК Я МОГУ ПОМОЧЬ)
   ========================= */
.assist{
  background: #F4EBDC;
  padding: clamp(26px, 6vw, 80px);
  display: flex;
  justify-content: center;
}

.assist-card{
  width: 100%;
  max-width: 1050px;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(42,38,35,0.18);
  border-radius: 22px;

  padding: clamp(18px, 4vw, 42px);
}

.assist-title{
  margin: 0 0 18px 0;
  font-family: "Alegreya SC", serif;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #2a2623;
  text-align: center;
}

.assist-actions{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.assist-btn{
  font-family: "Alegreya SC", serif;
  font-size: clamp(12px, 1.3vw, 14px);
  letter-spacing: 0.10em;
  text-transform: uppercase;

  padding: 10px 16px;
  border-radius: 999px;

  border: 2px solid rgba(42,38,35,0.28);
  background: rgba(0,0,0,0.04);
  color: #2a2623;

  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

.assist-btn:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,0.06);
}

.assist-btn.is-active{
  background: rgba(160, 55, 75, 0.88);
  border-color: rgba(160, 55, 75, 0.88);
  color: #F4EBDC;
}

.assist-inputwrap{
  width: 100%;
  max-width: 880px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 999px;
  border: 2px solid rgba(42,38,35,0.20);
  background: rgba(255,255,255,0.22);
}

.assist-input{
  flex: 1;
  border: none;
  outline: none;
  background: transparent;

  font-family: "Alegreya SC", serif;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.06em;
  color: #2a2623;
}

.assist-input::placeholder{
  color: rgba(42,38,35,0.55);
}

.assist-send{
  width: 46px;
  height: 46px;
  border-radius: 999px;

  border: 2px solid rgba(42,38,35,0.22);
  background: rgba(0,0,0,0.05);
  color: #2a2623;

  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}

.assist-send:hover{
  background: rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

/* =========================
   CONTACTS
   ========================= */
.contacts{
  background: #F4EBDC;
  padding: clamp(26px, 6vw, 80px);
}

.contacts-title{
  margin: 0 0 clamp(18px, 4vw, 36px) 0;
  font-family: "Alegreya SC", serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #2a2623;
  text-align: left;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.contacts-grid{
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 4vw, 60px);
  align-items: center;
}

.contact-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: #2a2623;
}

.contact-icon{
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;

  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(42,38,35,0.14);
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);

  color: rgba(42,38,35,0.85);
}

.contact-main{
  font-family: "Alegreya SC", serif;
  font-size: clamp(14px, 1.8vw, 18px);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* mobile */
@media (max-width: 515px){
 .contact-icon{
  width: 50px;
  height: 50px;
 }
 .contact-main{
  font-size: 12px;
 }
}

/* =========================
   FOOTER
   ========================= */
.footer{
  background: #161616;
  color: rgba(240,232,219,0.75);
  padding: 22px 18px;
}

.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-family: "Alegreya SC", serif;
  letter-spacing: 0.08em;
}

.footer-line{
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer-sub{
  font-size: 12px;
  opacity: 0.75;
  text-transform: uppercase;
}


/* СТИЛИ МОДАЛКИ ВХОДА БАРБЕРА */
/* Оверлей */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Контейнер из скриншота */
.barber-login-container {
    background-color: #d7ccc8; /* Светло-бежевый */
    padding: 40px;
    border-radius: 40px;
    border: 3px solid #2196f3; /* Синяя рамка как на скрине */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 800px;
    text-align: center;
    position: relative;
}

.login-title {
    font-family: 'Georgia', serif;
    font-weight: 900;
    font-size: 3rem;
    margin-bottom: 5px;
    color: #1a1a1a;
    text-transform: uppercase;
}

.login-subtitle {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: #333;
}

/* Поля ввода */
.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.input-group input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 50px;
    border: 2px solid #8d6e63;
    background-color: #bc9e94; /* Цвет полей как на скрине */
    color: #fff;
    font-size: 1.1rem;
}

.input-group input::placeholder {
    color: #e0e0e0;
}

/* Кнопка Войти */
.login-submit-btn {
    background-color: #793430; /* Темно-красный/коричневый */
    color: white;
    border: 2px solid #3e1b19;
    padding: 12px 60px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s;
}

.login-submit-btn:hover {
    transform: scale(1.05);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-modal:hover {
    transform: scale(1.1);
}

/* ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ МОДАЛЬНЫХ ОКОН */
.modal-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

/* АДАПТИВ ДЛЯ HEADER */
@media (max-width: 768px) {
    /* Делаем контейнер гибким */
    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
        height: auto;
        min-height: 46px;
    }

    /* Уменьшаем логотип, чтобы не занимал пол-экрана */
    .logo {
        font-size: 14px;
        white-space: nowrap; /* Чтобы не переносился на две строки */
    }

    /* Скрываем навигацию, если она мешает кнопкам */
    .nav {
        display: none; 
    }

    /* Кнопки в ряд */
    .header-btn {
        padding: 6px 10px; /* Еще компактнее */
        font-size: 10px;
        white-space: nowrap;
        flex-shrink: 0; /* Запрещаем кнопкам сжиматься в кашу */
    }
}

.gallery-wrapper {
  width: 100%;
  overflow: hidden; /* Скрываем дефолтный скроллбар */
}

.gallery-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory; /* Магнитный эффект */
  scrollbar-width: none; /* Скрываем скроллбар в Firefox */
  padding: 20px 0;
  cursor: grab;
}

.gallery-grid::-webkit-scrollbar {
  display: none; /* Скрываем скроллбар в Chrome/Safari */
}

.gallery-item {
  flex: 0 0 calc(33.333% - 20px); /* 3 фото на десктопе */
  scroll-snap-align: center;
  transition: transform 0.3s ease;
}

/* Адаптивность для мобилок */
@media (max-width: 992px) {
  .gallery-item {
    flex: 0 0 calc(50% - 20px); /* 2 фото на планшете */
  }
}

@media (max-width: 600px) {
  .gallery-item {
    flex: 0 0 85%; /* 1 фото почти на весь экран для свайпа */
  }
}
.gallery-grid::after {
  content: '';
  flex: 0 0 10px; /* Маленький невидимый блок в конце */
  display: block;
}

.gallery-grid {
  /* Убедись, что отступы не мешают расчету */
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}
.gallery-img {
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none; /* Это гарантирует, что клик всегда идет на track */
}
.gallery-grid {
    /* Запрещаем выделение текста */
    user-select: none;
    -webkit-user-select: none; /* Для Safari и Chrome */
    -moz-user-select: none;    /* Для Firefox */
    -ms-user-select: none;     /* Для старых IE/Edge */
    
    /* Отключаем системное перетаскивание картинок (фантомные копии) */
    -webkit-user-drag: none;
}

.gallery-item img {
    /* Дополнительная защита для самих изображений */
    pointer-events: none; /* Чтобы мышь кликала "сквозь" картинку прямо на трек */
    -webkit-user-drag: none;
    user-select: none;
}

.gallery-cap {
    /* Если хочешь, чтобы описание тоже не выделялось */
    user-select: none;
}