/* ТОП — точка оперативної поліграфії. Торгова, 40, Одеса.
   Палітра й контрастні пари — за брендбуком ТОП v2.1.
   Шрифти системні: Arial Black (заголовки) + Arial (текст). Веб-шрифтів немає. */

:root {
  --blue: #008ACC;
  --blue-deep: #0075AE;
  --blue-deeper: #005E8C;
  --blue-light: #EAF5FB;
  --magenta: #E8358C;
  --magenta-deep: #C42576;
  --yellow: #FFE100;
  --ink: #241816;
  --white: #FFFFFF;
  --border: #D5E6EF;

  --font-display: "Arial Black", "Arial Bold", Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;

  --container: 1180px;
  --section-py: 84px;
  --radius: 4px;
  --radius-sm: 2px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-deep); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.15; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.25; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.section { padding: var(--section-py) 0; }
.section--alt { background: var(--blue-light); }
.section--ink { background: var(--blue-deep); color: var(--white); }
.section--ink h2 { color: var(--white); }

.section__head { max-width: 760px; margin-bottom: 40px; }
.section__head p { color: rgba(36, 24, 22, 0.72); margin-top: 12px; }
.section--ink .section__head p { color: var(--white); }

/* мітка над заголовком — капсом, до 3-4 слів, трекінг за брендбуком 5.3 */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 12px;
}
.section--ink .eyebrow {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
/* жовтий на глибокому синьому дає 3,86:1 — тому він тут лише як смужка-акцент, не як текст */
.section--ink .eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--yellow);
}

/* ── тріадна смуга (брендбук 6.1): чотири рівні відрізки у фіксованому порядку ── */
.triad {
  display: flex;
  height: 6px;
  width: 100%;
}
.triad span { flex: 1 1 25%; }
.triad span:nth-child(1) { background: var(--blue); }
.triad span:nth-child(2) { background: var(--magenta); }
.triad span:nth-child(3) { background: var(--yellow); }
.triad span:nth-child(4) { background: var(--ink); }

/* ── кнопки ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

/* маджента — одна така кнопка на екран. Білий на мадженті 3,95:1,
   тому кегль не нижче 19 px і тільки жирне накреслення. */
.btn--primary {
  background: var(--magenta);
  color: var(--white);
  font-size: 19px;
  padding: 18px 30px;
}
.btn--primary:hover { background: var(--magenta-deep); }

/* білий на глибокому синьому 5,05:1 — придатно для будь-якого тексту */
.btn--secondary {
  background: var(--blue-deep);
  color: var(--white);
  font-size: 17px;
  padding: 16px 28px;
}
.btn--secondary:hover { background: var(--blue-deeper); }

.btn--ghost {
  background: transparent;
  color: var(--blue-deep);
  border: 2px solid var(--blue);
  font-size: 17px;
  padding: 14px 26px;
}
.btn--ghost:hover { background: var(--blue-light); }

.btn--onink {
  background: var(--white);
  color: var(--blue-deep);
  font-size: 17px;
  padding: 16px 28px;
}
.btn--onink:hover { background: var(--blue-light); }

.btn--sm { font-size: 15px; padding: 12px 20px; }
.btn--block { width: 100%; }

/* ── шапка ─────────────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand img { width: 44px; height: 44px; }
.brand__name {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.02em;
}
.brand__sub {
  font-size: 11px;
  line-height: 1.2;
  color: var(--blue-deep);
  letter-spacing: 0.02em;
  margin-top: 3px;
}
.nav { display: flex; gap: 22px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--blue); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header__phone:hover { color: var(--blue-deep); }
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.burger span::before, .burger span::after { content: ""; position: absolute; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* ── перший екран ──────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.hero__text p.hero__lead {
  font-size: 19px;
  margin-top: 20px;
  max-width: 34em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__note {
  margin-top: 18px;
  font-size: 15px;
  color: rgba(36, 24, 22, 0.7);
}

.infocard {
  background: var(--blue-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.infocard__row + .infocard__row {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.infocard__label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 6px;
}
.infocard__value { font-size: 18px; }
.infocard__value strong { font-family: var(--font-display); font-weight: 900; }
.infocard .btn { margin-top: 20px; }

/* смуга показників */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats__item { background: var(--white); padding: 24px 20px; }
.stats__value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  color: var(--ink);
}
.stats__label { font-size: 14px; color: rgba(36, 24, 22, 0.72); margin-top: 6px; }

/* ── як передати файл ──────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.step__num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--white);
  background: var(--blue-deep);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 15px; color: rgba(36, 24, 22, 0.75); }

.sendbox {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  margin-top: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.sendbox__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.sendbox__alt { font-size: 15px; color: rgba(36, 24, 22, 0.72); margin-top: 16px; }
.qr { text-align: center; }
.qr img { width: 132px; height: 132px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.qr figcaption { font-size: 13px; color: rgba(36, 24, 22, 0.7); margin-top: 8px; }

/* ── послуги ───────────────────────────────────────────────────────────────── */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 180ms ease, transform 180ms ease;
}
.service:hover { border-color: var(--blue); transform: translateY(-2px); }
.service__icon { margin-bottom: 14px; }
.service h3 { margin-bottom: 8px; }
.service p { font-size: 15px; color: rgba(36, 24, 22, 0.75); }
.service__more {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.catalog { margin-top: 36px; display: grid; gap: 12px; }
.catalog details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.catalog summary {
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}
.catalog summary::-webkit-details-marker { display: none; }
.catalog summary::after {
  content: "";
  margin-left: auto;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid var(--blue-deep);
  transition: transform 180ms ease;
}
.catalog details[open] summary::after { transform: rotate(180deg); }
.catalog__body { padding: 0 22px 20px; font-size: 15.5px; color: rgba(36, 24, 22, 0.8); }

.pricenote {
  margin-top: 28px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  font-size: 16px;
}
.pricenote strong { font-family: var(--font-display); }

/* ── чому ми кращі ─────────────────────────────────────────────────────────── */
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.usp__item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 26px;
}
.usp__item h3 { margin-bottom: 10px; }
.usp__item p { font-size: 15.5px; color: var(--white); }

/* ── про нас ───────────────────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.points svg { flex: none; margin-top: 2px; }

/* ── роботи ────────────────────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--blue-light);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("top_pattern_isometric.png");
  background-size: 320px auto;
  opacity: 0.13;
}
.tile span {
  position: relative;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.gallery__note { margin-top: 18px; font-size: 15px; color: rgba(36, 24, 22, 0.7); }

/* ── кому зручно ───────────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 15.5px;
}
.chip b { font-family: var(--font-display); font-weight: 900; display: block; margin-bottom: 4px; }

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.faq summary {
  cursor: pointer;
  padding: 20px 22px;
  font-family: var(--font-display);
  font-size: 16.5px;
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "";
  flex: none;
  margin-top: 8px;
  width: 0;
  height: 0;
  border-left: 8px solid var(--blue-deep);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  transition: transform 180ms ease;
}
.faq details[open] summary::before { transform: rotate(90deg); }
.faq__body { padding: 0 22px 22px 44px; color: rgba(36, 24, 22, 0.82); }

/* ── відгуки ───────────────────────────────────────────────────────────────── */
.reviews {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  background: var(--blue-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.reviews p { max-width: 54ch; margin: 10px 0 0; color: rgba(36, 24, 22, 0.78); }

/* ── заявка ────────────────────────────────────────────────────────────────── */
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-family: var(--font-display); }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__note { font-size: 14px; color: rgba(36, 24, 22, 0.7); margin-top: 14px; }
.form__status { margin-top: 14px; font-size: 15px; }
.form__status.ok { color: var(--blue-deep); font-family: var(--font-display); }
.form__status.err { color: var(--magenta-deep); font-family: var(--font-display); }

/* ── контакти ──────────────────────────────────────────────────────────────── */
.contacts { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contacts__list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 18px; }
.contacts__list li { display: grid; gap: 4px; }
.contacts__list a { text-decoration: none; }
.contacts__list a:hover { text-decoration: underline; }
.contacts__value { font-size: 18px; }
.contacts__value--big { font-family: var(--font-display); font-size: 22px; }
.map {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 340px;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facade { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.facade img { width: 100%; height: auto; }
.facade figcaption { font-size: 14px; color: rgba(36, 24, 22, 0.7); padding: 12px 16px; }

/* ── підвал ────────────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.86); padding: 48px 0 32px; }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer .brand { color: var(--white); }
.footer .brand__sub { color: rgba(255, 255, 255, 0.7); }
.footer h4 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer__bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* ── закріплена панель на мобільному ───────────────────────────────────────── */
.sticky-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  gap: 10px;
}
.sticky-bar .btn { flex: 1 1 0; font-size: 16px; padding: 14px 10px; }
.sticky-bar .btn--primary { font-size: 19px; }

/* ── поява блоків ──────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 420ms ease, transform 420ms ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── адаптив ───────────────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .usp { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__grid, .about, .contacts { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav, .header__phone { display: none; }
  .burger { display: flex; }
  .header__inner { min-height: 66px; }
  .nav--open {
    display: grid;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    gap: 0;
  }
  .nav--open a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .header { position: sticky; }
  .sticky-bar { display: flex; }
  body { padding-bottom: 84px; }
}

@media (max-width: 680px) {
  :root { --section-py: 56px; }
  /* QR на мобільному не потрібен — телефон уже в руках, поруч є кнопки месенджерів */
  .qr { display: none; }
  .brand img { width: 38px; height: 38px; }
  .brand__name { font-size: 22px; }
  .brand__sub { display: none; }
  .footer .brand__sub { display: block; }
  .header__actions .btn--sm { padding: 10px 16px; }
  body { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .services, .usp, .steps, .gallery { grid-template-columns: 1fr; }
  .formgrid { grid-template-columns: 1fr; }
  .sendbox { grid-template-columns: 1fr; }
  .qr { justify-self: start; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 36px; }
  .infocard { padding: 22px; }
  .reviews { padding: 24px; }
}
