/* ============================================================
   ПРЕМИАЛЬНЫЙ CSS — AI ФОТО (ПОЛНАЯ ПЕРЕРАБОТКА)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --gold: #C9A96E;
  --gold-light: #E4D5B7;
  --gold-dark: #A9874A;
  --gold-glow: rgba(201, 169, 110, 0.3);
  --gold-glow-strong: rgba(201, 169, 110, 0.5);
  --bg-dark: #0D0C0A;
  --bg-dark-secondary: #161412;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #F0EDE5;
  --text-secondary: #B5B0A8;
  --text-muted: #7A7670;
  --white: #FFFFFF;
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 30px 80px rgba(201, 169, 110, 0.15);
  --shadow-glow: 0 8px 40px rgba(201, 169, 110, 0.2);
  --radius: 28px;
  --radius-sm: 16px;
  --radius-xs: 10px;
  --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(201, 169, 110, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(201, 169, 110, 0.03) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(201, 169, 110, 0.02) 0%, transparent 60%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Декоративные элементы фона */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.03) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Декоративная сетка на фоне */
.grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(201, 169, 110, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 110, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* Общие стили */
.section-title {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.section-title strong {
  color: var(--gold);
  font-weight: 700;
  position: relative;
}

.section-title strong::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  border-radius: 4px;
  opacity: 0.4;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 50px;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Декоративный разделитель */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 10px auto 30px;
  max-width: 200px;
}

.section-divider .line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-divider .diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Кнопки */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #0D0C0A !important;
  padding: 18px 44px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.6s;
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 50px var(--gold-glow-strong);
  color: var(--white) !important;
}

/* ============================================================
   ИСПРАВЛЕНИЕ 1: Кнопка "Смотреть портфолио" - текст чёрный при наведении
   ============================================================ */
.btn-outline-gold {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  padding: 18px 44px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid var(--gold);
  backdrop-filter: blur(4px);
  letter-spacing: 0.3px;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: #0D0C0A !important;
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   КНОПКА "ЗАКАЗАТЬ" В ШАПКЕ
   ============================================================ */
.header-custom .nav a.btn-order-nav {
  background: var(--gold);
  color: var(--bg-dark) !important;
  padding: 8px 24px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 14px;
  border-bottom: none;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.header-custom .nav a.btn-order-nav:hover {
  background: var(--gold-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
  border-bottom: none;
}

@media (max-width: 820px) {
  .header-custom .nav a.btn-order-nav {
    padding: 6px 18px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .header-custom .nav a.btn-order-nav {
    padding: 5px 14px;
    font-size: 12px;
  }
}

/* ============================================================
   ШАПКА
   ============================================================ */
.header-custom {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px;
  background: rgba(13, 12, 10, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
  font-family: var(--font-sans);
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(201, 169, 110, 0.08);
}

.header-custom .logo {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  font-family: var(--font-serif);
}

.header-custom .logo span {
  color: var(--gold);
  font-weight: 400;
}

.header-custom .logo small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: -2px;
  letter-spacing: 0.5px;
  font-family: var(--font-sans);
}

.header-custom .nav {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.header-custom .nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  letter-spacing: 0.2px;
}

.header-custom .nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.header-custom .right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.header-custom .right a.email {
  color: var(--gold);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-custom .right a.email:hover {
  color: var(--gold-dark);
}

.header-custom .social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.header-custom .social-icon:hover {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* ============================================================
   ИСПРАВЛЕНИЕ: VK и OK в шапке - текст БЕЛЫЙ при наведении
   ============================================================ */
.header-custom .social-icon.vk:hover {
  background: #0077FF;
  color: #FFFFFF !important;
  border-color: #0077FF;
}

.header-custom .social-icon.ok:hover {
  background: #FF8C00;
  color: #FFFFFF !important;
  border-color: #FF8C00;
}

@media (max-width: 820px) {
  .header-custom {
    flex-direction: column;
    gap: 14px;
    padding: 14px 20px;
  }
  .header-custom .nav {
    gap: 20px;
    justify-content: center;
  }
  .header-custom .right {
    justify-content: center;
  }
  .header-custom .logo {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .header-custom .nav a {
    font-size: 13px;
  }
  .header-custom .right a.email {
    font-size: 13px;
  }
  .header-custom .social-icon {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
}

/* ============================================================
   ГЕРОЙ
   ============================================================ */
.hero-custom {
  padding: 80px 48px 100px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  min-height: 90vh;
}

.hero-custom::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-custom::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.04) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  flex: 0 1 48%;
  max-width: 620px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.hero-content .badge {
  display: inline-block;
  background: rgba(201, 169, 110, 0.12);
  color: var(--gold);
  padding: 8px 24px;
  border-radius: 60px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(201, 169, 110, 0.15);
  backdrop-filter: blur(4px);
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 62px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -2px;
  line-height: 1.08;
}

.hero-content h1 span {
  color: var(--gold);
  position: relative;
}

.hero-content h1 span::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold);
  border-radius: 4px;
  opacity: 0.3;
}

.hero-content p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-buttons .btn-gold {
  color: #0D0C0A !important;
}
.hero-buttons .btn-gold:hover {
  color: #FFFFFF !important;
}

.trust-badge {
  display: flex;
  justify-content: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-badge .item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.trust-badge .item .icon {
  font-size: 28px;
}

.trust-badge .item strong {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-collage {
  flex: 0 1 42%;
  max-width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.hero-collage .big {
  grid-row: span 2;
}

.hero-collage .big img,
.hero-collage .small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  cursor: pointer;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-collage .big img:hover,
.hero-collage .small img:hover {
  transform: scale(1.04);
  box-shadow: 0 20px 60px var(--gold-glow-strong);
  border-color: var(--gold);
}

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 48px;
  }
}

@media (max-width: 900px) {
  .hero-custom {
    flex-direction: column;
    padding: 40px 20px 60px;
    gap: 40px;
    min-height: auto;
  }
  .hero-content,
  .hero-collage {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .hero-content h1 {
    font-size: 40px;
  }
  .hero-content {
    text-align: center;
  }
  .hero-buttons,
  .trust-badge {
    justify-content: center;
  }
  .hero-collage {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 32px;
  }
  .hero-content p {
    font-size: 17px;
  }
  .hero-collage {
    gap: 10px;
  }
}

/* ============================================================
   УСЛУГИ
   ============================================================ */
.services-tabs {
  padding: 80px 30px 100px;
  background: transparent;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 36px;
  border-radius: 60px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
  backdrop-filter: blur(4px);
  font-family: var(--font-sans);
  letter-spacing: 0.2px;
}

.tab-btn.active {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
  box-shadow: var(--shadow-glow);
}

.tab-btn:hover {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}

.tab-content {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.tab-content.active {
  display: grid;
}

.card-v2 {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.card-v2::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card-v2:hover::before {
  opacity: 1;
}

.card-v2:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
  background: var(--bg-card-hover);
}

.card-v2 .thumb {
  height: 220px;
  background: rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-v2 .thumb img.main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  padding: 6px;
}

.card-v2 .thumb .before-img {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  z-index: 2;
  transition: var(--transition);
}

.card-v2 .thumb .tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gold);
  color: var(--bg-dark);
  padding: 4px 16px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.card-v2 .info {
  padding: 22px 22px 26px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-v2 .info .card-icon {
  font-size: 24px;
  margin-bottom: 4px;
  color: var(--gold);
}

.card-v2 .info .name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.3;
  min-height: 42px;
}

.card-v2 .info .price {
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  margin: 6px 0 2px;
}

.card-v2 .info .specs {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.4;
}

.card-v2 .info .btn-group {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

.card-v2 .info .btn-select {
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  padding: 10px 20px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 13px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  flex: 1;
  text-align: center;
}

.card-v2 .info .btn-select:hover {
  background: var(--gold-dark);
  transform: scale(1.02);
  color: var(--white);
}

.card-v2 .info .btn-detail {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 10px 16px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  flex: 1;
  text-align: center;
}

.card-v2 .info .btn-detail:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

@media (max-width: 1200px) {
  .tab-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .tab-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tab-content {
    grid-template-columns: 1fr;
  }
  .services-tabs {
    padding: 50px 16px 60px;
  }
  .tab-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* ============================================================
   ПОРТФОЛИО
   ============================================================ */
.portfolio-carousel {
  padding: 80px 30px 100px;
  background: var(--bg-dark-secondary);
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-card);
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.portfolio-filter button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 28px;
  border-radius: 60px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-family: var(--font-sans);
}

.portfolio-filter button.active {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
  box-shadow: var(--shadow-glow);
}

.portfolio-filter button:hover {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}

.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.carousel-slide {
  display: flex;
  transition: 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.carousel-slide .slide-item {
  flex: 0 0 100%;
  position: relative;
}

.carousel-slide .slide-item img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  background: #0a0a0a;
  display: block;
  cursor: pointer;
}

.carousel-slide .slide-item .slide-caption {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  padding: 16px 26px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  border-left: 4px solid var(--gold);
}

.carousel-slide .slide-item .slide-caption .cat {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  display: block;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.carousel-slide .slide-item .slide-caption .desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  display: block;
  margin-top: 4px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-btn:hover {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}

.thumbnails {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.thumbnails img.active,
.thumbnails img:hover {
  opacity: 1;
  border-color: var(--gold);
  transform: scale(1.06);
}

@media (max-width: 768px) {
  .portfolio-carousel {
    padding: 50px 16px 60px;
  }
  .carousel-slide .slide-item img {
    height: 320px;
  }
  .carousel-slide .slide-item .slide-caption {
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 12px 18px;
    font-size: 14px;
  }
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .thumbnails img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .carousel-slide .slide-item img {
    height: 240px;
  }
}

/* ============================================================
   ПОЧЕМУ МЫ
   ============================================================ */
.why-us {
  padding: 80px 30px 100px;
  background: transparent;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.why-item {
  background: var(--bg-card);
  backdrop-filter: blur(6px);
  padding: 38px 24px;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.why-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}

.why-item:hover::before {
  opacity: 1;
}

.why-item:hover {
  transform: translateY(-12px);
  border-color: var(--gold);
  box-shadow: var(--shadow-hover);
  background: var(--bg-card-hover);
}

.why-item .icon {
  font-size: 46px;
  margin-bottom: 14px;
  display: block;
  color: var(--gold);
}

.why-item .big-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-serif);
}

.why-item h4 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-weight: 700;
}

.why-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-us {
    padding: 50px 16px 60px;
  }
}

/* ============================================================
   КАК МЫ РАБОТАЕМ
   ============================================================ */
.steps-custom {
  padding: 80px 30px 100px;
  background: var(--bg-dark-secondary);
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-card);
}

.steps-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  position: relative;
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(201, 169, 110, 0.2);
  z-index: 0;
}

.step-item {
  background: var(--bg-card);
  padding: 32px 20px;
  border-radius: var(--radius);
  flex: 1 1 180px;
  max-width: 220px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-card);
}

.step-item:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: var(--shadow-hover);
}

.step-item .num {
  display: inline-block;
  width: 52px;
  height: 52px;
  line-height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-dark);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-item .icon {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
}

.step-item h4 {
  font-size: 18px;
  color: var(--text-primary);
  margin: 8px 0 4px;
}

.step-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 6px 0 0;
}

@media (max-width: 768px) {
  .steps-row::before {
    display: none;
  }
  .steps-custom {
    padding: 50px 16px 60px;
  }
}

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.reviews-custom {
  padding: 80px 30px 100px;
  background: transparent;
  max-width: 1000px;
  margin: 0 auto;
}

.reviews-slider {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0 20px;
  scrollbar-width: none;
}

.reviews-slider::-webkit-scrollbar {
  display: none;
}

.rev-card {
  flex: 0 0 calc(33.333% - 20px);
  background: var(--bg-card);
  backdrop-filter: blur(6px);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--gold);
  font-style: italic;
  color: var(--text-primary);
  transition: var(--transition);
  scroll-snap-align: start;
  min-width: 280px;
}

.rev-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: var(--shadow-hover);
}

.rev-card .header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.rev-card .header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.rev-card .header .info {
  font-style: normal;
}

.rev-card .header .info .name {
  font-weight: 700;
  color: var(--text-primary);
}

.rev-card .header .info .stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 18px;
}

.rev-card .text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.rev-card .author {
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
}

@media (max-width: 900px) {
  .rev-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 600px) {
  .rev-card {
    flex: 0 0 100%;
  }
  .reviews-custom {
    padding: 50px 16px 60px;
  }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-custom {
  padding: 80px 30px 100px;
  background: var(--bg-dark-secondary);
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-card);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
  gap: 15px;
}

.faq-q:hover {
  color: var(--gold);
}

.faq-q .icon {
  font-size: 22px;
  flex-shrink: 0;
}

.faq-q .arrow {
  transition: var(--transition);
  font-size: 18px;
  color: var(--text-secondary);
}

.faq-q .arrow.open {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: 0.5s ease;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 44px;
}

.faq-a.open {
  max-height: 300px;
  padding-top: 14px;
  padding-bottom: 4px;
}

@media (max-width: 768px) {
  .faq-custom {
    padding: 50px 16px 60px;
  }
  .faq-q {
    font-size: 16px;
  }
  .faq-a {
    padding-left: 0;
  }
}

/* ============================================================
   ФОРМА ЗАКАЗА
   ============================================================ */
.form-custom {
  padding: 80px 30px 100px;
  background: transparent;
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 16px;
  background: var(--bg-card);
  transition: var(--transition);
  box-sizing: border-box;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 4px var(--gold-glow);
  background: var(--bg-card-hover);
}

.form-group textarea {
  height: 80px;
  resize: vertical;
}

/* ============================================================
   ИСПРАВЛЕНИЕ: Стили для select (выпадающий список услуг)
   ============================================================ */
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 16px;
  background: var(--bg-dark-secondary);
  transition: var(--transition);
  box-sizing: border-box;
  color: var(--text-primary);
  font-family: var(--font-sans);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A96E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 48px;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-dark-secondary);
  color: var(--text-primary);
  padding: 12px 16px;
  font-size: 15px;
}

.form-group select optgroup {
  background: var(--bg-dark);
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
}

.form-group select optgroup option {
  background: var(--bg-dark-secondary);
  color: var(--text-primary);
  padding: 10px 16px 10px 24px;
  font-weight: 400;
}

.form-group select optgroup option:hover {
  background: rgba(201, 169, 110, 0.15);
  color: var(--gold);
}

.form-group select:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 4px var(--gold-glow);
  background-color: var(--bg-dark-secondary);
}

.form-group select::-moz-focus-inner {
  border: 0;
}

.form-group select::-ms-expand {
  display: none;
}

.form-group select:focus option:checked {
  background: var(--gold);
  color: var(--bg-dark);
}

.form-group select option[value=""] {
  color: var(--text-muted);
}

/* Конец стилей для select */

.file-upload-wrap {
  position: relative;
  overflow: hidden;
  display: block;
}

.file-upload-wrap input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-label {
  display: inline-block;
  background: var(--bg-card);
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  color: var(--text-secondary);
  transition: var(--transition);
  font-size: 15px;
}

.file-upload-label:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--bg-card-hover);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0;
}

.checkbox-group input {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
}

.checkbox-group label {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

.checkbox-group label a {
  color: var(--gold);
  text-decoration: underline;
  transition: var(--transition);
}

.checkbox-group label a:hover {
  color: var(--gold-dark);
}

.btn-submit {
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  padding: 18px 40px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 60px;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
  letter-spacing: 0.3px;
}

.btn-submit:hover {
  background: var(--gold-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-strong);
  color: var(--white);
}

.form-footnote {
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 18px;
}

.form-footnote strong {
  color: var(--gold);
}

@media (max-width: 768px) {
  .form-custom {
    padding: 50px 16px 60px;
  }
  .btn-submit {
    font-size: 17px;
    padding: 16px 30px;
  }
}

/* ============================================================
   ИСПРАВЛЕНИЕ 2: Социальные ссылки - текст чёрный при наведении
   ============================================================ */
.contacts-custom {
  padding: 80px 30px 100px;
  background: transparent;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.social-links a {
  background: var(--bg-card);
  padding: 14px 40px;
  border-radius: 60px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 18px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-card);
}

.social-links a:hover {
  background: var(--gold);
  color: #0D0C0A !important;
  transform: scale(1.05);
  border-color: var(--gold);
  box-shadow: var(--shadow-glow);
}

.contact-info {
  font-size: 18px;
  color: var(--text-secondary);
}

.contact-info a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.contact-info a:hover {
  color: var(--gold-dark);
}

.contact-info p {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .contacts-custom {
    padding: 50px 16px 60px;
  }
  .social-links a {
    padding: 12px 28px;
    font-size: 16px;
  }
}

/* ============================================================
   ФУТЕР
   ============================================================ */
.footer-custom {
  padding: 30px 20px;
  background: var(--bg-dark-secondary);
  color: var(--text-secondary);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-custom a {
  color: var(--gold);
  text-decoration: none;
  margin: 0 12px;
  transition: var(--transition);
}

.footer-custom a:hover {
  text-decoration: underline;
  color: var(--gold-dark);
}

.footer-custom .divider {
  color: rgba(255, 255, 255, 0.1);
  margin: 0 6px;
}

.footer-custom p:last-child {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
  .footer-custom {
    font-size: 13px;
  }
  .footer-custom a {
    margin: 0 8px;
  }
}

/* ============================================================
   ПЛАВАЮЩИЕ КНОПКИ (текст ЧЁРНЫЙ всегда)
   ============================================================ */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.floating-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: var(--shadow-glow);
  font-size: 22px;
  font-weight: 700;
  color: #0D0C0A !important;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
}

.floating-buttons a:hover {
  transform: scale(1.12) translateY(-4px);
  box-shadow: var(--shadow-glow-strong);
}

.floating-buttons a.vk:hover {
  background: #0077FF;
  border-color: #0077FF;
  color: #FFFFFF !important;
}

.floating-buttons a.ok:hover {
  background: #FF8C00;
  border-color: #FF8C00;
  color: #FFFFFF !important;
}

@media (max-width: 480px) {
  .floating-buttons {
    bottom: 20px;
    left: 20px;
  }
  .floating-buttons a {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
}

/* ============================================================
   ИСПРАВЛЕНИЕ 3: Модальное окно - убрана полоса прокрутки
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: hidden;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-dark-secondary);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  padding: 44px 48px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(201, 169, 110, 0.12);
}

.modal-content h3 {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 16px;
}

.modal-content p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
  background: none;
  border: none;
  line-height: 1;
}

.modal-close:hover {
  color: var(--gold);
  transform: rotate(90deg);
}

.modal-content.image-modal {
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-width: 90%;
  border: none;
  overflow: hidden;
}

.modal-content.image-modal .modal-close {
  color: var(--white);
  right: 30px;
  top: 20px;
  font-size: 36px;
}

.modal-content.image-modal img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  display: block;
}

.modal-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 25px;
}

.modal-gallery.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.modal-gallery .modal-label {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.modal-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xs);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-gallery img:hover {
  transform: scale(1.04);
  border-color: var(--gold);
}

@media (max-width: 768px) {
  .modal-gallery {
    display: none !important;
  }
  .modal-content {
    padding: 30px 20px;
  }
  .section-title {
    font-size: 36px;
  }
}