:root {
  --bg: #ffffff;
  --bg-soft: #f7f5ee;
  --card: #ffffff;
  --card-border: rgba(16, 18, 22, 0.1);
  --ink: #101216;
  --text: #101216;
  --muted: #575d68;
  --accent: #ffc21a;
  --accent-deep: #eda400;
  --accent-text: #9c7400;
  --shadow: 0 16px 40px rgba(16, 18, 22, 0.1);
  --radius: 18px;
  --container: 1160px;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: "Russo One", "Manrope", sans-serif;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0;
}

.accent {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  padding: 0.05em 0.25em;
  border-radius: 10px;
  transform: rotate(-1.2deg);
  box-shadow: 0 8px 22px rgba(255, 194, 26, 0.45);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn svg { width: 20px; height: 20px; fill: currentColor; }

.btn--primary {
  background: linear-gradient(135deg, #ffd23f, var(--accent));
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(237, 164, 0, 0.4);
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(237, 164, 0, 0.5); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid rgba(16, 18, 22, 0.22);
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--sm { padding: 11px 22px; font-size: 15px; }

.btn--vk {
  background: #0077ff;
  color: #fff;
  padding: 13px 24px;
}

.btn--vk svg { width: 22px; height: 22px; }
.btn--vk:hover { background: #0a86ff; transform: translateY(-2px); }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--card-border);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Russo One", sans-serif;
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.02em;
}

.logo__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(16, 18, 22, 0.28);
}

.logo__text b {
  background: var(--accent);
  color: var(--ink);
  padding: 2px 9px 4px;
  border-radius: 8px;
  margin-left: 3px;
  display: inline-block;
  transform: rotate(-2deg);
}

.nav { display: flex; gap: 32px; }

.nav__link {
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 18px; }

.header__phone {
  font-weight: 800;
  font-size: 16px;
  transition: color 0.2s ease;
}

.header__phone:hover { color: var(--accent-text); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.burger span {
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(255, 194, 26, 0.16), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(16, 18, 22, 0.05), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 18, 22, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 18, 22, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero__content { max-width: 640px; min-width: 0; }

.hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero__brand img {
  width: 100%;
  max-width: min(100%, 540px);
  height: auto;
  filter: drop-shadow(0 20px 34px rgba(16, 18, 22, 0.22));
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero__glow--1 {
  width: 420px;
  height: 420px;
  right: -120px;
  top: 8%;
  background: rgba(255, 194, 26, 0.2);
}

.hero__glow--2 {
  width: 360px;
  height: 360px;
  left: -140px;
  bottom: -80px;
  background: rgba(16, 18, 22, 0.07);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 28px;
}

.hero__badge svg { width: 16px; height: 16px; fill: currentColor; }

.hero__title {
  font-size: clamp(30px, 5vw, 54px);
  margin-bottom: 22px;
}

.hero__subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 38px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  list-style: none;
}

.hero__facts li { display: flex; flex-direction: column; gap: 2px; }

.hero__facts b {
  font-family: "Russo One", sans-serif;
  font-weight: 400;
  font-size: 25px;
  color: var(--ink);
  background: linear-gradient(transparent 64%, var(--accent) 64%);
  padding: 0 4px;
  margin: 0 -4px;
  width: fit-content;
}

.hero__facts span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section--alt { background: var(--bg-soft); }

.section__head { max-width: 640px; margin-bottom: 56px; }

.section__title {
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: 14px;
}

.section__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin-top: 18px;
  border-radius: 4px;
  background: var(--accent);
}

.section__subtitle { color: var(--muted); font-size: 17px; }

/* ---------- Services ---------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 18px rgba(237, 164, 0, 0.35);
}

.card__icon svg { width: 28px; height: 28px; fill: var(--ink); }

.card__title { font-size: 19px; margin-bottom: 12px; }

.card__text { color: var(--muted); font-size: 15px; margin-bottom: 26px; flex-grow: 1; }

.card__link {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  transition: background-color 0.2s ease;
  width: fit-content;
}

.card__link:hover { background: var(--accent); text-decoration-color: transparent; }

/* ---------- Advantages ---------- */

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.advantage:hover { transform: translateY(-6px); border-color: var(--ink); box-shadow: var(--shadow); }

.advantage__num {
  font-family: "Russo One", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--accent);
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 18px;
  transform: rotate(-2deg);
}

.advantage h3 { font-size: 17px; margin-bottom: 10px; }

.advantage p { color: var(--muted); font-size: 14.5px; }

/* ---------- Contacts ---------- */

.contacts {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: stretch;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contacts__item h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  margin-bottom: 8px;
}

.contacts__item p { font-size: 17px; }

.contacts__phone {
  display: block;
  font-weight: 800;
  font-size: 22px;
  transition: color 0.2s ease;
  margin-bottom: 4px;
}

.contacts__phone:hover { color: var(--accent-text); }

.contacts__map {
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.contacts__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */

.footer {
  margin-top: 40px;
  padding: 36px 0;
  background: var(--ink);
  color: #fff;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.logo--footer .logo__icon { width: 32px; height: 32px; box-shadow: none; }
.logo--footer { font-size: 17px; color: #fff; }

.footer__copy { color: #a3a9b3; font-size: 14px; text-align: center; }

.footer__phone { font-weight: 800; color: var(--accent); transition: color 0.2s ease; }
.footer__phone:hover { color: #fff; }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .advantage { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 992px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .advantages__grid { grid-template-columns: 1fr 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .contacts__map { min-height: 340px; }
  .header__phone { display: none; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero__brand { order: -1; }
  .hero__brand img { max-width: min(100%, 400px); }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--card-border);
    padding: 12px 20px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }

  .nav.is-open { transform: none; opacity: 1; visibility: visible; }

  .nav__link { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--card-border); }
  .nav__link:last-child { border-bottom: none; }
  .nav__link::after { display: none; }

  .burger { display: flex; }
  .header .btn--sm { display: none; }

  .hero { min-height: auto; }
  .hero__title { font-size: clamp(25px, 7.5vw, 40px); }
  .hero__cta .btn { width: 100%; }
  .hero__facts { gap: 24px; }
  .hero__facts b { font-size: 21px; }

  .services__grid, .advantages__grid { grid-template-columns: 1fr; }
  .contacts__map { min-height: 280px; }

  .footer__inner { flex-direction: column; text-align: center; }
}
