:root {
  --color-ink: #0b1714;
  --color-muted: #5e665f;
  --color-green-950: #031813;
  --color-green-900: #06251f;
  --color-green-800: #0b342b;
  --color-green-700: #12483c;
  --color-gold: #caa66a;
  --color-gold-strong: #d8b675;
  --color-ivory: #f7f2e8;
  --color-cream: #fffaf0;
  --color-stone: #e7dcc8;
  --color-white: #ffffff;
  --shadow-soft: 0 20px 70px rgba(5, 25, 20, 0.18);
  --shadow-card: 0 12px 34px rgba(35, 31, 25, 0.08);
  --container: 1180px;
  --radius: 8px;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

#home,
#services,
#about,
#consultation,
#contacts {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--color-ink);
  background: var(--color-ivory);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(6, 37, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 37, 31, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
}

img,
svg {
  display: block;
}

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

a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: break-word;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--color-green-950);
  background: var(--color-gold);
  border-radius: var(--radius);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: var(--color-white);
  background: rgba(3, 24, 19, 0.94);
  border-bottom: 1px solid rgba(202, 166, 106, 0.18);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(3, 24, 19, 0.98);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.brand {
  display: inline-grid;
  gap: 2px;
  min-width: 198px;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-gold-strong);
  text-transform: uppercase;
}

.brand__tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.site-nav a,
.footer__nav a {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.84);
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-nav a::after,
.footer__nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.footer__nav a:hover {
  color: var(--color-gold-strong);
}

.site-nav a:hover::after,
.footer__nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.menu-toggle span:not(.visually-hidden) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  gap: 10px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  text-wrap: balance;
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(216, 182, 117, 0.65);
  outline-offset: 3px;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.btn svg,
.service-card svg,
.trust-item svg,
.timeline-item svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--gold {
  color: #071a15;
  background: var(--color-gold-strong);
  box-shadow: 0 13px 28px rgba(202, 166, 106, 0.22);
}

.btn--gold:hover {
  background: #e3c486;
  box-shadow: 0 16px 32px rgba(202, 166, 106, 0.3);
}

.btn--outline,
.btn--ghost {
  color: var(--color-white);
  border: 1px solid rgba(216, 182, 117, 0.58);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost {
  background: transparent;
}

.btn--outline:hover,
.btn--ghost:hover {
  background: rgba(216, 182, 117, 0.1);
  border-color: var(--color-gold);
}

.btn--compact {
  min-height: 42px;
  padding-inline: 14px;
  font-size: 11px;
}

.btn--wide {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  background:
    linear-gradient(90deg, rgba(3, 24, 19, 1) 0%, rgba(6, 37, 31, 0.98) 48%, rgba(3, 24, 19, 1) 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(216, 182, 117, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(216, 182, 117, 0.08) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 70%);
}

.hero__inner {
  position: relative;
  min-height: min(720px, calc(100svh - 82px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
  padding-block: clamp(44px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-gold-strong);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

h1,
h2 {
  font-family: var(--font-serif);
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(38px, 4.2vw, 58px);
  color: var(--color-white);
  overflow-wrap: break-word;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4.2vw, 52px);
  color: var(--color-green-950);
}

h3 {
  line-height: 1.25;
  text-wrap: balance;
}

.hero__subtitle {
  margin-bottom: 18px;
  font-size: clamp(18px, 2.3vw, 26px);
  font-weight: 700;
  color: var(--color-gold-strong);
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.hero__content {
  min-width: 0;
}

.hero__lead {
  max-width: 610px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 1.45vw, 18px);
}

.trust-list {
  display: grid;
  gap: 12px;
  max-width: 620px;
  margin-bottom: 30px;
}

.trust-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.35;
}

.trust-item__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--color-gold);
  border: 1px solid rgba(216, 182, 117, 0.34);
  border-radius: var(--radius);
}

.trust-item__icon svg {
  width: 20px;
  height: 20px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__actions .btn {
  min-width: 210px;
}

.hero__media {
  align-self: center;
  width: 100%;
  min-width: 0;
  max-width: 500px;
  margin: 0 0 0 auto;
}

.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 36%;
  border: 1px solid rgba(216, 182, 117, 0.32);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.section {
  padding-block: 88px;
}

.section--light {
  background: rgba(255, 250, 240, 0.82);
}

.search-topics {
  background: #fbf6ec;
}

.section-heading {
  max-width: 650px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--color-muted);
  font-size: 17px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.search-topics__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: 44px;
  align-items: start;
}

.keyword-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--color-green-950);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--color-stone);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.service-card {
  min-width: 0;
  min-height: 340px;
  padding: 28px 26px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--color-stone);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(202, 166, 106, 0.72);
  box-shadow: var(--shadow-card);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--color-green-800);
  background: #f1eadc;
  border: 1px solid #dfd0b8;
  border-radius: var(--radius);
}

.service-card__icon svg {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  min-height: 46px;
  margin-bottom: 14px;
  color: var(--color-green-950);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  hyphens: auto;
}

.service-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: #37413b;
  font-size: 14px;
  line-height: 1.45;
}

.service-card li {
  position: relative;
  padding-left: 17px;
}

.service-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--color-gold);
  border-radius: 50%;
}

.advantages {
  color: var(--color-white);
  background: var(--color-green-900);
}

.advantages h2 {
  color: var(--color-white);
}

.advantages .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.advantages__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: 52px;
  align-items: start;
}

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

.advantage-item {
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(216, 182, 117, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.advantage-item span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--color-gold-strong);
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1;
}

.advantage-item h3 {
  margin-bottom: 10px;
  color: var(--color-white);
  font-size: 20px;
}

.advantage-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.about__image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 42%;
  border-radius: var(--radius);
  border: 1px solid var(--color-stone);
  box-shadow: var(--shadow-card);
}

.timeline {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  position: absolute;
  top: 48px;
  bottom: -22px;
  left: 20px;
  width: 1px;
  content: "";
  background: #d2bea0;
}

.timeline-item__marker {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--color-green-800);
  background: #f3eadb;
  border: 1px solid #d6c19d;
  border-radius: var(--radius);
}

.timeline-item__marker svg {
  width: 22px;
  height: 22px;
}

.timeline-item span {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--color-gold);
  font-weight: 900;
}

.timeline-item h3 {
  margin-bottom: 4px;
  color: var(--color-green-950);
  font-size: 18px;
}

.timeline-item p,
.about__note {
  color: var(--color-muted);
}

.about__note {
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-stone);
}

.consultation {
  color: var(--color-white);
  background:
    linear-gradient(90deg, rgba(3, 24, 19, 0.97), rgba(6, 37, 31, 0.94)),
    var(--color-green-900);
}

.consultation__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 42px;
  align-items: start;
}

.consultation h2 {
  color: var(--color-white);
}

.consultation__copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.contact-strip {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.contact-strip a {
  width: fit-content;
  color: var(--color-gold-strong);
  font-weight: 800;
}

.lead-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(216, 182, 117, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
}

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

.lead-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  min-height: 52px;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color 180ms ease, background 180ms ease;
}

.lead-form textarea {
  min-height: 134px;
  resize: vertical;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

.lead-form input:focus,
.lead-form textarea:focus {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--color-gold);
}

.lead-form [aria-invalid="true"] {
  border-color: #e99b8e;
}

.lead-form small {
  min-height: 18px;
  color: #ffb2a6;
  font-size: 12px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.faq__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: 52px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--color-stone);
  border-radius: var(--radius);
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--color-green-950);
  font-weight: 900;
  text-wrap: balance;
}

.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--color-muted);
}

.footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--color-green-950);
  border-top: 1px solid rgba(216, 182, 117, 0.22);
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 0.72fr) auto;
  gap: 42px;
  padding-block: 42px;
}

.footer__brand p {
  max-width: 430px;
  margin: 18px 0 0;
  font-size: 14px;
}

.footer__contacts {
  display: grid;
  gap: 8px;
}

.footer__contacts a {
  color: var(--color-gold-strong);
  font-weight: 800;
}

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

.footer__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.footer__bottom > span:last-child {
  justify-self: end;
}

.designer-credit {
  justify-self: center;
  color: #f4d99b;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-shadow:
    0 0 10px rgba(216, 182, 117, 0.75),
    0 0 22px rgba(216, 182, 117, 0.45);
  animation: designerGlow 2.4s ease-in-out infinite;
}

.designer-credit:hover {
  color: #fff2c6;
}

@keyframes designerGlow {
  0%,
  100% {
    opacity: 0.78;
    text-shadow:
      0 0 8px rgba(216, 182, 117, 0.55),
      0 0 18px rgba(216, 182, 117, 0.32);
  }

  50% {
    opacity: 1;
    text-shadow:
      0 0 12px rgba(255, 242, 198, 0.95),
      0 0 30px rgba(216, 182, 117, 0.78),
      0 0 48px rgba(202, 166, 106, 0.38);
  }
}

@media (max-width: 1060px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    top: 132px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 18px;
    background: rgba(3, 24, 19, 0.98);
    border: 1px solid rgba(216, 182, 117, 0.24);
    border-radius: var(--radius);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  }

  .site-nav.is-open {
    display: grid;
    gap: 16px;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    margin-top: -12px;
  }

  .header-actions .btn {
    flex: 1;
  }

  .about__inner,
  .advantages__inner,
  .consultation__inner,
  .faq__inner,
  .search-topics__inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .hero__inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 46px 56px;
  }

  .hero__media {
    max-width: 620px;
    margin-inline: auto;
  }

  .hero__media img {
    aspect-ratio: 16 / 11;
    object-position: center 31%;
  }
}

@media (max-width: 720px) {
  #home,
  #services,
  #about,
  #consultation,
  #contacts {
    scroll-margin-top: 84px;
  }

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

  .header-inner {
    min-height: 74px;
    gap: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand__name {
    font-size: 20px;
  }

  .brand__tagline {
    max-width: 190px;
    font-size: 10px;
  }

  .site-nav {
    top: 74px;
    right: 12px;
    left: 12px;
  }

  .header-actions {
    display: none;
  }

  .hero__inner {
    gap: 30px;
    padding-block: 34px 42px;
  }

  h1 {
    font-size: clamp(32px, 8vw, 40px);
  }

  h2 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .hero__subtitle {
    font-size: clamp(16px, 5.2vw, 20px);
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__actions {
    display: grid;
    gap: 12px;
  }

  .hero__actions .btn {
    min-width: 0;
    width: 100%;
  }

  .trust-list {
    gap: 10px;
    margin-bottom: 24px;
  }

  .trust-item {
    grid-template-columns: 30px 1fr;
    gap: 10px;
    font-size: 14px;
  }

  .trust-item__icon {
    width: 30px;
    height: 30px;
  }

  .hero__media img {
    aspect-ratio: 1 / 1;
    object-position: center 30%;
  }

  .section {
    padding-block: 62px;
  }

  .services-grid,
  .advantages-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .search-topics__inner {
    gap: 24px;
  }

  .keyword-grid span {
    width: 100%;
  }

  .service-card {
    min-height: auto;
    padding: 24px 22px;
  }

  .service-card h3 {
    min-height: auto;
  }

  .advantage-item {
    min-height: auto;
  }

  .lead-form {
    padding: 20px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer__bottom > span:last-child {
    justify-self: center;
  }
}

@media (max-width: 520px) {
  .hero__content,
  .hero__media,
  .section-heading,
  .faq-list,
  .lead-form,
  .service-card,
  .advantage-item {
    width: 100%;
    max-width: 366px;
    margin-inline: auto;
  }

  .hero__content {
    margin-inline: 0 auto;
  }

  .hero__media {
    margin-inline: 0 auto;
  }

  .hero__subtitle {
    max-width: 330px;
  }

  .service-card ul,
  .timeline-item p,
  .faq-item p,
  .about__note {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .btn {
    min-height: 50px;
    padding-inline: 14px;
    font-size: 12px;
  }

  h1 {
    font-size: clamp(29px, 7.8vw, 32px);
  }

  h2 {
    font-size: 29px;
  }

  .hero__media img {
    aspect-ratio: 4 / 5;
    object-position: center 26%;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: clamp(27px, 7.2vw, 29px);
  }

  .hero__subtitle {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
