/* === RESOLVE SERVICE V3 — PRODUCTION CSS === */

/* --- 1. VARIABLES & RESET --- */
:root {
  --black: #1a1a1a;
  --gold: #a68a64;
  --ivory: #faf9f6;
  --gray: #888888;
  --light-gray: #e5e5e5;
  --border: #e0e0e0;
  --font-head: "Cormorant Garamond", serif;
  --font-body: "Inter", sans-serif;
  --easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ← ВОТ ЭТА ЗВЁЗДОЧКА БЫЛА ПРОПУЩЕНА, ОНА ЛОМАЛА ВЕСЬ САЙТ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--ivory);
  color: var(--black);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* ← ДОБАВЬ ЭТУ СТРОКУ */
}

/* --- 2. UTILITIES --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  color: var(--black);
  line-height: 1.1;
}

.img-ph {
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
  position: relative;
  overflow: hidden;
  border: 1px dashed #ccc;
}

.img-ph::after {
  content: "МЕСТО ПОД ИЗОБРАЖЕНИЕ";
}

/* --- 4. HEADER & NAV --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background: var(--ivory);
  border-bottom: 1px solid var(--light-gray);
  transition: all 0.4s ease;
}

header.scrolled {
  padding: 12px 0;
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
margin-left: 20px; /* <-- Добавлено */
font-family: var(--font-head);
font-size: 24px;
font-weight: 600;
color: var(--black);
text-decoration: none;
letter-spacing: 2px;
}

.logo span {
  color: var(--gold);
}

.nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav a:not(.btn) {
  color: var(--black);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav a:not(.btn):hover {
  color: var(--gold);
}

.menu-btn {
  display: none;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--black);
  margin-bottom: 6px;
  transition: 0.3s;
}

/* --- 5. BUTTONS --- */
.btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--black);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.4s var(--easing);
  border: 1px solid var(--black);
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  color: var(--black);
}

.btn-reverse {
  background: transparent;
  color: var(--black);
}

.btn-reverse:hover {
  background: var(--black);
  color: #fff;
}

/* Золотая кнопка (для CTA-секции) */
.btn-gold {
  background: var(--black);
  border-color: var(--light-gray);
  color: #fff;
}

.btn-gold:hover {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

/* --- 6. HERO --- */
.hero {
  height: 105vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: url("../images/hero/hero-bg.webp");
  background-color: #d4d4d4; /* Fallback если WebP не загрузится */
  background-size: cover;
  background-position: center;
  z-index: -1;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(250, 249, 246, 0.85);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 8vw;
  line-height: 0.9;
  margin-bottom: 30px;
  font-weight: 400;
}

.hero h1 span {
  display: block;
  color: var(--gold);
  font-style: italic;
}

/* Inline-золотые слова (не переносятся на новую строку) */
.hero h1 .gold {
  display: inline;
  color: var(--gold);
  font-style: italic;
}

.hero-sub {
  font-size: 18px;
  max-width: 500px;
  color: var(--black);
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

/* --- 7. MARQUEE --- */
.marquee {
  padding: 25px 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  overflow: hidden;
  background: var(--ivory);
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: marqueeScroll 35s linear infinite;
  white-space: nowrap;
}

.marquee-content span {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 22px;
  margin-right: 60px;
  color: var(--black);
  font-style: italic;
}

.marquee-content .dot {
  color: var(--gold);
  font-style: normal;
  font-size: 10px;
  vertical-align: middle;
  margin-right: 60px;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* --- 8. ABOUT --- */
.about {
  padding: 120px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.about-img img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-text h2 {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 30px;
  font-weight: 400;
}

.about-text h2 span {
  display: inline;
  color: var(--gold);
  font-style: italic;
}

.about-text p {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-text ul {
  list-style: none;
  margin-top: 30px;
}

.about-text li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  font-size: 15px;
}

.about-text li::before {
  content: "•";
  color: var(--gold);
  position: absolute;
  left: 0;
  font-size: 24px;
  line-height: 1;
  top: -2px;
}

/* --- 10. SERVICES (BENTO GRID) --- */
.services {
  padding: 120px 0;
  background: #fff;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 350px);
  gap: 20px;
}

/* Карточка-контейнер: без отступов и фона, чтобы картинка была на всю */
.bento-item {
  background: transparent;
  padding: 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: transform 0.4s var(--easing);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-item:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

/* Блок изображения: занимает 100% карточки */
.bento-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.bento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Картинка заполняет, не искажаясь */
  transition: transform 0.6s var(--easing);
}

/* Зум картинки при наведении */
.bento-item:hover .bento-img img {
  transform: scale(1.08);
}

/* Градиентный оверлей: лежит между картинкой и текстом */
.bento-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.95) 0%,
    rgba(26, 26, 26, 0.4) 60%,
    transparent 100%
  );
  z-index: 1;
  opacity: 1; /* Градиент всегда виден */
}

/* Контент: лежит поверх градиента */
.bento-content {
  position: relative;
  z-index: 2;
  padding: 40px; /* Отступы для текста */
  color: #fff;
}

.bento-item h3 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bento-item p {
  font-size: 14px;
  color: #e0e0e0;
  opacity: 0.9;
  line-height: 1.5;
}

/* === АСИММЕТРИЧНАЯ СЕТКА (DESKTOP) === */
/* Карточка 2 (Защитные покрытия) на 2 колонки */
.item-2 {
  background: transparent; /* Убираем черный фон, т.к. там картинка */
  grid-column: 2 / 4;
}

/* Карточка 3 (Бронеплёнка) на 2 колонки, 2-й ряд */
.item-3 {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
}

/* --- 9. STATS --- */
.stats {
  padding: 100px 0;
  background: var(--black);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item h3 {
  font-size: 64px;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 400;
  line-height: 1;
}

.stat-item p {
  font-size: 13px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.4;
}

/* --- 11. PROCESS --- */
.process {
  padding: 120px 0;
  background: var(--ivory);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  counter-reset: proc;
}

.process-card {
  position: relative;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--light-gray);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  border-color: var(--gold);
}

.process-card::before {
  content: counter(proc);
  counter-increment: proc;
  font-family: var(--font-head);
  font-size: 56px;
  color: rgba(166, 138, 100, 0.15);
  position: absolute;
  top: 15px;
  right: 20px;
  line-height: 1;
  font-weight: 600;
}

.process-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  margin-top: 10px;
}

.process-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* --- 12. BEFORE/AFTER SLIDER --- */
.tech-gallery {
  padding: 120px 0;
  background: var(--ivory);
}

.tech-gallery-header {
  text-align: center;
  margin-bottom: 60px;
}

.tech-gallery-header h2 {
  font-family: var(--font-head);
  font-size: 48px;
  color: var(--black);
  margin-top: 10px;
}

.ba-comparison {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 550px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  user-select: none;
  background: #fff;
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transition: opacity 0.05s linear;
}

.ba-before {
  z-index: 1;
  opacity: 1;
}

.ba-after {
  z-index: 2;
  opacity: 0;
}

.ba-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1px;
  height: 1px;
  background: transparent;
}

.ba-range::-moz-range-thumb {
  width: 1px;
  height: 1px;
  background: transparent;
  border: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  z-index: 11;
  pointer-events: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: left 0.05s linear;
  border: 3px solid #fff;
}

.ba-handle:hover {
  background: var(--black);
  transform: translateY(-50%) scale(1.1);
}

.ba-label {
  position: absolute;
  top: 25px;
  padding: 10px 20px;
  background: rgba(26, 26, 26, 0.85);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 4px;
  z-index: 12;
  pointer-events: none;
  font-weight: 600;
}

.ba-label.before {
  left: 25px;
}

.ba-label.after {
  right: 25px;
}

.ba-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.ba-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--light-gray);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--easing);
  padding: 0;
}

.ba-dot:hover {
  background: var(--gold);
  transform: scale(1.2);
}

.ba-dot.active {
  background: var(--gold);
  border-color: var(--black);
  transform: scale(1.3);
}

.ba-info {
  max-width: 1100px;
  margin: 30px auto 0;
  padding: 25px 30px;
  background: #fff;
  border: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ba-info-left {
  display: flex;
  align-items: center;
  gap: 25px;
  flex: 1;
  min-width: 0;
}

.ba-info-number {
  font-family: var(--font-head);
  font-size: 56px;
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  width: 70px;
  opacity: 0.8;
}

.ba-info-content {
  flex: 1;
  min-width: 0;
}

.ba-info-title {
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--black);
  margin-bottom: 6px;
  font-weight: 400;
}

.ba-info-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
}

.ba-info-meta {
  display: flex;
  gap: 30px;
  padding-left: 30px;
  border-left: 1px solid var(--light-gray);
  flex-shrink: 0;
}

.ba-info-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
}

.ba-info-meta-label {
  font-size: 10px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.ba-info-meta-value {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--gold);
  font-weight: 600;
  line-height: 1.3;
}

/* Слайдер — адаптивность */
@media (max-width: 1024px) {
  .ba-comparison {
    height: 450px;
  }
  
  .ba-info {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 25px;
  }
  
  .ba-info-meta {
    padding-left: 0;
    padding-top: 20px;
    border-left: none;
    border-top: 1px solid var(--light-gray);
    justify-content: space-around;
  }
}

@media (max-width: 768px) {
  .ba-comparison {
    height: 350px;
  }
  
  .ba-handle {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .ba-label {
    padding: 8px 15px;
    font-size: 10px;
    top: 15px;
  }
  
  .ba-label.before {
    left: 15px;
  }
  
  .ba-label.after {
    right: 15px;
  }
  
  .ba-info {
    padding: 20px;
    margin-top: 20px;
  }
  
  .ba-info-left {
    gap: 15px;
  }
  
  .ba-info-number {
    font-size: 42px;
    width: 50px;
  }
  
  .ba-info-title {
    font-size: 22px;
  }
  
  .ba-info-desc {
    font-size: 13px;
  }
  
  .ba-info-meta {
    gap: 15px;
    padding-top: 15px;
  }
  
  .ba-info-meta-item {
    min-width: 0;
  }
  
  .ba-info-meta-value {
    font-size: 14px;
  }
  
  .ba-info-meta-label {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
  }
  .contact-form {
    padding: 30px 20px;
  }
  .cta-section h2 {
    font-size: 32px;
  }
  .cta-section {
    padding: 80px 0;
  }
  .contact {
    padding: 80px 0;
  }
}

/* --- 13. GALLERY --- */
.gallery {
  padding: 120px 0;
  background: var(--black);
  color: #fff;
}

.gallery-header {
  margin-bottom: 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.gallery-title {
  font-size: 48px;
  color: #fff;
}

.gallery-desc {
  max-width: 400px;
  text-align: right;
  color: #888;
  font-size: 14px;
  line-height: 1.6;
}

.gallery-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  color: #fff;
  font-size: 24px;
  user-select: none;
}

.gallery-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
  left: -30px;
}
.gallery-nav.next {
  right: -30px;
}

.gallery-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  padding: 20px 0;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.g-card {
  min-width: calc(33.333% - 14px);
  height: 450px;
  background: #222;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 4px;
}

.g-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--easing);
}

.g-card:hover img {
  transform: scale(1.08);
}

.g-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.g-card:hover .g-card-info {
  opacity: 1;
  transform: translateY(0);
}

.g-card-info h4 {
  font-family: var(--font-head);
  font-size: 24px;
  margin-bottom: 5px;
  color: #fff;
}

.g-card-info p {
  font-size: 13px;
  color: #aaa;
}

.gallery-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.gallery-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.2);
}

.gallery-counter {
  text-align: center;
  margin-top: 20px;
  color: #888;
  font-size: 13px;
  letter-spacing: 1px;
}

/* --- 14. WHY US (ФИНАЛЬНАЯ ВЕРСИЯ) --- */
.why-us {
  padding: 120px 0;
  background: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.why-card {
  padding: 40px 35px;
  background: var(--ivory);
  border: 1px solid transparent;
  border-left: 3px solid var(--gold);
  transition:
    transform 0.4s var(--easing),
    box-shadow 0.4s var(--easing),
    border-color 0.4s var(--easing);
  will-change: transform;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(166, 138, 100, 0.12);
  border-color: var(--gold);
}

.why-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 600;
}

.why-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* --- 15. TESTIMONIALS (ЧИСТЫЙ КОД БЕЗ !IMPORTANT) --- */
.testimonials {
  padding: 120px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--light-gray);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  flex-shrink: 0;
  background: #f5f5f5;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Специфичность 0-3-0 перебивает глобальный .img-ph */
.testimonial-header .testimonial-avatar .img-ph {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-header .testimonial-avatar .img-ph::after {
  content: "ФОТО";
  font-size: 10px;
  color: #999;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
}

.testimonial-author {
  font-weight: 600;
  color: var(--black);
  font-size: 15px;
}

.testimonial-role {
  font-size: 13px;
  color: var(--gold);
  margin-top: 2px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  font-style: italic;
}

/* --- 16. CTA & CONTACT --- */
.cta-section {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
  color: #fff;
  text-align: center;
}

.cta-section h2 {
  font-size: 48px;
  color: #fff;
  margin-bottom: 20px;
}

.contact {
  padding: 120px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start; /* Выравнивание колонок по верху */
}

.contact-form {
  background: #fff;
  padding: 50px;
  border: 1px solid var(--light-gray);
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--light-gray);
  background: transparent;
  font-family: var(--font-body);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--gold);
}

/* --- 19. FOOTER --- */
footer {
  background: var(--black);
  color: #fff;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 15px;
}

.footer-logo span {
  color: var(--gold);
}

.footer-col p {
  color: #888;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-contact-item {
  margin-bottom: 15px;
  font-size: 14px;
}

.footer-contact-item strong {
  color: var(--gold);
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-contact-item a {
  color: #ccc;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 13px;
}

.footer-bottom a {
  color: #666;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* --- 18. RESPONSIVE --- */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid,
  .process-grid,
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid,
  .process-grid,
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* === МОБИЛЬНАЯ АДАПТАЦИЯ (ОСНОВНАЯ) === */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  /* ❌ УДАЛЕНО: Старое мобильное меню - теперь используем бургер */
  /* .menu-btn и .nav.active больше не нужны */

  .hero h1 {
    font-size: 44px;
  }
  .stats-grid,
  .process-grid,
  .why-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .g-card {
    min-width: 100%;
  }
  .gallery-nav {
    display: none;
  }
  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .gallery-desc {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
  }
  .contact-form {
    padding: 30px 20px;
  }
}

/* === DROPDOWN МЕНЮ (PREMIUM STYLE) === */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 6px;
}

/* Стрелка поворачивается при hover */
.nav-dropdown-trigger svg {
  transition: transform 0.4s var(--easing);
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

/* Контейнер выпадающего меню */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 300px; /* Достаточно для длинных названий */
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition:
    opacity 0.4s var(--easing),
    visibility 0.4s,
    transform 0.4s var(--easing);
  z-index: 1000;
  margin-top: 0px;
  padding: 16px 0;
  pointer-events: none;
}

/* Плавное появление при hover */
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

/* Ссылки в меню — БЕЗ переноса текста */
.nav-dropdown-menu a {
  position: relative;
  display: block;
  padding: 14px 28px 14px 28px;
  color: var(--black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: none;
  white-space: nowrap; /* ❗ КЛЮЧЕВОЕ: запрещает перенос */
  overflow: hidden;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

/* Золотое подчёркивание снизу (через ::after — не меняет layout) */
.nav-dropdown-menu a::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 10px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0); /* Скрыто по умолчанию */
  transform-origin: left center;
  transition: transform 0.4s var(--easing);
}

/* Маленькая золотая точка-индикатор слева */
.nav-dropdown-menu a::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-50%) scale(0);
  transition: transform 0.3s var(--easing);
}

/* Hover — три эффекта одновременно */
.nav-dropdown-menu a:hover {
  color: var(--gold);
  background-color: var(--ivory);
}

/* Подчёркивание выезжает слева направо */
.nav-dropdown-menu a:hover::after {
  transform: scaleX(1);
}

/* Точка появляется слева */
.nav-dropdown-menu a:hover::before {
  transform: translateY(-50%) scale(1);
}

/* Тонкий разделитель между пунктами */
.nav-dropdown-menu a + a {
  border-top: 1px solid rgba(229, 229, 229, 0.4);
}

/* Активный пункт (текущая страница) */
.nav-dropdown-menu a.active {
  color: var(--gold);
  font-weight: 600;
}

.nav-dropdown-menu a.active::after {
  transform: scaleX(1);
  background: var(--gold);
}

.nav-dropdown-menu a.active::before {
  transform: translateY(-50%) scale(1);
}

/* === МОБИЛЬНАЯ АДАПТАЦИЯ === */
@media (max-width: 768px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-trigger {
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    transform: none;
    box-shadow: none;
    border: none;
    margin-top: 0;
    padding: 0;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.5s var(--easing),
      opacity 0.3s ease;
  }

  .nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    padding: 10px 0;
  }

  .nav-dropdown-menu a {
    padding: 12px 20px 12px 30px;
    font-size: 13px;
  }

  .nav-dropdown-menu a::after {
    left: 30px;
    right: 30px;
  }

  .nav-dropdown-menu a::before {
    left: 16px;
  }

  .nav-dropdown-menu a + a {
    border-top: none;
  }
}

/* === УМНЫЙ ПОИСК === */
.search-trigger {
  background: none;
  border: 1px solid var(--light-gray);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  transition: all 0.3s ease;
  margin-left: 10px;
}

.search-trigger:hover {
  background: var(--black);
  color: var(--gold);
  border-color: var(--black);
  transform: scale(1.05);
}

/* Модальное окно */
.smart-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.smart-search-modal.active {
  opacity: 1;
  visibility: visible;
}

.smart-search-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.smart-search-content {
  position: relative;
  width: 90%;
  max-width: 650px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: translateY(-20px) scale(0.98);
  transition: transform 0.3s var(--easing);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.smart-search-modal.active .smart-search-content {
  transform: translateY(0) scale(1);
}

/* Заголовок с полем */
.smart-search-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  border-bottom: 1px solid var(--light-gray);
  color: var(--gray);
}

.smart-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  font-family: var(--font-body);
  color: var(--black);
  background: transparent;
}

.smart-search-input::placeholder {
  color: #bbb;
}

.smart-search-kbd {
  padding: 4px 10px;
  background: var(--ivory);
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
  color: var(--gray);
}

/* Результаты */
.smart-search-results {
  overflow-y: auto;
  max-height: 50vh;
  padding: 15px 0;
}

.smart-search-hint {
  padding: 10px 25px 20px;
}

.smart-search-hint p {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.smart-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.smart-tag {
  padding: 8px 14px;
  background: var(--ivory);
  border: 1px solid var(--light-gray);
  border-radius: 20px;
  font-size: 13px;
  color: var(--black);
  cursor: pointer;
  transition: all 0.2s ease;
}

.smart-tag:hover {
  background: var(--black);
  color: var(--gold);
  border-color: var(--black);
}

/* Элемент результата */
.smart-result {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 25px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.smart-result:hover,
.smart-result.focused {
  background: var(--ivory);
  border-left-color: var(--gold);
}

.smart-result-icon {
  width: 40px;
  height: 40px;
  background: var(--ivory);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.smart-result.focused .smart-result-icon {
  background: var(--gold);
}

.smart-result-text {
  flex: 1;
  min-width: 0;
}

.smart-result-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 2px;
}

.smart-result-subtitle {
  font-size: 12px;
  color: var(--gray);
}

.smart-result-badge {
  padding: 4px 10px;
  background: var(--ivory);
  border-radius: 4px;
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.smart-result.focused .smart-result-badge {
  background: var(--black);
}

/* Футер с подсказками */
.smart-search-footer {
  padding: 12px 25px;
  border-top: 1px solid var(--light-gray);
  background: var(--ivory);
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--gray);
}

.smart-search-footer kbd {
  padding: 2px 6px;
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 3px;
  font-family: monospace;
  font-size: 10px;
  margin-right: 4px;
}

/* Пустой результат */
.smart-no-results {
  padding: 40px 25px;
  text-align: center;
  color: var(--gray);
}

.smart-no-results-icon {
  font-size: 48px;
  margin-bottom: 10px;
  opacity: 0.5;
}

@keyframes priceHighlight {
  0% {
    background: rgba(166, 138, 100, 0.3);
    transform: scale(1.02);
    box-shadow: 0 0 0 4px rgba(166, 138, 100, 0.4);
  }
  70% {
    background: rgba(166, 138, 100, 0.2);
    transform: scale(1.01);
    box-shadow: 0 0 0 4px rgba(166, 138, 100, 0.3);
  }
  100% {
    background: transparent;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(166, 138, 100, 0);
  }
}

.price-item.highlighted {
  animation: priceHighlight 7s ease-out forwards;
  position: relative;
  border-radius: 4px;
  z-index: 10;
}

.price-item.highlighted::before {
  content: "✓ Вы здесь";
  position: absolute;
  top: -30px;
  left: 0;
  padding: 5px 12px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(166, 138, 100, 0.4);
  z-index: 11;
}

/* Адаптивность */
@media (max-width: 768px) {
  .smart-search-modal {
    padding-top: 60px;
  }

  .smart-search-content {
    width: 95%;
  }

  .smart-search-input {
    font-size: 16px;
  }

  .smart-search-footer {
    display: none;
  }
}

/* ============================================
   МОБИЛЬНОЕ БУРГЕР-МЕНЮ (PREMIUM)
============================================ */

/* === 1. КНОПКА-БУРГЕР === */
.burger {
  display: none; /* Скрыт на десктопе */
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--light-gray);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 10px;
}

.burger:hover {
  border-color: var(--gold);
  transform: scale(1.05);
}

.burger span {
  display: block;
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--black);
  transform: translateX(-50%);
  transition: all 0.4s var(--easing);
  border-radius: 2px;
}

.burger span:nth-child(1) {
  top: 15px;
}

.burger span:nth-child(2) {
  top: 21px;
}

.burger span:nth-child(3) {
  top: 27px;
}

/* Превращение бургера в крестик при открытом меню */
.burger.active span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
}

.burger.active span:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

/* === 2. ПОЛНОЭКРАННОЕ МОБИЛЬНОЕ МЕНЮ === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-menu-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  height: 100%;
  background: var(--ivory);
  padding: 100px 40px 40px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--easing);
  overflow-y: auto;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15);
}

.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

/* === 3. КНОПКА ЗАКРЫТИЯ (КРЕСТИК) === */
.mobile-menu-close {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--light-gray);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  border-color: var(--gold);
  transform: rotate(90deg);
}

.mobile-menu-close span {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--black);
  border-radius: 2px;
}

.mobile-menu-close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* === 4. НАВИГАЦИОННЫЕ ССЫЛКИ === */
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: auto;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  font-family: var(--font-head);
  font-size: 24px;
  color: var(--black);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  transform: translateX(30px);
  opacity: 0;
}

.mobile-menu.active .mobile-menu-link {
  transform: translateX(0);
  opacity: 1;
}

/* Каскадная задержка анимации для каждой ссылки */
.mobile-menu.active .mobile-menu-link:nth-child(1) {
  transition-delay: 0.1s;
}
.mobile-menu.active .mobile-menu-link:nth-child(2) {
  transition-delay: 0.15s;
}
.mobile-menu.active .mobile-menu-link:nth-child(3) {
  transition-delay: 0.2s;
}
.mobile-menu.active .mobile-menu-link:nth-child(4) {
  transition-delay: 0.25s;
}
.mobile-menu.active .mobile-menu-link:nth-child(5) {
  transition-delay: 0.3s;
}
.mobile-menu.active .mobile-menu-link:nth-child(6) {
  transition-delay: 0.35s;
}

.mobile-menu-link:hover {
  background: #fff;
  color: var(--gold);
  padding-left: 28px;
}

.mobile-menu-link::after {
  content: "→";
  margin-left: auto;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: var(--gold);
}

.mobile-menu-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* === 5. ВЫДЕЛЕННАЯ ССЫЛКА "КАТАЛОГ УСЛУГ" === */
.mobile-menu-link-highlight {
  background: var(--black);
  color: #fff;
  margin: 10px 0;
  border: 1px solid var(--gold);
}

.mobile-menu-link-highlight:hover {
  background: var(--gold);
  color: #fff;
  padding-left: 28px;
}

.mobile-menu-link-highlight::after {
  color: #fff;
}

.mobile-link-icon {
  font-size: 20px;
}

/* === 5.1. ПУНКТ ПОИСКА В МОБИЛЬНОМ МЕНЮ === */
.mobile-menu-search {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--gold);
  margin: 0 0 10px 0;
  font-family: var(--font-head);
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.mobile-menu-search:hover,
.mobile-menu-search:active {
  background: var(--gold);
  color: #fff;
  padding-left: 28px;
  border-color: var(--gold);
}

.mobile-search-icon {
  font-size: 18px;
  display: inline-block;
  width: 24px;
  text-align: center;
}

.mobile-search-text {
  flex: 1;
}

.mobile-search-kbd {
  padding: 3px 8px;
  background: rgba(166, 138, 100, 0.15);
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-size: 10px;
  font-family: monospace;
  color: var(--gold);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.mobile-menu-search:hover .mobile-search-kbd,
.mobile-menu-search:active .mobile-search-kbd {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* На мобильных клавиша Ctrl+K не работает — скрываем подсказку */
@media (max-width: 768px) {
  .mobile-search-kbd {
    display: none;
  }
}

/* === 6. БЛОК КОНТАКТОВ === */
.mobile-menu-contacts {
  padding: 25px 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  margin: 25px 0;
}

.mobile-menu-phone {
  display: block;
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--black);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.mobile-menu-phone:hover {
  color: var(--gold);
}

.mobile-menu-address {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
}

/* === 7. КНОПКА CTA === */
.mobile-menu-cta {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

/* === 8. БЛОКИРОВКА СКРОЛЛА BODY === */
body.menu-open {
  overflow: hidden;
}

/* === 9. АДАПТИВНОСТЬ — ПОКАЗАТЬ БУРГЕР НА МОБИЛЬНЫХ === */
@media (max-width: 1024px) {
  /* Показываем бургер на всех мобильных */
  .burger {
    display: block !important;
  }

  /* Скрываем desktop-ссылки, но НЕ весь .nav (иначе бургер пропадёт) */
  .nav > a:not(.btn):not(.burger) {
    display: none;
  }

  /* Скрываем dropdown на мобильных */
  .nav > .nav-dropdown {
    display: none;
  }

  /* Скрываем кнопку поиска на мобильных (есть в меню) */
  .nav > .search-trigger {
    display: none;
  }

  /* Скрываем кнопку "Записаться" в хедере на мобильных */
  .nav > .btn.btn-reverse {
    display: none;
  }

  /* Делаем .nav flex, чтобы бургер оставался видимым */
  .nav {
    display: flex !important;
    align-items: center;
    gap: 15px;
    justify-content: flex-end; /* ← ДОБАВЬ ЭТУ СТРОКУ */
    width: auto; /* ← ДОБАВЬ ЭТУ СТРОКУ */
    flex-shrink: 0; /* ← ДОБАВЬ ЭТУ СТРОКУ */
  }
}

@media (max-width: 768px) {
  /* На ещё меньших экранах уменьшаем бургер */
  .burger {
    width: 40px;
    height: 40px;
  }

  .burger span:nth-child(1) {
    top: 14px;
  }
  .burger span:nth-child(2) {
    top: 19px;
  }
  .burger span:nth-child(3) {
    top: 24px;
  }

  .burger.active span:nth-child(1) {
    top: 19px;
  }
  .burger.active span:nth-child(3) {
    top: 19px;
  }

  /* Логотип меньше на мобильных */
  .logo {
    font-size: 20px;
    letter-spacing: 1.5px;
  }

  .header-inner {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .burger {
    width: 38px;
    height: 38px;
  }

  .logo {
    font-size: 18px;
  }
}

/* === ШИРОКИЙ СЛАЙДЕР ТОЛЬКО НА ГЛАВНОЙ СТРАНИЦЕ === */
body.index-page .ba-comparison {
  max-width: 1400px;
  height: 650px;
}

body.index-page .ba-info {
  max-width: 1400px;
}

/* Адаптивность для широкого слайдера */
@media (max-width: 1400px) {
  body.index-page .ba-comparison {
    max-width: 100%;
    height: 600px;
  }
  
  body.index-page .ba-info {
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  body.index-page .ba-comparison {
    height: 500px;
  }
}

@media (max-width: 768px) {
  body.index-page .ba-comparison {
    height: 380px;
  }
}

@media (max-width: 480px) {
  .price-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  
  .price-item-info {
    margin-bottom: 12px;
  }
  
  .price-value-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* === ПУНКТ ПОИСКА В МОБИЛЬНОМ МЕНЮ === */
.mobile-menu-search {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--gold);
  margin: 0 0 10px 0;
  font-family: var(--font-head);
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.mobile-menu-search:hover,
.mobile-menu-search:active {
  background: var(--gold);
  color: #fff;
  padding-left: 28px;
  border-color: var(--gold);
}

.mobile-search-icon {
  font-size: 18px;
  display: inline-block;
  width: 24px;
  text-align: center;
}

.mobile-search-text {
  flex: 1;
}

.mobile-search-kbd {
  padding: 3px 8px;
  background: rgba(166, 138, 100, 0.15);
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-size: 10px;
  font-family: monospace;
  color: var(--gold);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.mobile-menu-search:hover .mobile-search-kbd {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .mobile-search-kbd {
    display: none;
  }
}

/* ============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ BENTO GRID (УСЛУГИ)
   Работает ТОЛЬКО на экранах <= 768px
   ============================================ */

@media (max-width: 768px) {
  /* 1. Превращаем сетку в одну колонку */
  .bento-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important; /* Снимаем фиксированную высоту рядов */
    gap: 12px !important;
  }

  /* 2. Сбрасываем асимметрию (item-2, item-3 больше не растянуты) */
  .item-1, .item-2, .item-3, .item-4 {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* 3. Делаем карточки компактными и одинаковыми */
  .bento-item {
    height: 240px !important; /* Идеальная высота для iPhone SE */
    min-height: 240px !important;
    background-size: cover !important;
    background-position: center !important;
  }

  /* 4. Убираем "секретность" текста (он виден всегда) */
  .bento-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
    padding: 25px 20px !important;
    /* Градиент чуть ярче для читаемости на маленьком экране */
    background: linear-gradient(
      to top,
      rgba(26, 26, 26, 0.95) 0%,
      rgba(26, 26, 26, 0.6) 60%,
      transparent 100%
    ) !important;
  }

  /* 5. Типографика */
  .bento-item h3 {
    font-size: 22px !important;
    margin-bottom: 6px !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5) !important; /* Контур текста */
  }

  .bento-item p {
    font-size: 13px !important;
    opacity: 1 !important; /* Текст описания тоже всегда виден */
    transform: translateY(0) !important;
    color: #e0e0e0 !important; /* Чуть светлее для контраста */
  }

  /* 6. Убираем лишние анимации при тапе */
  .bento-item:hover {
    transform: none !important; /* Не прыгает при наведении/нажатии */
  }
  
  .bento-item:hover .bento-img img {
    transform: scale(1.03); /* Легкий зум картинки для живости */
  }
}

/* ============================================
   КНОПКА ДЛЯ ТЁМНЫХ ФОНОВ (ПОРТФОЛИО)
   ============================================ */
.portfolio-cta {
  margin-top: 24px;
  text-align: center;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 14px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--easing);
}

.btn-dark .btn-arrow {
  transition: transform 0.3s ease;
}

.btn-dark:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(166, 138, 100, 0.25);
}

.btn-dark:hover .btn-arrow {
  transform: translateX(5px);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .btn-dark {
    padding: 12px 24px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   ПОРТФОЛИО (НОВАЯ СТРАНИЦА)
   ============================================ */

/* Breadcrumbs */
.breadcrumbs {
  padding: 20px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 14px;
  color: var(--gray);
}
.breadcrumbs a {
  color: var(--black);
  text-decoration: none;
  transition: color 0.3s ease;
}
.breadcrumbs a:hover {
  color: var(--gold);
}
.breadcrumbs span {
  margin: 0 6px;
}

/* ============================================
   ПОРТФОЛИО: HERO СЕКЦИЯ (ФИКС ВЫРАВНИВАНИЯ)
   ============================================ */
.portfolio-hero {
  text-align: center; /* Центрируем ВСЁ содержимое секции */
  padding: 80px 0 60px;
}

.portfolio-hero .section-label {
  display: inline-block; /* Лейбл не растягивается на 100% ширины */
  margin-bottom: 12px;
}

.portfolio-hero h1 {
  margin: 0 auto 16px;
  max-width: 800px; /* Ограничиваем длину строки для премиальной типографики */
}

.portfolio-hero .hero-sub {
  text-align: center;
  max-width: 760px;
  margin: 0 auto; /* Центрируем сам блок субтитра */
  color: var(--gray);
  font-size: 16px;
  line-height: 1.6;
}

/* Filters */
.portfolio-filters {
  padding: 0 0 40px;
}
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-tab {
  background: transparent;
  border: 1px solid var(--light-gray);
  padding: 10px 20px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--black);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.filter-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.filter-tab.active {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

/* Grid */
.portfolio-grid-section {
  padding: 0 0 100px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}
.portfolio-card {
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.4s var(--easing), box-shadow 0.4s var(--easing);
  display: flex;
  flex-direction: column;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  border-color: var(--gold);
}
.portfolio-img {
  height: 220px;
  overflow: hidden;
  background: var(--ivory);
}
.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--easing);
}
.portfolio-card:hover .portfolio-img img {
  transform: scale(1.05);
}
.portfolio-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.portfolio-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}
.portfolio-content h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.3;
}
.portfolio-content p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 16px;
  flex: 1;
}
.portfolio-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  transition: color 0.3s ease;
  align-self: flex-start;
}
.portfolio-link:hover {
  color: var(--gold);
}

/* Mobile */
@media (max-width: 768px) {
  .portfolio-hero { padding: 60px 0 40px; }
  .filter-tabs { gap: 8px; }
  .filter-tab { padding: 8px 14px; font-size: 13px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 20px; }
  .portfolio-img { height: 180px; }
}

/* ============================================
   МОДАЛКА "НЕ НАШЛИ ЧТО ИСКАЛИ"
   ============================================ */
.contact-prompt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.contact-prompt-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--ivory, #f5f5f0);
  padding: 40px;
  max-width: 460px;
  width: 90%;
  border-radius: 4px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: center;
}

.contact-prompt-modal.active .contact-prompt-overlay,
.contact-prompt-modal.active .contact-prompt-content {
  opacity: 1;
  visibility: visible;
}

.contact-prompt-modal.active .contact-prompt-content {
  transform: translate(-50%, -50%) scale(1);
}

.contact-prompt-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-prompt-close span {
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: var(--black, #1a1a1a);
  transition: transform 0.3s ease;
}
.contact-prompt-close span:nth-child(1) { transform: rotate(45deg); }
.contact-prompt-close span:nth-child(2) { transform: rotate(-45deg); }

.contact-prompt-body h3 {
  font-family: var(--font-head, serif);
  font-size: 24px;
  margin: 0 0 12px;
  font-weight: 400;
  color: var(--black, #1a1a1a);
}
.contact-prompt-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray, #666);
  margin: 0 0 24px;
}
.contact-prompt-body .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 768px) {
  .contact-prompt-content { padding: 30px 20px; }
  .contact-prompt-body h3 { font-size: 20px; }
  .contact-prompt-body p { font-size: 14px; }
}

/* ============================================
   СОЦСЕТИ В ФУТЕРЕ (В ОДНУ СТРОКУ)
   ============================================ */
.footer-social-row {
  margin-top: 20px;
}

.footer-social-row strong {
  display: block;
  font-size: 13px;
  color: var(--gray, #666);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-links-inline {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold, #a68a64);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 4px 0;
}

.social-link:hover {
  color: var(--black, #1a1a1a);
  transform: translateX(3px);
}

.social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .social-links-inline {
    gap: 16px;
  }
  
  .social-link {
    font-size: 13px;
  }
  
  .social-icon {
    width: 16px;
    height: 16px;
  }
}

/* ============================================
   СОЦСЕТИ В БЛОКЕ КОНТАКТОВ (#contact)
   ============================================ */
.social-links-contact {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.social-link-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold, #a68a64);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 4px 0;
}

.social-link-contact:hover {
  color: var(--black, #1a1a1a);
  transform: translateX(3px);
}

.social-link-contact.social-link-vk:hover {
  color: #0077FF !important; /* Фирменный синий VK */
}

.social-icon-contact {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .social-links-contact {
    gap: 14px;
  }
  .social-link-contact {
    font-size: 13px;
  }
  .social-icon-contact {
    width: 16px;
    height: 16px;
  }
}

/* ============================================
   СТРАНИЦА СОТРУДНИЧЕСТВА (PARTNERSHIP)
   ============================================ */

/* Hero */
.partnership-hero {
  padding: 80px 0 60px;
  text-align: center;
}
.partnership-hero h1 {
  font-family: var(--font-head);
  font-size: 48px;
  margin: 12px 0 24px;
  font-weight: 400;
}
.partnership-hero .hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--black);
  max-width: 800px;
  margin: 0 auto 20px;
}
.partnership-hero .hero-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray);
  max-width: 760px;
  margin: 0 auto;
}

/* Sections */
.partnership-section {
  padding: 80px 0;
}
.partnership-section h2 {
  font-family: var(--font-head);
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 400;
}

/* Offers Grid */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.offer-card {
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  padding: 30px;
  transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing);
}
.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--gold);
}
.offer-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 16px;
}
.offer-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 400;
}
.offer-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
  margin: 0;
}

/* Advantages */
.partnership-advantages {
  background: var(--ivory);
}
.advantages-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.advantages-list li {
  background: #fff;
  padding: 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.advantages-list li:hover {
  border-color: var(--gold);
}
.adv-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.advantages-list li strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--black);
}
.advantages-list li p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray);
  margin: 0;
}

/* CTA */
.partnership-cta {
  padding: 80px 0;
  background: var(--black);
  color: #fff;
  text-align: center;
}
.partnership-cta h2 {
  font-family: var(--font-head);
  font-size: 36px;
  margin-bottom: 16px;
  font-weight: 400;
}
.partnership-cta p {
  font-size: 16px;
  line-height: 1.6;
  color: #d0d0d0;
  max-width: 700px;
  margin: 0 auto 32px;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-outline-light {
  padding: 14px 32px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-radius: 4px;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--black);
}

/* Mobile */
@media (max-width: 768px) {
  .partnership-hero { padding: 60px 0 40px; }
  .partnership-hero h1 { font-size: 36px; }
  .partnership-section { padding: 60px 0; }
  .partnership-section h2 { font-size: 28px; }
  .offers-grid, .advantages-list { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; }
  .btn, .btn-outline-light { width: 100%; text-align: center; }
}

/* ============================================
   ЯНДЕКС ФОРМА: АДАПТИВ ДЛЯ МОБИЛЬНЫХ
   ============================================ */
.yandex-form-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden; /* Убирает горизонтальный скролл */
  border-radius: 4px;
  border: 1px solid var(--light-gray);
  background: #fff;
}

.yandex-form-iframe {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  border: none !important;
  display: block;
  /* Высота по умолчанию для десктопа */
  min-height: 650px;
}

/* === ПЛАНШЕТЫ (768px - 1024px) === */
@media (max-width: 1024px) {
  .yandex-form-iframe {
    min-height: 700px;
  }
}

/* === МОБИЛЬНЫЕ УСТРОЙСТВА (до 768px) === */
@media (max-width: 768px) {
  .yandex-form-wrapper {
    border: none;
    border-radius: 0;
    margin: 0 -16px; /* Компенсирует padding контейнера */
    width: calc(100% + 32px);
    max-width: calc(100% + 32px);
  }
  
  .yandex-form-iframe {
    min-height: 750px; /* Яндекс Формы становятся выше на мобильных */
    transform: scale(1);
    transform-origin: top left;
  }
}

/* === МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 430px: iPhone SE, старые Android) === */
@media (max-width: 430px) {
  .yandex-form-iframe {
    min-height: 800px;
  }
}

/* === ОЧЕНЬ УЗКИЕ ЭКРАНЫ (до 375px) === */
@media (max-width: 375px) {
  .yandex-form-wrapper {
    margin: 0 -12px;
    width: calc(100% + 24px);
  }
  
  .yandex-form-iframe {
    min-height: 850px;
  }
}

/* ============================================
   СТРАНИЦА ЮРИДИЧЕСКИХ ДОКУМЕНТОВ
   ============================================ */
.legal-hero {
  padding: 60px 0 40px;
  text-align: center;
  background: var(--ivory);
}

.legal-hero h1 {
  font-family: var(--font-head);
  font-size: 48px;
  margin: 16px 0 24px;
  font-weight: 400;
  line-height: 1.2;
}

.legal-hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray);
  max-width: 720px;
  margin: 0 auto;
}

.legal-documents {
  padding: 80px 0 120px;
  background: var(--ivory);
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.document-card {
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  transition: all 0.4s var(--easing);
  position: relative;
}

.document-card:hover {
  border-color: var(--gold);
  box-shadow: 0 15px 40px rgba(166, 138, 100, 0.12);
  transform: translateY(-4px);
}

.document-icon {
  width: 80px;
  height: 80px;
  background: var(--ivory);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.document-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 16px;
}

.document-content h2 {
  font-family: var(--font-head);
  font-size: 28px;
  margin: 0 0 16px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.3;
}

.document-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 20px;
}

.document-points {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.document-points li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 14px;
  color: var(--black);
  line-height: 1.5;
}

.document-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.document-meta {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 24px;
}

.meta-item {
  font-size: 13px;
  color: var(--gray);
}

.meta-item strong {
  color: var(--black);
  font-weight: 600;
}

.document-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.document-actions .btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
}

.btn-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.btn-link:hover {
  color: var(--black);
  border-bottom-color: var(--black);
}

/* Блок-предупреждение */
.legal-notice {
  background: #fff;
  padding: 24px 30px;
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.legal-notice svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-notice p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
  margin: 0;
}

.legal-notice a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.legal-notice a:hover {
  border-bottom-color: var(--gold);
}

/* Подсветка карточки при переходе по якорю */
.document-card:target {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(166, 138, 100, 0.15), 
              0 15px 40px rgba(166, 138, 100, 0.12);
  animation: highlightCard 2s ease-out;
}

@keyframes highlightCard {
  0% { 
    box-shadow: 0 0 0 8px rgba(166, 138, 100, 0.3), 
                0 15px 40px rgba(166, 138, 100, 0.2);
  }
  100% { 
    box-shadow: 0 0 0 4px rgba(166, 138, 100, 0.15), 
                0 15px 40px rgba(166, 138, 100, 0.12);
  }
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 1024px) {
  .documents-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .legal-hero {
    padding: 40px 0 30px;
  }
  
  .legal-hero h1 {
    font-size: 32px;
  }
  
  .legal-hero-desc {
    font-size: 14px;
  }
  
  .legal-documents {
    padding: 40px 0 80px;
  }
  
  .document-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 16px;
  }
  
  .document-icon {
    width: 60px;
    height: 60px;
  }
  
  .document-icon svg {
    width: 32px;
    height: 32px;
  }
  
  .document-content h2 {
    font-size: 22px;
  }
  
  .document-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .document-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .document-actions .btn-outline-dark {
    justify-content: center;
  }
  
  .legal-notice {
    flex-direction: column;
    padding: 20px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .legal-hero h1 {
    font-size: 28px;
  }
  
  .document-card {
    padding: 20px;
  }
  
  .document-points li {
    font-size: 13px;
  }
}

/* ============================================
   ФУТЕР: ВЫРАВНИВАНИЕ ЮРИДИЧЕСКИХ ССЫЛОК
   ============================================ */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  margin-top: 60px;
  border-top: 1px solid var(--light-gray);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray);
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-size: 13px;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.footer-legal-links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0;
    margin-top: 40px;
  }

  .footer-legal-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* ============================================
   ФУТЕР: ВЕРТИКАЛЬНОЕ ОТОБРАЖЕНИЕ ССЫЛОК
   ============================================ */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--black);
  font-weight: 400;
}

.footer-col a {
  display: block;
  color: var(--gray);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.3s ease;
  padding: 0;
}

.footer-col a:hover {
  color: var(--gold);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .footer-col {
    gap: 10px;
  }
  
  .footer-col h4 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  
  .footer-col a {
    font-size: 13px;
  }
}

/* ============================================
   АКЦЕНТНЫЙ БЛОК "ЧИСТКА 360°" В ПРОЦЕССЕ
   ============================================ */
.process-highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--ivory) 0%, #fff 100%);
  border: 1px solid var(--light-gray);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 28px 32px;
  margin-bottom: 50px;
  box-shadow: 0 4px 16px rgba(166, 138, 100, 0.08);
}

.process-highlight-icon {
  width: 64px;
  height: 64px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(166, 138, 100, 0.25);
}

.process-highlight-content h3 {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--black);
  margin: 0 0 10px;
  font-weight: 500;
  line-height: 1.3;
}

.process-highlight-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray);
  margin: 0;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .process-highlight {
    grid-template-columns: 1fr;
    padding: 20px;
    margin-bottom: 30px;
    gap: 16px;
  }
  
  .process-highlight-icon {
    width: 52px;
    height: 52px;
  }
  
  .process-highlight-icon svg {
    width: 28px;
    height: 28px;
  }
  
  .process-highlight-content h3 {
    font-size: 18px;
  }
  
  .process-highlight-content p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .process-highlight {
    padding: 18px;
  }
  
  .process-highlight-content h3 {
    font-size: 17px;
  }
}

/* ============================================
ПОДКЛЮЧЕНИЕ СТИЛЕЙ ПОРТФОЛИО
============================================ */

/* Breadcrumbs */
.breadcrumbs {
    padding: 120px 0 20px; /* Отступ под фиксированный хедер */
    font-size: 14px;
    color: var(--gray);
    background: var(--ivory);
}
.breadcrumbs a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}
.breadcrumbs a:hover {
    color: var(--gold);
}
.breadcrumbs span {
    margin: 0 8px;
}

/* Hero */
.portfolio-hero {
    text-align: center;
    padding: 0 0 60px;
    background: var(--ivory);
}
.portfolio-hero h1 {
    font-family: var(--font-head);
    font-size: 56px;
    margin: 10px 0 20px;
    font-weight: 400;
    color: var(--black);
}
.portfolio-hero .hero-sub {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray);
    line-height: 1.6;
}

/* Filters */
.portfolio-filters {
    padding: 0 0 40px;
    background: var(--ivory);
}
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-tab {
    background: transparent;
    border: 1px solid var(--light-gray);
    padding: 10px 24px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--gray);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.filter-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.filter-tab.active {
    background: var(--black);
    border-color: var(--black);
    color: #fff;
}

/* Grid */
.portfolio-grid-section {
    padding: 0 0 100px;
    background: var(--ivory);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}
.portfolio-card {
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s var(--easing), box-shadow 0.4s var(--easing);
    display: flex;
    flex-direction: column;
}
.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border-color: var(--gold);
}
.portfolio-img {
    height: 250px;
    overflow: hidden;
    background: var(--ivory);
}
.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--easing);
}
.portfolio-card:hover .portfolio-img img {
    transform: scale(1.05);
}
.portfolio-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.portfolio-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 600;
}
.portfolio-content h3 {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--black);
}
.portfolio-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 20px;
    flex: 1;
}
.portfolio-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease;
    align-self: flex-start;
}
.portfolio-link:hover {
    color: var(--gold);
}

/* CTA */
.portfolio-cta {
    padding: 100px 0;
    background: var(--ivory);
    text-align: center;
    border-top: 1px solid var(--light-gray);
}
.portfolio-cta h2 {
    font-family: var(--font-head);
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--black);
}
.portfolio-cta p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 30px;
}
.btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--black);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s var(--easing);
}
.btn-dark:hover {
    background: var(--gold);
    color: #fff;
}
.btn-arrow {
    transition: transform 0.3s ease;
}
.btn-dark:hover .btn-arrow {
    transform: translateX(4px);
}

/* Mobile */
@media (max-width: 768px) {
    .portfolio-hero h1 { font-size: 36px; }
    .portfolio-hero .hero-sub { font-size: 16px; }
    .filter-tabs { gap: 8px; }
    .filter-tab { padding: 8px 14px; font-size: 13px; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 20px; }
    .portfolio-img { height: 220px; }
}

/* === ГАРАНТИРОВАННОЕ ЦЕНТРИРОВАНИЕ ПОРТФОЛИО === */
.portfolio-hero-content {
    text-align: center !important;
}
.portfolio-hero-content .section-label,
.portfolio-hero-content h1,
.portfolio-hero-content .hero-sub {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.portfolio-hero-content h1 {
    max-width: 900px !important;
}
.portfolio-hero-content .hero-sub {
    max-width: 760px !important;
}

/* ============================================
   ФОРМА ЗАЯВКИ
   ============================================ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 16px;
    background: var(--ivory);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    color: #e53935;
    font-size: 13px;
    min-height: 18px;
}

.form-message {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    display: block;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
    display: block;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   ЗАГРУЗКА ФАЙЛОВ
   ============================================ */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--light-gray);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    background: var(--ivory);
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: var(--gold);
    background: #fafafa;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-wrapper::before {
    content: "📎";
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.file-upload-wrapper::after {
    content: "Нажмите для выбора файлов или перетащите их сюда";
    color: var(--gray);
    font-size: 14px;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-top: 8px;
}

.file-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.file-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid var(--light-gray);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item .remove-file {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

.file-preview-item .remove-file:hover {
    background: rgba(229, 57, 53, 0.9);
}

/* ============================================
   ЧЕКБОКС СОГЛАСИЯ (152-ФЗ)
   ============================================ */
.checkbox-group {
    margin-top: 15px;
}
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray);
    line-height: 1.4;
    user-select: none;
}
.checkbox-label input[type="checkbox"] {
    display: none; /* Скрываем стандартный чекбокс */
}
.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    margin-top: 2px;
    background: #fff;
}
.checkbox-label input:checked + .checkbox-custom {
    background: var(--gold);
    border-color: var(--gold);
}
.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.checkbox-text a {
    color: var(--gold);
    text-decoration: underline;
    transition: color 0.2s;
}
.checkbox-text a:hover {
    color: var(--black);
}

@keyframes forceHide {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}
/* === ФИНАЛЬНЫЙ ПРЕЛОАДЕР (PREMIUM) === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--black);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Класс для скрытия */
#preloader.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.preloader-logo {
    font-family: var(--font-head);
    font-size: 36px;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.preloader-logo span {
    color: var(--gold);
}

.loader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.loader-line {
    width: 100%;
    height: 100%;
    background: var(--gold);
    transform: translateX(-100%);
    animation: loadLine 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.5s;
}

.loader-skip {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.loader-skip:hover {
    border-color: var(--gold);
    color: var(--gold);
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loadLine {
    to { transform: translateX(0); }
}
/* ============================================
   КНОПКА В HERO: РЕАЛЬНЫЕ ФОТО И ВИДЕО РАБОТ
============================================ */
.btn-portfolio-hero {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-portfolio-hero:hover {
    background: var(--gold);
    color: #fff;
}

.btn-portfolio-hero svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .btn-portfolio-hero {
        justify-content: center;
    }
}
/* ============================================
   HERO: ВИДЕО + КНОПКА — ФИНАЛЬНЫЙ БЛОК
============================================ */
.hero-bg {
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.btn-portfolio-hero {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-portfolio-hero:hover {
    background: var(--gold);
    color: #fff;
}

.btn-portfolio-hero svg {
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .hero-btns {
        flex-wrap: wrap;
    }
    .btn-portfolio-hero {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-sub {
        margin-top: 24px;
    }
    .hero-overlay {
        background: rgba(250, 249, 246, 0.78);
    }
}
/* ============================================
   HERO: ДВА ВИДЕО ПО ОЧЕРЕДИ (ПЛЕЙЛИСТ)
============================================ */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease; /* плавный переход между роликами */
}

.hero-video.is-on {
    opacity: 1;
}

/* Мобильные: горизонтальное не показываем */
@media (max-width: 768px) {
    .hero-video-a {
        display: none;
    }
}
/* ============================================
   ЛОГОТИП-ПЕЧАТЬ В ПРАВОМ НИЖНЕМ УГЛУ ФОТО «О НАС»
============================================ */
.about-logo-badge {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 160px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    z-index: 2;
    line-height: 0;
}

.about-logo-badge img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .about-logo-badge {
        width: 110px;
        right: 14px;
        bottom: 14px;
    }
}