:root {
  --bg: #0f1115;
  --bg-elevated: #171a21;
  --text: #f3f5f9;
  --muted: #9ea4b3;
  --accent: #b08a5c;
  --accent-2: #7c6a55;
  --border: #2a2f3a;
  --card: #14171d;
  --radius: 14px;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
  --max-width: 1180px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(60% 100% at 50% 20%, rgba(176,138,92,0.06), transparent 60%),
    repeating-radial-gradient(circle at 20% 20%, rgba(176,138,92,0.06) 0 1px, rgba(0,0,0,0) 1px 10px),
    radial-gradient(800px 400px at 10% -10%, rgba(255,255,255,0.04), transparent 60%),
    radial-gradient(800px 400px at 90% 0%, rgba(176,138,92,0.05), transparent 60%),
    var(--bg);
  background-size: auto, 220px 220px, auto, auto, auto;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--safe-bottom);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(100%, var(--max-width)); margin: 0 auto; padding: 0 20px; }

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15,17,21,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding-top: calc(10px + var(--safe-top));
  padding-bottom: 10px;
}

.header-hero {
  position: relative;
  height: 700px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.header-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}
.header-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,16,0.1) 0%, rgba(10,12,16,0.85) 100%);
}

.navbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }

.brand { font-family: var(--font-heading); letter-spacing: 0.6px; font-size: 20px; }

nav ul { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0; }
nav a { color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: 0.2px; }
nav a:hover, nav a.active { color: var(--text); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f1115;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 999px; border: 1px solid transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0d0f13; font-weight: 700; letter-spacing: 0.3px;
  box-shadow: 0 12px 30px rgba(176,138,92,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 40px rgba(176,138,92,0.32); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); box-shadow: none; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.hero { padding: 80px 0 60px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; position: relative; }
.hero::before {
  content: '';
  position: absolute;
  top: -40px;
  bottom: -40px;
  right: -10px;
  width: 52%;
  border-radius: 26px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(176,138,92,0.25), transparent 60%),
    linear-gradient(180deg, rgba(10,12,16,0.9), rgba(16,19,26,0.95));
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-family: var(--font-heading); font-size: clamp(34px, 4vw, 46px); line-height: 1.1; margin: 0 0 18px; }
.hero .lede { color: var(--muted); margin-bottom: 22px; max-width: 560px; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.badge { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }

.form { display: grid; gap: 12px; }
.form label { font-size: 14px; color: var(--muted); }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: #0c0e12; color: var(--text);
  font-family: var(--font-body);
}
.form textarea { min-height: 110px; resize: vertical; }
.form .row { display: flex; gap: 12px; }
.form .row > * { flex: 1; }

.section { padding: 70px 0; }
.section h2 { font-family: var(--font-heading); font-size: clamp(26px, 3vw, 34px); margin: 0 0 16px; }
.section p.section-lead { color: var(--muted); margin: 0 0 26px; max-width: 720px; }

.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.service-card { padding: 20px; display: grid; gap: 10px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(140deg, rgba(255,255,255,0.02), rgba(255,255,255,0)); }
.service-card h3 { margin: 0; font-size: 18px; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; }
.service-card .link { color: var(--accent); font-weight: 700; font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: #10131a; }
.step strong { display: block; margin-bottom: 8px; }
.step span { color: var(--muted); font-size: 14px; }

.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.benefit { padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: #11141b; }
.benefit strong { display: block; margin-bottom: 8px; }
.benefit span { color: var(--muted); font-size: 14px; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.portfolio-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); cursor: pointer; }
.portfolio-card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.3s ease; }
.portfolio-card:hover img { transform: scale(1.04); }
.portfolio-card .label { position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 999px; background: rgba(15,17,21,0.7); color: var(--text); font-size: 12px; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-btn { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: #0f1115; color: var(--muted); cursor: pointer; }
.filter-btn.active { background: var(--accent); color: #0f1115; border-color: transparent; }

.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.testimonial { padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: #10131a; }
.testimonial strong { display: block; margin-bottom: 6px; }
.testimonial span { color: var(--muted); font-size: 14px; }

.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-button { width: 100%; padding: 16px; background: none; color: var(--text); text-align: left; border: none; font-size: 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 16px; color: var(--muted); }
.faq-item.open .faq-content { padding-bottom: 16px; max-height: 240px; }

.contacts { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
.contact-card { padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: #10131a; }
.contact-card h3 { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); }
.contact-list a { color: var(--text); }
.map-placeholder { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: linear-gradient(145deg, #191c24, #0f1115); height: 260px; display: grid; place-items: center; color: var(--muted); }
.map-section .section-head { margin-bottom: 18px; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0c0e12;
  height: 420px;
}
.map-embed > ymaps,
.map-embed > iframe,
.map-embed > script {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.footer { padding: 30px 0; border-top: 1px solid var(--border); background: #0c0e12; color: var(--muted); font-size: 14px; }
.footer .row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  background: #0b0d11;
  height: 520px;
  padding: 0;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}
.hero-visual .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,16,0.15) 0%, rgba(10,12,16,0.85) 100%);
}
.hero-visual .caption { position: absolute; bottom: 14px; left: 14px; right: 14px; color: var(--text); font-weight: 700; }

.breadcrumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.breadcrumbs a { color: var(--text); }

.hero-service { padding: 70px 0 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.hero-service h1 { margin: 0 0 12px; font-size: clamp(30px, 3.6vw, 42px); font-family: var(--font-heading); }
.hero-service p { color: var(--muted); margin: 0 0 16px; }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); }
.list li { padding-left: 18px; position: relative; }
.list li::before { content: '•'; color: var(--accent); position: absolute; left: 0; }

.quote-block { padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: #11141b; color: var(--muted); font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: none; align-items: center; justify-content: center; z-index: 99; padding: 30px; }
.modal.open { display: flex; }
.modal img { max-width: 90vw; max-height: 80vh; border-radius: var(--radius); }
.modal .close { position: absolute; top: 22px; right: 22px; background: rgba(0,0,0,0.5); border: 1px solid var(--border); color: var(--text); border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; }

@media (max-width: 1024px) {
  .hero, .contacts, .hero-service { grid-template-columns: 1fr; }
  header { position: sticky; }
  nav ul { gap: 12px; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .navbar { flex-wrap: wrap; gap: 8px; align-items: center; }
  .burger { display: inline-flex; }
  nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin: 0 auto;
    background: rgba(15,17,21,0.97);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 22px 50px rgba(0,0,0,0.45);
    display: none;
    z-index: 11;
  }
  nav.open { display: block; }
  nav ul { width: 100%; flex-direction: column; gap: 12px; }
  nav a { font-size: 15px; }
  .actions { width: 100%; display: flex; gap: 8px; }
  .actions .btn, .actions .btn-secondary { flex: 1; justify-content: center; }
  .hero { padding: 48px 0 32px; grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { height: 320px; order: -1; }
  .hero::before, .hero::after { width: 100%; right: 0; top: -20px; bottom: -20px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 52px 0; }
  .portfolio-card img { height: 190px; }
  .contacts { gap: 16px; }
  .header-hero { height: 240px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .btn { width: 100%; }
  .btn-secondary { width: 100%; text-align: center; }
  .form .row { flex-direction: column; }
  nav { left: 0; right: 0; }
  .hero h1 { font-size: 26px; }
  .section { padding: 44px 0; }
  .badges { gap: 6px; }
  .badge { padding: 6px 10px; font-size: 12px; }
  .service-card h3 { font-size: 16px; }
  .service-card p { font-size: 13px; }
  .portfolio-card img { height: 170px; }
  .gallery { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .map-embed { height: 280px; }
}
