@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --color-bg: #071428;
  --color-bg-deep: #050b16;
  --color-black: #05070c;
  --color-text: #f4f7fb;
  --color-muted: #c5d0de;
  --color-cyan: #3ec6ff;
  --color-cyan-deep: #1494c9;
  --color-line: rgba(62, 198, 255, 0.35);
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  --header-h: 78px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

a {
  color: var(--color-cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #8adcff;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
.banner__title,
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 20, 40, 0.94);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(10px);
}

.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 18%,
    #1494c9 36%,
    #7ae4ff 50%,
    #3ec6ff 64%,
    transparent 82%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: header-border 4.5s linear infinite;
}

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

  100% {
    background-position: -120% 0;
  }
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

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

.header__logo-img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 10px;
}

.header__toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.header__burger {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--color-cyan);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.header__burger-line,
.header__burger::before,
.header__burger::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-cyan);
}

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

.nav {
  flex: 1;
}

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

.nav__link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

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

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

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

.header__mail {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.banner {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: end start;
  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(5, 11, 22, 0.2), rgba(5, 11, 22, 0.78));
}

.banner__title {
  position: relative;
  z-index: 1;
  margin: 0 0 56px 5vw;
  max-width: 12em;
  font-size: clamp(42px, 6vw, 78px);
}

.section {
  padding: 84px 0;
}

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

.section__title {
  margin: 0 0 18px;
  font-size: clamp(34px, 4vw, 52px);
}

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

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

.strengths__item {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  background:
    linear-gradient(#081526, #081526) padding-box,
    linear-gradient(145deg, #8aecff, #163e78 46%, #3ec6ff 88%) border-box;
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.5), 0 12px 22px rgba(62, 198, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.strengths__item:nth-child(1) {
  margin-top: 52px;
}

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

.strengths__item:nth-child(3) {
  margin-top: 88px;
}

.strengths__item:nth-child(4) {
  margin-top: 28px;
}

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

.offers__grid,
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 921px) {
  .offers__grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .offers__grid .card {
    grid-column: span 2;
  }

  .offers__grid .card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .offers__grid .card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

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

.card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #081526;
}

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

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

.card__title {
  margin: 0;
  font-size: 30px;
}

.card__text,
.card__meta {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
}

.card__price {
  margin: 0;
  font-weight: 700;
  color: var(--color-cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--color-cyan);
  border-radius: 999px;
  background: var(--color-cyan);
  color: #062033;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

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

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

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

.facts__item {
  padding: 22px 18px;
  background: var(--color-black);
  border: 1px solid var(--color-line);
  border-radius: 14px;
}

.facts__number {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--color-cyan);
  line-height: 1;
}

.facts__label {
  display: block;
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 14px;
}

.form {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-top: 28px;
  padding: 28px;
  background: var(--color-bg-deep);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

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

.form__field {
  display: grid;
  gap: 6px;
}

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

.form__label {
  font-size: 14px;
  font-weight: 600;
}

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

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

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-muted);
}

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

.form__status--success {
  background: rgba(46, 168, 122, 0.18);
  border: 1px solid #3ad19a;
}

.form__status--error {
  background: rgba(176, 56, 72, 0.18);
  border: 1px solid #ef6b7c;
}

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

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

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

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

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

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

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

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

.mission__list {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.mission__item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 22px;
  background: var(--color-black);
  border-radius: 999px;
  border: 1px solid var(--color-line);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.mission__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--color-cyan);
}

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

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

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

.timeline__item {
  position: relative;
  margin-bottom: 28px;
  padding-left: 18px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 0 6px rgba(62, 198, 255, 0.15);
}

.timeline__year {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--color-cyan);
}

.advantages__list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  counter-reset: plus;
}

.advantages__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px;
  background: var(--color-bg-deep);
  border: 1px solid var(--color-line);
  border-radius: 14px;
}

.advantages__item::before {
  counter-increment: plus;
  content: counter(plus);
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--color-cyan);
}

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

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

.bonus__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-cyan);
  border-radius: 50%;
  color: var(--color-cyan);
  font-family: var(--font-display);
  font-size: 28px;
}

.bonus__title {
  margin: 0 0 8px;
  font-size: 22px;
}

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

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

.contacts-card p {
  margin: 0 0 12px;
}

.legal {
  padding: 72px 0 96px;
}

.legal h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.legal h2 {
  margin-top: 1.6em;
  font-size: 32px;
}

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

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

.footer__logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

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

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

.footer__phone {
  margin: 0 0 8px;
}

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

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

.footer__legal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 14px;
}

.footer__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

@media (max-width: 1320px) {
  .header__burger {
    display: block;
  }

  .header__panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 22px 20px 32px;
    background: #081526;
    border-bottom: 1px solid var(--color-line);
    flex-direction: column;
    align-items: stretch;
    white-space: normal;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
  }

  .header--open .header__panel,
  .header:has(.header__toggle:checked) .header__panel {
    display: flex;
  }

  .nav__list,
  .header__contacts {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
    gap: 14px;
  }

  .header__inner {
    white-space: nowrap;
  }

  .strengths__list,
  .offers__grid,
  .services__grid,
  .facts__grid,
  .bonus__grid,
  .footer__grid,
  .story,
  .contacts-layout {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (max-width: 720px) {
  .banner {
    min-height: 320px;
  }

  .form,
  .form__row,
  .strengths__list,
  .offers__grid,
  .services__grid,
  .facts__grid,
  .bonus__grid,
  .footer__grid,
  .story,
  .contacts-layout,
  .advantages__item {
    grid-template-columns: 1fr;
  }

  .footer__messengers,
  .footer__policies {
    flex-direction: column;
  }
}

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

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