:root {
  --bg: #0b0d12;
  --bg-soft: #12161d;
  --panel: rgba(22, 26, 35, 0.68);
  --panel-strong: rgba(16, 18, 25, 0.84);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --text-soft: #b9c0cf;
  --accent: #8c1f2e;
  --accent-2: #b42d41;
  --accent-glow: rgba(180, 45, 65, 0.35);
  --cold: #6f87a8;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1200px;
  --header-height: 84px;
  --transition: 0.3s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(111, 135, 168, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(180, 45, 65, 0.14), transparent 24%),
    linear-gradient(180deg, #0a0c11 0%, #0d1017 45%, #0a0c11 100%);
  color: var(--text);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 60px 0;
}

.section-grid {
  padding-top: 70px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h1,
.section-heading h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.section-heading p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d4dae6;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-2), transparent);
}

.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(8, 10, 15, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(180, 45, 65, 0.22), rgba(111, 135, 168, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 0 30px rgba(180, 45, 65, 0.12);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-size: 0.98rem;
}

.logo-text small {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  position: relative;
  color: var(--text-soft);
  font-weight: 500;
  transition: color var(--transition);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent-2), transparent);
  transition: transform var(--transition);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-phone {
  color: var(--text-soft);
  font-weight: 600;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:
    0 12px 32px rgba(140, 31, 46, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.btn-primary:hover {
  box-shadow:
    0 18px 40px rgba(180, 45, 65, 0.42),
    0 0 24px rgba(180, 45, 65, 0.18);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  border-color: rgba(180, 45, 65, 0.5);
  box-shadow: 0 0 30px rgba(180, 45, 65, 0.14);
}

.btn-ghost {
  color: var(--text-soft);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 18px 16px 24px;
  background: rgba(8, 10, 15, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: #fff;
}

.mobile-menu-phone {
  color: #f0d0d5;
  font-weight: 700;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 30px);
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.9) 8%, rgba(7, 9, 13, 0.56) 48%, rgba(7, 9, 13, 0.9) 100%),
    url("../images/hero-bg.jpg") center/cover no-repeat;
  transform: scale(1.03);
}

.hero-overlay {
  background:
    radial-gradient(circle at 18% 44%, rgba(180, 45, 65, 0.2), transparent 30%),
    radial-gradient(circle at 80% 16%, rgba(111, 135, 168, 0.12), transparent 24%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-panel {
  max-width: 760px;
  padding: 36px;
  border-radius: var(--radius-lg);
}

.hero-panel h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero-text {
  margin: 0 0 24px;
  max-width: 650px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions,
.center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.center-actions {
  justify-content: center;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.meta-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.meta-card strong {
  font-size: 1rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: #dce2ee;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cards-grid {
  display: grid;
  gap: 20px;
}

.cards-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.service-card,
.review-card,
.step-card,
.visual-card,
.cta-panel,
.map-card {
  position: relative;
  overflow: hidden;
}

.info-card,
.service-card,
.review-card,
.step-card {
  border-radius: var(--radius-md);
  padding: 26px;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.info-card::before,
.service-card::before,
.review-card::before,
.step-card::before,
.visual-card::before,
.cta-panel::before,
.map-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -50% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 45, 65, 0.18), transparent 70%);
  pointer-events: none;
}

.info-card:hover,
.service-card:hover,
.review-card:hover,
.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(180, 45, 65, 0.26);
  box-shadow:
    var(--shadow),
    0 0 40px rgba(180, 45, 65, 0.08);
}

.info-card h3,
.service-card h3,
.review-card h3,
.step-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.info-card p,
.service-card p,
.review-card p,
.step-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(180, 45, 65, 0.18), rgba(111, 135, 168, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.section-actions {
  margin-top: 32px;
  text-align: center;
}

.accent-section {
  background:
    linear-gradient(180deg, rgba(180, 45, 65, 0.05), transparent 45%),
    linear-gradient(180deg, transparent, rgba(111, 135, 168, 0.04));
}

.split-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.split-content h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.split-content p {
  color: var(--text-soft);
  line-height: 1.8;
}

.feature-list {
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: #dfe5f1;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), #d95d6f);
  box-shadow: 0 0 16px rgba(180, 45, 65, 0.35);
}

.visual-card {
  border-radius: 28px;
  padding: 18px;
}

.visual-photo,
.contact-photo {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 22px;
}

.contact-photo {
  min-height: 420px;
}

.visual-badge {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.visual-badge strong {
  display: block;
  margin-bottom: 8px;
}

.visual-badge p {
  margin: 0;
  color: var(--text-soft);
}

.gallery-slider {
  position: relative;
  padding: 0 56px;
}

.gallery-main {
  position: relative;
  min-height: 520px;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(30px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d1017;
  box-shadow: var(--shadow);
}

.gallery-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.gallery-slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(9, 11, 16, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.gallery-caption strong {
  display: block;
  margin-bottom: 6px;
}

.gallery-caption span {
  color: var(--text-soft);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.thumb {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.66;
  transition: opacity var(--transition), transform var(--transition), border-color var(--transition);
}

.thumb.active,
.thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(180, 45, 65, 0.35);
}

.thumb img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 15, 0.74);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.slider-btn-prev {
  left: 0;
}

.slider-btn-next {
  right: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.review-stars {
  margin-bottom: 14px;
  color: #f3b95d;
  letter-spacing: 0.2em;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  border-radius: 18px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  color: #fff;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
}

.faq-icon {
  font-size: 1.4rem;
  color: #f5cbd1;
  transition: transform var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-soft);
  line-height: 1.7;
}

.cta-section {
  padding-top: 70px;
}

.cta-panel {
  padding: 38px;
  border-radius: 28px;
  text-align: center;
}

.cta-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-panel p {
  max-width: 760px;
  margin: 0 auto 24px;
  color: var(--text-soft);
  line-height: 1.8;
}

.site-footer {
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 9, 13, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.site-footer h3,
.site-footer h4 {
  margin-top: 0;
  margin-bottom: 14px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--text-soft);
  line-height: 1.7;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-hero-compact {
  padding-top: calc(var(--header-height) + 90px);
  padding-bottom: 40px;
}

.map-card {
  border-radius: 24px;
  padding: 16px;
}

.map-card iframe {
  display: block;
  border-radius: 16px;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 34px rgba(140, 31, 46, 0.42);
}

.floating-contact svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 45, 65, 0.14), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: blur(16px);
  opacity: 0.8;
}

@media (max-width: 1100px) {
  .nav,
  .header-phone,
  .header-actions .btn {
    display: none;
  }

  .burger {
    display: inline-block;
  }

  .cards-grid-4,
  .cards-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout,
  .steps-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 78px 0;
  }

  .hero-panel {
    padding: 24px;
  }

  .gallery-slider {
    padding: 0 44px;
  }

  .gallery-main,
  .gallery-slide img {
    min-height: 380px;
    height: 380px;
  }

  .cards-grid-2,
  .cards-grid-3,
  .cards-grid-4,
  .gallery-thumbs {
    grid-template-columns: 1fr;
  }

  .hero-panel h1 {
    font-size: 2.5rem;
  }

  .logo-text small {
    display: none;
  }

  .thumb img {
    height: 120px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .center-actions {
    flex-direction: column;
  }

  .gallery-slider {
    padding: 0 38px;
  }

  .gallery-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 14px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .floating-contact {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }
}