:root {
  --bg: #4a1c14;
  --bg-deep: #32140f;
  --bg-black: #0c0a09;
  --text: #f7f3f0;
  --text-soft: #eadad3;
  --red: #e31c3d;
  --red-deep: #b1122c;
  --line: rgba(227, 28, 61, 0.55);
  --cream: #f3e7e1;
  --shadow: 0 22px 40px rgba(0, 0, 0, 0.42);
  --radius: 18px;
  --header-h: 88px;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-width: 320px;
}

body.is-menu-open {
  overflow: hidden;
}

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

a {
  color: var(--cream);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: #fff;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.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;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page__main {
  flex: 1;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(50, 20, 15, 0.96);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.header__bar {
  position: relative;
  width: min(1440px, calc(100% - 24px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.header__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.header__logo-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--red);
}

.header__toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.header__burger {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--red);
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  z-index: 45;
}

.header__burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header__burger span:nth-child(1) {
  top: 15px;
}

.header__burger span:nth-child(2) {
  top: 23px;
}

.header__burger span:nth-child(3) {
  top: 31px;
}

.header__burger--open span:nth-child(1),
.header__toggle:checked + .header__burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__burger--open span:nth-child(2),
.header__toggle:checked + .header__burger span:nth-child(2) {
  opacity: 0;
}

.header__burger--open span:nth-child(3),
.header__toggle:checked + .header__burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav__link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--current {
  color: var(--red);
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  margin-left: auto;
}

.header__phone,
.header__address {
  margin: 0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.header__email {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.header__email:hover {
  color: var(--red);
}

.banner {
  position: relative;
  min-height: 72vh;
  height: 72vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.banner__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 8, 6, 0.28), rgba(20, 8, 6, 0.62));
}

.banner__title {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 88px 20px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.section {
  padding: 84px 0;
}

.section--black {
  background: var(--bg-black);
}

.section--deep {
  background: var(--bg-deep);
}

.section__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
}

.section__lead,
.section__text,
.prose p {
  color: var(--text-soft);
}

.section__text,
.prose p {
  margin-bottom: 1.1em;
}

.drop p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.15em;
  float: left;
  line-height: 0.72;
  padding: 0.08em 0.12em 0 0;
  color: var(--red);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 8px 0 var(--red-deep);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  background: var(--red-deep);
  color: #fff;
  transform: translateY(-1px);
}

.btn:focus-visible,
.nav__link:focus-visible,
.header__email:focus-visible,
.form__control:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.strengths__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: start;
  padding: 36px 0 72px;
}

.strengths__item {
  padding: 28px 22px 26px;
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, #1a0c0a, #120806) padding-box,
    linear-gradient(140deg, #ff4d6a, #8b2e22, #e31c3d 70%, #f3c1b6) border-box;
  border-radius: var(--radius);
  box-shadow:
    var(--shadow),
    0 10px 0 rgba(177, 18, 44, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.strengths__item--up {
  transform: translateY(-28px);
}

.strengths__item--mid {
  transform: translateY(18px);
}

.strengths__item--high {
  transform: translateY(-14px);
}

.strengths__item--low {
  transform: translateY(34px);
}

.strengths__name {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.offer__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.offer__card,
.service-card {
  background: #160b09;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.offer__image,
.service-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.offer__body,
.service-card__body {
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.offer__title,
.service-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.stats__item {
  background: #140a08;
  border-top: 3px solid var(--red);
  padding: 22px 18px;
}

.stats__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: #fff;
  line-height: 1.1;
}

.stats__label {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.form--wide {
  max-width: none;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form__control {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--red);
  background: #2a1410;
  color: var(--text);
  border-radius: 8px;
  color-scheme: dark;
}

textarea.form__control {
  min-height: 140px;
  resize: vertical;
}

option {
  background: #2a1410;
  color: var(--text);
}

.header__logo,
.header__contacts,
.nav {
  flex-shrink: 0;
}

.form__control--invalid {
  border-color: #ffd166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.25);
}

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

.form__status {
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
}

.form__status--success {
  background: #14351d;
  border: 1px solid #3d8f55;
}

.form__status--error {
  background: #3a1414;
  border: 1px solid #ffd166;
}

.faq__list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.faq__item {
  border: 1px solid var(--line);
  background: #1a0d0b;
}

.faq__question {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text);
  border: 0;
  padding: 18px 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.35rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq__question::after {
  content: "+";
  color: var(--red);
  font-size: 1.5rem;
  line-height: 1;
}

.faq__item--open .faq__question::after {
  content: "–";
}

.faq__answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-soft);
}

.faq__item--open .faq__answer {
  display: block;
}

.about-photos {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 36px auto 0;
  max-width: 720px;
}

.about-photos__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--red);
  box-shadow: var(--shadow);
}

.goals {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.goals__item {
  background: #140a08;
  border: 1px solid var(--red);
  padding: 16px 18px 18px;
}

.goals__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 600;
}

.goals__track {
  height: 14px;
  background: #2b1511;
  overflow: hidden;
}

.goals__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red-deep), var(--red), #ff6b81);
}

.timeline {
  position: relative;
  margin: 36px 0 0;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red);
}

.timeline__item {
  position: relative;
  padding: 0 0 28px 18px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(227, 28, 61, 0.25);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 6px;
}

.service-grid {
  display: grid;
  gap: 28px;
}

.service-card {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.service-card__price {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service-card__meta {
  margin: 0;
  color: var(--text-soft);
}

.advantages {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  counter-reset: plus;
}

.advantages__item {
  padding: 16px 18px 16px 58px;
  background: #140a08;
  border-left: 3px solid var(--red);
  position: relative;
}

.advantages__item::before {
  counter-increment: plus;
  content: counter(plus);
  position: absolute;
  left: 16px;
  top: 16px;
  font-family: var(--font-display);
  color: var(--red);
  font-size: 1.4rem;
}

.bonus__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 28px 0 8px;
}

.bonus__item {
  background: #140a08;
  border: 1px solid var(--line);
  padding: 20px 16px;
  text-align: center;
}

.bonus__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--red);
}

.bonus__icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.bonus__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

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

.contacts__label {
  display: block;
  color: var(--red);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.legal {
  max-width: 860px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 1.6em 0 0.5em;
}

.footer {
  background: var(--bg-black);
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 120px 1fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.footer__logo-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--red);
}

.footer__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.footer__menu,
.footer__legal-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer__phone {
  margin: 0 0 8px;
}

.footer__messengers {
  display: flex;
  gap: 14px;
  margin: 12px 0;
}

.footer__meta {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(227, 28, 61, 0.28);
  color: var(--text-soft);
  font-size: 0.95rem;
}

@media (max-width: 1199px) {
  .header__bar {
    white-space: normal;
    overflow: visible;
  }

  .header__burger {
    display: inline-block;
  }

  .header__panel {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    min-width: 100%;
    background: #2a1410;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    padding: 28px 22px 40px;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: normal;
    z-index: 60;
  }

  .header__panel--open,
  .header__toggle:checked ~ .header__panel {
    display: flex;
  }

  body:has(.header__toggle:checked),
  body.is-menu-open {
    overflow: hidden;
  }

  .nav,
  .nav__list,
  .header__contacts {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
    gap: 4px;
    min-width: 0;
    flex-shrink: 1;
  }

  .nav__item {
    width: 100%;
    display: block;
  }

  .nav__link,
  .header__phone,
  .header__email,
  .header__address {
    display: block;
    font-size: 1.05rem;
    white-space: normal;
    padding: 12px 0;
  }

  .strengths__grid,
  .offer__grid,
  .stats,
  .bonus__grid,
  .footer__grid,
  .contacts-grid,
  .service-card,
  .form__row {
    grid-template-columns: 1fr 1fr;
  }

  .strengths__item--up,
  .strengths__item--mid,
  .strengths__item--high,
  .strengths__item--low {
    transform: none;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 56px 0;
  }

  .banner {
    min-height: 56vh;
    height: 56vh;
  }

  .strengths__grid,
  .offer__grid,
  .stats,
  .bonus__grid,
  .footer__grid,
  .contacts-grid,
  .service-card,
  .form__row {
    grid-template-columns: 1fr;
  }

  .header__logo-img {
    width: 48px;
    height: 48px;
  }
}

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

  .btn,
  .header__burger span {
    transition: none;
  }
}
