/* ===================================================================
   DriveAir — акумуляторний компресор 3-в-1. Vanilla CSS, адаптив.
   =================================================================== */

:root {
  --accent: #1769d6;
  --accent-dark: #0f4ea3;
  --accent-soft: #e8f1fd;
  --cta: #ff7a18;
  --cta-dark: #e96706;
  --ink: #16202e;
  --muted: #56657a;
  --line: #e4e9f1;
  --bg: #f3f6fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 40, 80, 0.08);
  --container: 1100px;
  --font: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 18px; }
.section { padding: 48px 0; }
.section--soft { background: var(--white); }
.section__title { font-size: 30px; line-height: 1.2; text-align: center; margin-bottom: 10px; color: var(--ink); }
.section__title span { color: var(--accent-dark); }
.section__lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 17px; line-height: 1; padding: 16px 28px;
  border: none; border-radius: 12px; cursor: pointer; text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--cta { background: linear-gradient(180deg, var(--cta) 0%, var(--cta-dark) 100%); color: #fff; box-shadow: 0 6px 16px rgba(233, 103, 6, 0.28); }
.btn--accent { background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%); color: #fff; box-shadow: 0 6px 16px rgba(15, 78, 163, 0.25); }
.btn--block { display: flex; width: 100%; }
.btn--lg { font-size: 19px; padding: 18px 30px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--accent-dark); color: #dce9fb; font-size: 13px; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; padding: 8px 18px; text-align: center; }
.topbar__inner span { display: inline-flex; align-items: center; gap: 7px; }
.topbar__inner span::before { content: "✓"; color: #7fd3a0; font-weight: 800; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand__logo {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff; font-weight: 800; font-size: 22px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.brand__name { font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.2px; }
.brand__name span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .3px; color: var(--accent-dark); text-transform: uppercase; margin-top: 3px; }
.header__nav { display: flex; gap: 22px; }
.header__nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.header__nav a:hover { color: var(--accent-dark); text-decoration: none; }
.header__cta { display: flex; align-items: center; gap: 14px; }
.header__phone { font-weight: 800; color: var(--ink); font-size: 16px; white-space: nowrap; text-align: right; line-height: 1.1; }
.header__phone:hover { text-decoration: none; color: var(--accent-dark); }
.header__phone span { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 2px; }

/* ---------- Nova Poshta partner ---------- */
.np-partner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; max-width: 720px; margin: 26px auto 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px; box-shadow: var(--shadow); text-align: center; }
.np-partner img { height: 30px; width: auto; }
.np-partner b { color: var(--ink); }
.np-partner span { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.np-logo { height: 24px; width: auto; display: inline-block; vertical-align: middle; }
.info-card .np-logo { margin: 12px auto 0; }

/* ---------- Hero ---------- */
.hero { padding: 34px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }

.gallery__main { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery__main img { width: 100%; aspect-ratio: 4/5; object-fit: contain; background: #fff; padding: 8px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gallery__thumbs img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #fff; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s; }
.gallery__thumbs img.is-active, .gallery__thumbs img:hover { border-color: var(--accent); }

.hero__badge { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.hero__title { font-size: 33px; line-height: 1.15; margin-bottom: 10px; }
.hero__title span { color: var(--accent-dark); }
.hero__subtitle { color: var(--muted); font-size: 18px; margin-bottom: 20px; }

.benefits { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.benefits li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink); }
.benefits li::before { content: "✓"; flex: none; width: 24px; height: 24px; background: var(--accent); color: #fff; border-radius: 50%; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }

.price-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.price-box__row { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.price-old { color: var(--muted); font-size: 18px; }
.price-old s { opacity: .8; }
.price-new { display: flex; align-items: baseline; gap: 6px; }
.price-new strong { font-size: 42px; line-height: 1; color: var(--accent-dark); }
.price-new small { font-size: 18px; color: var(--muted); }
.price-badge { margin-left: auto; background: #fff0e6; color: var(--cta-dark); font-weight: 800; padding: 8px 14px; border-radius: 10px; font-size: 15px; }
.price-note { color: var(--muted); font-size: 14px; margin-top: 8px; }

.hero__mini { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.hero__mini span { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.hero__mini svg { width: 18px; height: 18px; flex: none; color: var(--accent); }

/* ---------- 3-в-1 highlight cards ---------- */
.hl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hl-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; box-shadow: var(--shadow); }
.hl-card__ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; }
.hl-card__ic svg { width: 34px; height: 34px; }
.hl-card h3 { font-size: 20px; margin-bottom: 8px; }
.hl-card p { color: var(--muted); font-size: 15px; }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-bottom: 40px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row--reverse .feature-row__media { order: 2; }
.feature-row__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.feature-row__media img.is-tall { aspect-ratio: 3/4; object-fit: contain; padding: 6px; }
.feature-row__body h3 { font-size: 23px; margin-bottom: 12px; color: var(--ink); }
.feature-row__body p { color: var(--muted); margin-bottom: 12px; }
.feature-row__body p:last-child { margin-bottom: 0; }
.feature-row__list { list-style: none; margin-top: 6px; display: grid; gap: 8px; }
.feature-row__list li { display: flex; gap: 10px; color: var(--ink); font-weight: 500; }
.feature-row__list li::before { content: "›"; color: var(--accent); font-weight: 800; }

/* ---------- Package ---------- */
.package__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.package__img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; padding: 8px; }
.package__list { list-style: none; display: grid; gap: 12px; }
.package__list li { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 600; box-shadow: var(--shadow); }
.package__list li span { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* ---------- Specs ---------- */
.specs__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
.specs__img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; padding: 8px; }
.specs__list { list-style: none; }
.specs__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px dashed var(--line); }
.specs__list li:last-child { border-bottom: none; }
.specs__list b { color: var(--ink); }
.specs__list span { color: var(--muted); text-align: right; }
.specs__cta { margin-top: 24px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); position: relative; }
.step__num { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step h4 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Reviews ---------- */
.slider { position: relative; max-width: 720px; margin: 0 auto; }
.slider__track { overflow: hidden; border-radius: var(--radius); }
.slider__list { display: flex; transition: transform .35s ease; }
.slider__slide { min-width: 100%; padding: 4px; }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; }
.review__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.review__ava { width: 50px; height: 50px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.review__who { font-weight: 700; color: var(--ink); }
.review__who small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.review__stars { color: #f6b100; letter-spacing: 2px; margin-left: auto; font-size: 15px; }
.review__text { color: var(--ink); font-size: 16px; }
.slider__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; font-size: 20px; color: var(--ink); display: flex; align-items: center; justify-content: center; z-index: 2; }
.slider__btn:hover { background: var(--accent); color: #fff; }
.slider__btn--prev { left: -10px; }
.slider__btn--next { right: -10px; }
.slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.slider__dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: #c5d2e3; cursor: pointer; padding: 0; }
.slider__dots button.is-active { background: var(--accent); }

/* ---------- Info cards ---------- */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; box-shadow: var(--shadow); }
.info-card__ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; }
.info-card__ic svg { width: 32px; height: 32px; }
.info-card h4 { font-size: 18px; margin-bottom: 8px; }
.info-card p { color: var(--muted); font-size: 15px; }

/* ---------- Order form ---------- */
.order { background: linear-gradient(180deg, #12233d 0%, #0c1a2e 100%); color: #fff; }
.order__grid { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: center; }
.order__lead h2 { font-size: 30px; margin-bottom: 14px; }
.order__lead p { color: #c2d3ea; margin-bottom: 14px; }
.order__price { display: inline-flex; align-items: baseline; gap: 10px; background: rgba(255,255,255,.08); border-radius: 12px; padding: 12px 18px; margin-top: 6px; }
.order__price s { color: #97aac6; font-size: 18px; }
.order__price strong { font-size: 30px; color: #fff; }
.order__price small { color: #c2d3ea; }
.form-card { background: var(--white); color: var(--ink); border-radius: 18px; padding: 28px 26px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.form-card h3 { text-align: center; font-size: 22px; margin-bottom: 6px; }
.form-card p.form-card__hint { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.field { width: 100%; height: 56px; border: 1.5px solid var(--line); border-radius: 11px; padding: 0 16px; font-size: 16px; font-family: var(--font); color: var(--ink); margin-bottom: 12px; outline: none; transition: border-color .15s; }
.field:focus { border-color: var(--accent); }
.field.is-invalid { border-color: #e03131; background: #fff5f5; }
.field-error { color: #e03131; font-size: 13px; margin: -6px 0 10px; display: none; }
.field-error.is-visible { display: block; }
.form-card__note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 12px; }
.form-card__note a { color: var(--accent-dark); }

/* ---------- Trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.trust span::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 18px 20px; font-size: 17px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font); }
.faq__q::after { content: "+"; color: var(--accent); font-size: 24px; font-weight: 400; }
.faq__item.is-open .faq__q::after { content: "−"; }
.faq__a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; color: var(--muted); }
.faq__item.is-open .faq__a { padding: 0 20px 18px; max-height: 360px; }

/* ---------- Footer ---------- */
.footer { background: #0c1622; color: #c2cad4; padding: 44px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer__col h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.footer__col p { font-size: 14px; line-height: 1.6; margin-bottom: 8px; color: #aab3bf; }
.footer__col a { color: #c2cad4; font-size: 14px; display: inline-block; margin-bottom: 8px; }
.footer__col a:hover { color: var(--accent); text-decoration: underline; }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 28px; padding-top: 18px; font-size: 12.5px; color: #8893a0; line-height: 1.6; }

/* ---------- Content pages ---------- */
.page { background: var(--white); }
.page__inner { max-width: 820px; margin: 0 auto; padding: 40px 18px 50px; }
.page__inner h1 { font-size: 30px; margin-bottom: 8px; }
.page__sub { color: var(--muted); margin-bottom: 26px; }
.page__inner h2 { font-size: 20px; margin: 26px 0 10px; }
.page__inner p, .page__inner li { color: #374151; margin-bottom: 10px; }
.page__inner ul, .page__inner ol { margin: 0 0 14px; padding-left: 22px; }
.page__inner li { margin-bottom: 7px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 18px 0; }
.contact-card { background: var(--accent-soft); border: 1px solid #cfe0f7; border-radius: 12px; padding: 18px 20px; }
.contact-card .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--accent-dark); font-weight: 700; margin-bottom: 6px; }
.contact-card .val { font-size: 17px; font-weight: 700; color: var(--ink); }
.contact-card .val a { color: var(--ink); }
.back-link { display: inline-block; margin-top: 26px; }

/* ---------- Thank you ---------- */
.thankyou { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 50px 18px; }
.thankyou__card { max-width: 540px; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 40px 30px; }
.thankyou__check { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 44px; display: flex; align-items: center; justify-content: center; }
.thankyou h1 { font-size: 28px; margin-bottom: 12px; }
.thankyou p { color: var(--muted); margin-bottom: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .header__nav { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .feature-row, .specs__grid, .order__grid, .package__grid { grid-template-columns: 1fr; gap: 22px; }
  .feature-row--reverse .feature-row__media { order: 0; }
  .hl-cards { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 36px 0; }
  .section__title { font-size: 24px; }
  .hero__title { font-size: 26px; }
  .header__phone { display: none; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .price-new strong { font-size: 36px; }
  .review__stars { margin-left: 0; }
  .review__head { flex-wrap: wrap; }
}

/* ===== Блок подарунка + компактний мобільний ===== */
.gift-sec{background:linear-gradient(180deg,#fff6ee,#fff);text-align:center}
.gift-tag{display:inline-block;background:#e01228;color:#fff;font-weight:800;font-size:13px;letter-spacing:.02em;padding:8px 16px;border-radius:999px}
.gift-media{max-width:460px;margin:16px auto 0;border-radius:20px;overflow:hidden;box-shadow:0 14px 34px rgba(20,25,40,.14)}
.gift-media img{width:100%;display:block;height:auto}
@media (max-width:620px){
  .section{padding:26px 0}
  .section__title{font-size:22px;margin-bottom:6px}
  .section__lead{font-size:14.5px;margin-bottom:14px}
  .hero__title{font-size:25px}
  .hero__subtitle{font-size:15px}
  .benefits li{font-size:15px}
  .feature-row__body h3{font-size:19px}
  .feature-row__body p{font-size:15px}
  .gift-media{max-width:100%}
}
