/* ===== Brand colors: change these to restyle the whole page ===== */
:root {
  --navy: #0e1b3d;
  --accent: #ffb627;
  --accent-dark: #f0a000;
  --blue: #2f6bff;
  --text: #1c2540;
  --muted: #5b6685;
  --line: #e6e9f2;
  --bg: #ffffff;
  --tint: #f6f8fc;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(14, 27, 61, .08);
  --header-h: 72px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 40px); }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 20px; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--primary { background: var(--accent); color: var(--navy); box-shadow: 0 8px 20px rgba(255, 182, 39, .35); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--light { background: #fff; color: var(--navy); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--navy); }
.logo__mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: var(--accent); font-size: 18px;
}
.logo__text b { color: var(--accent-dark); font-weight: 800; }
.logo--light { color: #fff; }
.logo--light .logo__mark { background: rgba(255, 255, 255, .1); }
.logo--light .logo__text b { color: var(--accent); }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-weight: 600; font-size: 15px; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--navy); border-bottom-color: var(--accent); }

.lang { display: flex; padding: 3px; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); }
.lang button {
  padding: 5px 10px; border: 0; border-radius: 7px; background: transparent;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.lang button:hover { color: var(--navy); }
.lang button.is-active { background: var(--navy); color: #fff; }

.menu-btn {
  display: none; width: 44px; height: 44px; flex: none; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-size: 20px; place-items: center; cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  display: grid; place-items: center; text-align: center; color: #fff;
  padding: 72px 0; background: var(--navy);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 27, 61, .78), rgba(14, 27, 61, .62) 50%, rgba(14, 27, 61, .85));
}
.hero__badge {
  display: inline-block; padding: 7px 16px; margin-bottom: 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  font-size: 14px; font-weight: 600;
}
.hero h1 {
  color: #fff; font-size: clamp(26px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.01em;
  line-height: 1.15; max-width: 940px; margin-inline: auto; text-wrap: balance;
}
.hero h1 span { color: var(--accent); }
.hero__lead { max-width: 680px; margin: 20px auto 0; font-size: clamp(16px, 2vw, 20px); color: rgba(255, 255, 255, .88); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.hero__chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 880px; margin: 56px auto 0; }
.hero__chips li {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 12px; border-radius: 12px; font-weight: 600; font-size: 15px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero__chips .icon { color: var(--accent); }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; max-width: 700px; margin: 0 auto 52px; }
.section__head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.01em; }
.section__head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ===== Why-us cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--c); color: #fff; font-size: 20px; margin-bottom: 20px;
}
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ===== Stats ===== */
.stats { padding: 56px 0; background: linear-gradient(120deg, #e9f0ff, #f5f0ff 55%, #fff4e0); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 30px 16px; text-align: center; background: rgba(255, 255, 255, .8); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat b { display: block; font-size: clamp(32px, 4vw, 44px); font-weight: 800; color: var(--blue); line-height: 1.1; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-weight: 600; font-size: 15px; }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: #dfe5f1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 28px 16px 12px;
  color: #fff; font-weight: 700; font-size: 15px;
  background: linear-gradient(transparent, rgba(14, 27, 61, .8));
}

/* ===== Testimonials ===== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  margin: 0; padding: 30px; display: flex; flex-direction: column; gap: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.review p { font-size: 16px; color: var(--text); }
.review footer { margin-top: auto; display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.review b { display: block; color: var(--navy); }
.review small { color: var(--muted); font-size: 13.5px; }
.avatar {
  width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #fff; font-weight: 700; font-size: 15px;
}

/* ===== FAQ ===== */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* ===== CTA ===== */
.cta { padding: 96px 0; text-align: center; color: #fff; background: radial-gradient(circle at 20% 0%, #1d3a86, var(--navy) 60%); }
.cta h2 { color: #fff; font-size: clamp(28px, 4.2vw, 42px); font-weight: 800; }
.cta p { margin: 16px auto 0; max-width: 620px; color: rgba(255, 255, 255, .82); font-size: 18px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

/* ===== Footer ===== */
.footer { background: #0a142e; color: rgba(255, 255, 255, .72); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; padding: 64px 0 48px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer__about { margin-top: 18px; max-width: 300px; }
.footer li + li { margin-top: 10px; }
.footer a:hover { color: #fff; }
.footer__contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contacts .icon { margin-top: 3px; color: var(--accent); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #fff; transition: background .15s ease;
}
.socials a:hover { background: var(--accent); color: var(--navy); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px;
}

/* ===== Floating Telegram button ===== */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #2aabee; color: #fff; font-size: 20px;
  box-shadow: 0 10px 24px rgba(42, 171, 238, .45); transition: transform .15s ease;
}
.fab:hover { transform: scale(1.08); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .cards, .reviews { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .menu-btn { display: grid; }
  .lang { margin-left: auto; }
  .header__inner { gap: 12px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 20px 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  .logo { font-size: 17px; gap: 8px; white-space: nowrap; }
  .logo__mark { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
  .lang button { padding: 5px 6px; font-size: 12px; }
  .header__inner { gap: 8px; }
  .menu-btn { width: 40px; height: 40px; }
  .section, .cta { padding: 64px 0; }
  .section__head { margin-bottom: 36px; }
  .hero { padding: 56px 0; }
  .hero__chips { grid-template-columns: repeat(2, 1fr); margin-top: 40px; gap: 10px; }
  .hero__chips li { font-size: 14px; padding: 11px 8px; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  .cards, .reviews { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 36px; }
}

@media (max-width: 350px) {
  .header .logo__mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
