*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --red: #a14848;
  --up: #95acd4;
  --cream: #fbf7ce;
  --ink: #111111;
  --muted: #5c5854;
  --line: #e7e5e2;
  --soft: #f6f5f3;
  --bg: #ffffff;
  --navy: #1e3152;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --serif: "Fraunces", "Times New Roman", serif;
  --max: 1120px;
  --r: 20px;
  --pill: 999px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 40;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 12px;
  }

  .head-row {
    gap: 6px;
  }

  .btn {
    min-height: 48px;
    padding: 0 18px;
  }

  .hero h1 {
    font-size: clamp(24px, 6.5vw, 32px);
  }
}

/* header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  overflow: visible;
  transition: box-shadow 0.35s ease;
}

.head-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  min-width: 0;
  /* не shorthand - інакше з'їдає horizontal padding у .wrap */
  padding-block: 8px;
  transition: min-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), padding-block 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.logo img {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(120px, 42vw);
  transform: none;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo--sm img {
  height: 40px;
  max-width: none;
  transform: none;
  transition: none;
}

.site-foot .logo img {
  height: 40px;
  max-width: none;
  transform: none;
  transition: none;
}

/* десктоп: hang + скрол (висота шапки стабільна - інакше петля scroll) */
@media (min-width: 900px) {
  .head-row {
    min-height: 72px;
    padding-block: 10px;
    gap: 12px;
  }

  .site-head .logo {
    width: 148px;
    height: 44px;
  }

  .site-head .logo img {
    position: absolute;
    top: 0;
    left: 0;
    height: 78px;
    max-width: none;
    transform: translateY(48%);
    transform-origin: top left;
  }

  .site-head.is-scrolled .logo img {
    height: 44px;
    transform: translateY(0);
  }

  /* місце під hang-лого */
  .hero {
    padding-top: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .head-row,
  .logo img {
    transition: none;
  }

  .logo img {
    height: 42px;
    transform: none;
  }

  @media (min-width: 900px) {
    .site-head .logo img {
      height: 52px;
      position: absolute;
      transform: none;
    }

    .site-head.is-scrolled .logo img {
      height: 44px;
    }
  }
}

.desk-nav {
  display: none;
  gap: 22px;
  font-size: 13px;
  font-weight: 700;
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.tool {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #3a3a3a;
}

.tool:hover,
.tool:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

.tool-lang {
  position: relative;
  width: auto;
  height: 30px;
  min-width: 46px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 9px;
}

.lang-face {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding: 0 22px 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #3a3a3a;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c5854' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
  background-size: 11px;
}

.lang-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 16px; /* iOS не зумить */
  appearance: none;
  -webkit-appearance: none;
}

.menu-btn {
  cursor: pointer;
}

.mob-nav {
  display: grid;
  gap: 0;
  padding: 4px 20px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mob-nav[hidden] {
  display: none;
}

.mob-nav a {
  padding: 14px 2px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 960px) {
  .desk-nav {
    display: flex;
    margin-left: auto;
    margin-right: 4px;
  }

  .head-tools {
    margin-left: 0;
  }

  .menu-btn,
  .mob-nav {
    display: none !important;
  }

  .tool-lang {
    height: 40px;
    min-width: 52px;
    border-radius: 12px;
  }
}

/* моб: мова біля лого, месенджери справа */
@media (max-width: 959px) {
  .head-row {
    gap: 6px;
  }

  .head-tools {
    margin-left: 0;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
  }

  .tool-lang {
    margin-right: auto;
  }
}

/* вузький екран: усі іконки в шапці, без overflow */
@media (max-width: 480px) {
  .logo img {
    height: 36px;
    max-width: min(92px, 28vw);
  }

  .head-tools {
    gap: 4px;
  }

  .tool {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .tool svg {
    width: 16px;
    height: 16px;
  }

  .tool-lang {
    height: 28px;
    min-width: 42px;
    margin-left: 0;
    border-radius: 8px;
  }

  .lang-face {
    padding: 0 18px 0 8px;
    font-size: 11px;
    background-position: right 5px center;
    background-size: 10px;
  }
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.btn-pill {
  border-radius: var(--pill);
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover,
.btn-red:focus-visible {
  background: color-mix(in srgb, var(--red) 82%, black);
}

.btn-ghost {
  background: #fff;
  color: var(--red);
  border: 1.5px solid var(--red);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--red);
  color: #fff;
}

.calc-out .btn,
.price-card .btn {
  width: 100%;
}

/* hero */
.hero {
  padding: 28px 0 20px;
  background: #fff;
}

.hero-grid {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.lead {
  margin: 0 0 8px;
  max-width: 34em;
  color: var(--muted);
  font-size: 16px;
}

.lead b {
  color: var(--ink);
}

.hero-cta {
  display: grid;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.hero-cta--desk {
  display: none;
}

.hero-media {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--soft);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 20%;
}

.hero-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 18px 18px;
  background: linear-gradient(transparent, rgba(17, 17, 17, 0.78));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

@media (min-width: 900px) {
  .hero {
    padding: 44px 0 40px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: center;
  }

  .hero-cta--desk {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    margin-top: 22px;
  }

  .hero-cta--mob {
    display: none;
  }

  .hero-media img {
    aspect-ratio: 5 / 4;
    min-height: 440px;
  }
}


.hero-points {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 36em;
}

.hero-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.lead-price {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 700;
}

.tone-sub {
  margin: -6px 0 14px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.88;
  line-height: 1.35;
}

.seg-4 .seg-item span {
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
}

/* bands */
.band {
  padding: 56px 0;
}

.band-soft {
  background: var(--soft);
}

.band-quick {
  background: var(--soft);
  padding: 20px 0 28px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.04em;
  font-weight: 800;
  line-height: 1.12;
}

.deck {
  margin: -8px 0 28px;
  max-width: 36em;
  color: var(--muted);
}

/* quick */
.quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--red);
  color: #fff;
}

.quick-num {
  font-size: clamp(16px, 2.8vw, 20px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--cream);
}

.quick-lab {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.78);
}

@media (min-width: 900px) {
  .band-quick {
    padding: 22px 0 28px;
  }

  .quick {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .quick-card {
    padding: 16px 18px;
  }

  .quick-num {
    font-size: 24px;
  }

  .quick-lab {
    font-size: 13px;
  }
}

/* services */
.svc-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
}

.svc-card {
  padding: 18px 16px;
  border-radius: 18px;
  background: #fff;
  min-width: 0;
  overflow-wrap: break-word;
}

.svc-ico {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: var(--red);
}

.svc-card p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

@media (min-width: 980px) {
  .svc-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .svc-card {
    padding: 24px;
  }

  .svc-card p {
    font-size: 16px;
  }
}

/* calc */
.calc-box {
  position: relative;
  display: grid;
  gap: 28px;
  padding: 22px;
  border-radius: var(--r);
  background: var(--soft);
  min-width: 0;
  overflow: hidden;
}

.calc-field {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
}

.calc-field legend,
.calc-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.seg-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 520px) {
  .seg-4 {
    grid-template-columns: 1fr 1fr;
  }
}


.seg-item {
  position: relative;
}

.seg-item input {
  position: absolute;
  inset: 0;
  opacity: 0.01;
  margin: 0;
  cursor: pointer;
}

.seg-item span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #e0dedb;
  border-radius: 14px;
  background: #fff;
  font-weight: 800;
  font-size: 13px;
}

.seg-item input:checked + span,
.seg-item input:focus-visible + span {
  border-color: var(--up);
  color: var(--up);
  box-shadow: inset 0 0 0 1px var(--up);
}

.calc-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 6px;
}

.calc-price {
  font-size: clamp(40px, 7vw, 56px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.calc-vat {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.calc-meta,
.calc-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.calc-desc {
  margin: 14px 0 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

@media (min-width: 860px) {
  .calc-box {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--line);
  }
}

/* packs */
.pack-grid {
  display: grid;
  gap: 14px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 22px 20px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.price-card--hot {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
  padding-top: 36px;
}

.price-tag {
  position: absolute;
  top: 12px;
  left: 20px;
  margin: 0;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.price-name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.price-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  min-height: 2.7em;
}

.price-sum {
  margin: 4px 0 2px;
  font-size: 16px;
  font-weight: 700;
}

.price-sum b {
  font-size: 32px;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.price-sum span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.price-card ul {
  flex: 1 1 auto;
  margin: 8px 0 12px;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.price-card li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 13px;
  line-height: 1.35;
  color: #2a2a2a;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 11px;
  height: 6px;
  border-left: 2.2px solid var(--red);
  border-bottom: 2.2px solid var(--red);
  transform: rotate(-45deg);
}

.price-card .btn {
  width: 100%;
  margin-top: auto;
}

@media (min-width: 760px) {
  .pack-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

@media (min-width: 1080px) {
  .pack-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .price-card {
    padding: 22px 16px 18px;
  }

  .price-card--hot {
    padding-top: 36px;
  }

  .price-name {
    font-size: 20px;
  }

  .price-sum b {
    font-size: 30px;
  }

  .price-card li {
    font-size: 12.5px;
  }
}

/* tones */
.split-tones {
  display: grid;
  gap: 12px;
}

.tone {
  padding: 26px;
  border-radius: 22px;
  color: #fff;
}

.tone h3 {
  margin: 0 0 16px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.tone ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.tone li {
  display: grid;
  gap: 2px;
  padding-left: 22px;
  position: relative;
}

.tone li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.tone strong {
  font-size: 15px;
}

.tone span {
  font-size: 14px;
  opacity: 0.88;
}

.tone a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tone-red {
  background: var(--red);
}

.tone-blue {
  background: var(--up);
}

@media (min-width: 860px) {
  .split-tones {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* faq */
.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.faq details {
  margin: 0;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  cursor: pointer;
  padding: 14px 28px 14px 0;
  font-weight: 800;
  font-size: 15px;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: translateY(-65%) rotate(45deg);
}

.faq details[open] summary::after {
  transform: translateY(-15%) rotate(225deg);
}

.faq details p {
  margin: 0 0 14px;
  padding-top: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 48em;
}

/* contact */
.cta-band {
  padding: 64px 0;
  background: #fff;
  text-align: center;
}

.cta-inner {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.cta-lead {
  margin: 0;
  max-width: 28em;
  color: var(--muted);
}

.cta-phone {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.chats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
}

.chats a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.chats a:hover {
  border-color: var(--red);
  color: var(--red);
}

/* footer */
.site-foot {
  padding: 40px 0;
  background: var(--soft);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.foot-grid {
  display: grid;
  gap: 14px;
}

.foot-grid a {
  color: var(--ink);
  font-weight: 700;
}

.foot-grid a:hover {
  color: var(--red);
}

@media (min-width: 800px) {
  .foot-grid {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
  }
}

/* modals */
.calc-modal,
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(17, 17, 17, 0.72);
}

.calc-modal.is-open,
.contact-modal.is-open {
  display: flex;
}

.modal-dialog {
  width: min(100%, 420px);
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.modal-kicker {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-dialog h3 {
  margin: 0 0 8px;
  font-size: 26px;
}

.modal-lead {
  margin: 0 0 14px;
  color: var(--muted);
}

.modal-form {
  display: grid;
  gap: 10px;
}

.modal-form label span {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
}

.modal-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.modal-form input:focus {
  outline: none;
  border-color: var(--up);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 28%, transparent);
}

.modal-form .btn {
  width: 100%;
  margin-top: 4px;
}

.modal-form .hp-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.modal-form .form-status {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink, #161111);
}

.modal-form[data-busy="1"] .btn {
  opacity: 0.7;
}
