/*
  GENERAL ONEPAGE STATIC TEMPLATE

  Главные настройки дизайна находятся в :root.
  Меняете переменные — меняется весь сайт.
*/

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --soft: #eef4ff;
  --text: #172033;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #dbe3ef;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius: 28px;
  --container: 1120px;
}

/*
  ГОТОВЫЕ ПАЛИТРЫ

  Бежево-премиальная:
  --bg: #fbf5ec; --surface: #ffffff; --soft: #f2e4d2;
  --text: #2d241d; --muted: #7b6b5d;
  --accent: #b7793f; --accent-dark: #8f5a2d; --border: #e9d7c2;

  Зелёная:
  --bg: #f5fbf7; --surface: #ffffff; --soft: #e4f5ea;
  --text: #16251b; --muted: #66756b;
  --accent: #24935a; --accent-dark: #1d7347; --border: #cfe8d8;

  Тёмная:
  --bg: #0f172a; --surface: #111c33; --soft: #18243d;
  --text: #f8fafc; --muted: #b6c2d1;
  --accent: #60a5fa; --accent-dark: #3b82f6; --border: #26344d;
*/

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 76px 0; }
.section-soft { background: var(--soft); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 20px; font-weight: 900; letter-spacing: -0.4px; }
.logo span { color: var(--accent); }
.menu { display: flex; gap: 22px; color: var(--muted); font-size: 14px; font-weight: 700; }
.menu a:hover { color: var(--accent); }

.hero { padding-top: 84px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.badge, .section-label {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}
.badge { margin-bottom: 22px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -2px; }
h2 { margin: 12px 0 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -1.2px; }
h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; }
.hero-text { max-width: 580px; margin: 24px 0 32px; color: var(--muted); font-size: 18px; }
.hero-media {
  min-height: 520px;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(135deg, var(--soft), var(--surface));
  box-shadow: var(--shadow);
}
.hero-media img, .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  min-height: inherit;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  color: var(--accent-dark);
  font-weight: 900;
}

.buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: 0.2s ease;
}
.btn-primary { background: var(--accent); color: #ffffff; box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-light { background: var(--surface); border-color: var(--border); color: var(--accent-dark); }
.btn-light:hover { background: var(--soft); }

.section-title { max-width: 720px; margin-bottom: 34px; }
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title.center .section-label { margin-left: auto; margin-right: auto; }
.section-title p, .text-block p, .contact-description, .cta-box p { color: var(--muted); font-size: 17px; }
.text-block p { margin-top: 0; }
.text-block p:last-child { margin-bottom: 0; }
.two-columns { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
.card-icon {
  width: 46px; height: 46px; margin-bottom: 22px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--soft); color: var(--accent-dark); font-weight: 900;
}
.card p { margin: 0; color: var(--muted); }

.benefits-list { display: grid; gap: 14px; }
.benefit {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}
.benefit strong { font-size: 18px; }
.benefit span { color: var(--muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.cta-box {
  padding: 58px 28px;
  border-radius: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}
.cta-box h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.cta-box p { max-width: 620px; margin: 18px auto 28px; }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 42px; align-items: start; }
.contact-card {
  display: grid;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
.contact-card a {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 900;
}
.address { margin-top: 12px; color: var(--muted); }

.footer { padding: 34px 0; border-top: 1px solid var(--border); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--accent-dark); font-weight: 900; }

@media (max-width: 920px) {
  .menu { display: none; }
  .section { padding: 56px 0; }
  .hero-grid, .two-columns, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 420px; }
  .cards-grid, .gallery-grid { grid-template-columns: 1fr; }
  .benefit { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 520px) {
  .container { width: min(var(--container), calc(100% - 22px)); }
  .header-inner { min-height: 64px; }
  .hero { padding-top: 48px; }
  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  .hero-text { font-size: 16px; }
  .btn { width: 100%; }
  .hero-media, .gallery-item { min-height: 320px; }
  .card, .contact-card { padding: 22px; }
  .cta-box { padding: 38px 18px; }
}