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

:root {
  --bg: #f5f1ea;
  --surface: rgba(255, 255, 255, 0.74);
  --ink: #14211f;
  --ink-soft: #4d5a57;
  --line: rgba(20, 33, 31, 0.1);
  --brand: #153b35;
  --brand-soft: #1f5a50;
  --accent: #a3764f;
  --shadow: 0 24px 60px rgba(30, 34, 30, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --container: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(163, 118, 79, 0.18), transparent 34%),
    radial-gradient(circle at right 10% top 12%, rgba(21, 59, 53, 0.16), transparent 28%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 42%, #efe8dc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(20, 33, 31, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.44), transparent 85%);
  opacity: 0.45;
}

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

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

p,
ul,
h1,
h2,
h3 {
  margin-top: 0;
}

ul {
  padding-left: 1.15rem;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 0 12px;
  transition: padding 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  padding: 8px 0;
  background: rgba(245, 241, 234, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(24, 32, 28, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px 18px;
}

.brand {
  display: grid;
  gap: 3px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.brand-logo {
  flex: 0 0 auto;
}

.brand-phone {
  display: inline-flex;
  width: fit-content;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 0;
  margin-top: 1px;
  transition: color 0.2s ease;
}

.brand-phone:hover,
.brand-phone:focus-visible {
  color: var(--accent);
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(21, 59, 53, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-group:hover .brand-mark,
.brand-logo:focus-visible .brand-mark {
  transform: translateY(-1px);
  box-shadow: 0 24px 34px rgba(21, 59, 53, 0.22);
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-text strong {
  font-family: "DM Serif Display", serif;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  white-space: nowrap;
}

.brand-text span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 12px;
}

.site-nav > a:not(.button) {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav > a:not(.button):hover,
.site-nav > a:not(.button).is-current {
  color: var(--brand);
  background: rgba(21, 59, 53, 0.08);
  box-shadow: inset 0 0 0 1px rgba(21, 59, 53, 0.08);
}

.site-nav > a.button {
  color: #fff;
  flex-shrink: 0;
}

.site-nav > a.button:hover,
.site-nav > a.button:focus-visible {
  color: #fff;
}

.header-contact-tools {
  display: grid;
  gap: 3px;
  margin-left: 8px;
  flex: 0 0 auto;
  justify-items: center;
  align-self: center;
}

.header-messenger-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.header-messenger-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  overflow: hidden;
}

.header-messenger-link::before {
  content: "";
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.header-messenger-link:hover,
.header-messenger-link:focus-visible {
  transform: translateY(-1px) scale(1.05);
  background: rgba(21, 59, 53, 0.07);
}

.header-phone-inline {
  display: block;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.01em;
  margin-top: 1px;
}

.header-phone-inline:hover {
  color: var(--brand);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(21, 59, 53, 0.18);
  background: rgba(255, 255, 255, 0.74);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.header-phone-number {
  line-height: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #24584f);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 22px 30px rgba(21, 59, 53, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 36px rgba(21, 59, 53, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(20, 33, 31, 0.12);
  color: var(--ink);
  box-shadow: none;
}

.button-plain {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(20, 33, 31, 0.12);
  color: var(--ink);
  box-shadow: none;
}

.button-small {
  min-height: 42px;
  padding: 0 16px;
}

.site-nav > a.header-nav-cta {
  display: none;
}

.header-cta {
  flex: 0 0 auto;
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  margin: 0;
  background: var(--ink);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-toggle span:first-child {
  transform: translate(-50%, -6px);
}

.nav-toggle span:last-child {
  transform: translate(-50%, 6px);
}

.nav-toggle.is-open span:first-child {
  transform: translate(-50%, 0) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translate(-50%, 0) rotate(-45deg);
}

.hero-section,
.page-hero {
  padding: 44px 0 48px;
}

.hero-grid,
.about-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.page-home .hero-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
  gap: 32px;
}

.page-home .hero-copy h1 {
  width: 100%;
  max-width: none;
  text-wrap: auto;
}

.page-home .hero-check-list {
  margin-bottom: 18px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 36px;
  align-items: start;
}

.page-hero-grid > * {
  min-width: 0;
}

.hero-copy h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-title-main,
.hero-title-sub {
  display: block;
}

.hero-title-sub {
  margin-top: 10px;
  font-size: 0.62em;
  line-height: 1.12;
}

.page-hero h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  max-width: 20ch;
  text-wrap: balance;
}

.lead {
  max-width: 62ch;
  font-size: 1rem;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--brand-soft);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: rgba(21, 59, 53, 0.32);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 36px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-metrics article,
.page-hero-aside,
.info-card,
.case-card,
.process-card,
.service-detail-card,
.pricing-card,
.quote-card,
.cert-card,
.contact-panel,
.legal-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-metrics article {
  padding: 20px;
  border-radius: 22px;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.hero-metrics span,
.pricing-note,
.contact-note {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.messenger-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.messenger-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(20, 33, 31, 0.14);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 18px rgba(21, 59, 53, 0.08);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  overflow: hidden;
}

.messenger-link::before {
  content: "";
  width: 17px;
  height: 17px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.messenger-link:hover,
.messenger-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(21, 59, 53, 0.08);
  box-shadow: 0 12px 22px rgba(21, 59, 53, 0.12);
}

.header-messenger-link.messenger-link-viber::before,
.messenger-link-viber::before {
  background-image: url("assets/img/icons/viber.svg");
}

.header-messenger-link.messenger-link-telegram::before,
.messenger-link-telegram::before {
  background-image: url("assets/img/icons/telegram.svg");
}

.header-messenger-link.messenger-link-whatsapp::before,
.messenger-link-whatsapp::before {
  background-image: url("assets/img/icons/whatsapp.svg");
}

.header-messenger-link.messenger-link-instagram::before,
.messenger-link-instagram::before {
  background-image: url("assets/img/icons/instagram.svg");
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 35;
  display: grid;
  gap: 10px;
}

.floating-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(20, 33, 31, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(21, 59, 53, 0.16);
  backdrop-filter: blur(14px);
}

.floating-contact-link::before {
  content: "";
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.floating-contact-telegram::before {
  background-image: url("assets/img/icons/telegram.svg");
}

.floating-contact-viber::before {
  background-image: url("assets/img/icons/viber.svg");
}

.phone-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: var(--brand);
  font-weight: 800;
}

.hero-visual {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-photo-card,
.portrait-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.12));
  box-shadow: 0 38px 80px rgba(24, 32, 28, 0.16);
}

.hero-photo-card::after,
.portrait-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(8, 15, 13, 0.34));
}

.hero-photo-card img,
.portrait-panel img {
  width: 100%;
  height: min(72vh, 760px);
  object-fit: cover;
  object-position: center top;
}

.hero-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.hero-check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(163, 118, 79, 0.12);
}

.hero-price-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
}

.hero-price-strip span {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid rgba(20, 33, 31, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.hero-price-strip strong {
  color: var(--brand);
  font-size: 1rem;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(21, 59, 53, 0.08);
  color: var(--brand-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding: 54px 0;
}

.section-tight {
  padding-top: 38px;
}

.section-toned {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2,
.stack h2 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.6rem, 2.35vw, 2.1rem);
  line-height: 1.06;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-heading p,
.stack p {
  color: var(--ink-soft);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.card-grid,
.feature-list,
.process-grid,
.pricing-grid,
.cert-grid,
.service-layout {
  display: grid;
  gap: 18px;
}

.card-grid-3,
.feature-list,
.process-grid,
.pricing-grid,
.service-layout {
  grid-template-columns: repeat(3, 1fr);
}

.pricing-grid-wide {
  grid-template-columns: repeat(2, 1fr);
}

.info-card,
.case-card,
.process-card,
.service-detail-card,
.pricing-card,
.cert-card,
.quote-card,
.page-hero-aside,
.contact-panel,
.legal-card {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.page-hero-aside {
  justify-self: end;
  width: min(100%, 420px);
}

.page-services .page-hero,
.page-prices .page-hero {
  padding: 30px 0 18px;
}

.page-services .page-hero-grid,
.page-prices .page-hero-grid {
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.82fr);
  gap: 28px;
  align-items: stretch;
}

.page-services .page-hero .stack,
.page-prices .page-hero .stack {
  gap: 14px;
  align-content: start;
}

.page-services .page-hero h1,
.page-prices .page-hero h1 {
  max-width: 21ch;
  font-size: clamp(1.72rem, 2.75vw, 2.3rem);
  margin-bottom: 12px;
}

.page-services .page-hero .lead,
.page-prices .page-hero .lead {
  max-width: 58ch;
  margin-bottom: 0;
}

.page-services .page-hero-aside,
.page-prices .page-hero-aside {
  display: grid;
  gap: 18px;
  justify-self: stretch;
  width: 100%;
  padding: 24px 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 243, 235, 0.88)),
    radial-gradient(circle at top right, rgba(21, 59, 53, 0.08), transparent 48%);
}

.page-services .page-hero-aside .card-badge,
.page-prices .page-hero-aside .card-badge {
  width: fit-content;
}

.page-services .page-hero-aside p,
.page-prices .page-hero-aside p {
  margin-bottom: 0;
}

.page-services .page-hero-aside .hero-fact-list,
.page-prices .page-hero-aside .hero-fact-list {
  gap: 0;
}

.page-services .page-hero-aside .hero-fact-list li,
.page-prices .page-hero-aside .hero-fact-list li {
  padding-bottom: 14px;
}

.hero-fact-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-fact-list li {
  display: grid;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(20, 33, 31, 0.08);
}

.hero-fact-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-fact-list strong {
  font-size: 1.02rem;
  color: var(--brand);
}

.hero-fact-list span {
  color: var(--ink-soft);
}

.info-card h3,
.case-card h3,
.process-card h3,
.service-detail-card h3,
.pricing-card h3,
.quote-card h3,
.cert-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.feature-list article {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.why-feature-list {
  grid-template-columns: repeat(2, 1fr);
}

.feature-list h3,
.feature-list p {
  margin-bottom: 0;
}

.quote-card {
  position: relative;
}

.about-split-why {
  align-items: start;
}

.why-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.quote-mark {
  margin-bottom: 18px;
  color: var(--accent);
  font-family: "DM Serif Display", serif;
  font-size: 6rem;
  line-height: 0.8;
}

.quote-text {
  font-family: "DM Serif Display", serif;
  font-size: 2rem;
  line-height: 1.08;
}

.quote-author {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.testimonial-card {
  display: grid;
  gap: 14px;
}

.testimonial-text {
  margin-bottom: 0;
  color: var(--ink);
  line-height: 1.72;
}

.testimonial-author {
  margin-bottom: 0;
  color: var(--brand);
  font-weight: 800;
  font-size: 0.95rem;
}

.why-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.why-proof-card {
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(20, 33, 31, 0.08);
  box-shadow: 0 16px 30px rgba(24, 32, 28, 0.06);
}

.why-proof-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--brand);
}

.why-proof-card span {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.process-card span {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(21, 59, 53, 0.08);
  color: var(--brand);
  font-weight: 800;
}

.bullet-list li {
  margin-bottom: 10px;
  color: var(--ink-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 800;
}

.text-link::after {
  content: "→";
}

.stack {
  display: grid;
  gap: 18px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-cloud span {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(20, 33, 31, 0.09);
  color: var(--ink-soft);
  font-weight: 700;
}

.quick-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-anchor-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(21, 59, 53, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand);
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(21, 59, 53, 0.08);
}

.pricing-value {
  margin-bottom: 10px;
  font-family: "DM Serif Display", serif;
  font-size: 2.15rem;
  line-height: 1;
}

.conversion-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.conversion-card .card-badge,
.conversion-card .button {
  width: fit-content;
}

.conversion-card .pricing-value {
  margin-bottom: 4px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.section-emphasis {
  max-width: 880px;
  margin: 24px 0 0;
  padding: 20px 24px;
  border-radius: 20px;
  background: rgba(21, 59, 53, 0.08);
  color: var(--brand);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  font-weight: 800;
}

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

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trust-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(20, 33, 31, 0.09);
  background: rgba(255, 255, 255, 0.48);
}

.trust-grid strong {
  color: var(--brand);
}

.trust-grid span {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.cert-grid {
  grid-template-columns: repeat(3, 1fr);
}

.cert-card {
  overflow: hidden;
  padding: 18px;
}

.cert-link {
  display: grid;
  gap: 16px;
  height: 100%;
  color: inherit;
  cursor: zoom-in;
}

.cert-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(260px, 34vw, 420px);
  padding: 14px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 243, 235, 0.94)),
    radial-gradient(circle at top, rgba(163, 118, 79, 0.12), transparent 54%);
}

.cert-card img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(230px, 31vw, 390px);
  object-fit: initial;
  object-position: center;
  transform: none;
}

.cert-content,
.cert-document {
  padding: 24px;
}

.cert-content {
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: start;
}

.cert-content-minimal {
  display: grid;
  gap: 6px;
  padding: 0 6px 2px;
}

.cert-content h3 {
  margin-bottom: 0;
}

.cert-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(21, 59, 53, 0.08);
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cert-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 2px;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 800;
}

.cert-action::after {
  content: "↗";
  font-size: 0.95rem;
}

.cert-document {
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 242, 0.88)),
    radial-gradient(circle at top right, rgba(163, 118, 79, 0.2), transparent 38%);
}

.cert-document span {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(21, 59, 53, 0.08);
  color: var(--brand-soft);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: center;
}

.contact-form-panel {
  grid-template-columns: 1fr;
  gap: 18px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-contact-form .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field > span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(20, 33, 31, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(21, 59, 53, 0.2);
  border-color: rgba(21, 59, 53, 0.38);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.form-consent input {
  margin-top: 3px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.form-status {
  display: none;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: rgba(21, 59, 53, 0.12);
  color: var(--brand);
}

.form-status.is-error {
  background: rgba(162, 60, 38, 0.12);
  color: #8b2f1c;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-actions {
  display: grid;
  gap: 14px;
}

.contact-panel:not(.contact-form-panel):not(.contact-panel-centered) > .contact-actions {
  grid-column: 2 / 3;
  grid-row: 1 / span 3;
  align-self: center;
}

.contact-actions-centered {
  justify-items: start;
  gap: 12px;
}

.contact-panel > .contact-quick-links,
.contact-panel > .messenger-links,
.contact-panel > .phone-contact {
  grid-column: 1 / 2;
}

.contact-quick-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.contact-quick-links .messenger-links {
  gap: 8px;
}

.contact-quick-links .phone-contact {
  margin-top: 0;
}

.contact-form-panel .messenger-links,
.contact-form-panel .phone-contact,
.contact-panel-centered .messenger-links,
.contact-panel-centered .phone-contact {
  grid-column: 1 / -1;
}

.contact-panel > .phone-contact {
  margin-top: -2px;
}

.contact-panel-social {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
}

.contact-panel-social .stack {
  gap: 14px;
}

.contact-panel-social .stack h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  line-height: 1.04;
  max-width: 22ch;
  margin-bottom: 0;
}

.contact-panel-social .stack p:not(.eyebrow) {
  max-width: 44ch;
}

.contact-panel-centered {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: 34px 36px;
}

.contact-panel-centered .stack {
  justify-items: center;
  max-width: 640px;
}

.contact-panel-centered .eyebrow {
  justify-self: center;
}

.contact-panel-centered .stack h2 {
  max-width: 22ch;
  margin-bottom: 2px;
}

.contact-panel-centered .stack p:not(.eyebrow) {
  max-width: 38ch;
  margin: 0 auto;
}

.contact-panel-centered .contact-actions-centered {
  justify-items: center;
}

.contact-panel-centered .messenger-links {
  justify-content: center;
}

.contact-panel-centered .phone-contact {
  justify-self: center;
}

.contact-panel-centered .button {
  min-width: min(100%, 320px);
}

.cert-action::after {
  content: "->";
  font-size: 0.95rem;
}

.order-modal[hidden] {
  display: none;
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 20px;
}

.order-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 14, 13, 0.62);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.order-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(163, 118, 79, 0.12), transparent 38%),
    rgba(250, 247, 241, 0.96);
  box-shadow: 0 34px 80px rgba(8, 14, 13, 0.32);
}

.order-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(20, 33, 31, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--brand);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.order-modal-dialog .stack {
  padding-right: 82px;
}

.order-modal-dialog .eyebrow {
  margin-bottom: 12px;
}

.order-modal-dialog h2 {
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  line-height: 1.08;
  margin-bottom: 12px;
}

.order-modal-dialog [data-order-summary] {
  color: var(--ink-soft);
}

.order-modal-form {
  margin-top: 18px;
}

.order-modal-form .form-actions {
  margin-top: 2px;
}

.cert-lightbox[hidden] {
  display: none;
}

.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.cert-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 14, 13, 0.78);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.cert-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(100vw - 40px, 1060px);
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.cert-lightbox-close {
  justify-self: end;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cert-lightbox-figure {
  margin: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  align-content: start;
  gap: 12px;
  padding-right: 6px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.cert-lightbox-image {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-out;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.26);
}

.cert-lightbox-caption {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

body.has-lightbox {
  overflow: hidden;
}

.legal-card h2 {
  margin-top: 26px;
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.page-hero-compact {
  padding-bottom: 12px;
}

.site-footer {
  margin-top: 36px;
  padding: 34px 0 26px;
  background:
    radial-gradient(circle at top right, rgba(21, 59, 53, 0.1), transparent 30%),
    radial-gradient(circle at bottom left, rgba(163, 118, 79, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 240, 230, 0.94));
  border-top: 1px solid rgba(20, 33, 31, 0.08);
  box-shadow: 0 -18px 44px rgba(33, 33, 29, 0.08);
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(210px, 0.72fr) minmax(270px, 0.95fr);
  align-items: center;
  gap: 20px 30px;
  padding: 0 0 26px;
  color: var(--ink);
}

.footer-grid::after {
  content: "";
  position: absolute;
  right: 33%;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(20, 33, 31, 0.08), transparent);
  pointer-events: none;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  text-align: left;
}

.footer-brand .brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  box-shadow: 0 22px 34px rgba(21, 59, 53, 0.16);
}

.footer-brand strong {
  display: block;
  margin-bottom: 6px;
  font-family: "DM Serif Display", serif;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 0.95;
  color: var(--ink);
}

.footer-brand p {
  margin-bottom: 0;
  color: var(--ink-soft);
  max-width: 34ch;
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 24px;
  align-content: center;
  align-self: center;
  justify-self: center;
}

.footer-links a {
  display: inline-block;
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 700;
  border: 0;
  transition: color 0.2s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 40%;
  bottom: 0;
  height: 1px;
  background: rgba(21, 59, 53, 0.14);
  transition: right 0.2s ease, background-color 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-links a:hover::after {
  right: 0;
  background: rgba(21, 59, 53, 0.35);
}

.footer-contact {
  display: grid;
  justify-items: start;
  align-content: center;
  align-self: center;
  justify-self: end;
  gap: 9px;
  padding: 18px 20px 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 240, 230, 0.88)),
    radial-gradient(circle at top right, rgba(21, 59, 53, 0.08), transparent 52%);
  border: 1px solid rgba(20, 33, 31, 0.1);
  box-shadow: 0 16px 30px rgba(24, 32, 28, 0.08);
}

.footer-contact::before {
  content: "Швидкий зв'язок";
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

.footer-contact .footer-primary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #24584f);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 18px 28px rgba(21, 59, 53, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-contact .footer-primary-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px rgba(21, 59, 53, 0.22);
}

.footer-contact > span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-contact .messenger-links {
  gap: 8px;
  margin-top: 2px;
}

.footer-contact .messenger-link {
  width: 34px;
  height: 34px;
  min-height: 34px;
}


.footer-contact .phone-contact {
  min-height: 34px;
  color: var(--brand);
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.footer-divider {
  grid-column: 1 / -1;
  width: 100%;
  height: 1px;
  background: rgba(20, 33, 31, 0.08);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-delay {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-about .page-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
}

.page-about .page-hero h1 {
  max-width: 16ch;
}

.page-about .page-hero .lead {
  max-width: 56ch;
}

@media (max-width: 1240px) {
  .header-contact-tools {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .site-nav > a.header-nav-cta {
    display: inline-flex;
  }

  .site-nav {
    margin-left: 16px;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .page-home .hero-grid,
  .page-hero-grid,
  .about-split,
  .contact-panel,
  .pricing-grid-wide {
    grid-template-columns: 1fr;
  }

  .page-about .page-hero-grid,
  .page-services .page-hero-grid,
  .page-prices .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .card-grid-3,
  .feature-list,
  .process-grid,
  .pricing-grid,
  .service-layout,
  .cert-grid,
  .audience-grid,
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .mini-contact-form .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    display: grid;
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 26px;
  }

  .footer-grid::after {
    display: none;
  }

  .footer-contact {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .contact-panel:not(.contact-form-panel):not(.contact-panel-centered) > .contact-actions {
    grid-column: 1 / -1;
    grid-row: auto;
    align-self: stretch;
  }

  .contact-panel > .contact-quick-links,
  .contact-panel > .messenger-links,
  .contact-panel > .phone-contact {
    grid-column: 1 / -1;
  }

  .page-hero-aside {
    justify-self: stretch;
    width: 100%;
  }

  .page-about .page-hero h1 {
    max-width: 16ch;
  }

  .page-services .page-hero h1,
  .page-prices .page-hero h1 {
    max-width: 18ch;
  }

  .site-nav > a:not(.button) {
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .site-nav > a.button {
    min-height: 46px;
    padding: 0 18px;
    font-size: 0.88rem;
  }

  .header-contact-tools {
    padding-top: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 10px 0;
  }

  .header-row {
    gap: 12px;
    flex-wrap: nowrap;
    position: relative;
  }

  .brand-group {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-text strong {
    font-size: 0.98rem;
  }

  .brand-text span {
    display: none;
  }


  .why-proof-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 252, 247, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a {
    width: 100%;
    text-align: center;
  }

  .header-contact-tools {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 9.8vw, 3.05rem);
  }

  .page-hero h1 {
    font-size: clamp(1.72rem, 6.2vw, 2.45rem);
    max-width: 16ch;
  }

  .page-hero-grid {
    gap: 22px;
  }

  .contact-panel-social .stack h2 {
    max-width: none;
  }

  .hero-photo-card img,
  .portrait-panel img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }

  .footer-grid::after {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    padding-bottom: 74px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero-section,
  .page-hero,
  .section {
    padding: 34px 0;
  }

  .card-grid-3,
  .feature-list,
  .process-grid,
  .pricing-grid,
  .service-layout,
  .cert-grid,
  .audience-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-price-strip,
  .trust-grid,
  .mini-contact-form .form-grid {
    grid-template-columns: 1fr;
  }

  .info-card,
  .case-card,
  .process-card,
  .service-detail-card,
  .pricing-card,
  .quote-card,
  .cert-content,
  .cert-document,
  .page-hero-aside,
  .contact-panel,
  .legal-card {
    padding: 22px;
  }

  .button {
    width: 100%;
  }

  .button-row {
    flex-direction: column;
  }

  .order-modal {
    padding: 10px;
  }

  .order-modal-dialog {
    max-height: calc(100vh - 20px);
    padding: 24px 18px;
  }

  .order-modal-dialog .stack {
    padding-right: 0;
  }

  .order-modal-close {
    position: static;
    justify-self: end;
    margin-bottom: 12px;
  }

  .hero-copy h1 {
    font-size: clamp(1.84rem, 8.2vw, 2.35rem);
    line-height: 1.04;
  }

  .hero-title-sub {
    margin-top: 9px;
    font-size: 0.58em;
    line-height: 1.15;
  }

  .page-hero h1 {
    max-width: none;
    font-size: clamp(1.58rem, 7.2vw, 2.05rem);
    line-height: 1.08;
  }

  .page-about .page-hero h1 {
    max-width: none;
  }

  .page-services .page-hero h1,
  .page-prices .page-hero h1 {
    max-width: none;
    font-size: clamp(1.42rem, 6.2vw, 1.72rem);
    overflow-wrap: break-word;
    text-wrap: auto;
  }

  .lead {
    font-size: 0.95rem;
  }

  .section-heading h2,
  .stack h2 {
    font-size: clamp(1.45rem, 6.7vw, 1.85rem);
    line-height: 1.06;
  }

  .site-nav {
    left: 14px;
    right: 14px;
  }

  .floating-contact {
    left: 14px;
    right: 14px;
    bottom: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .floating-contact-link {
    min-height: 48px;
    padding: 0 12px;
  }

  .site-nav > a.button,
  .footer-contact .footer-primary-link,
  .footer-links a {
    width: 100%;
    justify-content: center;
  }

  .contact-panel-centered {
    padding: 24px 22px;
  }

  .footer-brand,
  .footer-contact {
    justify-items: center;
    text-align: center;
  }

  .footer-contact {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr;
    width: 100%;
    justify-items: center;
  }

  .footer-brand {
    grid-template-columns: 1fr;
  }

  .footer-links a {
    display: flex;
    text-align: center;
  }

  .footer-links a::after {
    left: 18%;
    right: 18%;
  }

  .footer-bottom {
    align-items: center;
    text-align: center;
  }
  .tag-cloud {
    gap: 10px;
  }

  .tag-cloud span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .cert-lightbox-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
  }

  .cert-lightbox-image {
    border-radius: 18px;
  }

  .brand-text span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .button,
  .site-header {
    transition: none;
  }
}





