/* ============ PriceLadder — світла, спокійна дизайн-система (блакитний акцент) ============ */
:root {
  --bg: #f6f9fc;         /* світле холодне тло */
  --bg2: #ffffff;        /* білі секції */
  --card: #ffffff;
  --primary: #3f8cff;    /* основний акцент — світло-синій */
  --primary-dark: #2f6fd6;
  --primary-soft: #eaf2ff;
  --sun: #ffd400;        /* другорядний теплий акцент */
  --line: #e3e9f2;
  --text: #2a3342;       /* темний графіт замість чорного */
  --muted: #6b7688;
  --radius: 16px;
  --shadow: 0 16px 44px rgba(47, 84, 143, .14);
  --shadow-sm: 0 6px 20px rgba(47, 84, 143, .10);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { width: min(1200px, 92%); margin: 0 auto; }

::selection { background: var(--primary); color: #fff; }

/* маркерне виділення — фірмовий прийом */
mark, .mark {
  background: linear-gradient(0deg, #cfe4ff 0%, #cfe4ff 88%, transparent 88%);
  color: inherit; padding: 0 .12em; border-radius: 3px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ============ Шапка ============ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 34px; height: 74px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; gap: 26px; align-items: center; margin-left: auto; }
.nav a {
  font-size: 14.5px; font-weight: 600; color: #4d586b;
  padding: 6px 2px; position: relative; white-space: nowrap;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 3px; background: var(--primary); border-radius: 2px; transition: width .25s;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 14px; margin-left: 10px; }
.header__phone { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; }
.header__phone:hover { color: var(--primary); }

.cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); border: 0; color: #fff;
  transition: transform .2s, background .2s;
  box-shadow: var(--shadow-sm);
}
.cart-btn:hover { transform: translateY(-2px); background: var(--primary-dark); }
.cart-btn svg { width: 19px; height: 19px; }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--sun); color: #2a3342;
  font-size: 11px; font-weight: 900; line-height: 19px;
  border-radius: 10px; text-align: center;
  transform: scale(0); transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.cart-count.on { transform: scale(1); }

.lang-btn {
  background: transparent; border: 1.5px solid var(--line); color: var(--muted);
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  padding: 7px 11px; min-height: 40px; border-radius: 999px; transition: .2s;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }

.burger { display: none; width: 42px; height: 42px; background: none; border: 0; }
.burger span { display: block; height: 3px; background: var(--primary); margin: 5px 8px; border-radius: 3px; }

@media (max-width: 1020px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 22px 6%; gap: 16px; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(47,84,143,.16);
    transform: translateY(-130%); transition: transform .35s; z-index: 89;
    max-height: calc(100svh - 74px); overflow-y: auto;
  }
  .nav.open { transform: none; }
  .burger { display: block; }
  .header__phone { display: none; }
  /* .nav виходить з потоку — його margin-left:auto більше не притискає дії вправо */
  .header__in { gap: 12px; }
  .header__actions { margin-left: auto; flex-shrink: 0; gap: 10px; }
  /* логотип стискається під вузький екран замість того, щоб виштовхувати кнопки */
  .logo { flex-shrink: 1; min-width: 0; }
  .logo img { height: 28px; object-fit: contain; object-position: left center; }
  .nav a { padding: 10px 2px; font-size: 16px; }
}
/* фон не скролиться під відкритим меню */
body.nav-open { overflow: hidden; }

/* ============ Кнопки ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 32px; border-radius: 999px;
  background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 700; border: 0;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 10px 26px rgba(63, 140, 255, .35);
}
.btn:hover { transform: translateY(-2px); background: var(--primary-dark); box-shadow: 0 14px 32px rgba(63, 140, 255, .45); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: #fff; color: var(--primary);
  border: 2px solid var(--primary); box-shadow: none;
}
.btn--ghost:hover { background: var(--primary-soft); box-shadow: none; }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ============ Секції ============ */
.section { padding: 92px 0; position: relative; }
.section--alt { background: var(--bg2); border-block: 1px solid var(--line); }
.sec-tag {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--primary); font-size: 12.5px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px;
  background: var(--primary-soft); padding: 6px 14px; border-radius: 999px;
}
.sec-title {
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 900; line-height: 1.1; letter-spacing: -.015em;
  text-transform: uppercase; font-style: italic; color: var(--text);
}
.sec-sub { color: var(--muted); max-width: 660px; margin-top: 16px; font-size: 16.5px; }

/* ============ Анімації появи ============ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-40px); transition: opacity .7s ease, transform .7s ease; }
.reveal-r { opacity: 0; transform: translateX(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal-l.in, .reveal-r.in { opacity: 1; transform: none; }
/* на вузьких екранах бічний зсув виштовхує блок за край і розширює сторінку — їдемо вертикально */
@media (max-width: 900px) {
  .reveal-l, .reveal-r { transform: translateY(28px); }
}
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-l, .reveal-r { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============ Герой ============ */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 140px 0 80px;
}
.hero__bg, .hero__bg .slide { position: absolute; inset: 0; }
.hero__bg .slide {
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease;
  transform: scale(1.08);
}
.hero__bg .slide.on { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1.14) translate(1.5%, 1%); }
  to { transform: scale(1.02) translate(0, 0); }
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(246,249,252,.97) 34%, rgba(246,249,252,.85) 56%, rgba(246,249,252,.3));
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(34px, 5.6vw, 66px);
  font-weight: 900; font-style: italic; text-transform: uppercase;
  line-height: 1.06; letter-spacing: -.02em; max-width: 840px; color: var(--text);
}
.hero p { max-width: 580px; margin: 26px 0 36px; color: #4d586b; font-size: 17.5px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: 13.5px; color: var(--text); margin-bottom: 26px;
  background: #fff; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.hero__badge b { color: var(--primary); }
.hero__stats { display: flex; gap: 46px; margin-top: 64px; flex-wrap: wrap; }
.stat b {
  display: block; font-size: 42px; font-weight: 900; font-style: italic;
  color: var(--primary); line-height: 1;
}
.stat span { color: var(--muted); font-size: 13.5px; font-weight: 500; }

/* ============ Стрічка-тикер (світло-синя) ============ */
.ticker {
  background: linear-gradient(90deg, var(--primary), #6aa9ff); color: #fff; overflow: hidden;
  padding: 14px 0; position: relative; z-index: 3;
}
.ticker__track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 30s linear infinite; white-space: nowrap;
  font-size: 15px; font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .04em;
}
.ticker__track span { padding: 0 18px; }
.ticker__track b { color: var(--sun); }

/* ============ Фото-стрічка ============ */
.strip { overflow: hidden; padding: 30px 0; background: var(--bg2); border-bottom: 1px solid var(--line); }
.strip__track { display: flex; gap: 18px; width: max-content; animation: marquee 42s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__track img {
  height: 190px; width: auto; border-radius: 12px;
  object-fit: cover; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s;
}
.strip__track img:hover { transform: scale(1.045); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Картки напрямків ============ */
.dirs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.dir {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 380px; display: flex; align-items: flex-end;
  border: 1px solid var(--line); background: var(--card);
  transition: transform .3s, box-shadow .3s;
  box-shadow: var(--shadow-sm);
}
.dir:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.dir img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dir:hover img { transform: scale(1.06); }
.dir__body {
  position: relative; z-index: 2; padding: 26px; width: 100%;
  background: linear-gradient(transparent, rgba(28,44,74,.92) 46%); color: #fff;
}
.dir__body h3 { font-size: 21px; font-weight: 900; font-style: italic; text-transform: uppercase; margin-bottom: 8px; }
.dir__body p { color: #dbe6f5; font-size: 14.5px; margin-bottom: 16px; }
.dir__link { color: #9ec8ff; font-weight: 700; font-size: 14px; display: inline-flex; gap: 7px; align-items: center; }
.dir__link svg { transition: transform .25s; }
.dir:hover .dir__link svg { transform: translateX(5px); }
@media (max-width: 900px) { .dirs { grid-template-columns: 1fr; } .dir { min-height: 300px; } }

/* ============ «Ми vs вони» ============ */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.vs__col { padding: 34px; }
.vs__col--them { background: #f1f4f9; color: #5c6678; }
.vs__col--us { background: var(--primary); color: #fff; }
.vs__col h3 {
  font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 20px; font-style: italic;
}
.vs__col--us h3 { color: var(--sun); }
.vs__col ul { list-style: none; display: grid; gap: 14px; }
.vs__col li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; }
.vs__col--them li::before { content: "✕"; color: #a6b0c2; font-weight: 900; flex-shrink: 0; }
.vs__col--us li::before { content: "✓"; color: var(--sun); font-weight: 900; flex-shrink: 0; }
.vs__punch {
  grid-column: 1 / -1; background: var(--primary-soft); color: var(--text); padding: 18px 34px;
  font-weight: 700; font-size: 15.5px; font-style: italic; border-top: 1px solid var(--line);
}
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } .vs__punch { padding: 16px 22px; } }

/* ============ Категорії обладнання ============ */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 240px; display: flex; align-items: flex-end;
  border: 1px solid var(--line); transition: transform .3s, box-shadow .3s;
  box-shadow: var(--shadow-sm);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.cat-card:hover img { transform: scale(1.07); }
.cat-card > div {
  position: relative; z-index: 2; padding: 22px; width: 100%;
  background: linear-gradient(transparent, rgba(28,44,74,.9)); color: #fff;
}
.cat-card h3 { font-size: 18px; font-weight: 900; text-transform: uppercase; font-style: italic; }
.cat-card span { color: #9ec8ff; font-size: 13.5px; font-weight: 700; }
@media (max-width: 900px) { .cats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cats { grid-template-columns: 1fr; } }

/* ============ Каталоги PDF ============ */
.catalogs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.catalog {
  display: flex; gap: 22px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; transition: transform .25s, box-shadow .25s;
  box-shadow: var(--shadow-sm);
}
.catalog:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.catalog img { width: 130px; height: 170px; object-fit: cover; border-radius: 8px; flex-shrink: 0; border: 1px solid var(--line); }
.catalog h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.catalog p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.catalog .dl { color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; background: var(--primary); padding: 7px 15px; border-radius: 999px; }
@media (max-width: 760px) { .catalogs { grid-template-columns: 1fr; } }

/* ============ Товари ============ */
.filter { display: flex; gap: 10px; flex-wrap: wrap; margin: 40px 0 34px; }
.chip {
  padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: #fff; color: #4d586b; border: 1.5px solid var(--line);
  transition: .25s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.on { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }

.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .grid-products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .grid-products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-products { grid-template-columns: 1fr; } }

.product {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
  box-shadow: var(--shadow-sm);
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product__img { aspect-ratio: 1 / .9; overflow: hidden; background: #fff; position: relative; border-bottom: 1px solid var(--line); }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product:hover .product__img img { transform: scale(1.05); }
.product__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product__cat { font-size: 11.5px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--primary-soft); align-self: flex-start; padding: 3px 9px; border-radius: 999px; }
.product__title { font-size: 15.5px; font-weight: 700; line-height: 1.35; flex: 1; color: var(--text); }
.product__title:hover { color: var(--primary); }
.product__price { font-size: 16px; font-weight: 800; color: var(--text); }
.product__price small { color: var(--muted); font-weight: 500; font-size: 13px; }
.product__actions { display: flex; gap: 8px; }
.product__actions .btn { flex: 1; padding: 11px 10px; font-size: 13.5px; }

/* ============ Сторінка товару ============ */
.product-page { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: start; }
.product-page__img { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); position: sticky; top: 104px; box-shadow: var(--shadow-sm); }
.product-page h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; line-height: 1.2; color: var(--text); }
.specs { margin: 26px 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; list-style: none; }
.specs li { padding: 12px 18px; font-size: 14.5px; color: #4d586b; background: #fff; display: flex; gap: 10px; }
.specs li:nth-child(even) { background: #f7fafd; }
.specs li::before { content: "—"; color: var(--primary); font-weight: 800; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 44px; height: 46px; background: #fff; color: var(--primary); border: 0; font-size: 19px; transition: background .2s; }
.qty button:hover { background: var(--primary-soft); }
.qty input { width: 54px; height: 46px; text-align: center; background: transparent; border: 0; color: var(--text); font-size: 16px; font-weight: 800; }
@media (max-width: 900px) { .product-page { grid-template-columns: 1fr; } .product-page__img { position: static; } }

/* ============ Кошик (шухляда) ============ */
.drawer-veil { position: fixed; inset: 0; background: rgba(28,44,74,.4); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 98; }
.drawer-veil.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100vw);
  background: var(--bg); border-left: 1px solid var(--line); z-index: 99;
  transform: translateX(105%); transition: transform .38s cubic-bezier(.32,.72,.35,1);
  display: flex; flex-direction: column;
  box-shadow: -18px 0 50px rgba(47,84,143,.18);
}
.drawer.on { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); background: var(--primary); }
.drawer__head h3 { font-size: 19px; font-weight: 900; text-transform: uppercase; font-style: italic; color: #fff; }
.drawer__close { width: 44px; height: 44px; margin: -10px -12px -10px 0; background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; transition: transform .2s; }
.drawer__close:hover { transform: rotate(90deg); }
.drawer__list { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.ci { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.ci img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.ci__t { font-size: 13.5px; font-weight: 700; line-height: 1.3; color: var(--text); }
.ci__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.ci__qty { display: flex; align-items: center; gap: 10px; }
.ci__qty button { width: 34px; height: 34px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); border: 0; font-size: 16px; font-weight: 800; }
.ci__qty button:hover { background: var(--primary); color: #fff; }
.ci__rm { background: none; border: 0; color: #9aa4b5; font-size: 12.5px; text-decoration: underline; padding: 8px 0 2px; }
.ci__rm:hover { color: #d33; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 22px; background: #fff; }
.drawer__total { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 14px; color: var(--text); }
.drawer__total b { font-size: 19px; }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 10px; }

/* ============ Форми ============ */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: #4d586b; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; background: #fff; border: 1.5px solid var(--line);
  border-radius: 11px; color: var(--text); padding: 13px 16px; font-size: 15px;
  font-family: inherit; transition: border-color .25s, box-shadow .25s; outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(63,140,255,.15); }
.field textarea { resize: vertical; min-height: 96px; }
.form-msg { margin-top: 12px; font-size: 14.5px; display: none; font-weight: 600; }
.form-msg.ok { display: block; color: #1b8f4a; }
.form-msg.err { display: block; color: #c92a2a; }

/* ============ CTA-блок (синій) ============ */
.cta {
  border-radius: 20px; overflow: hidden; position: relative;
  padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
  background: linear-gradient(120deg, var(--primary), #2f6fd6); color: #fff;
  box-shadow: var(--shadow);
}
.cta::before {
  content: ""; position: absolute; right: -140px; top: -140px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%);
}
.cta h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.12; }
.cta h2 .acc, .cta .acc { color: var(--sun); }
.cta p { color: #dbe8fb; margin-top: 14px; }
.cta .field label { color: #dbe8fb; }
.cta .field input, .cta .field textarea { border-color: transparent; }
.cta .btn { background: #fff; color: var(--primary); box-shadow: 0 10px 26px rgba(20,40,80,.25); }
.cta .btn:hover { background: var(--sun); color: #2a3342; }
.cta .form-msg.ok { color: #d3ffe2; }
.cta .form-msg.err { color: #ffd6d6; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 34px 24px; } }

/* ============ Проєкти ============ */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.project {
  border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--line); background: var(--card); cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  box-shadow: var(--shadow-sm);
}
.project:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project__img { aspect-ratio: 16/10; overflow: hidden; border-bottom: 1px solid var(--line); }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project:hover .project__img img { transform: scale(1.06); }
.project__body { padding: 24px; }
.project__body h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.project__body p { color: var(--muted); font-size: 14.5px; }
.project__count {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--primary);
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.project__count svg { vertical-align: -2px; margin-right: 5px; }
@media (max-width: 800px) { .projects-grid { grid-template-columns: 1fr; } }

/* ============ Лайтбокс ============ */
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(20,32,54,.93); display: none; align-items: center; justify-content: center; }
.lb.on { display: flex; }
.lb img { max-width: 92vw; max-height: 84vh; border-radius: 10px; object-fit: contain; }
.lb__x { position: absolute; top: 20px; right: 26px; font-size: 34px; background: none; border: 0; color: #cdd8ea; }
.lb__x:hover { color: #fff; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 22px; }
.lb__nav:hover { background: var(--primary); border-color: var(--primary); }
.lb__prev { left: 22px; } .lb__next { right: 22px; }
.lb__cap { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; font-weight: 600; background: rgba(63,140,255,.9); padding: 6px 16px; border-radius: 999px; }

/* ============ Партнери ============ */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.partner {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px;
  display: flex; align-items: center; justify-content: center; min-height: 96px;
  filter: grayscale(1) opacity(.72); transition: filter .3s, transform .3s, box-shadow .3s;
}
.partner:hover { filter: none; transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.partner img { max-height: 52px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 760px) { .partners { grid-template-columns: repeat(2, 1fr); } }

/* ============ Підвал (світлий) ============ */
.footer { background: #eef3f9; border-top: 1px solid var(--line); color: var(--text); padding: 64px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--primary); margin-bottom: 18px; font-style: italic; }
.footer a { display: block; color: #4d586b; font-size: 14.5px; margin-bottom: 10px; transition: color .2s; }
.footer a:hover { color: var(--primary); }
.footer__logo img { height: 30px; margin-bottom: 16px; }
.footer__logo p { color: var(--muted); font-size: 14px; max-width: 280px; }
.footer__bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #8b96a8; font-size: 13.5px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); margin: 0; transition: .25s;
}
.socials a:hover { background: var(--primary); border-color: var(--primary); }
.socials a:hover svg { fill: #fff; }
.socials svg { width: 18px; height: 18px; fill: var(--primary); transition: fill .25s; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  /* пальцем у щільний список посилань не влучиш — розводимо рядки */
  .footer a { padding: 7px 0; margin-bottom: 0; }
  .footer__logo img, .socials a { margin-bottom: 16px; }
  .socials a { padding: 0; margin-bottom: 0; }
}

/* ============ Чат-віджет ============ */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 95;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--primary); border: 0; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 32px rgba(63, 140, 255, .45);
  transition: transform .25s, background .25s;
  animation: fab-pulse 2.6s infinite;
}
.chat-fab:hover { transform: scale(1.08); background: var(--primary-dark); }
.chat-fab svg { width: 27px; height: 27px; }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 10px 32px rgba(63,140,255,.45), 0 0 0 0 rgba(63,140,255,.4); }
  55% { box-shadow: 0 10px 32px rgba(63,140,255,.45), 0 0 0 16px rgba(63,140,255,0); }
}
.chat-panel {
  position: fixed; right: 22px; bottom: 96px; z-index: 95;
  width: min(350px, calc(100vw - 34px));
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden auto;
  /* на невисоких екранах панель не має вилазити за верх вікна */
  max-height: calc(100svh - 118px); overscroll-behavior: contain;
  opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none;
  transition: opacity .28s, transform .28s;
}
.chat-panel.on { opacity: 1; transform: none; pointer-events: auto; }
.chat-panel__head { background: linear-gradient(120deg, var(--primary), #2f6fd6); padding: 18px 20px; }
.chat-panel__head h4 { font-size: 16px; font-weight: 800; color: #fff; }
.chat-panel__head p { font-size: 13px; color: #dbe8fb; font-weight: 500; }
.chat-panel__list { padding: 12px; display: grid; gap: 8px; }
.chat-link {
  display: flex; align-items: center; gap: 13px; padding: 11px 13px;
  border-radius: 12px; background: #f7fafd; border: 1px solid var(--line);
  transition: border-color .2s, transform .2s; font-size: 14.5px; font-weight: 600; color: var(--text);
}
.chat-link:hover { border-color: var(--primary); transform: translateX(3px); }
.chat-link .ic {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.chat-link .ic svg { width: 20px; height: 20px; fill: #fff; }
.chat-link small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.ic--tg { background: #229ED9; } .ic--vb { background: #7360f2; }
.ic--wa { background: #25D366; } .ic--ph { background: var(--primary); }
.ic--em { background: #6b7688; }
.chat-panel__form { padding: 14px; border-top: 1px solid var(--line); }
.chat-panel__form p { font-size: 13px; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.chat-panel__form .row { display: flex; gap: 8px; }
.chat-panel__form input {
  flex: 1; background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 13px; color: var(--text); font-size: 14px; outline: none;
}
.chat-panel__form input:focus { border-color: var(--primary); }
.chat-panel__form button { border-radius: 10px; border: 0; background: var(--primary); color: #fff; font-weight: 800; padding: 0 18px; font-size: 14px; }
.chat-panel__form button:hover { background: var(--primary-dark); }

/* ============ Хлібні крихти ============ */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 26px; font-weight: 500; }
.crumbs a { display: inline-block; padding: 6px 0; }
.crumbs a:hover { color: var(--primary); }
.crumbs span::before { content: "/"; margin-right: 8px; color: #c3cddc; }

/* ============ Сторінковий герой ============ */
.page-hero { padding: 160px 0 70px; position: relative; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; transform: scale(1.05); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246,249,252,.8), var(--bg) 88%); }
.page-hero .container { position: relative; z-index: 2; }

/* ============ Числа/кроки ============ */
.steps { display: grid; gap: 18px; margin-top: 48px; }
.step {
  display: grid; grid-template-columns: 158px 1fr; gap: 22px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .25s, box-shadow .25s;
  box-shadow: var(--shadow-sm);
}
.step:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.step__num {
  font-size: 32px; font-weight: 900; font-style: italic; color: transparent;
  -webkit-text-stroke: 2px var(--primary); line-height: 1.1;
  white-space: nowrap; padding-top: 3px;
}
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.step p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; gap: 8px; } }

/* ============ «Про нас»: цифри та драбина процесу ============ */
.about-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.about-num {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.about-num:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.about-num b {
  display: block; font-size: 46px; font-weight: 900; font-style: italic;
  color: var(--primary); line-height: 1; margin-bottom: 10px;
}
.about-num > span { color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 980px) { .about-nums { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .about-nums { grid-template-columns: 1fr; } }

.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; align-items: end; }
.ladder-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow-sm); position: relative;
  transition: transform .25s, box-shadow .25s;
}
.ladder-step:nth-child(1) { margin-top: 72px; }
.ladder-step:nth-child(2) { margin-top: 48px; }
.ladder-step:nth-child(3) { margin-top: 24px; }
.ladder-step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.ladder-step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--primary); color: #fff; font-weight: 900; font-style: italic;
  margin-bottom: 14px; font-size: 15px;
}
.ladder-step h3 { font-size: 16.5px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.ladder-step p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
@media (max-width: 900px) {
  .ladder { grid-template-columns: 1fr 1fr; }
  .ladder-step { margin-top: 0 !important; }
}
@media (max-width: 520px) { .ladder { grid-template-columns: 1fr; } }

/* ============ Плитки-переваги (посадкові сторінки) ============ */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.feat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat__ic { display: block; font-size: 26px; line-height: 1; margin-bottom: 14px; }
.feat b { display: block; font-size: 16.5px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.feat span { display: block; color: var(--muted); font-size: 14px; line-height: 1.55; }
@media (max-width: 980px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feats { grid-template-columns: 1fr; } }

/* ============ Блог: сітка карток ============ */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 42px; }
.post-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card__img { aspect-ratio: 16/10; overflow: hidden; border-bottom: 1px solid var(--line); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.post-card h3 { font-size: 18px; font-weight: 800; line-height: 1.32; color: var(--text); }
.post-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.post-card__more { color: var(--primary); font-weight: 700; font-size: 14px; }
.post-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-weight: 600; }
.post-tag {
  background: var(--primary-soft); color: var(--primary-dark);
  padding: 4px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
@media (max-width: 980px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }

/* ============ Блог: сторінка статті ============ */
.article { max-width: 760px; margin: 0 auto; }
.article__cover {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  margin: 32px 0; box-shadow: var(--shadow-sm);
}
.article__body { font-size: 16.5px; line-height: 1.75; color: #3c4759; }
.article__body p { margin-bottom: 20px; }
.article__body h2 {
  font-size: clamp(19px, 2.4vw, 23px); font-weight: 900; font-style: italic;
  text-transform: uppercase; color: var(--text); margin: 36px 0 14px; line-height: 1.2;
}
.article__body ul { margin: 0 0 20px 22px; }
.article__body li { margin-bottom: 8px; }
.article__body b { color: var(--text); }
.article__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line);
}

/* ============ Питання й відповіді ============ */
.faq { display: grid; gap: 12px; margin-top: 44px; max-width: 900px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; box-shadow: var(--shadow-sm);
}
.faq summary {
  font-size: 16px; font-weight: 800; color: var(--text); cursor: pointer;
  list-style: none; display: flex; gap: 16px; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 24px; font-weight: 800; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin-top: 12px; }

/* Тост */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 80px);
  background: var(--primary); color: #fff; font-weight: 700; font-size: 14.5px;
  padding: 13px 26px; border-radius: 999px; z-index: 130; opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  box-shadow: 0 14px 40px rgba(63,140,255,.4);
}
.toast.on { transform: translate(-50%, 0); opacity: 1; }
/* коли відкрита шухляда кошика — тост не має накривати кнопку «Оформити замовлення» */
body.drawer-open .toast { bottom: auto; top: 92px; transform: translate(-50%, -80px); }
body.drawer-open .toast.on { transform: translate(-50%, 0); }

/* ============ Адаптив сторінкових сіток ============ */
/* !important — перебиваємо inline-стилі у розмітці (раніше це робив JS уже після верстки) */
@media (max-width: 900px) {
  #checkout { grid-template-columns: 1fr !important; }
  #orderForm { position: static !important; }
}
@media (max-width: 860px) {
  #founderGrid, #contactsGrid { grid-template-columns: 1fr !important; gap: 28px !important; }
}
