/* =========================================================
   KI Studio — стилі
   Шрифт: Geologica (Google Fonts, підключено в index.html)
   Сітка: контейнер 1440px, відступи 32px, базова одиниця 8px
   ========================================================= */

/* -------- Design tokens -------- */
:root {
  /* Brand */
  --kired: #97322b;
  --kiblue: #2c8296;
  --kigray: #414042;
  --kicream: #fffef2;
  --kiwhite: #ffffff;
  --kiblack: #000000;

  /* Semantic */
  --kierror: #CF4949;
  --kiwarning: #E0C152;
  --kisuccess: #379472;

  /* Red shades / tints */
  --red-shade-800: #1e0a09;
  --red-shade-600: #3c1411;
  --red-shade-400: #5b1e1a;
  --red-shade-200: #792822;
  --red-tint-200: #ac5b55;
  --red-tint-400: #c18480;
  --red-tint-600: #d5adaa;
  --red-tint-800: #ead6d5;

  /* Blue shades / tints */
  --blue-shade-200: #236878;
  --blue-shade-400: #1a4e5a;
  --blue-shade-600: #12343c;
  --blue-shade-800: #091a1e;
  --blue-tint-200: #569bab;
  --blue-tint-400: #80b4c0;
  --blue-tint-600: #abcdd5;
  --blue-tint-800: #d5e6ea;

  /* Gray shades / tints */
  --gray-shade-200: #343335;
  --gray-shade-400: #272628;
  --gray-shade-600: #1a1a1a;
  --gray-shade-800: #0d0d0d;
  --gray-tint-200: #676668;
  --gray-tint-400: #8d8c8e;
  --gray-tint-600: #b3b3b3;
  --gray-tint-800: #d9d9d9;

  /* Layout */
  --container-max: 1440px;
  --container-pad: 32px;
  --radius: 4px;
  --border-w: 2px;

  /* Spacing (8px step) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;
  --s-15: 120px;
  --s-20: 160px;
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font: inherit; }

/* -------- Typography (desktop) -------- */
body {
  font-family: 'Geologica', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--kigray);
  background: var(--kicream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.t-display { font-size: 64px; line-height: 1.10; font-weight: 700; letter-spacing: -0.01em; }
.t-h1      { font-size: 48px; line-height: 1.15; font-weight: 700; }
.t-h2      { font-size: 36px; line-height: 1.20; font-weight: 600; }
.t-h3      { font-size: 28px; line-height: 1.25; font-weight: 600; }
.t-h4      { font-size: 22px; line-height: 1.30; font-weight: 600; }
.t-body    { font-size: 18px; line-height: 1.55; font-weight: 400; }
.t-caption { font-size: 14px; line-height: 1.45; font-weight: 400; }
.t-label   { font-size: 14px; line-height: 1.30; font-weight: 500; letter-spacing: 0.02em; }

/* Tag defaults — map HTML tags to closest styles */
h1 { font-size: 48px; line-height: 1.15; font-weight: 700; }
h2 { font-size: 36px; line-height: 1.20; font-weight: 600; }
h3 { font-size: 28px; line-height: 1.25; font-weight: 600; }
h4 { font-size: 22px; line-height: 1.30; font-weight: 600; }
p  { font-size: 18px; line-height: 1.55; }

/* -------- Layout helpers -------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: var(--s-12); }
.section--tight { padding-block: var(--s-8); }
.section--dark  { background: var(--gray-shade-600); color: var(--kicream); }
.section--red   { background: var(--kired); color: var(--kicream); }
.section--cream { background: var(--kicream); }
.section--pink  { background: var(--red-tint-800); }

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

.eyebrow {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--kigray);
  margin-bottom: var(--s-6);
  letter-spacing: 0.02em;
}
.eyebrow__dot { color: var(--kired); }

.section-lead {
  text-align: center;
  max-width: 880px;
  margin: 0 auto var(--s-6);
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: var(--s-1) var(--s-2);
  border-radius: var(--radius);
  border: var(--border-w) solid transparent;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--sm {
  font-size: 14px;
  font-weight: 500;
  padding: var(--s-1) var(--s-2);
}

.btn--primary {
  background: var(--kired);
  color: var(--kicream);
  border-color: var(--kired);
}
.btn--primary:hover { background: var(--red-shade-200); border-color: var(--red-shade-200); }

.btn--outline {
  background: transparent;
  color: var(--kired);
  border-color: var(--kired);
}
.btn--outline:hover { background: var(--kired); color: var(--kicream); }

.btn--ghost-light {
  background: transparent;
  color: var(--kicream);
  border-color: var(--kicream);
}
.btn--ghost-light:hover { background: var(--kicream); color: var(--kired); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: 22px;
  font-weight: 600;
  color: var(--kired);
  padding: var(--s-1) var(--s-2);
  border-radius: var(--radius);
}
.btn-link:hover { color: var(--red-shade-400); }

/* -------- Top bar -------- */
.topbar {
  background: var(--kired);
  color: var(--kicream);
  padding: var(--s-1) 0;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.topbar .btn {
  padding: var(--s-1) var(--s-2);
  font-size: 14px;
  font-weight: 500;
  background: var(--kired);
  color: var(--kicream);
  border-color: var(--kicream);
}
.topbar .btn:hover { background: var(--kicream); color: var(--kired); }
.topbar__right { display: flex; align-items: center; gap: var(--s-3); }
.topbar__phone { font-size: 14px; font-weight: 500; color: var(--kicream); }
.topbar__phone:hover { color: var(--red-tint-800); }

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: 14px;
  font-weight: 500;
}
.lang-switcher__btn {
  padding: 4px 6px;
  border-radius: var(--radius);
  color: var(--red-tint-600);
  transition: color .15s ease;
}
.lang-switcher__btn.is-active { color: var(--kicream); font-weight: 600; }
.lang-switcher__btn:hover:not(.is-active) { color: var(--kicream); }
.lang-switcher__sep { color: var(--red-tint-400); }

/* -------- Header / Nav -------- */
.site-header {
  background: var(--kicream);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-3);
}
.nav__logo img { width: 88px; height: auto; display: block; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.nav__menu a {
  font-size: 22px;
  font-weight: 600;
  color: var(--gray-shade-200);
  padding: var(--s-1) 0;
  border-bottom: var(--border-w) solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav__menu a:hover { color: var(--kired); border-color: var(--kired); }
.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
}
.nav__burger span,
.nav__burger span::before,
.nav__burger span::after {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gray-shade-200);
  border-radius: 2px;
  position: relative;
  content: '';
}
.nav__burger span::before { position: absolute; top: -8px; }
.nav__burger span::after  { position: absolute; top: 8px; }

/* -------- Hero -------- */
.hero {
  position: relative;
  background-image: url('media/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 254, 242, 0.55);
}
.hero > .container { position: relative; z-index: 1; }
.hero__content {
  padding-block: var(--s-10) var(--s-15);
  max-width: 760px;
}
.hero__display {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--kired);
  margin-bottom: var(--s-1);
}
.hero__h1 {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--gray-shade-200);
  margin-bottom: var(--s-3);
}
.hero__lead {
  font-size: 18px;
  color: var(--kigray);
  margin-bottom: var(--s-2);
  max-width: 680px;
}
.hero__taglines {
  font-size: 18px;
  font-weight: 600;
  color: var(--kired);
  margin-bottom: var(--s-4);
}
.hero__cta { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* -------- USŁUGI -------- */
.service-card {
  background: var(--kicream);
  border: var(--border-w) solid var(--red-tint-600);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card__title {
  background: var(--kired);
  color: var(--kicream);
  padding: var(--s-2);
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}
.service-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.service-card__body {
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}
.service-card__subtitle {
  font-size: 22px;
  font-weight: 600;
  color: var(--kigray);
}
.service-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.service-card__list li {
  padding-left: 28px;
  position: relative;
  font-size: 18px;
  background-image: url('media/bullet-ico.svg');
  background-repeat: no-repeat;
  background-position: 0 8px;
  background-size: 16px 19px;
}
.service-card__note {
  margin-top: auto;
  font-size: 18px;
  color: var(--gray-tint-200);
  font-style: italic;
}

.services-cta {
  text-align: center;
  margin-top: var(--s-5);
}

/* -------- O MNIE -------- */
.about {
  background-image: url('media/o-mnie-tlo.png');
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--kicream);
  padding-block: 0;
}
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(151, 50, 43, 0.65);
}
.about > .container { position: relative; z-index: 1; }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-6);
  align-items: end;
  min-height: 480px;
  padding-top: var(--s-4); /* 32px відступ від верху до фото */
}
.about__photo {
  align-self: end;
  max-width: 100%;
}
.about__photo img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
}
.about__content {
  padding-block: var(--s-6) var(--s-8);
}
.about .eyebrow { text-align: left; margin-bottom: var(--s-4); color: var(--kicream); }
.about .eyebrow .eyebrow__dot { color: var(--red-tint-200); }
.about__title {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--red-tint-800);
  margin-bottom: var(--s-2);
}
.about__title strong {
  display: block;
  font-weight: 700;
  color: var(--kicream);
}
.about__credentials {
  font-size: 14px;
  color: var(--red-tint-800);
  margin-bottom: var(--s-3);
  line-height: 1.6;
}
.about__credentials span { display: block; }
.about__text {
  font-size: 18px;
  color: var(--kicream);
}
.about__text p + p { margin-top: var(--s-2); }
.about__langs {
  margin-top: var(--s-3);
  font-size: 14px;
  font-weight: 500;
  color: var(--red-tint-800);
  letter-spacing: 0.08em;
}

/* -------- JAK TO DZIAŁA -------- */
.steps-eyebrow-sub {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--kigray);
  margin-top: -32px;
  margin-bottom: var(--s-6);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.step__num {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--red-tint-400);
  margin-bottom: var(--s-1);
}
.step__title {
  font-size: 28px;
  font-weight: 600;
  color: var(--kired);
  margin-bottom: var(--s-2);
  min-height: 84px;
}
.step__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.step__list li {
  padding-left: 28px;
  position: relative;
  font-size: 18px;
  background-image: url('media/bullet-ico.svg');
  background-repeat: no-repeat;
  background-position: 0 8px;
  background-size: 16px 19px;
}

/* -------- Zaopiekuję się -------- */
.care {
  background: var(--kicream);
  color: var(--kigray);
  padding-block: var(--s-6) var(--s-10);
}
.care__title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: var(--s-5);
  text-align: center;
  color: var(--kigray);
}
.care__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.care__item {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-1);
  border-left: var(--border-w) solid var(--kired);
  padding-left: var(--s-2);
}
.care__icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--s-1);
}
.care__item h4 {
  font-size: 22px;
  font-weight: 600;
  color: var(--kired);
}
.care__item p { font-size: 18px; color: var(--kigray); }

/* -------- PAKIETY -------- */
.packages {
  background-image: url('media/pakiety.png');
  background-size: cover;
  background-position: center;
  position: relative;
}
.packages::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 254, 242, 0.65);
}
.packages > .container { position: relative; z-index: 1; }

.packages__head { text-align: center; margin-bottom: var(--s-6); }
.packages__head .eyebrow { color: var(--kired); }
.packages__title { font-size: 22px; font-weight: 600; color: var(--kigray); margin-bottom: var(--s-1); }
.packages__lead { font-size: 18px; max-width: 800px; margin: 0 auto; color: var(--kigray); }

.pack-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-bottom: var(--s-8);
}
.pack {
  background: var(--kicream);
  color: var(--kigray);
  border: var(--border-w) solid var(--red-tint-600);
  border-radius: var(--radius);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.pack__num {
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  color: var(--red-tint-200);
}
.pack__name {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--kired);
}
.pack__row { display: flex; gap: var(--s-1); }
.pack__row-label { flex: 0 0 auto; font-weight: 600; font-size: 18px; }
.pack__row-text { font-size: 18px; }
.pack__cta {
  margin-top: auto;
  align-self: flex-start;
}

/* CTA в звичайних картках — outline kired */
.pack:not(.pack--featured) .pack__cta {
  background: transparent;
  color: var(--kired);
  border-color: var(--kired);
}
.pack:not(.pack--featured) .pack__cta:hover {
  background: var(--kired);
  color: var(--kicream);
}

/* Featured (рекомендований) — Pakiet 2 */
.pack--featured {
  background: var(--kired);
  color: var(--kicream);
  border-color: var(--kired);
}
.pack--featured .pack__num { color: var(--red-tint-400); }
.pack--featured .pack__name { color: var(--kicream); }
.pack--featured .pack__cta {
  background: transparent;
  color: var(--kicream);
  border-color: var(--kicream);
}
.pack--featured .pack__cta:hover { background: var(--kicream); color: var(--kired); }

/* Comparison table */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--kicream);
  border: var(--border-w) solid var(--red-tint-600);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare th, .compare td {
  padding: var(--s-2) var(--s-3);
  border-bottom: var(--border-w) solid var(--red-tint-600);
  vertical-align: middle;
  text-align: center;
  font-size: 18px;
}
.compare th:first-child, .compare td:first-child {
  text-align: left;
  font-weight: 500;
}
.compare thead th {
  background: var(--red-tint-800);
  color: var(--kired);
  font-weight: 600;
  font-size: 18px;
}
.compare thead th .compare__pack-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-tint-200);
  margin-bottom: 4px;
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare__icon { width: 28px; height: 28px; display: inline-block; }

/* -------- Co dokładnie robię -------- */
.deeds__title { text-align: center; margin-bottom: var(--s-6); }
.deeds__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.deeds__col h4 {
  font-size: 22px;
  font-weight: 600;
  color: var(--kired);
  margin-bottom: var(--s-2);
  padding-bottom: var(--s-1);
  border-bottom: var(--border-w) solid var(--red-tint-400);
}
.deeds__col ul { display: flex; flex-direction: column; gap: var(--s-1); }
.deeds__col li {
  padding-left: 28px;
  position: relative;
  font-size: 18px;
  background-image: url('media/bullet-ico.svg');
  background-repeat: no-repeat;
  background-position: 0 7px;
  background-size: 16px 19px;
}

/* -------- DLACZEGO -------- */
.why__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-6);
  align-items: start;
}
.why__photo img {
  width: 100%;
  border-radius: var(--radius);
}
.why__list { display: flex; flex-direction: column; gap: var(--s-3); }
.why__item h3 {
  font-size: 28px;
  font-weight: 600;
  color: var(--kired);
  margin-bottom: var(--s-1);
  padding-left: 40px;
  background-image: url('media/bullet-ico.svg');
  background-repeat: no-repeat;
  background-position: 0 6px;
  background-size: 24px 28px;
}
.why__item p { font-size: 18px; color: var(--kigray); padding-left: 40px; }

/* -------- FAQ -------- */
.faq__title { text-align: center; margin-bottom: var(--s-6); }
.faq__list {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.faq__item {
  border-bottom: var(--border-w) solid var(--red-tint-600);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-3) 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--kigray);
  text-align: left;
}
.faq__q:hover { color: var(--kired); }
.faq__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  position: relative;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--kired);
  border-radius: 1px;
}
.faq__icon::before {
  width: 16px; height: 2px;
  top: 11px; left: 4px;
}
.faq__icon::after {
  width: 2px; height: 16px;
  top: 4px; left: 11px;
  transition: transform .2s ease;
}
.faq__item.is-open .faq__icon::after { transform: rotate(90deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  font-size: 18px;
  color: var(--kigray);
}
.faq__item.is-open .faq__a {
  max-height: 600px;
  padding-bottom: var(--s-3);
}

/* -------- KONTAKT -------- */
.contact {
  background: var(--red-tint-800);
  padding-block: var(--s-10);
}
.contact__head { text-align: center; margin-bottom: var(--s-6); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s-6);
  max-width: 1080px;
  margin: 0 auto;
  background: var(--kicream);
  padding: var(--s-5);
  border-radius: var(--radius);
}
.contact__info h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.contact__info p { font-size: 14px; margin-bottom: var(--s-3); }
.contact__info .contact__direct {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  font-size: 18px;
  margin-bottom: var(--s-3);
}
.contact__info .contact__direct a:hover { color: var(--kired); }
.contact__langs { font-size: 14px; font-weight: 500; letter-spacing: 0.04em; margin-bottom: var(--s-2); }
.contact__socials { display: flex; gap: var(--s-1); }
.contact__socials a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: transform .15s ease;
}
.contact__socials a:hover { transform: translateY(-2px); }
.contact__socials img { width: 32px; height: 32px; }

.form { display: flex; flex-direction: column; gap: var(--s-2); }
.form__field { display: flex; flex-direction: column; gap: 4px; }
.form__label { font-size: 14px; font-weight: 500; color: var(--gray-shade-200); }
.form__label .req { color: var(--kired); }
.form__input,
.form__select,
.form__textarea {
  border: var(--border-w) solid var(--red-tint-400);
  border-radius: var(--radius);
  background: var(--kicream);
  padding: var(--s-1) var(--s-2);
  font-size: 18px;
  color: var(--kigray);
  width: 100%;
  font-family: inherit;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--kired);
}
.form__textarea { resize: vertical; min-height: 96px; }
.form__field.has-error .form__input,
.form__field.has-error .form__select,
.form__field.has-error .form__textarea {
  border-color: var(--kierror);
  background: #fff5f5;
}
.form__error {
  font-size: 14px;
  color: var(--kierror);
  display: none;
}
.form__field.has-error .form__error { display: block; }

.form__check {
  display: flex;
  gap: var(--s-1);
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
}
.form__check input {
  margin-top: 4px;
  accent-color: var(--kired);
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.form__check.has-error { color: var(--kierror); }

.form__submit { align-self: flex-start; margin-top: var(--s-1); }

/* Honeypot — невидимий для людей, ловить ботів */
.form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}

.form__success {
  display: none;
  padding: var(--s-2);
  background: rgba(55, 148, 114, 0.15);
  border: var(--border-w) solid var(--kisuccess);
  border-radius: var(--radius);
  color: var(--kisuccess);
  font-weight: 500;
}
.form__success.is-visible { display: block; }

/* -------- Footer -------- */
.site-footer {
  background: var(--kigray);
  color: var(--kicream);
  padding-block: var(--s-6);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: var(--s-5);
  align-items: start;
  margin-bottom: var(--s-4);
}
.footer__brand h4 { font-size: 22px; font-weight: 600; margin-bottom: var(--s-1); }
.footer__brand p { font-size: 14px; color: var(--gray-tint-600); }
.footer__address { font-size: 18px; line-height: 1.6; font-style: normal; }
.footer__address div + div { margin-top: 4px; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: flex-end;
}
.footer__nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer__nav a:hover { color: var(--red-tint-400); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-3);
  border-top: var(--border-w) solid var(--gray-tint-200);
  font-size: 14px;
  color: var(--gray-tint-600);
}
.footer__legal { display: flex; gap: var(--s-3); }
.footer__legal a { color: var(--gray-tint-600); }
.footer__legal a:hover { color: var(--kicream); text-decoration: underline; }

/* -------- Cookie banner -------- */
.cookie-banner {
  position: fixed;
  bottom: var(--s-2);
  left: var(--s-2);
  right: var(--s-2);
  max-width: 720px;
  margin: 0 auto;
  background: var(--gray-shade-600);
  color: var(--kicream);
  padding: var(--s-3);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  z-index: 1000;
  display: none;
  font-size: 14px;
  line-height: 1.5;
}
.cookie-banner.is-visible { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.cookie-banner p { flex: 1 1 320px; }
.cookie-banner a { text-decoration: underline; color: var(--red-tint-800); }
.cookie-banner__actions { display: flex; gap: var(--s-1); flex-wrap: wrap; }

/* -------- Mobile -------- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .care__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: var(--s-5); }
  .step__title { min-height: 0; }
  .pack-cards { grid-template-columns: 1fr; }
  .deeds__grid { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; min-height: 0; }
  .about__photo { align-self: center; }
  .why__inner { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; padding: var(--s-3); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --container-pad: 20px; }

  body { font-size: 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }
  h4 { font-size: 18px; }
  p  { font-size: 16px; }

  .t-display { font-size: 40px; }
  .t-h1 { font-size: 32px; }
  .t-h2 { font-size: 26px; }
  .t-h3 { font-size: 22px; }
  .t-h4 { font-size: 18px; }
  .t-body { font-size: 16px; }

  .btn { font-size: 18px; }
  .btn-link { font-size: 18px; }

  .section { padding-block: var(--s-8); }
  .care, .contact { padding-block: var(--s-8); }

  /* O MNIE — 32px паддінг згори і знизу на мобільному */
  .about__inner { padding-top: var(--s-4); padding-bottom: 0; }
  .about__content { padding-block: var(--s-4); }

  /* Зменшити body-розмір у внутрішніх блоках */
  .service-card__list li,
  .step__list li,
  .deeds__col li,
  .about__text,
  .why__item p,
  .care__item p,
  .pack__row-label,
  .pack__row-text,
  .hero__lead,
  .hero__taglines,
  .packages__lead,
  .faq__a,
  .footer__address,
  .contact__info .contact__direct { font-size: 16px; }

  .eyebrow { font-size: 26px; margin-bottom: var(--s-4); }

  /* Hide desktop menu, show burger */
  .nav__menu {
    position: fixed;
    inset: 0;
    background: var(--kicream);
    flex-direction: column;
    justify-content: center;
    gap: var(--s-4);
    z-index: 999;
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu a { font-size: 24px; }
  .nav__burger { display: inline-flex; position: relative; z-index: 1000; }
  .nav__burger.is-open span { background: transparent; }
  .nav__burger.is-open span::before { transform: translateY(8px) rotate(45deg); top: -8px; }
  .nav__burger.is-open span::after  { transform: translateY(-8px) rotate(-45deg); top: 8px; }

  .topbar__inner { flex-direction: column; align-items: stretch; gap: var(--s-1); }
  .topbar__right { justify-content: space-between; }
  .topbar .btn--primary { width: 100%; }

  .hero__display { font-size: 40px; }
  .hero__h1 { font-size: 32px; }
  .hero__lead, .hero__taglines { font-size: 18px; }
  .hero__content { padding-block: var(--s-6) var(--s-10); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }

  .step__num, .pack__num { font-size: 40px; }
  .step__title, .pack__name { font-size: 22px; }

  .care__grid { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  /* Comparison table — convert to stacked cards to avoid horizontal scroll */
  .compare, .compare thead, .compare tbody, .compare tr, .compare th, .compare td {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    padding: 0;
  }
  .compare { background: transparent; border: 0; }
  .compare thead { display: none; }
  .compare tbody { display: grid; gap: var(--s-2); }
  .compare tbody tr {
    background: var(--kicream);
    border: var(--border-w) solid var(--red-tint-600);
    border-radius: var(--radius);
    padding: var(--s-2);
  }
  .compare tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--s-1) 0;
    border-bottom: 1px solid var(--red-tint-800);
  }
  .compare tbody td:last-child { border-bottom: 0; }
  .compare tbody td::before {
    content: attr(data-label);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-tint-200);
    padding-right: var(--s-2);
  }
  .compare tbody tr td:first-child {
    font-weight: 600;
    font-size: 20px;
    color: var(--kired);
    padding-bottom: var(--s-1);
    margin-bottom: var(--s-1);
    border-bottom: var(--border-w) solid var(--red-tint-400);
    display: block;
  }
  .compare tbody tr td:first-child::before { content: ''; padding: 0; }
}
