/* ===========================
   Палитра
=========================== */
:root {
  --header-bg: #000;
  --accent: #d4af37;
  --accent-hover: #b7950b;
  --highlight: #4aa3e2;
  --text: #fff;
  --muted: #bfbfbf;
  --maxw: 1200px;
}

/* ===========================
   Общие стили
=========================== */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: #111 url("../images/nxt.png") no-repeat center center fixed;
  background-size: cover;
  color: #333;
  margin: 0;
  padding-top: 90px;
  line-height: 1.6;
}

main { flex: 1; }

/* ===========================
   Шапка
=========================== */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: var(--header-bg);
  color: var(--text);
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  font-size: 14px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 15px;
  font-size: 12px;
  background: #111;
}
.tiktok-link {
  display: flex;
  align-items: center;
  gap: 8px; /* расстояние между иконкой и текстом */
  font-size: 14px; /* можно чуть увеличить сам текст */
  font-weight: 600;
}

.tiktok-link:hover { color: var(--accent); }
.tiktok-icon {
  height: 28px;         /* или 30px — под размер кнопки */
  width: auto;          /* ширина подстраивается пропорционально */
  object-fit: contain;  /* полностью вписывается */
  display: block;       /* убирает возможные лишние отступы */
}
.tiktok-link img {
  margin-right: 6px;
  vertical-align: middle;
}

.topbar__phone { color: var(--muted); text-decoration: none; }
.topbar__phone:hover { color: var(--highlight); }

.lang-btn {
  padding: 3px 8px;
  border: 1px solid var(--highlight);
  border-radius: 4px;
  background: transparent;
  color: var(--highlight);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.lang-btn:hover { background: var(--highlight); color: #fff; }

.mainbar {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
}
.site-logo { display: flex; align-items: center; color: var(--accent); font-weight: bold; }
.site-logo img { height: 32px; margin-right: 8px; }
.nav ul { display: flex; gap: 18px; list-style: none; }
.nav__link { color: var(--text); text-decoration: none; font-weight: 500; position: relative; }
.nav__link:hover { color: var(--accent); }
.nav__link::after {
  content:""; position:absolute; bottom:-4px; left:0;
  width:0; height:2px; background:var(--accent);
  transition: width 0.3s;
}
.nav__link:hover::after { width:100%; }

/* ===========================
   Hero
=========================== */
.hero {
  background: linear-gradient(135deg, #000, var(--highlight));
  border-radius: 20px;
  padding: 70px 30px;
  text-align: center;
  color: var(--text);
  margin: 20px auto;
  max-width: var(--maxw);
  width: 95%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero h2 { font-size: 2.2rem; margin-bottom: 15px; }
.hero p { font-size: 1.1rem; margin-bottom: 20px; }
.btn-primary { background: var(--accent); padding: 10px 20px; border-radius: 8px; text-decoration:none; }
.btn-primary:hover { background: var(--accent-hover); color:#fff; }
.hero {
  margin: 120px auto 20px; /* сверху больше, снизу стандартно */
}

/* ===========================
   Заголовки блоков
=========================== */
.section-title {
  color:#fff;
  text-align:center;
  font-size:2rem;
  font-weight:700;
  margin-bottom:30px;
  position: relative;
}
.section-title::after {
  content:"";
  display:block;
  width:80px;
  height:3px;
  background: var(--accent);
  margin:12px auto 0;
  border-radius:2px;
}

/* ===========================
   Принципы
=========================== */
.principles.section-block {
  background: url("../images/principles_bg.jpg") no-repeat center center/cover;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.principles .overlay { background: rgba(0,0,0,0.55); padding:40px; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--maxw);
  margin: 30px auto;
}
@media (max-width: 992px) { .cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 576px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: rgba(0,0,0,0.7);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 8px 20px rgba(212,175,55,0.5); }
.card-img { height: 200px; flex-shrink: 0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-text {
  padding: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--highlight); /* 👉 синий текст */
}

/* ===========================
   Галерея
=========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0;
}
.gallery-item { position:relative; border-radius:10px; overflow:hidden; background:#000; }
.gallery-item img { width:100%; height:220px; object-fit:cover; }
.gallery-item p {
  position:absolute;
  bottom:0; left:0; right:0;
  margin:0;
  padding:10px;
  background:rgba(0,0,0,0.65);
  color:#fff;
  font-size:0.95rem;
  text-align:center;
}

/* ===========================
   Міфи
=========================== */
.problems h3 { color:#fff; text-align:center; font-size:1.5rem; font-weight:700; margin-bottom:20px; }
.myth-card {
  background: linear-gradient(135deg,#000,var(--highlight));
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  color: var(--text);
}
.myth-toggle { width:100%; padding:18px; background:none; border:none; color:#fff; font-weight:600; text-align:left; position:relative; }
.myth-toggle::after { content:'+'; position:absolute; right:20px; color:var(--accent); }
.myth-card.active .myth-toggle::after { content:'–'; }
.myth-content { max-height:0; overflow:hidden; transition:max-height 0.5s ease; padding:0 22px; }
.myth-card.active .myth-content { max-height:500px; padding:18px 22px; }

/* ===========================
   Гарантії
=========================== */
.guarantees {
  padding: 50px 20px;
  max-width: var(--maxw);
  margin: 0 auto 60px;
}
.guarantee-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 20px;
}
.guarantee-card {
  background: rgba(0,0,0,0.85);
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp .8s ease forwards;
  transition: transform .3s ease, box-shadow .3s ease;
}
.guarantee-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(212,175,55,0.5); }
.guarantee-card:nth-child(1){animation-delay:.1s;}
.guarantee-card:nth-child(2){animation-delay:.2s;}
.guarantee-card:nth-child(3){animation-delay:.3s;}
.guarantee-card:nth-child(4){animation-delay:.4s;}
.guarantee-header {
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  background: rgba(255,255,255,0.1);
}
.guarantee-body {
  padding: 15px;
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* ===========================
   About
=========================== */
.about .section-title { color:#fff; text-align:center; font-size:2.2rem; font-weight:800; }
.about-wrapper { display:flex; justify-content:center; margin:30px 0 60px; }
.about-card.big { background:linear-gradient(135deg,#000,var(--highlight)); color:#fff; padding:40px; border-radius:16px; max-width:900px; }

/* ===========================
   Services
=========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeInUp .8s ease forwards;
  min-height: 300px; /* карточка компактнее */
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(212,175,55,0.5);
}

.service-card img {
  width: 100%;
  height: auto;     /* 👉 изображение тянется пропорционально */
  object-fit: unset;
}


.service-card p {
  padding: 6px;           /* меньше отступ */
  font-size: 0.8rem;      /* уменьшенный текст */
  font-weight: 500;
  color: #fff;
  text-align: center;
  margin: 0;
  line-height: 1.3;       /* компактнее строки */
  min-height: 36px;       /* фиксированная небольшая зона под описание */
}

/* нижнее примечание */
.services-note {
  margin-top: 20px;
  text-align: center;
  color: #fff;
  font-weight: 500;
}

.service-card:nth-child(1){animation-delay:.1s;}
.service-card:nth-child(2){animation-delay:.2s;}
.service-card:nth-child(3){animation-delay:.3s;}
.service-card:nth-child(4){animation-delay:.4s;}
.service-card:nth-child(5){animation-delay:.5s;}
.service-card:nth-child(6){animation-delay:.6s;}
.service-card:nth-child(7){animation-delay:.7s;}
.service-card:nth-child(8){animation-delay:.8s;}

/* ===========================
   Анимация
=========================== */
@keyframes fadeInUp {
  0% { opacity:0; transform:translateY(30px); }
  100% { opacity:1; transform:translateY(0); }
}

/* ===========================
   Футер
=========================== */
footer {
  background: var(--header-bg);
  color: var(--text);
  text-align: center;
  padding: 25px;
  margin-top: auto;
}
footer a { color: var(--highlight); }
footer a:hover { color: var(--accent); }
/* ===========================
   Серые обводки на главной
=========================== */

/* Карточки (принципы, сервисы, гарантии) */
.card,
.service-card,
.guarantee-card,
.myth-card {
  border: 2px solid rgba(255, 255, 255, 0.25); /* серо-прозрачная рамка */
}

/* Галерея */
.gallery-item {
  border: 2px solid rgba(255, 255, 255, 0.25); /* рамка по периметру */
}

/* Hero блок */
.hero {
  border: 2px solid rgba(255, 255, 255, 0.25);
}

/* Блоки с затемнением (about, contact) */
.about-card.big,
.section-block.contact .about-card.big {
  border: 2px solid rgba(255, 255, 255, 0.25);
}
/* ===========================
   Лого + название компании
=========================== */
.site-logo {
  display: flex;
  align-items: center;
  font-size: 1.6rem;      /* было меньше → увеличиваем */
  font-weight: 900;       /* жирный */
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase; /* можно капсом */
  text-shadow: 2px 2px 3px rgba(150,150,150,0.7); /* серая обводка */
}

.site-logo img {
  height: 42px;   /* увеличим лого */
  margin-right: 10px;
}

/* ===========================
   Навигация
=========================== */
.nav__link {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;   /* чуть больше */
  font-weight: 600;
  position: relative;
  padding: 6px 0;
  transition: all 0.3s ease;
}

.nav__link:hover {
  color: var(--accent);
  transform: scale(1.08); /* лёгкое увеличение при наведении */
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav__link:hover::after {
  width: 100%;
}

/* ===========================
   Убираем белую черточку
=========================== */
.header, .mainbar {
  border-bottom: none !important; /* ✅ убираем бордер */
  box-shadow: none !important;    /* ✅ убираем белую/светлую тень */
}
.site-logo img {
  max-height: 50px;     /* ✅ ограничиваем по высоте */
  width: auto;          /* ✅ ширина автоматически */
  object-fit: contain;  /* ✅ картинка полностью помещается */
  margin-right: 10px;
  display: block;
}
@media (min-width: 992px) {
  .hamburger {
    display: none;
  }
}
.hamburger {
  display: none !important;
}
.mainbar {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* оставляем */
  align-items: center;
  padding: 6px 20px;
  gap: 20px; /* 👈 добавляем, чтобы было расстояние между логотипом и меню */
}
.nav ul {
  display: flex;
  flex-wrap: wrap;  /* ссылки переносятся на новые строки на маленьком экране */
  gap: 12px;
}
/* ======= Services (обводка + фон как в принципах) ======= */
.services.section-block {
  background: url("../images/services_bg.jpg") no-repeat center center/cover;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.25); /* серая обводка */
}

.services .overlay {
  background: rgba(0,0,0,0.55);
  padding: 40px;
  border-radius: 10px;
}
/* ======= About ======= */
.about.section-block {
  background: url("../images/about_bg.jpg") no-repeat center center/cover;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.25); /* серая обводка */
}

.about .overlay {
  background: rgba(0,0,0,0.55);
  padding: 40px;
  border-radius: 10px;
}

/* ======= Contacts ======= */
.contact.section-block {
  background: url("../images/contact_bg.jpg") no-repeat center center/cover;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.25);
}

.contact .overlay {
  background: rgba(0,0,0,0.55);
  padding: 40px;
  border-radius: 10px;
}

  .myth-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                padding 0.3s ease;
    padding: 0 22px;
  }
  .myth-card.active .myth-content {
    padding: 18px 22px;
  }
/* ======= Відгуки ======= */
.review-form {
  max-width: 600px;
  margin: 0 auto 40px;
  background: rgba(0,0,0,0.65);
  padding: 20px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.25);
}

.review-form p {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1rem;
}

.review-form input, 
.review-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  margin-top: 6px;
  font-size: 0.95rem;
}

.review-form button {
  display: block;
  margin: 15px auto 0;
  padding: 10px 20px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  transition: background 0.3s ease;
}
.review-form button:hover {
  background: var(--accent-hover);
  color: #fff;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.review-card {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(212,175,55,0.5);
}

.review-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.5;
  color: #f5f5f5;
}

.review-author {
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
  color: var(--highlight);
}

.no-reviews {
  text-align: center;
  font-size: 1.1rem;
  color: #fff;
}
