:root {
  --color-bg: #0a0a0a;
  --color-bg-soft: #141414;
  --color-ash: #1c1c1c;
  --color-ash-2: #262626;
  --color-text: #f7f7f7;
  --color-muted: #c8c8c8;
  --color-yellow: #f5c518;
  --color-yellow-deep: #c9a016;
  --color-line: rgba(245, 197, 24, 0.35);
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --header-h: 84px;
  --radius: 18px;
  --shadow: 0 22px 40px rgba(0, 0, 0, 0.55);
  --container: 1180px;
}

*,
*::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(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

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

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

a:hover {
  color: #ffe37a;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

p {
  margin: 0 0 1em;
}

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

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.94);
  border-bottom: 1px solid var(--color-line);
}

.header::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-yellow) 50%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-size: 28% 100%;
  animation: header-scan 2.6s linear infinite;
}

.header__inner {
  width: min(100% - 24px, 1280px);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.header__logo {
  flex: 0 0 auto;
  display: flex;
}

.header__logo-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  animation: logo-pulse 2.4s ease-in-out infinite;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1 1 auto;
}

.header__list {
  display: flex;
  align-items: center;
  gap: 8px 20px;
}

.header__link {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--color-yellow);
  transition: width 0.25s ease;
}

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

.header__link:hover::after,
.header__link--current::after {
  width: 100%;
}

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

.header__phone,
.header__address {
  margin: 0;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 400;
}

.header__email {
  font-size: 13px;
  white-space: nowrap;
}

.header__contacts--menu {
  display: none;
}

.header__burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--color-yellow);
  background: transparent;
  border-radius: 8px;
  padding: 10px 11px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.header__burger-line {
  display: block;
  height: 2px;
  background: var(--color-yellow);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header__burger--open .header__burger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.header__burger--open .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger--open .header__burger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

@keyframes header-scan {
  0% { background-position: -30% 0; }
  100% { background-position: 130% 0; }
}

@keyframes logo-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 197, 24, 0);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 0 16px 2px rgba(245, 197, 24, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header::after,
  .header__logo-img {
    animation: none;
  }
}

/* Banner */
.banner {
  position: relative;
  min-height: 420px;
  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(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0.78) 100%);
}

.banner__title {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 980px);
  text-align: center;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.7);
}

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

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

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

.section__title {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  margin-bottom: 22px;
}

.section__title::after {
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--color-yellow), transparent);
}

.prose p::first-letter {
  font-family: var(--font-display);
  font-size: 2.35em;
  font-weight: 600;
  float: left;
  line-height: 0.75;
  padding: 10px 10px 0 0;
  color: var(--color-yellow);
}

.prose p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* Strengths */
.strengths__list {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-top: 48px;
}

.strengths__item {
  flex: 1;
  padding: 28px 24px;
  background:
    linear-gradient(var(--color-ash-2), var(--color-ash-2)) padding-box,
    linear-gradient(145deg, #f5c518, #7a5a00 42%, #f8e08a 68%, #b8860b) border-box;
  border: 2px solid transparent;
  border-radius: 16px;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.55),
    0 10px 0 rgba(245, 197, 24, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(0);
}

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

.strengths__name {
  font-size: 1.7rem;
  margin-bottom: 12px;
  color: var(--color-yellow);
}

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

/* Offers */
.offers__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.offer-card {
  background: var(--color-ash);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.offer-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-yellow);
}

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

.offer-card__body {
  padding: 18px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.offer-card__title {
  font-size: 1.45rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--color-yellow);
  background: var(--color-yellow);
  color: #111;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: transparent;
  color: var(--color-yellow);
}

.btn--ghost {
  background: transparent;
  color: var(--color-yellow);
}

.btn--ghost:hover {
  background: var(--color-yellow);
  color: #111;
}

/* Advantages */
.advantages__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 36px 0 28px;
}

.advantages__stat {
  background: var(--color-ash);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
}

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

.advantages__label {
  color: var(--color-muted);
  margin: 6px 0 0;
  font-size: 0.95rem;
}

/* Forms */
.form {
  margin-top: 28px;
  background: var(--color-ash);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

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

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

.form__field--full {
  grid-column: 1 / -1;
}

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

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  background: #111;
  color: var(--color-text);
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: 2px solid var(--color-yellow);
  border-color: var(--color-yellow);
}

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

.form__actions {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.form__success,
.form__error {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 0;
}

.form__success {
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid var(--color-yellow);
  color: #ffe9a3;
}

.form__error {
  background: rgba(160, 40, 40, 0.25);
  border: 1px solid #d45c5c;
  color: #ffd0d0;
}

/* FAQ */
.faq__list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-ash);
}

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

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

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

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

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

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

.goals__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

.goal-stick {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 92px;
  padding: 18px 22px;
  background: linear-gradient(90deg, #2a240c, var(--color-ash));
  border-radius: 999px;
  border: 1px solid var(--color-line);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.goal-stick__label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-yellow);
  margin: 0;
}

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

.timeline {
  margin-top: 40px;
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--color-yellow), transparent);
}

.timeline__item {
  position: relative;
  padding: 0 0 32px 22px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-yellow);
  box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.2);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-yellow);
  margin: 0 0 8px;
}

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

/* Services page */
.service-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  background: var(--color-ash);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.service-card__image {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.service-card__title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.service-card__price {
  color: var(--color-yellow);
  font-weight: 600;
  margin-bottom: 12px;
}

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

.service-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 20px;
}

.service-card__meta h3 {
  font-size: 1.2rem;
  color: var(--color-yellow);
  margin-bottom: 8px;
}

.perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 22px;
  margin-top: 28px;
}

.perks__item {
  background: var(--color-ash);
  border-left: 3px solid var(--color-yellow);
  padding: 14px 16px;
}

.perks__title {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

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

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

.bonus__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--color-yellow);
}

.bonus__title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.bonus__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.96rem;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

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

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

.contacts-card a {
  display: inline-block;
}

/* Legal */
.legal {
  padding: 72px 0 96px;
}

.legal__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}

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

.legal p::first-letter {
  font-family: var(--font-display);
  font-size: 1.8em;
  color: var(--color-yellow);
  font-weight: 600;
  padding-right: 4px;
}

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

.footer__inner {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.footer__logo-img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__link,
.footer__policies a {
  color: var(--color-text);
}

.footer__link:hover,
.footer__policies a:hover {
  color: var(--color-yellow);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__phone {
  margin: 0;
  color: var(--color-text);
}

.footer__company,
.footer__owner,
.footer__reg {
  margin: 0 0 8px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.footer__policies {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

@media (max-width: 1280px) and (min-width: 1025px) {
  .header__link {
    font-size: 13px;
  }

  .header__phone,
  .header__email,
  .header__address {
    font-size: 12px;
  }

  .header__inner {
    gap: 12px;
  }

  .header__contacts {
    gap: 10px;
  }

  .header__list {
    gap: 8px 14px;
  }
}

@media (max-width: 1100px) {
  .offers__grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 1024px) {
  .header__contacts--bar {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    inset: var(--header-h) 0 0 auto;
    width: min(86vw, 380px);
    background: #111;
    border-left: 1px solid var(--color-line);
    flex-direction: column;
    align-items: stretch;
    padding: 28px 22px;
    white-space: normal;
    transform: translateX(110%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }

  .header__nav--open {
    transform: translateX(0);
  }

  .header__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header__contacts--menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 24px 0 0;
    gap: 10px;
    white-space: normal;
  }

  .header__inner {
    white-space: nowrap;
  }

  .strengths__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .history__grid,
  .service-card,
  .contacts-grid,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .goal-stick {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
}

@media (max-width: 720px) {
  .offers__grid,
  .strengths__list,
  .form__grid,
  .service-card__meta,
  .perks,
  .bonus__grid,
  .advantages__stats {
    grid-template-columns: 1fr;
  }

  .banner {
    min-height: 320px;
  }

  .section {
    padding: 64px 0;
  }
}
