/* ============================================================
   podshibnik.uz — стили лендинга
   Палитра: синий + сталь/графит + белый
   Шрифты: Space Grotesk (заголовки) + Inter (текст)
   ============================================================ */

:root {
  /* Цвета */
  --graphite: #14181f;
  --graphite-2: #1d232d;
  --steel: #45526a;
  --steel-light: #828d9f;
  --silver: #e4e8ef;
  --silver-2: #f5f7fb;
  --white: #ffffff;

  /* Синий акцент */
  --blue: #1763d6;
  --blue-dark: #0f4aa8;
  --blue-soft: #e9f1fd;
  --blue-ring: rgba(23, 99, 214, .16);

  /* Текст */
  --ink: #14181f;
  --ink-soft: #525c6c;

  /* Прочее */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 16px rgba(20, 24, 31, .06);
  --shadow: 0 14px 36px rgba(20, 24, 31, .10);
  --shadow-lg: 0 28px 64px rgba(18, 38, 80, .18);
  --maxw: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Шрифты */
  --font-head: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* страховка от горизонтальной прокрутки на мобильных */
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 14px;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.14; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .005em;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--accent { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(23, 99, 214, .26); }
.btn--accent:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(23, 99, 214, .34); }
.btn--ghost { background: transparent; color: var(--graphite); border-color: var(--silver); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--silver);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); }
.logo__mark { color: var(--blue); display: inline-flex; }
.logo__balls circle { fill: var(--blue); }
.logo__text { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; color: var(--graphite); }
.logo__text strong { color: var(--blue); font-weight: 700; }
.logo--light .logo__text { color: #fff; }
.logo--light .logo__mark { color: #6aa3f5; }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav__link {
  font-family: var(--font-body); font-weight: 500;
  font-size: .98rem; color: var(--steel); padding: 6px 0; position: relative; transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--blue); transition: width .25s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--graphite); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

/* Переключатель языка */
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--silver); border-radius: 999px; background: var(--silver-2); }
.lang__btn {
  font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: .03em;
  color: var(--steel); background: transparent; border: 0; cursor: pointer;
  padding: 6px 12px; border-radius: 999px; transition: background .2s, color .2s;
}
.lang__btn.is-active { background: var(--blue); color: #fff; }
.lang__btn:not(.is-active):hover { color: var(--graphite); }

.burger {
  display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  align-items: center; justify-content: center; background: transparent; border: 1px solid var(--silver);
  border-radius: var(--radius-sm); cursor: pointer; margin-left: auto;
}
.burger span { width: 20px; height: 2px; background: var(--graphite); transition: transform .3s var(--ease), opacity .2s; }
.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; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 90% -10%, rgba(23, 99, 214, .12), transparent 60%),
    linear-gradient(180deg, var(--silver-2), var(--white));
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--silver) 1px, transparent 1px), linear-gradient(90deg, var(--silver) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .4; mask-image: radial-gradient(900px 520px at 75% 35%, #000, transparent 75%);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: clamp(48px, 7vw, 96px) 0;
}
.hero__title { font-size: clamp(2.4rem, 5.6vw, 4.2rem); color: var(--graphite); margin-bottom: 20px; overflow-wrap: break-word; }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-soft); max-width: 40ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.hero__badges li { position: relative; padding-left: 26px; color: var(--steel); font-size: .95rem; font-weight: 500; }
.hero__badges li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue);
}
.hero__badges li::after {
  content: ""; position: absolute; left: 6px; top: calc(50% - 1px); transform: translateY(-50%) rotate(45deg);
  width: 4px; height: 8px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
}

.hero__visual { position: relative; }
.hero__photo {
  position: relative; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.6);
  aspect-ratio: 4 / 3.4;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20,24,31,.32)); }
.hero__chip {
  position: absolute; left: -14px; bottom: 26px; z-index: 2;
  background: #fff; border-radius: 14px; padding: 14px 20px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.15;
  border: 1px solid var(--silver);
}
.hero__chip-num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--blue); }
.hero__chip-label { font-size: .82rem; color: var(--ink-soft); }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--graphite); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 44px 24px; }
.stat { text-align: center; padding: 6px 8px; border-left: 1px solid rgba(255,255,255,.08); }
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1; }
.stat__num span { color: #6aa3f5; }
.stat__label { color: #aeb7c5; font-size: .92rem; margin-top: 8px; }

/* ============================================================
   SECTIONS (general)
   ============================================================ */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--silver-2); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); color: var(--graphite); }
.section__sub { color: var(--ink-soft); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.cat-card {
  background: var(--white); border: 1px solid var(--silver); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s, border-color .28s;
  display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.cat-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--silver); }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-card:hover .cat-card__media img { transform: scale(1.06); }
.cat-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20,24,31,.28)); }
.cat-card__icon {
  position: absolute; left: 18px; bottom: -22px; z-index: 2;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: #fff; color: var(--blue); border-radius: 13px; box-shadow: var(--shadow);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.cat-card__icon svg { width: 28px; height: 28px; }
.cat-card:hover .cat-card__icon { background: var(--blue); color: #fff; }

.cat-card__body { padding: 32px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.cat-card__title { font-size: 1.25rem; color: var(--graphite); margin-bottom: 8px; }
.cat-card__desc { font-size: .92rem; color: var(--ink-soft); margin-bottom: 16px; }
.cat-card__list { list-style: none; border-top: 1px solid var(--silver-2); padding-top: 6px; }
.cat-card__list li {
  position: relative; padding: 8px 0 8px 20px; color: var(--steel); font-size: .93rem; border-top: 1px solid var(--silver-2);
}
.cat-card__list li:first-child { border-top: 0; }
.cat-card__list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; transform: translateY(-50%); }

/* ---------- Advantages ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv { background: var(--white); border: 1px solid var(--silver); border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.adv:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.adv__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--graphite); color: #6aa3f5; margin-bottom: 18px; }
.adv__icon svg { width: 28px; height: 28px; }
.adv h3 { font-size: 1.18rem; color: var(--graphite); margin-bottom: 10px; }
.adv p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about__text p { color: var(--ink-soft); font-size: 1.05rem; margin: 14px 0 22px; }
.about__list { list-style: none; margin-bottom: 28px; }
.about__list li { position: relative; padding: 8px 0 8px 30px; color: var(--graphite); font-weight: 500; }
.about__list li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 16px;
  background: var(--blue-soft); border: 2px solid var(--blue); border-radius: 50%;
}
.about__visual { position: relative; }
.about__photo { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute; right: -10px; bottom: 26px;
  background: linear-gradient(155deg, var(--blue), var(--blue-dark)); color: #fff;
  border-radius: 16px; padding: 20px 22px; max-width: 210px; box-shadow: var(--shadow-lg);
}
.about__badge-num { display: block; font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.about__badge span:last-child { font-size: .85rem; color: rgba(255,255,255,.88); }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: start; }
.contacts__list { list-style: none; margin-top: 30px; display: grid; gap: 18px; }
.contacts__list li { display: flex; align-items: center; gap: 16px; }
.contacts__ico { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--silver); border-radius: 12px; color: var(--blue); box-shadow: var(--shadow-sm); }
.contacts__ico svg { width: 22px; height: 22px; }
.contacts__label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--steel-light); }
.contacts__list a, .contacts__list span:not(.contacts__label) { font-weight: 600; color: var(--graphite); }
.contacts__list a:hover { color: var(--blue); }

/* ---------- Form ---------- */
.form { background: var(--white); border: 1px solid var(--silver); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: block; margin-bottom: 16px; }
.form__field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--steel); margin-bottom: 7px; }
.form__field input, .form__field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 12px 14px;
  border: 1px solid var(--silver); border-radius: var(--radius-sm); background: var(--silver-2);
  transition: border-color .2s, box-shadow .2s, background .2s; resize: vertical;
}
.form__field input:focus, .form__field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px var(--blue-ring);
}
.form__field input.is-error, .form__field textarea.is-error { border-color: #e23b2e; background: #fff5f4; }
.form__submit { width: 100%; margin-top: 4px; }
.form__note { margin-top: 14px; font-size: .92rem; min-height: 1.2em; }
.form__note.is-ok { color: #1f9254; }
.form__note.is-err { color: #e23b2e; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--graphite); color: #c3cad3; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 60px 24px 40px; }
.footer__brand p { margin: 16px 0 18px; max-width: 38ch; font-size: .96rem; }
.footer__col h4 { font-family: var(--font-head); color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; color: #aab2bd; padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: #6aa3f5; }
.footer__social { display: flex; gap: 12px; }
.footer__soc {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px;
  background: rgba(255,255,255,.06); color: #fff; transition: background .2s, transform .2s;
}
.footer__soc svg { width: 22px; height: 22px; }
.footer__soc:hover { background: var(--blue); transform: translateY(-2px); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .88rem; color: #8b939e; }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .header__phone { display: none; }
  .lang { margin-left: auto; }
  .burger { display: flex; margin-left: 12px; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--silver); padding: 8px 24px 18px;
    transform: translateY(-130%); transition: transform .3s var(--ease); box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--silver-2); font-size: 1.05rem; }

  .hero__inner { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .hero__actions, .hero__badges { justify-content: flex-start; }
  .hero__visual { width: 100%; margin: 0; }
  .hero__photo { aspect-ratio: 16 / 11; }
  .hero__chip { left: auto; right: 16px; bottom: 16px; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat:nth-child(odd) { border-left: 0; }

  .about, .contacts { grid-template-columns: 1fr; gap: 40px; }
  .about__visual { max-width: 480px; }
}

@media (max-width: 620px) {
  .stats .stats__grid{
    padding: 20px 0;
  }
  .container { padding: 0 18px; }
  .cat-grid, .adv-grid { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }

  /* Hero на телефоне */
  .hero__inner { padding: 34px 15px 44px; gap: 26px; }
  .hero__title { font-size: clamp(1.95rem, 8.4vw, 2.6rem); margin-bottom: 16px; }
  .hero__lead { font-size: 1rem; margin-bottom: 24px; }
  .hero__actions { width: 100%; flex-direction: column; gap: 12px; }
  .hero__actions .btn { width: 100%; }
  .hero__badges { gap: 8px 14px; margin-top: 24px; }
  .hero__badges li { font-size: .9rem; }
  .hero__photo { aspect-ratio: 16 / 12; }
  .hero__chip { right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 12px; }
  .hero__chip-num { font-size: 1.4rem; }
}
