:root {
  --bg: #ebe4d8;
  --bg2: #f7f3ec;
  --card: #fffcf8;
  --text: #2a241c;
  --muted: rgba(42, 36, 28, 0.66);
  --muted2: rgba(42, 36, 28, 0.46);
  --border: rgba(42, 36, 28, 0.11);
  --border-strong: rgba(42, 36, 28, 0.17);
  --brown: #8b6f4e;
  --brown-hover: #7a6248;
  --brown-dark: #6d5742;
  --accent: #a8432c;
  --accent-soft: rgba(168, 67, 44, 0.11);
  --accent-glow: rgba(168, 67, 44, 0.22);
  --header-bg: #3d3429;
  --radius: 14px;
  --radius2: 22px;
  --radius-pill: 999px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 12px 40px rgba(42, 36, 28, 0.08);
  --shadow-lg: 0 24px 56px rgba(42, 36, 28, 0.12);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  background:
    radial-gradient(ellipse 90% 60% at 12% 0%, rgba(139, 111, 78, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 92% 8%, rgba(168, 67, 44, 0.08), transparent 50%),
    linear-gradient(165deg, var(--bg2) 0%, var(--bg) 48%, #e5ddd0 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent-soft); color: var(--text); }
a { color: inherit; text-decoration: none; }

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 16px) 20px 0;
}

.site-header__inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 252, 248, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.site-header__icon {
  width: 40px;
  height: auto;
  aspect-ratio: 892 / 937;
  object-fit: contain;
}

.site-header__name {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100dvh - 72px);
  padding: clamp(20px, 4vw, 40px) clamp(18px, 4vw, 32px) clamp(28px, 5vw, 48px);
}

.glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(72px);
  z-index: 0;
}

.glow--1 {
  top: 18%;
  right: -6%;
  width: min(48vw, 380px);
  height: min(48vw, 380px);
  background: radial-gradient(circle, rgba(139, 111, 78, 0.18) 0%, transparent 68%);
  animation: drift 12s ease-in-out infinite;
}

.glow--2 {
  bottom: 10%;
  left: -8%;
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  background: radial-gradient(circle, rgba(168, 67, 44, 0.1) 0%, transparent 68%);
  animation: drift 14s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(16px, -12px); }
}

.hero {
  display: grid;
  width: min(960px, 100%);
  margin-top: clamp(16px, 3vw, 28px);
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { grid-template-columns: 1fr 1.05fr; min-height: 420px; }
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 48px) clamp(24px, 4vw, 40px);
  text-align: left;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(139, 111, 78, 0.28);
  background: rgba(139, 111, 78, 0.1);
  color: var(--brown-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}

.title {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.5vw + 0.5rem, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lead {
  margin: 0 0 22px;
  max-width: 36ch;
  color: var(--muted);
  font-size: clamp(1rem, 1vw + 0.85rem, 1.1rem);
}

.materials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.materials__item {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 600;
  color: var(--brown-dark);
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active { transform: translateY(0); }

.btn--primary {
  border-color: var(--brown);
  background: var(--brown);
  color: #fff;
  box-shadow: 0 8px 24px rgba(107, 87, 66, 0.32);
}

.btn--ghost { background: rgba(255, 255, 255, 0.7); color: var(--text); }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--primary:hover {
    background: var(--brown-hover);
    border-color: var(--brown-hover);
    box-shadow: 0 12px 32px rgba(107, 87, 66, 0.38);
  }
  .btn--ghost:hover { border-color: var(--border-strong); background: #fff; }
}

.hero__visual {
  position: relative;
  min-height: 220px;
  background: var(--header-bg);
}

@media (min-width: 768px) { .hero__visual { min-height: auto; } }

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(61, 52, 41, 0.55) 0%, rgba(61, 52, 41, 0.15) 45%, transparent 70%);
  pointer-events: none;
}

.hero__caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  margin: 0;
  max-width: 16ch;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.contacts { width: min(960px, 100%); margin-top: clamp(20px, 3vw, 28px); }

.contacts__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted2);
  text-align: center;
}

.contact-grid {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

.contact-card {
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 252, 248, 0.85);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
  .contact-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
  }
}

.contact-card__region {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card__region--kz {
  background: rgba(139, 111, 78, 0.14);
  border: 1px solid rgba(139, 111, 78, 0.28);
  color: var(--brown-dark);
}

.contact-card__region--rf {
  background: var(--accent-soft);
  border: 1px solid rgba(168, 67, 44, 0.25);
  color: var(--accent);
}

.contact-card__phone {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .contact-card__phone:hover { color: var(--accent); }
}

.contact-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 14px;
}

.contact-extra a {
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .contact-extra a:hover { color: var(--accent); }
}

.footer {
  margin-top: auto;
  padding-top: clamp(28px, 4vw, 40px);
  text-align: center;
  font-size: 13px;
  color: var(--muted2);
}

.footer strong { color: var(--text); font-weight: 700; }
