/* ==========================================================================
   Impulse — main.css
   ========================================================================== */

:root{
  --green: #60C332;
  --green-dark: #4EA226;
  --ink: #0B0F0C;
  --ink-soft: #3B4A3F;
  --paper: #FFFFFF;
  --paper-soft: #F4F8F3;
  --line: #E4EAE2;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(11,15,12,0.08);
  --container: 1180px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -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{ margin:0 0 .5em; font-weight:800; line-height:1.15; }
p{ margin:0 0 1em; color: var(--ink-soft); }

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

.eyebrow{
  display:inline-block;
  font-size:13px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color: var(--green-dark);
  margin-bottom:16px;
}
.eyebrow--light{ color: var(--green); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight:700;
  font-size:15px;
  border: 2px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn--primary{ background: var(--green); color:#08130A; }
.btn--primary:hover{ background: var(--green-dark); }
.btn--ghost{ background: transparent; border-color: rgba(255,255,255,.35); color: inherit; }
.btn--lg{ padding:16px 30px; font-size:16px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  height:78px;
}
.site-header__logo img{ height:40px; width:auto; }
.site-header__nav ul{ display:flex; gap:28px; }
.site-header__nav a{ font-weight:600; font-size:14.5px; color: var(--ink); }
.site-header__nav a:hover{ color: var(--green-dark); }
.site-header__actions{ display:flex; align-items:center; gap:16px; }
.site-header__phone{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:14.5px; }
.site-header__phone svg{ width:18px; height:18px; color: var(--green-dark); }
.site-header__cta{ white-space:nowrap; padding:10px 20px; }
.site-header__burger{
  display:none;
  flex-direction:column;
  gap:5px;
  width:34px; height:34px;
  align-items:center; justify-content:center;
  background:none; border:none; cursor:pointer;
}
.site-header__burger span{ width:22px; height:2px; background: var(--ink); border-radius:2px; }

.mobile-nav{
  display:none;
  position:fixed; inset:78px 0 0 0;
  background: var(--paper);
  z-index:49;
  padding:32px 24px;
  overflow-y:auto;
}
.mobile-nav.is-open{ display:block; }
.mobile-nav ul{ display:flex; flex-direction:column; gap:4px; margin-bottom:24px; }
.mobile-nav a{ display:block; padding:14px 4px; font-size:19px; font-weight:700; border-bottom:1px solid var(--line); }

/* ---------- Hero ---------- */
.hero{
  background: radial-gradient(circle at 15% 20%, #E9F6E1 0%, transparent 55%), var(--paper);
  padding: 88px 0 96px;
}
.hero__inner{ max-width: 780px; }
.hero h1{ font-size: clamp(32px, 4.6vw, 54px); }
.hero__lead{ font-size:18px; max-width:620px; }
.hero__actions{ display:flex; gap:16px; flex-wrap:wrap; margin-top:8px; }
.hero .btn--ghost{ border-color: var(--line); color: var(--ink); }

/* ---------- Directions ---------- */
.directions{ padding: 80px 0; background: var(--paper-soft); }
.directions h2{ font-size: clamp(26px,3vw,36px); margin-bottom:36px; text-align:center; }
.directions__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:24px;
}
.direction-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display:flex; flex-direction:column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.direction-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.direction-card__icon{
  width:52px; height:52px;
  display:flex; align-items:center; justify-content:center;
  background: #E9F6E1;
  color: var(--green-dark);
  border-radius:14px;
  margin-bottom:18px;
}
.direction-card__icon svg{ width:28px; height:28px; }
.direction-card h3{ font-size:19px; margin-bottom:8px; }
.direction-card p{ font-size:14.5px; flex:1; }
.direction-card__more{ margin-top:16px; font-weight:700; font-size:14px; color: var(--green-dark); }

/* ---------- Smart home promo ---------- */
.smart-home-promo{ background: var(--ink); color:#fff; padding: 76px 0; }
.smart-home-promo__inner{
  display:flex; align-items:center; justify-content:space-between; gap:48px;
}
.smart-home-promo h2{ font-size: clamp(26px,3.2vw,38px); color:#fff; max-width:560px; }
.smart-home-promo p{ color: rgba(255,255,255,.72); max-width:560px; }
.smart-home-promo__icon{ color: var(--green); flex-shrink:0; opacity:.9; }
.smart-home-promo__icon svg{ width:140px; height:140px; }

/* ---------- Why ---------- */
.why{ padding:80px 0; }
.why h2{ font-size: clamp(26px,3vw,36px); text-align:center; margin-bottom:40px; }
.why__grid{ display:grid; grid-template-columns: repeat(2,1fr); gap:28px 40px; }
.why__item{ display:flex; gap:16px; }
.why__item > span{ flex-shrink:0; width:28px; height:28px; color: var(--green-dark); }
.why__item h3{ font-size:17px; margin-bottom:4px; }
.why__item p{ font-size:14.5px; margin:0; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--paper-soft); border-top:1px solid var(--line); padding-top:64px; }
.site-footer__top{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
  gap:32px;
  padding-bottom:48px;
}
.site-footer__logo{ height:34px; width:auto; margin-bottom:14px; }
.site-footer__brand p{ font-size:14px; max-width:260px; }
.site-footer__col h4{ font-size:14px; text-transform:uppercase; letter-spacing:.04em; margin-bottom:16px; }
.site-footer__col ul{ display:flex; flex-direction:column; gap:10px; }
.site-footer__col a{ font-size:14.5px; color: var(--ink-soft); }
.site-footer__col a:hover{ color: var(--green-dark); }
.site-footer__contacts li{ display:flex; align-items:center; gap:10px; font-size:14.5px; color: var(--ink-soft); margin-bottom:6px; }
.site-footer__contacts svg{ width:16px; height:16px; color: var(--green-dark); flex-shrink:0; }

.site-footer__bottom{
  border-top:1px solid var(--line);
  padding:20px 0 28px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
  font-size:13px; color: var(--ink-soft);
}

/* ---------- Contact form ---------- */
.contact-form{ display:flex; flex-direction:column; gap:10px; max-width:360px; }
.contact-form input,
.contact-form select,
.contact-form textarea{
  font-family: inherit;
  font-size:14.5px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{ outline:2px solid var(--green); outline-offset:1px; }
.contact-form button{ align-self:flex-start; margin-top:4px; }
.form-success{ display:flex; align-items:center; gap:10px; font-weight:700; color: var(--green-dark); }
.form-success svg{ width:22px; height:22px; flex-shrink:0; }

/* ---------- Generic content pages ---------- */
.generic-content{ padding: 64px 0; max-width:760px; }

/* ==========================================================================
   Landing: Умный дом
   ========================================================================== */
.landing-hero{ background: var(--ink); color:#fff; padding:96px 0 84px; }
.landing-hero__inner{ max-width:720px; }
.landing-hero h1{ color:#fff; font-size: clamp(32px,4.6vw,52px); }
.landing-hero .hero__lead{ color: rgba(255,255,255,.75); }

.sh-benefits{ padding:80px 0; background: var(--paper-soft); }
.sh-benefits h2, .sh-steps h2, .sh-why h2, .sh-form-section h2{ font-size: clamp(26px,3vw,36px); text-align:center; margin-bottom:40px; }
.sh-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.sh-card{ background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding:24px; }
.sh-card h3{ font-size:17px; margin-bottom:8px; color: var(--green-dark); }
.sh-card p{ font-size:14px; margin:0; }

.sh-steps{ padding:80px 0; }
.sh-steps__list{ display:grid; grid-template-columns: repeat(4,1fr); gap:24px; counter-reset: step; }
.sh-steps__list li{ display:flex; flex-direction:column; gap:14px; }
.sh-steps__num{
  width:40px; height:40px;
  border-radius:50%;
  background: var(--green);
  color:#08130A;
  font-weight:800;
  display:flex; align-items:center; justify-content:center;
}
.sh-steps__list h3{ font-size:16px; margin-bottom:4px; }
.sh-steps__list p{ font-size:14px; margin:0; }

.sh-why{ background: var(--ink); color:#fff; padding:64px 0; text-align:center; }
.sh-why h2{ color:#fff; }
.sh-why__inner{ max-width:680px; margin:0 auto; }
.sh-why p{ color: rgba(255,255,255,.78); margin:0; }

.sh-form-section{ padding:80px 0; }
.sh-form-section__inner{ display:flex; justify-content:space-between; gap:48px; align-items:flex-start; }
.sh-form-section__inner > div:first-child{ max-width:380px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .directions__grid{ grid-template-columns: repeat(2,1fr); }
  .why__grid{ grid-template-columns: 1fr; }
  .sh-grid{ grid-template-columns: repeat(2,1fr); }
  .sh-steps__list{ grid-template-columns: repeat(2,1fr); }
  .site-footer__top{ grid-template-columns: 1fr 1fr; }
  .smart-home-promo__inner{ flex-direction:column; text-align:center; }
  .smart-home-promo p{ margin-left:auto; margin-right:auto; }
  .sh-form-section__inner{ flex-direction:column; }
}

@media (max-width: 720px){
  .site-header__nav, .site-header__phone, .site-header__cta{ display:none; }
  .site-header__burger{ display:flex; }
  .directions__grid{ grid-template-columns: 1fr; }
  .sh-grid{ grid-template-columns: 1fr; }
  .sh-steps__list{ grid-template-columns: 1fr; }
  .site-footer__top{ grid-template-columns: 1fr; }
  .smart-home-promo__icon svg{ width:96px; height:96px; }
}
