/* ============================================================
   Siphouse.kz — стили лендинга
   Палитра:
   --navy   #1E293B  (тёмно-синий/графит)
   --accent #F97316  (строительный оранжевый)
   --amber  #EAB308  (жёлтый акцент)
   --light  #F8FAFC  (светлый фон)
   ============================================================ */

:root {
  --navy: #1E293B;
  --navy-700: #334155;
  --accent: #F97316;
  --accent-600: #EA580C;
  --amber: #EAB308;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --gray: #64748B;
  --border: #E2E8F0;
  --wa: #25D366;
  --wa-dark: #1EBE57;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.16);
  --container: 1200px;

  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* -------------------- Базовые сбросы -------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--light); }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--light);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* -------------------- Кнопки -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: var(--white); box-shadow: 0 6px 18px rgba(249, 115, 22, .35); }
.btn--primary:hover { background: var(--accent-600); }

.btn--whatsapp { background: var(--wa); color: var(--white); box-shadow: 0 6px 18px rgba(37, 211, 102, .35); }
.btn--whatsapp:hover { background: var(--wa-dark); }

.btn--outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--white); }
.btn--outline.btn--light { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--outline.btn--light:hover { background: var(--white); color: var(--navy); }

.btn--block { width: 100%; }
.btn--lg { padding: 16px 26px; font-size: 16px; }

/* -------------------- Хедер -------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.logo__icon {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy); color: var(--accent); font-size: 18px;
}
.logo__accent { color: var(--accent); }
.logo--light { color: var(--white); }
.logo--light .logo__icon { background: rgba(255,255,255,.12); }

.header__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-left: auto; }
.header__phone { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--navy); }
.header__phone i { color: var(--accent); }
.header__hours { font-size: 13px; color: var(--gray); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__burger { display: none; background: none; border: none; font-size: 24px; color: var(--navy); cursor: pointer; }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(15, 23, 42, .72), rgba(15, 23, 42, .72)),
    url('public/images/hero-house.png') center/cover no-repeat;
  color: var(--white);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero__title { font-size: clamp(28px, 4vw, 46px); font-weight: 800; text-wrap: balance; }
.hero__subtitle { margin-top: 18px; font-size: clamp(16px, 2vw, 19px); color: #E2E8F0; max-width: 560px; }
.hero__subtitle strong { color: var(--amber); }

.hero__bullets { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.hero__bullets li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; }
.hero__bullets i {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent); color: var(--white); font-size: 15px;
}

/* Форма на первом экране */
.hero__form-card {
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.form-card__title { font-size: 21px; font-weight: 700; text-wrap: balance; margin-bottom: 18px; }

.lead-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy-700); }
.field input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--light);
  color: var(--navy);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .15);
  background: var(--white);
}
.form-note { font-size: 12px; color: var(--gray); display: flex; align-items: center; gap: 6px; }

/* -------------------- Секции (общее) -------------------- */
.section { padding: 76px 0; }
.section--muted { background: var(--white); }
.section--dark { background: var(--navy); }

.section__head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent);
  background: rgba(249, 115, 22, .1);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section__eyebrow--light { color: var(--amber); background: rgba(234, 179, 8, .15); }
.section__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; text-wrap: balance; }
.section__title--light { color: var(--white); }
.section__lead { margin-top: 12px; color: var(--gray); font-size: 17px; }
.section__lead--light { color: #CBD5E1; }

/* -------------------- Параметры дома -------------------- */
.params__form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 960px;
  margin: 0 auto;
}
.params__group { margin-bottom: 26px; }
.params__label { font-family: var(--font-head); font-weight: 700; font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.params__label i { color: var(--accent); }

.options { display: grid; gap: 12px; }
.options--4 { grid-template-columns: repeat(4, 1fr); }
.options--3 { grid-template-columns: repeat(3, 1fr); }

.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 54px; padding: 10px 12px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; color: var(--navy-700);
  background: var(--light);
  transition: all .18s ease;
}
.option:hover span { border-color: var(--accent); }
.option input:checked + span {
  border-color: var(--accent);
  background: rgba(249, 115, 22, .1);
  color: var(--accent-600);
  box-shadow: 0 4px 12px rgba(249, 115, 22, .18);
}
.option input:focus-visible + span { box-shadow: 0 0 0 3px rgba(249, 115, 22, .25); }

.params__submit {
  display: flex; align-items: flex-end; gap: 16px;
  margin-top: 30px; padding-top: 26px; border-top: 1px dashed var(--border);
  flex-wrap: wrap;
}
.field--phone { flex: 1 1 260px; }
.params__submit .btn { flex: 1 1 320px; }

/* -------------------- Карточки проектов (Owl) -------------------- */
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex; flex-direction: column;
}
.project-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  padding: 6px 12px; border-radius: 999px;
}
.project-card__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-card__title { font-size: 20px; font-weight: 700; }
.project-card__specs { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--gray); font-size: 14px; }
.project-card__specs li { display: flex; align-items: center; gap: 6px; }
.project-card__specs i { color: var(--accent); }
.project-card__price { font-size: 15px; color: var(--gray); margin-top: auto; }
.project-card__price strong { font-family: var(--font-head); font-size: 22px; color: var(--navy); }

/* -------------------- Таблица сравнения -------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.compare-table {
  width: 100%; border-collapse: collapse; background: var(--white); min-width: 640px;
}
.compare-table th, .compare-table td {
  padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px;
}
.compare-table thead th {
  font-family: var(--font-head); font-weight: 700; background: var(--navy); color: var(--white); font-size: 15px;
}
.compare-table thead th.is-highlight { background: var(--accent); }
.compare-table tbody td:first-child { font-weight: 600; }
.compare-table td.is-highlight { background: rgba(249, 115, 22, .07); font-weight: 600; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .ok { color: var(--wa); margin-right: 6px; }

/* -------------------- О SIP-панелях -------------------- */
.sip { display: flex; flex-direction: column; gap: 48px; }
.sip__subtitle {
  font-size: 22px; font-weight: 700; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.sip__subtitle i { color: var(--accent); }

.sip__structure-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.sip__image {
  border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.sip__image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.sip__layers { display: flex; flex-direction: column; gap: 18px; }
.sip__layer { display: flex; align-items: flex-start; gap: 16px; }
.sip__layer-num {
  flex-shrink: 0;
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--font-head); font-weight: 800; font-size: 17px;
}
.sip__layer h4 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.sip__layer p { color: var(--gray); font-size: 14.5px; }

.sip__benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sip-benefit {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 22px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.sip-benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.sip-benefit__icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; background: rgba(249, 115, 22, .12); color: var(--accent);
  font-size: 22px; margin-bottom: 14px;
}
.sip-benefit h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.sip-benefit p { color: var(--gray); font-size: 14.5px; }

/* -------------------- Акция: дверь в подарок -------------------- */
.promo {
  background:
    radial-gradient(circle at 100% 0%, rgba(249, 115, 22, .18), transparent 45%),
    var(--navy);
  color: var(--white);
  padding: 20px 0;
}
.promo__inner {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
  padding: 40px 0;
}
.promo__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--navy); background: var(--amber);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.promo__title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; text-wrap: balance; }
.promo__title span { color: var(--accent); }
.promo__text { margin-top: 16px; font-size: 17px; color: #CBD5E1; max-width: 520px; }
.promo__text strong { color: var(--amber); }
.promo__list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.promo__list li { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15.5px; }
.promo__list i { color: var(--wa); font-size: 18px; }
.promo__actions { margin-top: 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.promo__timer { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #94A3B8; }

.promo__media { position: relative; justify-self: center; }
.promo__media img {
  width: 100%; max-width: 360px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.promo__badge {
  position: absolute; top: -18px; right: -18px;
  display: inline-grid; place-items: center;
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  font-family: var(--font-head); font-weight: 800; font-size: 24px;
  box-shadow: var(--shadow-lg); border: 4px solid var(--navy);
  transform: rotate(-12deg);
}

/* -------------------- Построенные объекты (Owl) -------------------- */
.built-card {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: var(--navy-700); position: relative;
}
.built-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.built-card:hover img { transform: scale(1.05); }
.built-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(15, 23, 42, .9));
  color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 15px;
  display: flex; align-items: center; gap: 8px;
}
.built-card figcaption i { color: var(--amber); }
.built__cta { text-align: center; margin-top: 40px; }

/* -------------------- Преимущества -------------------- */
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.advantage {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.advantage:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.advantage__icon {
  display: inline-grid; place-items: center; width: 64px; height: 64px;
  border-radius: 16px; background: rgba(249, 115, 22, .12); color: var(--accent);
  font-size: 26px; margin-bottom: 16px;
}
.advantage__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.advantage__text { color: var(--gray); font-size: 14.5px; }

/* -------------------- Футер -------------------- */
.footer { background: var(--navy); color: #CBD5E1; padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__about { margin-top: 16px; font-size: 14.5px; max-width: 360px; }
.footer__title { color: var(--white); font-size: 17px; margin-bottom: 16px; }
.footer__col p { margin-bottom: 10px; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.footer__col p i { color: var(--accent); }
.footer__col a:hover { color: var(--white); }
.footer__socials { display: flex; gap: 12px; margin-bottom: 18px; }
.footer__socials a {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 10px; background: rgba(255,255,255,.08); color: var(--white); font-size: 18px;
  transition: background .2s ease;
}
.footer__socials a:hover { background: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13px; color: #94A3B8; text-align: center; }

/* -------------------- Плавающая панель (mobile) -------------------- */
.sticky-bar {
  display: none;
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  flex-direction: column; gap: 14px;
}
.sticky-btn {
  display: inline-grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  color: var(--white); font-size: 26px; box-shadow: var(--shadow-lg);
}
.sticky-btn--wa { background: var(--wa); }
.sticky-btn--call { background: var(--accent); }

.pulse { position: relative; }
.pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  animation: pulse 1.8s infinite;
}
.sticky-btn--wa.pulse::after { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); }
.sticky-btn--call.pulse::after { box-shadow: 0 0 0 0 rgba(249, 115, 22, .6); }
@keyframes pulse {
  70% { box-shadow: 0 0 0 16px rgba(0,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* -------------------- Модальное окно -------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  position: relative; width: 100%; max-width: 440px;
  background: var(--white); border-radius: var(--radius); padding: 34px 28px 28px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.98); transition: transform .25s ease;
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: var(--light); color: var(--navy);
  font-size: 18px; cursor: pointer; transition: background .2s ease;
}
.modal__close:hover { background: var(--border); }
.modal__title { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.modal__subtitle { color: var(--gray); font-size: 14.5px; margin-bottom: 20px; }

/* -------------------- Тост -------------------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120%);
  z-index: 10001;
  background: var(--navy); color: var(--white);
  padding: 14px 22px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); font-weight: 600; font-size: 15px;
  display: flex; align-items: center; gap: 10px;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.toast i { color: var(--wa); font-size: 18px; }
.toast.is-visible { transform: translate(-50%, 0); }

/* -------------------- Owl overrides -------------------- */
.owl-theme .owl-dots { margin-top: 26px !important; }
.owl-theme .owl-dots .owl-dot span { width: 10px; height: 10px; background: var(--border); }
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span { background: var(--accent); }
.owl-theme .owl-nav [class*='owl-'] { background: var(--white); color: var(--navy); border-radius: 8px; }
.owl-theme .owl-nav [class*='owl-']:hover { background: var(--accent); color: var(--white); }
.section--dark .owl-theme .owl-dots .owl-dot span { background: rgba(255,255,255,.3); }
.section--dark .owl-theme .owl-dots .owl-dot.active span { background: var(--amber); }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 992px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .header__contacts { display: none; }
  .sip__structure-inner { grid-template-columns: 1fr; gap: 28px; }
  .sip__benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .promo__inner { grid-template-columns: 1fr; gap: 36px; }
  .promo__media { order: -1; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .header__actions { display: none; }
  .header__burger { display: block; }
  .header__actions.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 16px 20px; box-shadow: var(--shadow);
  }
  .options--4, .options--3 { grid-template-columns: repeat(2, 1fr); }
  .params__form { padding: 22px; }
  .params__submit .btn, .field--phone { flex: 1 1 100%; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .sticky-bar { display: flex; }
}

@media (max-width: 480px) {
  .advantages-grid { grid-template-columns: 1fr; }
  .options--4, .options--3 { grid-template-columns: 1fr; }
  .hero__form-card { padding: 22px; }
  .sip__benefits-grid { grid-template-columns: 1fr; }
  .promo__badge { width: 72px; height: 72px; font-size: 20px; top: -12px; right: -6px; }
  .promo__actions { flex-direction: column; align-items: stretch; }
}
