/* Дизайн-система v2 — демо-лендинги Молодечно */
:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --ink: #221D18;
  --text: #2E2A26;
  --muted: #7A7268;
  --accent: #C46A4A;
  --accent-dark: #A8553A;
  --line: #E8E1D8;
  --radius: 16px;
  --shadow: 0 10px 34px rgba(46, 42, 38, .10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.2; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

/* Reveal-анимации */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Шапка */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s;
}
header.scrolled {
  background: rgba(34, 29, 24, .88); backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: Georgia, serif; font-size: 21px; font-weight: 700; color: #fff; text-decoration: none; }
nav a { color: rgba(255,255,255,.75); text-decoration: none; margin-left: 28px; font-size: 15px; transition: color .2s; }
nav a:hover { color: #fff; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 14px 30px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: transform .2s, background .2s; border: none; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn.ghost:hover { background: rgba(255,255,255,.22); }
.btn.light { background: #fff; color: var(--accent-dark); }
.btn.light:hover { background: #F3EDE4; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background-size: cover; background-position: center; padding: 120px 0 80px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,19,15,.72) 0%, rgba(24,19,15,.55) 45%, rgba(24,19,15,.82) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero-tag {
  display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
  padding: 7px 18px; margin-bottom: 26px; backdrop-filter: blur(4px);
}
.hero h1 { font-size: clamp(36px, 5.6vw, 62px); color: #fff; margin-bottom: 20px; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,.85); max-width: 620px; margin-bottom: 38px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: 13px; letter-spacing: .1em; z-index: 2;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* Цифры */
.stats { background: var(--ink); padding: 44px 0; }
.stats .container { display: flex; justify-content: center; gap: clamp(30px, 7vw, 90px); flex-wrap: wrap; }
.stat { text-align: center; }
.stat .num { font-family: Georgia, serif; font-size: clamp(30px, 4vw, 44px); color: var(--accent); font-weight: 700; }
.stat .lbl { color: rgba(255,255,255,.65); font-size: 14px; margin-top: 4px; }

/* О нас */
.about .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 22px; }
.about p { color: var(--muted); margin-bottom: 16px; font-size: 16.5px; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Услуги */
.services h2, .gallery h2, .reviews h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 50px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(46,42,38,.14); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card .price { color: var(--accent); font-weight: 700; margin-top: 12px; display: block; font-size: 16px; }
.card .icon { font-size: 30px; display: block; margin-bottom: 14px; }

/* Галерея */
.gallery { background: #F3EDE4; }
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 240px); gap: 16px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery-grid img:first-child { grid-row: 1 / 3; }

/* Отзывы */
.rating-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.rating-hero .big { font-family: Georgia, serif; font-size: 64px; font-weight: 700; color: var(--accent); line-height: 1; }
.rating-hero .stars { color: #D9A441; font-size: 24px; letter-spacing: 4px; }
.rating-hero .cnt { color: var(--muted); font-size: 15px; }
.review .who { font-weight: 600; margin-top: 16px; font-size: 14px; color: var(--text); }

/* CTA-баннер */
.cta { background: var(--accent); text-align: center; }
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 32px; font-size: 17px; }

/* Контакты */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.contact-list .lbl { color: var(--muted); min-width: 120px; font-size: 14px; }
.contact-list a { color: var(--accent); text-decoration: none; font-weight: 600; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Футер */
footer { background: var(--ink); color: rgba(255,255,255,.55); padding: 40px 0; font-size: 13px; text-align: center; }
footer a { color: rgba(255,255,255,.8); text-decoration: none; }
footer a:hover { color: #fff; }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .about .container, .contacts-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 200px); }
  .gallery-grid img:first-child { grid-row: auto; }
  nav { display: none; }
  section { padding: 64px 0; }
}
