:root {
  --bg: #070707;
  --bg-soft: #11080b;
  --burgundy: #3f1016;
  --burgundy-deep: #2a0b10;
  --red: #e31c23;
  --red-dim: #b31219;
  --text: #f5f2ef;
  --muted: #cbbfba;
  --line: rgba(227, 28, 35, 0.55);
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-body: "Outfit", "Trebuchet MS", sans-serif;
  --radius: 18px;
  --header-h: 76px;
  --shadow: 0 22px 40px rgba(0, 0, 0, 0.45), 0 8px 0 rgba(179, 18, 25, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

a:hover,
a:focus-visible {
  color: #ff5a5f;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--red);
  color: #fff;
  padding: 8px 12px;
  z-index: 2000;
}

.skip-link:focus {
  top: 12px;
}

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

.section {
  padding: 84px 0;
}

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

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
  line-height: 1.15;
}

.section__lead {
  color: var(--muted);
  max-width: 72ch;
  margin: 0 0 36px;
}

.drop-cap p::first-letter {
  font-family: var(--font-display);
  font-size: 3.05em;
  font-weight: 600;
  float: left;
  line-height: 0.78;
  padding: 8px 10px 0 0;
  color: var(--red);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 7, 0.94);
  border-bottom: none;
  backdrop-filter: blur(10px);
}

.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--burgundy) 12%,
    var(--red) 42%,
    #ff6b70 50%,
    var(--red) 58%,
    var(--burgundy) 88%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: header-border-run 4.2s linear infinite;
  box-shadow: 0 0 10px rgba(227, 28, 35, 0.45);
  pointer-events: none;
}

@keyframes header-border-run {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

.header__bar {
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

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

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

.header__burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--red);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.header__burger-line {
  width: 20px;
  height: 2px;
  background: #fff;
  display: block;
}

.header__panel {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}

.header__nav {
  flex: 1;
}

.header__menu {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.header__link {
  color: var(--text);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

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

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

.header__mail {
  color: var(--red);
}

/* Banner */
.banner {
  position: relative;
  min-height: 58vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

.banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.72));
}

.banner__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  text-align: center;
  margin: 0;
  padding: 40px 20px;
  max-width: 16ch;
  line-height: 1.05;
}

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

.strengths__item {
  background:
    linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
    linear-gradient(145deg, #ff4d53, #6b0f18 42%, #e31c23) border-box;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transform: translateY(0);
}

.strengths__item:nth-child(1) { margin-top: 18px; }
.strengths__item:nth-child(2) { margin-top: 64px; }
.strengths__item:nth-child(3) { margin-top: 8px; }
.strengths__item:nth-child(4) { margin-top: 48px; }

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

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.card {
  background: var(--bg-soft);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

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

.card__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

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

.card__price {
  color: var(--red);
  font-weight: 600;
  margin: 0;
}

.card__text {
  color: var(--muted);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  width: fit-content;
}

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

.advantages__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

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

.stats__item {
  background: var(--burgundy-deep);
  border: 1px solid var(--red);
  border-radius: 14px;
  padding: 20px;
}

.stats__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--red);
  display: block;
}

/* Forms */
.form {
  display: grid;
  gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

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

.form label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

.form input,
.form select,
.form textarea {
  background: #0d0d0d;
  color: var(--text);
  border: 1px solid #5a2026;
  border-radius: 10px;
  padding: 12px 12px;
  font: inherit;
  width: 100%;
}

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

.form__message {
  display: none;
  padding: 12px 14px;
  border-radius: 10px;
}

.form__message.is-visible {
  display: block;
}

.form__message--ok {
  background: #12361c;
  border: 1px solid #2f9e57;
}

.form__message--err {
  background: #3a1014;
  border: 1px solid var(--red);
}

.faq__item {
  border-bottom: 1px solid #4a1a20;
  padding: 8px 0;
}

.faq__item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.35rem;
  list-style: none;
}

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

.faq__item p {
  color: var(--muted);
}

/* About extras */
.story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

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

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

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

.sticks__item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--burgundy-deep);
  border-left: 6px solid var(--red);
  border-radius: 999px;
  padding: 14px 22px;
  box-shadow: var(--shadow);
}

.sticks__label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  white-space: nowrap;
}

.timeline {
  position: relative;
  margin-left: 18px;
  padding-left: 28px;
  border-left: 2px solid var(--red);
}

.timeline__item {
  margin: 0 0 28px;
  position: relative;
}

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

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

.list-plain {
  padding-left: 18px;
}

.list-plain li {
  margin: 0 0 10px;
}

.bonus {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.bonus__item {
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--red);
  border-radius: 16px;
  padding: 22px 14px;
}

.bonus__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border: 1px solid var(--red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

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

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

.legal p {
  color: var(--muted);
}

.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mosaic img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--red);
  border-radius: 12px;
}

.mosaic__wide {
  grid-column: 1 / -1;
  aspect-ratio: 12 / 5 !important;
}

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

.footer__grid {
  display: grid;
  grid-template-columns: 0.6fr 1fr 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}

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

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

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

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

.footer__phone {
  margin: 0 0 8px;
}

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

.footer__company {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1100px) {
  .header__burger {
    display: flex;
  }

  .header__panel {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #0b0b0b;
    border-bottom: 1px solid var(--red);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 24px;
    white-space: normal;
    gap: 18px;
  }

  .header__toggle:checked ~ .header__panel {
    display: flex;
  }

  .header__menu {
    flex-direction: column;
    gap: 12px;
  }

  .header__meta {
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cards--five,
  .cards,
  .strengths__list,
  .bonus,
  .footer__grid,
  .advantages__grid,
  .story,
  .contacts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .strengths__item:nth-child(n) {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .form__row,
  .cards--five,
  .cards,
  .strengths__list,
  .bonus,
  .footer__grid,
  .advantages__grid,
  .story,
  .contacts-grid,
  .sticks__item,
  .mosaic,
  .stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

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

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

  .header::after {
    animation: none;
    background-position: 50% 0;
  }
}
