/* =========================
   Root Variables & Reset
   ========================= */
:root {
  --accent: #0a6f8a;
  --muted: #6b7280;
  --bg: #fbfdff;
  --card: #ffffff;
  --radius: 12px;
  --container: 1100px;
}
* { 
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  padding: 0 10px;
  margin: 0;
  color: #0f1724;
  background: var(--bg);
}

/* =========================
   Layout Containers
   ========================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
/*  padding: 16px;*/
  position: relative;
}
.brand-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* =========================
   Header & Navigation
   ========================= */
.site-header {
  background: linear-gradient(90deg, rgba(10,111,138,0.05), transparent);
  padding: 12px 0; /* Уменьшено с 18px */
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo {
  height: 60px; /* Увеличено с 48px */
  flex-shrink: 0;
}
.brand {
  margin: 0 0 0 8px; /* Уменьшено с 12px */
  font-weight: 700;
  font-size: 1.6rem; /* Увеличено с 1.5rem */
  color: #0f1724;
}
.main-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px; /* Уменьшено с 12px */
}
.main-nav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--muted);
}

/* Burger menu */
.menu-toggle {
  display: none; /* Скрыт на десктопе */
}
.menu-icon {
  display: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 2001;
  position: relative;
}
.site-header .menu-icon span {
  display: block;
  position: absolute;
  top: 18px;
  left: 6px !important;
  width: 28px !important;
  height: 4px !important;
  background: var(--accent) !important;
  border-radius: 2px;
  transition: background 0.3s ease;
}
.site-header .menu-icon span::before,
.site-header .menu-icon span::after {
  content: '';
  position: absolute;
  width: 28px !important;
  height: 4px !important;
  background: var(--accent) !important;
  border-radius: 2px;
  left: 0 !important;
  transition: transform 0.3s ease;
}
.site-header .menu-icon span::before {
  top: -10px;
}
.site-header .menu-icon span::after {
  top: 10px;
}
.site-header .menu-toggle:checked + .menu-icon span {
  background: transparent !important;
}
.site-header .menu-toggle:checked + .menu-icon span::before {
  transform: rotate(45deg) translate(7px, 7px) !important;
}
.site-header .menu-toggle:checked + .menu-icon span::after {
  transform: rotate(-45deg) translate(7px, -7px) !important;
}

/* Ссылка на бренд (логотип) */
.logo-link {
  color: #0f1724;
  text-decoration: none;
}
.logo-link:visited {
  color: #0f1724;
}
.logo-link:hover,
.logo-link:active {
  color: var(--accent);
}

/* =========================
   Hero Section
   ========================= */
.hero {
  position: relative;
  padding: 80px 0;
  background: url("/assets/hero-desktop.webp") center/cover no-repeat;
  color: #fff;
  overflow: hidden; /* чтобы оверлей не вылезал */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* затемнение (регулируй 0.35–0.55) */
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1; /* поверх затемнения */
}

.hero-text h2,
.hero-text p {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); /* мягкая тень для читаемости */
}

/* =========================
   Overview Section
   ========================= */
.overview .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
}
.overview .grid li {
  background: var(--card);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(12,40,62,0.03);
}

/* =========================
   Services, Content, Gallery
   ========================= */
.content {
  padding: 36px 0;
}
.service {
  background: var(--card);
  padding: 18px;
  margin-bottom: 12px;
  border-radius: 10px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

/* =========================
   Forms
   ========================= */
.contact-form label {
  display: block;
  margin-bottom: 12px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

/* =========================
   Footer
   ========================= */
.site-footer {
  border-top: 1px solid #e6eef2;
  padding: 16px 0;
  margin-top: 36px;
  text-align: center;
  color: var(--muted);
}
.site-footer p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* =========================
   Social Media Icons
   ========================= */
.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.social-links a svg {
  width: 24px !important;
  height: 24px !important;
  fill: var(--muted) !important;
  display: block;
  transition: fill 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
  transform: scale(1.2);
}
.social-links a.instagram:hover svg {
  fill: #E1306C !important;
}
.social-links a.facebook:hover svg {
  fill: #1877F2 !important;
}

/* =========================
   Responsive Design
   ========================= */
@media (max-width: 768px) {
  .hero::before {
    background: rgba(0, 0, 0, 0.55);
  }
}
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
  }
  .container {
    padding-left: clamp(12px, 3vw, 16px);
    padding-right: clamp(12px, 3vw, 16px);
  }
}

@media (max-width: 700px) {
  .brand-row {
    flex-direction: column;
    align-items: center;
    padding-left: 48px; /* Подстроено под бургер */
  }
  .menu-toggle {
    display: block;
    position: absolute;
    opacity: 0;
    width: 40px;
    height: 40px;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2002;
    cursor: pointer;
  }
  .menu-icon {
    display: block;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
  }
  .logo-link {
    margin-top: 12px;
    justify-content: center;
  }
  .brand {
    margin: 8px 0 0 0;
    font-size: 1.1rem; /* Уменьшено для мобильной версии */
    text-align: center;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    background: #fff;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 2000;
    box-shadow: 0 4px 16px rgba(10,111,138,0.07);
    padding: 16px 0;
  }
  .menu-toggle:checked ~ .main-nav {
    display: flex;
  }
  .main-nav a {
    color: var(--accent);
    padding: 14px 24px;
    margin: 0;
    border-bottom: 1px solid #e6eef2;
    font-size: 1.1em;
  }
  .main-nav a:last-child {
    border-bottom: none;
  }
  .overview .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
/* =========================
   Get a quote
   ========================= */
.cta {
  text-align: center; /* центрирует кнопку горизонтально */
  margin-top: 20px;   /* отступ сверху */
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0a6f8a, #0891b2);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #0891b2, #0a6f8a);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
/* Стили для FAQ */
.faq {
  margin-bottom: 25px;
}

.faq h4 {
  margin-bottom: 8px;
}

.faq p {
  margin-top: 0;
}
.container.content > p:first-of-type {
    margin-bottom: 30px; /* можно изменить размер отступа по вкусу */
}
