:root {
  --color-bg: #070707;
  --color-bg-soft: #111111;
  --color-burgundy: #3b0b14;
  --color-burgundy-deep: #2a0810;
  --color-red: #d0122d;
  --color-red-hot: #f03a4a;
  --color-text: #f6f3f1;
  --color-muted: #c8b8b8;
  --color-line: rgba(208, 18, 45, 0.45);
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --header-h: 86px;
  --radius: 18px;
  --shadow-lift: 0 22px 40px rgba(0, 0, 0, 0.55), 0 10px 0 #22060c, 10px 16px 28px rgba(208, 18, 45, 0.22);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--color-red-hot);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
}

h3 {
  font-size: 1.55rem;
}

p {
  margin: 0 0 1em;
}

.dropcap::first-letter {
  font-family: var(--font-serif);
  font-size: 3.35em;
  float: left;
  line-height: 0.72;
  padding: 0.08em 0.12em 0 0;
  color: var(--color-red);
  font-weight: 600;
}

.page--locked {
  overflow: hidden;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 7, 0.92);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header--scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  white-space: nowrap;
}

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

.header__logo-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  animation: logoGlow 3.4s ease-in-out infinite;
}

@keyframes logoGlow {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(208, 18, 45, 0.2));
  }
  40% {
    transform: scale(1.08) rotate(-3deg);
    filter: drop-shadow(0 0 14px rgba(240, 58, 74, 0.9));
  }
  70% {
    transform: scale(1.04) rotate(2deg);
    filter: drop-shadow(0 0 8px rgba(208, 18, 45, 0.65));
  }
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__link {
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.header__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 8px;
}

.header__phone,
.header__address {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.header__email {
  color: var(--color-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

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

.header__burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-red);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  position: relative;
  flex-shrink: 0;
}

.header__burger span,
.header__burger::before,
.header__burger::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  position: relative;
  transition: 0.25s ease;
}

.header__burger::before {
  position: absolute;
  top: 14px;
  left: 11px;
}

.header__burger::after {
  position: absolute;
  bottom: 14px;
  left: 11px;
}

.header__burger--open span {
  opacity: 0;
}

.header__burger--open::before {
  transform: translateY(8px) rotate(45deg);
}

.header__burger--open::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* Banner */
.banner {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(59, 11, 20, 0.45) 55%, rgba(0, 0, 0, 0.25) 100%);
}

.banner__content {
  position: relative;
  z-index: 1;
  padding: 0 0 72px;
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.banner__eyebrow {
  color: var(--color-red-hot);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.banner__title {
  max-width: 14ch;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Sections */
.section {
  padding: 92px 0;
}

.section--burgundy {
  background: linear-gradient(180deg, var(--color-burgundy-deep), var(--color-burgundy));
}

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

.section__head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section__kicker {
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section__text {
  color: var(--color-muted);
  max-width: 74ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--color-red);
  background: var(--color-red);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  background: transparent;
  color: #fff;
}

.btn:focus-visible,
.form__input:focus-visible,
.header__link:focus-visible,
.header__burger:focus-visible {
  outline: 2px solid var(--color-red-hot);
  outline-offset: 3px;
}

.offer__card:hover,
.card:hover {
  transform: translateY(-6px);
  border-color: var(--color-red);
}

.btn--ghost {
  background: transparent;
}

/* Strengths */
.strengths__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 28px;
}

.strengths__item {
  position: relative;
  padding: 28px 24px 32px;
  border-radius: var(--radius);
  background:
    linear-gradient(#14060a, #14060a) padding-box,
    linear-gradient(145deg, #f03a4a, #4a0e1a 42%, #d0122d) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-lift);
  min-height: 280px;
}

.strengths__item:nth-child(1) {
  transform: translateY(32px);
}

.strengths__item:nth-child(2) {
  transform: translateY(-18px);
}

.strengths__item:nth-child(3) {
  transform: translateY(46px);
}

.strengths__item:nth-child(4) {
  transform: translateY(-8px);
}

.strengths__index {
  font-family: var(--font-serif);
  color: var(--color-red);
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

/* Offer cards */
.offer__grid,
.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.offer__card,
.card {
  background: #0d0d0d;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.offer__photo,
.card__photo {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.offer__body,
.card__body {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.offer__title,
.card__title {
  margin-bottom: 0;
}

.card__price {
  color: var(--color-red-hot);
  font-weight: 700;
  font-size: 1.15rem;
}

.card__meta {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.card__body .btn {
  margin-top: auto;
}

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

.stats__item {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 22px;
}

.stats__value {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: #fff;
  display: block;
}

.stats__label {
  color: var(--color-muted);
}

/* Form */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.form {
  background: #10070a;
  border: 1px solid var(--color-red);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lift);
}

.form__row {
  margin-bottom: 14px;
}

.form__label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form__input,
.form textarea,
.form select {
  width: 100%;
  background: #070707;
  color: #fff;
  border: 1px solid #4a1a22;
  border-radius: 10px;
  padding: 12px 14px;
}

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

.header__link,
.header__phone,
.header__email,
.header__address {
  white-space: nowrap;
}

.form__input--invalid {
  border-color: #ff6b73;
}

.form__status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
}

.form__status--success {
  background: #123018;
  border: 1px solid #3d9a55;
}

.form__status--error {
  background: #3a1014;
  border: 1px solid #d0122d;
}

/* FAQ */
.faq__list {
  display: grid;
  gap: 12px;
}

.faq__item {
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #10070a;
  overflow: hidden;
}

.faq__question {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #fff;
  border: 0;
  cursor: pointer;
  padding: 18px 20px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.faq__question::after {
  content: "+";
  float: right;
  color: var(--color-red);
}

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

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

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

/* About */
.story {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

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

.story__photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--color-line);
}

.mission__list {
  display: grid;
  gap: 14px;
}

.mission__item {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 88px;
  padding: 16px 22px;
  background: linear-gradient(90deg, #4a1018, #1a070a 55%, #0d0d0d);
  border-radius: 999px;
  border: 1px solid var(--color-red);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.mission__mark {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--color-red);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
  border-left: 2px solid var(--color-red);
}

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

.timeline__item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 0 6px rgba(208, 18, 45, 0.2);
}

.timeline__year {
  font-family: var(--font-serif);
  color: var(--color-red-hot);
  font-size: 1.5rem;
}

/* Advantages / bonus */
.list-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
}

.list-block__item {
  padding-left: 18px;
  border-left: 3px solid var(--color-red);
}

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

.bonus__item {
  background: #14070b;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
}

.bonus__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  fill: none;
  stroke: var(--color-red);
  stroke-width: 1.7;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.contact-card {
  background: var(--color-burgundy);
  border-radius: 18px;
  padding: 28px;
  border: 1px solid var(--color-line);
}

.contact-card p {
  margin-bottom: 0.55em;
}

/* Footer */
.footer {
  background: #050505;
  border-top: 1px solid var(--color-line);
  padding: 56px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.footer__logo-img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  animation: logoGlow 3.4s ease-in-out infinite;
}

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

.footer__menu a,
.footer__legal a {
  color: var(--color-muted);
}

.footer__phone {
  margin: 0 0 8px;
}

.footer__address {
  color: var(--color-muted);
}

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

.footer__legal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #2a1014;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.footer__legal p {
  margin-bottom: 0.4em;
}

.legal {
  padding: 48px 0 90px;
}

.legal__article {
  max-width: 78ch;
}

.legal__article h2 {
  margin-top: 1.4em;
}

/* Responsive */
@media (max-width: 1200px) {
  .header {
    overflow: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header__inner {
    overflow: visible;
    height: var(--header-h);
  }

  .header__burger {
    display: block;
    z-index: 70;
  }

  .header__contacts {
    display: none;
  }

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

  .header__nav--open {
    display: flex;
  }

  .header__menu {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .header__item {
    width: 100%;
  }

  .header__link {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 1.15rem;
    white-space: normal;
  }

  .header__nav .header__contacts {
    display: grid;
    gap: 10px;
    margin: 12px 0 0;
    white-space: normal;
  }

  .header__nav--open .header__link,
  .header__nav--open .header__phone,
  .header__nav--open .header__email,
  .header__nav--open .header__address {
    white-space: normal;
  }

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

  .strengths__grid,
  .stats,
  .bonus__grid,
  .form-wrap,
  .story,
  .contact-grid,
  .footer__grid,
  .list-block {
    grid-template-columns: 1fr 1fr;
  }

  .strengths__item:nth-child(n) {
    transform: none;
  }
}

@media (max-width: 760px) {
  .banner {
    min-height: 58vh;
  }

  .section {
    padding: 64px 0;
  }

  .offer__grid,
  .cards,
  .strengths__grid,
  .stats,
  .bonus__grid,
  .form-wrap,
  .story,
  .contact-grid,
  .footer__grid,
  .list-block {
    grid-template-columns: 1fr;
  }

  .mission__item {
    border-radius: 18px;
    align-items: flex-start;
  }

  .header__inner {
    overflow: visible;
  }
}
