/* Amperel landing pages — shared styles
   Brand: blue #0972A8, orange #D36632, grey #86929A (BrandBook 2023)
   Signature motif: skewed parallelograms / oversized "A" frame */

:root {
  --blue: #0972a8;
  --blue-dark: #075a85;
  --navy: #063950;
  --orange: #d36632;
  --orange-dark: #b85425;
  --red: #d9432f;
  --grey: #86929a;
  --ink: #1d2b33;
  --muted: #5c6b74;
  --bg-light: #f2f6f8;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 57, 80, 0.10);
  --shadow-lg: 0 18px 50px rgba(6, 57, 80, 0.18);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", "Arial", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }

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

/* ---------- typography ---------- */

h1, h2, h3 { line-height: 1.2; font-weight: 700; }

h1 { font-size: clamp(30px, 4.4vw, 50px); }
h2 { font-size: clamp(24px, 3.2vw, 36px); }
h3 { font-size: 18px; }

.section { padding: 72px 0; }
.section--tint { background: var(--bg-light); }
.section--navy { background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 100%); color: var(--white); }

/* brandbook-style heading: orange slash before the title */
.section-head { max-width: 760px; margin-bottom: 42px; }
.section-head h2 { position: relative; padding-left: 26px; }
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 10px;
  background: var(--orange);
  transform: skewX(-14deg);
}
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.section--navy .section-head p { color: rgba(255, 255, 255, 0.8); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(211, 102, 50, 0.35);
}
.btn--orange:hover { background: var(--orange-dark); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); }

/* subtle pulse to draw the eye to primary CTAs */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(211, 102, 50, 0.35); }
  50% { box-shadow: 0 8px 30px rgba(211, 102, 50, 0.6); }
}
.btn--pulse { animation: ctaPulse 2.6s ease-in-out infinite; }

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(6, 57, 80, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.header__logo img { height: 40px; width: auto; }
.header__nav { display: flex; gap: 26px; margin-left: auto; }
.header__nav a { color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.header__nav a:hover { color: var(--blue); }
.header__phone { font-weight: 700; color: var(--ink); white-space: nowrap; font-size: 15px; }
.header__phone:hover { color: var(--blue); }
.header .btn { padding: 11px 20px; font-size: 14px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue-dark) 55%, var(--blue) 100%);
  overflow: hidden;
}
.hero__photo {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  will-change: transform;
}
/* parallax decor (moved by mouse via JS) */
.hero__deco {
  position: absolute;
  transform: skewX(-14deg);
  pointer-events: none;
  will-change: transform;
}
.hero__deco--1 { width: 220px; top: -10%; bottom: -10%; right: 5%; background: rgba(255, 255, 255, 0.06); }
.hero__deco--2 { width: 90px; top: 14%; height: 78%; right: 24%; background: rgba(211, 102, 50, 0.22); }
.hero__deco--3 { width: 140px; top: -20%; height: 65%; left: -50px; background: rgba(255, 255, 255, 0.05); }

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 96px;
}
.hero__tag {
  display: inline-block;
  padding: 7px 16px;
  margin-bottom: 22px;
  background: rgba(211, 102, 50, 0.92);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: skewX(-8deg);
}
.hero__tag span { display: inline-block; transform: skewX(8deg); }
.hero p.hero__sub {
  margin-top: 20px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
}
.hero__points { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.hero__points li { position: relative; padding-left: 32px; font-size: 16px; }
.hero__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--orange);
}
.hero__points li::after {
  content: "";
  position: absolute;
  left: 4px; top: 7px;
  width: 8px; height: 5px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

.hero__card {
  justify-self: end;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px 28px;
  will-change: transform;
}
.hero__card h3 { font-size: 20px; margin-bottom: 6px; }
.hero__card > p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* ---------- stats strip ---------- */

.stats { background: var(--white); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: -46px;
  position: relative;
  z-index: 5;
}
.stat {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  border-top: 4px solid var(--orange);
}
.stat b { display: block; font-size: 28px; color: var(--blue); line-height: 1.1; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }

/* ---------- generic card grids ---------- */

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 10px; color: var(--ink); }
.card p { color: var(--muted); font-size: 15px; }

/* sector cards ("Для кого") */
.sector { border-left: 5px solid var(--blue); }
.sector__pain { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.sector__fix { font-size: 14.5px; color: var(--ink); }
.sector__fix b { color: var(--blue); }

/* product cards */
.product { display: flex; align-items: flex-start; gap: 14px; padding: 22px; }
.product__mark {
  flex: none;
  width: 14px; height: 40px;
  background: var(--orange);
  transform: skewX(-14deg);
  border-radius: 3px;
  margin-top: 2px;
}
.product h3 { font-size: 16px; margin-bottom: 4px; }
.product p { font-size: 13.5px; }

/* advantage cards */
.adv__num {
  display: inline-block;
  font-size: 30px;
  font-weight: 700;
  color: rgba(9, 114, 168, 0.25);
  margin-bottom: 10px;
}

/* ---------- cost / loss visualisation ---------- */

.cost { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 26px; align-items: stretch; }
.cost__counters { display: grid; gap: 20px; align-content: stretch; }

.counter { display: flex; flex-direction: column; justify-content: center; }
.counter b { font-size: 40px; color: var(--blue); line-height: 1.05; font-weight: 700; font-variant-numeric: tabular-nums; }
.counter b span { font-size: inherit; color: inherit; }
.counter b em { font-style: normal; font-size: 24px; }
.counter > span { margin-top: 8px; color: var(--muted); font-size: 14px; }
.counter--danger b { color: var(--red); }

.cost__chart { padding: 30px 28px; display: flex; flex-direction: column; }
.cost__chart h3 { font-size: 19px; }
.cost__note { font-size: 12.5px; color: var(--grey); margin-top: 10px; }

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  height: 190px;
  margin-top: 26px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(134, 146, 154, 0.25);
}
.chart-bars .bar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.chart-bars .bar i {
  display: block;
  width: 100%;
  max-width: 66px;
  height: 0;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--blue), var(--navy));
  transition: height 1.1s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.chart-bars .bar.is-danger i { background: linear-gradient(180deg, #e07b47, var(--orange-dark)); }
.chart-bars .bar b { font-size: 14px; }
.chart-bars .bar > span { font-size: 12px; color: var(--muted); }

.calc { margin-top: 20px; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 15px; margin-bottom: 12px; }
.calc__row b { font-size: 24px; color: var(--blue); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc input[type="range"] { width: 100%; accent-color: var(--orange); cursor: pointer; }
.calc__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
  vertical-align: middle;
  flex: none;
}
.calc__chartwrap { margin-top: 24px; padding-top: 20px; border-top: 1px dashed rgba(134, 146, 154, 0.4); }
.calc__totals { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 22px; }
.calc__total {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg-light);
  border-left: 4px solid var(--red);
}
.calc__total span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.calc__total b { font-size: 21px; color: var(--red); font-variant-numeric: tabular-nums; }
.calc__total--zero { background: rgba(9, 114, 168, 0.08); border-left-color: var(--blue); }
.calc__total--zero b { color: var(--blue); }

.counter__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
  margin-bottom: 10px;
}

/* comparison table (precision vs comfort AC) */
.compare { margin-top: 26px; padding: 26px 28px; }
.compare__head, .compare__row {
  display: grid;
  grid-template-columns: 1fr 150px 150px;
  gap: 12px;
  align-items: center;
}
.compare__head { font-size: 12px; color: var(--grey); text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: 12px; border-bottom: 1px solid rgba(134, 146, 154, 0.3); }
.compare__head span:not(:first-child), .compare__row .tick, .compare__row .cross { justify-self: center; text-align: center; }
.compare__row { padding: 13px 0; border-bottom: 1px dashed rgba(134, 146, 154, 0.22); font-size: 14.5px; }
.compare__row:last-child { border-bottom: none; }

.tick, .cross { width: 28px; height: 28px; border-radius: 50%; position: relative; }
.tick { background: rgba(9, 114, 168, 0.12); }
.tick::after {
  content: "";
  position: absolute;
  left: 8px; top: 9px;
  width: 11px; height: 6px;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}
.cross { background: rgba(217, 67, 47, 0.1); }
.cross::before, .cross::after {
  content: "";
  position: absolute;
  left: 8px; top: 13px;
  width: 12px; height: 2.5px;
  background: var(--red);
}
.cross::before { transform: rotate(45deg); }
.cross::after { transform: rotate(-45deg); }

/* ---------- brands ---------- */

.brands__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.brand {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 96px;
  min-width: 170px;
  flex: 1 1 170px;
  max-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 26px;
  transition: transform 0.25s ease;
}
.brand:hover { transform: translateY(-4px); }
.brand img { max-height: 52px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- steps ---------- */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: background 0.25s ease;
}
.step:hover { background: rgba(255, 255, 255, 0.13); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 12px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); }

/* ---------- projects ---------- */

.project {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.project:hover img { transform: scale(1.04); }
.project figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(6, 57, 80, 0.85));
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- reviews ---------- */

.review { position: relative; padding-top: 34px; }
.review::before {
  content: "\201C";
  position: absolute;
  top: 6px; left: 22px;
  font-size: 64px;
  line-height: 1;
  color: rgba(9, 114, 168, 0.25);
  font-family: Georgia, serif;
}
.review__text { color: var(--ink); font-size: 15px; font-style: italic; }
.review__author { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: none;
}
.review__author b { display: block; font-size: 14px; }
.review__author span { font-size: 13px; color: var(--muted); }

/* placeholder styling (reviews / certificates until client provides files) */
.is-placeholder { border: 2px dashed rgba(134, 146, 154, 0.5); box-shadow: none; }
.placeholder-note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--grey);
  text-align: center;
}

/* ---------- certificates ---------- */

.cert {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.cert__icon {
  width: 58px; height: 74px;
  border: 3px solid var(--blue);
  border-radius: 6px;
  position: relative;
  opacity: 0.6;
}
.cert__icon::before, .cert__icon::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px;
  height: 3px;
  background: var(--blue);
}
.cert__icon::before { top: 16px; }
.cert__icon::after { top: 28px; right: 22px; }
.cert p { font-size: 13.5px; color: var(--muted); }

/* ---------- lead form section (expert scene) ---------- */

.lead { position: relative; overflow: hidden; }
.lead::before {
  content: "";
  position: absolute;
  width: 300px;
  top: -10%; bottom: -10%;
  left: -6%;
  background: rgba(255, 255, 255, 0.05);
  transform: skewX(-14deg);
}
.lead__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.lead__expert { position: relative; display: flex; justify-content: center; }
.lead__scene { position: relative; width: min(430px, 100%); padding-top: 26px; }
/* layered brand parallelograms behind the photo */
.lead__scene::before {
  content: "";
  position: absolute;
  top: 40px; bottom: 0; left: 52px; right: -14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: skewX(-12deg);
  border-radius: 20px;
}
.lead__scene::after {
  content: "";
  position: absolute;
  top: 76px; bottom: 0;
  left: 8px; width: 86px;
  background: linear-gradient(180deg, var(--orange), var(--orange-dark));
  transform: skewX(-12deg);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(211, 102, 50, 0.4);
}
.lead__photo { position: relative; z-index: 2; display: flex; justify-content: center; }
.lead__photo img {
  max-height: 470px;
  width: auto;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.45));
}
.lead__chip {
  position: absolute;
  z-index: 3;
  top: 46px; right: -6px;
  background: var(--orange);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  transform: rotate(3deg);
  box-shadow: 0 12px 30px rgba(211, 102, 50, 0.45);
  animation: chipFloat 3.4s ease-in-out infinite;
}
@keyframes chipFloat {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-8px); }
}
.lead__expert-info {
  position: absolute;
  z-index: 3;
  left: -6px; bottom: 30px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 14px 20px 14px 16px;
  border-left: 5px solid var(--orange);
}
.lead__expert-info b { display: block; font-size: 15px; }
.lead__expert-info span { font-size: 13px; color: var(--muted); }

/* ---------- form ---------- */

.form { display: grid; gap: 14px; }
.form input, .form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(134, 146, 154, 0.45);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); }
.form input.is-invalid { border-color: var(--red); }
.form textarea { resize: vertical; min-height: 84px; }
.form__policy { font-size: 12px; color: var(--muted); }
.form__policy a { text-decoration: underline; }
.form__success {
  display: none;
  padding: 18px;
  border-radius: 10px;
  background: rgba(9, 114, 168, 0.08);
  border: 1.5px solid var(--blue);
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 15px;
}
.form.is-sent .form__success { display: block; }
.form.is-sent .form__fields { display: none; }
.form__fields { display: grid; gap: 14px; }

.lead .hero__card { max-width: none; justify-self: stretch; }

/* ---------- modals ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 57, 80, 0.72);
  backdrop-filter: blur(3px);
}
.modal__box {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border-radius: 16px;
  padding: 34px 30px 28px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(22px) scale(0.96);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1.2);
}
.modal.is-open .modal__box { transform: none; }
.modal__box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--orange) 0 30%, var(--blue) 30% 100%);
}
.modal__box h3 { font-size: 22px; margin-bottom: 8px; padding-right: 26px; }
.modal__box > p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.modal__box--wide { max-width: 660px; }
.policy-text {
  max-height: 56vh;
  overflow-y: auto;
  padding-right: 10px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.policy-text h4 { color: var(--ink); font-size: 15px; margin-top: 8px; }
.policy-text ul { padding-left: 20px; display: grid; gap: 4px; }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--grey);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.modal__close:hover { background: rgba(217, 67, 47, 0.1); color: var(--red); }

/* ---------- contacts ---------- */

.contacts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-item { padding: 24px 22px; }
.contact-item b { display: block; margin-bottom: 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey); }
.contact-item a { display: block; font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.contact-item a:hover { color: var(--blue); }
.contact-item p { font-size: 16px; }
.messengers { display: flex; gap: 12px; margin-top: 10px; }
.messengers a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.messengers a.wa { background: #2fb463; }
.messengers a.tg { background: #2a9dd8; }
.messengers a:hover { opacity: 0.9; }

/* ---------- icons ---------- */

.ic { width: 24px; height: 24px; display: block; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(9, 114, 168, 0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon .ic { width: 26px; height: 26px; }
.card-icon--orange { background: rgba(211, 102, 50, 0.12); color: var(--orange); }

.product__icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: skewX(-6deg);
}
.product__icon .ic { width: 23px; height: 23px; transform: skewX(6deg); }

.contact-item .card-icon { margin-bottom: 12px; }

/* ---------- footer ---------- */

.footer {
  position: relative;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 0;
  font-size: 13.5px;
  overflow: hidden;
}
/* signature parallelograms in the background */
.footer::before {
  content: "";
  position: absolute;
  top: -20%; bottom: -20%;
  right: -3%;
  width: 240px;
  background: rgba(255, 255, 255, 0.04);
  transform: skewX(-14deg);
  pointer-events: none;
}
.footer::after {
  content: "";
  position: absolute;
  top: -30%;
  right: 14%;
  width: 80px;
  height: 70%;
  background: rgba(211, 102, 50, 0.16);
  transform: skewX(-14deg);
  pointer-events: none;
}
.footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer__logo { height: 40px; width: auto; }
.footer__about p { margin-top: 18px; font-size: 13.5px; color: rgba(255, 255, 255, 0.6); max-width: 260px; }
.footer__head {
  position: relative;
  padding-left: 16px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.footer__head::before {
  content: "";
  position: absolute;
  left: 0; top: 1px; bottom: 1px;
  width: 6px;
  background: var(--orange);
  transform: skewX(-14deg);
}
.footer__list { list-style: none; display: grid; gap: 10px; }
.footer__list a { color: rgba(255, 255, 255, 0.75); font-size: 14px; transition: color 0.15s ease; }
.footer__list a:hover { color: var(--white); }
.footer__contact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  margin-bottom: 12px;
}
a.footer__contact:hover { color: var(--white); }
.footer__contact .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--orange); }
.footer__social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__social a {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.footer__social a:hover { background: var(--orange); transform: translateY(-3px); }
.footer__social .ic { width: 20px; height: 20px; }
.footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer__bottom a { color: rgba(255, 255, 255, 0.75); }
.footer__bottom a:hover { color: var(--white); }

/* ---------- floating whatsapp ---------- */

.float-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #2fb463;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(47, 180, 99, 0.5);
  transition: transform 0.15s ease;
}
.float-wa:hover { transform: scale(1.08); }
.float-wa svg { width: 30px; height: 30px; fill: #fff; color: #fff; }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-30px); }
.reveal--right { transform: translateX(30px); }
.reveal--left.is-visible, .reveal--right.is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--left, .reveal--right { opacity: 1; transform: none; transition: none; }
  .btn--pulse, .lead__chip { animation: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .header__nav { display: none; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 76px; }
  .hero__card { justify-self: stretch; max-width: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cost { grid-template-columns: 1fr; }
  .cost__counters { grid-template-columns: repeat(3, 1fr); }
  .lead__inner { grid-template-columns: 1fr; }
  .lead__expert { display: none; }
  .contacts__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .section { padding: 52px 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat b { font-size: 22px; }
  .header__phone { display: none; }
  .hero__cta .btn { width: 100%; }
  .cost__counters { grid-template-columns: 1fr; }
  .chart-bars { gap: 10px; height: 160px; }
  .calc__totals { grid-template-columns: 1fr; }
  .compare__head, .compare__row { grid-template-columns: 1fr 74px 74px; }
  .compare__head span:not(:first-child) { font-size: 10px; }
}

/* ================= v2 (ibp-new) additions ================= */

/* long words must not blow up narrow grid columns on mobile */
.stat { min-width: 0; }
.stat b, .stat span { overflow-wrap: break-word; hyphens: auto; }

/* horizontal scroll strips (sectors / projects / certificates on v2 pages) */
.hscroll {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) rgba(134, 146, 154, 0.18);
}
.hscroll::-webkit-scrollbar { height: 8px; }
.hscroll::-webkit-scrollbar-track { background: rgba(134, 146, 154, 0.15); border-radius: 99px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 99px; }
.hscroll > * { flex: 0 0 auto; scroll-snap-align: start; }
.hscroll .sector { width: min(365px, 82vw); }
.hscroll .project { width: min(400px, 84vw); }
.hscroll .cert--real { width: min(350px, 80vw); }

/* intl-tel-input inside forms */
.iti { width: 100%; }
.iti input[type="tel"] { width: 100%; }
.iti__country-list { z-index: 300; max-width: 320px; }

/* certificate lightbox */
.modal__box--photo { max-width: 760px; padding: 26px 26px 20px; text-align: center; }
.modal__box--photo .modal__cert-img {
  max-height: 74vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid rgba(134, 146, 154, 0.25);
  border-radius: 8px;
  display: block;
}
.modal__cert-title { margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--ink); }

/* real certificate cards (link to PDF) */
.cert--real {
  padding: 16px 16px 18px;
  min-height: 0;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cert--real:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cert--real img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(134, 146, 154, 0.25);
  background: var(--white);
}
.cert--real p { font-size: 14px; font-weight: 600; color: var(--ink); }

/* photo instead of the bar chart in the cost card */
.cost__img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 22px;
  display: block;
}

/* sector cards with photos instead of icons */
.sector--photo { padding-top: 0; position: relative; }
.sector__photo {
  width: calc(100% + 52px);
  max-width: none;
  margin: 0 -26px 18px;
  height: 158px;
  object-fit: cover;
  border-radius: 0 var(--radius) 0 0;
  display: block;
}
/* brand mask over the photo: fades out on hover (desktop) or when centered (mobile, .is-focused via JS) */
.sector--photo::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 158px;
  background: linear-gradient(120deg, rgba(9, 114, 168, 0.72), rgba(6, 57, 80, 0.45) 55%, rgba(211, 102, 50, 0.5));
  border-radius: 0 var(--radius) 0 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.sector--photo:hover::before,
.sector--photo.is-focused::before { opacity: 0; }

/* brand feature blocks (Eaton / Centiel) */
.brandcards { display: grid; gap: 28px; }
.brandcard {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px 40px;
  align-items: center;
  padding: 36px 36px;
}
.brandcard__media {
  background: var(--bg-light);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.brandcard__media img { max-height: 300px; width: auto; max-width: 100%; object-fit: contain; }
.brandcard--rev .brandcard__media { order: 2; }
.brandcard__logo { height: 38px; width: auto; margin-bottom: 16px; object-fit: contain; object-position: left; }
.brandcard h3 { font-size: 23px; margin-bottom: 4px; }
.brandcard__sub { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.featlist { list-style: none; display: grid; gap: 11px; }
.featlist li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink); }
.featlist li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(211, 102, 50, 0.15);
}
.featlist li::after {
  content: "";
  position: absolute;
  left: 5px; top: 8px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}

/* merged "why Amperel" on navy band */
.section--navy .card { box-shadow: none; }

@media (max-width: 1020px) {
  .brandcard { grid-template-columns: 1fr; }
  .brandcard--rev .brandcard__media { order: 0; }
  .brandcard__media { min-height: 0; }
  .brandcard__media img { max-height: 240px; }
}
