/* ═══════════════════════════════════════════════════════
   ООО «ЭС-Тренд» — сайт-визитка
   Современный стиль · светлая палитра
   ═══════════════════════════════════════════════════════ */

/* ── Дизайн-токены ────────────────────────────────────── */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #101828;
  --text-soft: #475467;
  --muted: #667085;
  --line: #e4e7ec;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: #eff4ff;
  --accent: #06b6d4;
  --grad: linear-gradient(120deg, #2563eb 0%, #06b6d4 100%);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 8px 24px -8px rgba(16, 24, 40, .14);
  --shadow-lg: 0 24px 48px -16px rgba(16, 24, 40, .18);
  --radius: 16px;
  --container: 1160px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ── База ─────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Шапка ────────────────────────────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}

.header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand__logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .5px;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 18px; }
.brand__text small { color: var(--muted); font-size: 11.5px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--primary); background: var(--primary-soft); }

.nav__cta {
  margin-left: 8px;
  background: var(--primary);
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}
.nav__cta:hover { background: var(--primary-strong) !important; }

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .25s, opacity .25s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 150px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(6, 182, 212, .14), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(37, 99, 235, .12), transparent 60%),
    var(--bg);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 56px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero__tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.hero__subtitle {
  max-width: 540px;
  color: var(--text-soft);
  font-size: 18px;
  margin-bottom: 32px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14.5px;
}
.hero__facts strong { display: block; color: var(--text); font-size: 17px; }

/* Визуальная часть hero */
.hero__visual {
  position: relative;
  min-height: 400px;
}

.hero__blob {
  position: absolute;
  inset: 8% 4%;
  background: var(--grad);
  border-radius: 38% 62% 55% 45% / 45% 42% 58% 55%;
  opacity: .9;
  filter: blur(0);
  animation: blob 12s ease-in-out infinite alternate;
  box-shadow: var(--shadow-lg);
}

@keyframes blob {
  0%   { border-radius: 38% 62% 55% 45% / 45% 42% 58% 55%; transform: rotate(0deg); }
  100% { border-radius: 55% 45% 42% 58% / 55% 45% 60% 40%; transform: rotate(6deg); }
}

.card-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  line-height: 1.3;
}
.card-float strong { display: block; font-size: 14.5px; }
.card-float small { color: var(--muted); font-size: 12.5px; }
.card-float__ico { font-size: 26px; }

.card-float--main   { top: 18%; left: 12%; animation: floaty 5s ease-in-out infinite; }
.card-float--second { top: 55%; left: 2%;  animation: floaty 6s .6s ease-in-out infinite; }
.card-float--third  { top: 66%; right: 2%; animation: floaty 5.5s 1.1s ease-in-out infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ── Секции ───────────────────────────────────────────── */
.section { padding: 88px 0; }

.section__head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section__kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section__title { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.015em; }

/* ── О компании ───────────────────────────────────────── */
.about { background: var(--surface); border-block: 1px solid var(--line); }

.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about__card,
.service,
.benefit,
.contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.about__card:hover,
.service:hover,
.benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #c7d2fe;
}

.about__card h3 { font-size: 19px; margin-bottom: 12px; }
.about__card p { color: var(--text-soft); margin-bottom: 0; }

.about__list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
}
.about__list li { margin-bottom: 8px; }
.about__list li:last-child { margin-bottom: 0; }

/* ── Услуги ───────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service { position: relative; }
.service__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  font-size: 24px;
  margin-bottom: 18px;
}
.service h3 { font-size: 18px; margin-bottom: 10px; }
.service p { color: var(--text-soft); font-size: 15px; margin: 0; }

/* ── Преимущества ─────────────────────────────────────── */
.benefits { background: var(--bg); }

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit__num {
  display: inline-block;
  font-weight: 800;
  font-size: 26px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.benefit h3 { font-size: 17.5px; margin-bottom: 10px; }
.benefit p { color: var(--text-soft); font-size: 14.5px; margin: 0; }

/* ── Заявка ───────────────────────────────────────────── */
.request { background: var(--surface); border-block: 1px solid var(--line); }

.request__card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  padding: 48px;
  background: var(--grad);
  border-radius: 24px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.request__card .section__kicker { color: #dbeafe; }
.request__card .section__title { color: #fff; }
.request__card p { color: #e0f2fe; margin-bottom: 0; }

.request__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: rgba(255, 255, 255, .97);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13.5px; font-weight: 600; color: var(--text-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  text-align: center;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .55);
}
.btn--primary:hover { background: var(--primary-strong); transform: translateY(-1px); }

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn--block { width: 100%; }

.request__hint {
  min-height: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-strong);
  margin: 0;
}
.request__hint.error { color: #dc2626; }

/* ── Контакты ─────────────────────────────────────────── */
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text);
}
.contact:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.contact__ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  font-size: 20px;
  flex-shrink: 0;
}

.contact strong { display: block; font-size: 15.5px; margin-bottom: 2px; }
.contact div span { color: var(--text-soft); font-size: 14px; }

/* ── Подвал ───────────────────────────────────────────── */
.footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 48px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand strong { color: #fff; font-size: 17px; }
.footer__brand p { margin: 2px 0 0; font-size: 13.5px; color: #94a3b8; }

.footer__requisites p,
.footer__note p { margin: 0 0 6px; font-size: 13.5px; }
.footer__requisites { font-size: 13.5px; }
.footer__note { font-size: 13.5px; color: #94a3b8; }

/* ── Анимация появления ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Адаптивность ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .contacts__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { min-height: 320px; max-width: 480px; margin-inline: auto; }
  .request__card { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .header__inner { height: 64px; }
  html { scroll-padding-top: 76px; }

  .burger { display: flex; }

  .nav {
    position: fixed;
    inset: 64px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform .3s ease;
  }
  .nav.open { transform: none; }
  .nav a { padding: 13px 16px; font-size: 16px; }
  .nav__cta { margin: 8px 0 0; text-align: center; }

  .hero { padding: 120px 0 64px; }
  .hero__facts { gap: 12px 20px; }
  .hero__visual { min-height: 260px; }
  .card-float { padding: 10px 14px; }
  .card-float--main   { top: 14%; left: 6%; }
  .card-float--second { top: 55%; left: -2%; }
  .card-float--third  { top: 68%; right: -2%; }

  .section { padding: 64px 0; }
  .section__head { margin-bottom: 36px; }

  .services__grid,
  .benefits__grid,
  .contacts__grid { grid-template-columns: 1fr; }

  .request__card { padding: 24px; }
  .request__form { padding: 22px; }

  .footer__inner { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}