/* =========================================================
   Sanly Gundogar — Стили сайта-визитки
   Палитра: тёмный #0F1826/#14202F, акценты зелёный/синий
   Шрифт: Manrope
   ========================================================= */

:root {
  --bg-dark-1: #0F1826;
  --bg-dark-2: #14202F;
  --bg-light: #FFFFFF;
  --bg-light-2: #F7F9FB;

  --text-dark: #1B2638;
  --text-light: #FFFFFF;
  --text-muted: #5B6B82;
  --text-muted-light: #A9B6C9;

  --green-1: #2E9E4F;
  --green-2: #4CC96B;
  --green-3: #34C759;
  --blue-1: #1B5FA8;
  --blue-2: #2F8FE0;

  --grad-brand: linear-gradient(135deg, var(--green-1), var(--green-2) 45%, var(--blue-2));
  --grad-dark: linear-gradient(135deg, var(--bg-dark-1), var(--bg-dark-2));

  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 10px 30px rgba(15, 24, 38, 0.08);
  --shadow-dark: 0 20px 50px rgba(0, 0, 0, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Сброс ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Прелоадер ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--grad-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo { animation: pulseScale 1.4s ease-in-out infinite; }
.preloader-ring { animation: spin 3s linear infinite; transform-origin: 60px 60px; }
@keyframes pulseScale {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Шапка ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(15, 24, 38, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
#site-header.scrolled {
  background: rgba(15, 24, 38, 0.85);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-text { font-weight: 800; font-size: 1.05rem; color: var(--text-light); letter-spacing: 0.2px; }
.logo-mark { display: flex; }

#main-nav ul { display: flex; gap: 30px; }
.nav-link {
  color: var(--text-muted-light);
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--grad-brand);
  transition: width 0.3s var(--ease);
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--text-light); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-cta { display: inline-flex; }

/* ---------- Переключатель языков ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-btn {
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted-light);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.lang-btn:hover { color: var(--text-light); }
.lang-btn.active {
  background: var(--grad-brand);
  color: #fff;
}
.lang-switch-mobile { margin: 20px 24px 0; align-self: flex-start; }

#burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
}
#burger span {
  display: block;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
#burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#burger.open span:nth-child(2) { opacity: 0; }
#burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-nav {
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: rgba(15, 24, 38, 0.97);
  backdrop-filter: blur(12px);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  z-index: 499;
}
#mobile-nav.open { max-height: calc(100vh - 76px); overflow-y: auto; }
#mobile-nav ul { display: flex; flex-direction: column; padding: 10px 24px; }
#mobile-nav .nav-link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 1rem;
}
#mobile-nav .cta-btn { margin: 16px 24px 24px; width: calc(100% - 48px); }

/* ---------- Кнопки ---------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  border-radius: 100px;
  padding: 13px 28px;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
  box-shadow: 0 8px 24px rgba(47, 143, 224, 0.25);
}
.cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 34px rgba(46, 158, 79, 0.35), 0 0 0 1px rgba(76, 201, 107, 0.3);
  filter: brightness(1.08);
}
.cta-btn:active { transform: translateY(-1px) scale(1.0); }
.cta-small { padding: 10px 20px; font-size: 0.85rem; }
.cta-large { padding: 16px 36px; font-size: 1rem; }
.full-width { width: 100%; }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-weight: 600;
  padding: 16px 8px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.cta-ghost:hover { border-color: var(--green-2); opacity: 0.85; }

/* ---------- HERO ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-dark);
  overflow: hidden;
  padding: 140px 0 80px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}
.glow-1 {
  width: 480px; height: 480px;
  background: var(--green-2);
  top: -120px; left: -100px;
  animation: floatGlow1 14s ease-in-out infinite;
}
.glow-2 {
  width: 420px; height: 420px;
  background: var(--blue-2);
  bottom: -140px; right: -80px;
  animation: floatGlow2 16s ease-in-out infinite;
}
.glow-3 {
  width: 320px; height: 320px;
  background: var(--green-1);
  top: 40%; right: 20%;
  opacity: 0.2;
  animation: floatGlow3 18s ease-in-out infinite;
}
@keyframes floatGlow1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes floatGlow2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.1); }
}
@keyframes floatGlow3 {
  0%, 100% { transform: translate(0,0) scale(1); opacity: 0.2; }
  50% { transform: translate(-40px, 50px) scale(1.2); opacity: 0.32; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo { margin-bottom: 24px; }
.hero-logo-ring { animation: spin 20s linear infinite; transform-origin: 70px 70px; }

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.hero-slogan {
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 3px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 22px;
}
.hero-subtitle {
  max-width: 620px;
  color: var(--text-muted-light);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  margin-bottom: 40px;
}
.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }

.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  z-index: 2;
}
.scroll-indicator span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--green-2);
  border-radius: 4px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  70% { top: 22px; opacity: 0.3; }
  100% { top: 8px; opacity: 0; }
}

/* ---------- Секции общие ---------- */
.section { padding: 110px 0; }
.light-section { background: var(--bg-light); }
.light-section:nth-of-type(even) { background: var(--bg-light-2); }
.dark-section { background: var(--grad-dark); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-1);
  margin-bottom: 12px;
}
.eyebrow-light { color: var(--green-2); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  max-width: 780px;
  margin-bottom: 50px;
  color: var(--text-dark);
}
.title-light { color: var(--text-light); }
.section-lead {
  max-width: 700px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: -30px;
  margin-bottom: 50px;
}
.lead-light { color: var(--text-muted-light); }

/* ---------- Карточки: сетки ---------- */
.cards-grid { display: grid; gap: 26px; }
.four-col { grid-template-columns: repeat(4, 1fr); }
.three-col { grid-template-columns: repeat(3, 1fr); }

.feature-card, .spec-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15,24,38,0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.dark-section .feature-card,
.spec-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-light);
}
.feature-card:hover, .spec-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(76, 201, 107, 0.25);
}
.dark-section .feature-card:hover, .spec-card:hover {
  box-shadow: 0 20px 45px rgba(0,0,0,0.4), 0 0 30px rgba(47,143,224,0.25);
}
.feature-icon, .spec-icon {
  width: 56px; height: 56px;
  margin-bottom: 20px;
}
.feature-icon svg, .spec-icon svg { width: 100%; height: 100%; }
.feature-card h3, .spec-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p, .spec-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.dark-section .feature-card p, .spec-card p { color: var(--text-muted-light); }

/* Tilt / glow при наведении для спец-карточек */
.tilt-card { position: relative; overflow: hidden; }
.tilt-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--grad-brand);
  opacity: 0;
  border-radius: inherit;
  z-index: -1;
  transition: opacity 0.4s var(--ease);
}
.tilt-card:hover {
  transform: perspective(800px) rotateX(2deg) rotateY(-2deg) translateY(-8px);
}

/* ---------- Roofing details / two-col ---------- */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.detail-block {
  background: var(--bg-light-2);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid rgba(15,24,38,0.06);
}
.detail-block-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.detail-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 22px;
}
.detail-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}
.check-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid rgba(15,24,38,0.06);
  color: var(--text-dark);
  font-weight: 500;
}
.detail-block-dark .check-list li {
  color: var(--text-muted-light);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 16px; height: 16px;
  background: var(--grad-brand);
  border-radius: 5px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat;
}
.check-list li:last-child { border-bottom: none; }

.tags-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-pill {
  padding: 10px 18px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted-light);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tag-pill:hover {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
}

/* ---------- Проекты ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-light);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.project-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(15,24,38,0.16); }

/* Галерея фото внутри карточки проекта */
.project-gallery {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #1B2638, #14202F);
}
.project-slides { position: relative; width: 100%; height: 100%; }
.project-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s var(--ease), transform 6s linear;
  pointer-events: none;
}
.project-slides img.active {
  opacity: 1;
  transform: scale(1.0);
  pointer-events: auto;
}
.project-card:hover .project-slides img.active { transform: scale(1.08); }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(15, 24, 38, 0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease);
  z-index: 2;
}
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.project-gallery:hover .gallery-nav { opacity: 1; }
.gallery-nav:hover { background: var(--grad-brand); }

/* Устройства без hover (телефоны/планшеты) — стрелки должны быть видны сразу */
@media (hover: none) {
  .gallery-nav { opacity: 1; width: 38px; height: 38px; }
}

.gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.gallery-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.6);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.gallery-dot.active { background: var(--green-2); transform: scale(1.3); border-color: var(--green-2); }

.project-info { padding: 20px 22px 24px; }
.project-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.project-loc { font-size: 0.82rem; color: var(--blue-1); font-weight: 700; margin-bottom: 6px; }
.project-desc { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Таблица качества ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  -webkit-overflow-scrolling: touch;
}
.quality-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.quality-table th, .quality-table td {
  padding: 20px 24px;
  text-align: left;
  font-size: 0.95rem;
}
.quality-table thead th {
  background: rgba(255,255,255,0.06);
  color: var(--text-light);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.quality-table tbody td { color: var(--text-muted-light); border-top: 1px solid rgba(255,255,255,0.08); }
.quality-table .table-row {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.quality-table .table-row.row-visible { opacity: 1; transform: translateX(0); }
.highlight-col {
  background: linear-gradient(90deg, rgba(46,158,79,0.16), rgba(47,143,224,0.16));
  color: var(--text-light) !important;
  font-weight: 700;
  position: relative;
}
.quality-table thead .highlight-col {
  background: var(--grad-brand);
  color: #fff !important;
}

/* ---------- Цитата ---------- */
.quote-section {
  background: var(--grad-dark);
  padding: 110px 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.quote-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 700px; height: 700px;
  background: var(--grad-brand);
  opacity: 0.08;
  filter: blur(120px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.quote-section blockquote {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.quote-section p {
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 24px;
}
.quote-section cite {
  font-style: normal;
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* ---------- Контакты ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  margin-top: 20px;
}
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.contact-item:not(.contact-item-static):hover { transform: translateX(6px); background: rgba(255,255,255,0.08); }
.contact-icon { width: 22px; height: 22px; flex-shrink: 0; }
.contact-icon svg { width: 100%; height: 100%; }
.contact-item-static { align-items: flex-start; }

.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.form-field label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted-light); }
.form-field input, .form-field textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  resize: vertical;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(76, 201, 107, 0.18);
}
.form-field.error input, .form-field.error textarea { border-color: #E85D5D; }
.field-error {
  display: none;
  font-size: 0.78rem;
  color: #FF8A8A;
  font-weight: 600;
}
.form-field.error .field-error { display: block; }

/* ---------- Футер ---------- */
.site-footer {
  background: var(--bg-dark-1);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo .logo-text { font-size: 0.95rem; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a {
  color: var(--text-muted-light);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.25s var(--ease);
}
.footer-nav a:hover { color: var(--green-2); }
.footer-copy { color: var(--text-muted-light); font-size: 0.82rem; }

/* ---------- Модальное окно ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 24, 38, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--grad-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  box-shadow: var(--shadow-dark);
}
.modal-overlay.open .modal { transform: scale(1); opacity: 1; }
.modal h3 { color: var(--text-light); font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.modal-sub { color: var(--text-muted-light); font-size: 0.92rem; margin-bottom: 24px; }
.modal form { display: flex; flex-direction: column; gap: 16px; }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text-light);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.modal-close:hover { background: rgba(255,255,255,0.16); transform: rotate(90deg); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--bg-dark-2);
  border: 1px solid rgba(76, 201, 107, 0.4);
  color: var(--text-light);
  padding: 16px 26px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-dark);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s var(--ease);
  z-index: 1100;
  max-width: 90vw;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ---------- Scroll-reveal (Intersection Observer) ---------- */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-up[data-reveal] { transform: translateY(36px); }
.reveal-fade[data-reveal] { transform: translateY(16px); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .four-col { grid-template-columns: repeat(2, 1fr); }
  .three-col { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .two-col-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  #main-nav, .header-cta { display: none; }
  #burger { display: flex; width: 40px; height: 40px; }
  .section { padding: 80px 0; }
  .four-col, .three-col, .projects-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .quality-table { min-width: 560px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .modal { padding: 28px 22px; }
  .section { padding: 64px 0; }
  .quote-section { padding: 64px 0; }
  #hero { padding: 120px 0 60px; }

  /* Логотип-текст + переключатель языков + бургер не помещаются в один ряд
     на узких экранах — оставляем только иконку-марку в шапке */
  .header-inner { gap: 10px; }
  .header-inner .logo-text { display: none; }
  .lang-switch:not(.lang-switch-mobile) .lang-btn { padding: 6px 8px; font-size: 0.72rem; }
}

/* ---------- Уважение reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
