/* Sarodin — adult dance studio, York Buildings */

:root {
  --color-bg: #000;
  --color-text: #fff;
  --color-muted: #c8c8c8;
  --color-grey: #1c1c1c;
  --color-grey-2: #2a2a2a;
  --color-red: #e31c23;
  --color-red-hot: #ff3b42;
  --color-line: rgba(255, 255, 255, 0.14);
  --font-display: "Cormorant Garamond", Palatino, "Palatino Linotype", "Times New Roman", serif;
  --font-body: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --header-height: 74px;
  --container: 1120px;
  --desktop: 1100px;
}

*,
*::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-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: clip;
}

body > :not(.ambient) {
  position: relative;
  z-index: 1;
}

body > .header {
  z-index: 40;
}

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

a {
  color: inherit;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

::selection {
  background: var(--color-red);
  color: #fff;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--color-red);
  color: #fff;
  padding: 0.6rem 0.9rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.6rem;
}

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

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

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  width: 58vw;
  height: 58vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 28, 35, 0.55) 0%, rgba(227, 28, 35, 0.16) 46%, rgba(227, 28, 35, 0) 72%);
  filter: blur(6px);
  animation: ambient-drift 18s ease-in-out infinite alternate;
}

.ambient::before {
  top: -18vw;
  left: -14vw;
}

.ambient::after {
  width: 46vw;
  height: 46vw;
  right: -12vw;
  bottom: -16vw;
  background: radial-gradient(circle, rgba(255, 64, 72, 0.42) 0%, rgba(110, 0, 12, 0.16) 48%, rgba(227, 28, 35, 0) 72%);
  animation-duration: 26s;
  animation-direction: alternate-reverse;
}

@keyframes ambient-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(14vw, 12vh, 0) scale(1.18);
  }
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid rgba(227, 28, 35, 0.75);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-height);
  padding: 0 1.25rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.header__logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.header__logo-image {
  width: 48px;
  height: 48px;
  object-fit: cover;
}

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

.header__burger {
  margin-left: auto;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.header__burger-lines {
  width: 22px;
  height: 16px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.header__burger-line {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-toggle:focus-visible + .header__burger {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

.nav-toggle:checked + .header__burger .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked + .header__burger .header__burger-line:nth-child(2) {
  transform: scaleX(0);
}

.nav-toggle:checked + .header__burger .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #070707;
  border-top: 1px solid var(--color-red);
  padding: 1.25rem 1.4rem 2rem;
  max-height: calc(100vh - var(--header-height));
  overflow: auto;
  white-space: normal;
}

.nav-toggle:checked ~ .header__nav {
  display: block;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav__link {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 2.15rem;
  line-height: 1.15;
  white-space: nowrap;
}

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

.nav__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
}

.nav__phone,
.nav__address,
.header__phone,
.header__address {
  margin: 0;
  white-space: nowrap;
  line-height: 1.2;
}

.nav__email,
.header__email {
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  color: #fff;
}

.nav__email:hover,
.header__email:hover,
.footer__email:hover,
.footer__address:hover {
  color: var(--color-red-hot);
}

.header__contacts {
  display: none;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 0.92rem;
}

body.nav-open {
  overflow: hidden;
}

/* Banner */

.banner {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}

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

.banner__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.4) 100%);
}

.banner__inner {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 6.5rem 0 3.5rem;
}

.banner__kicker {
  margin: 0 0 0.8rem;
  color: var(--color-red);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.banner__title {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 10vw, 6.2rem);
  max-width: 100%;
}

.banner__lead {
  max-width: 38rem;
  margin: 0;
  font-size: 1.12rem;
  color: #f2f2f2;
}

/* Sections */

.section {
  padding: 4.5rem 0;
  background: rgba(0, 0, 0, 0.55);
}

.section--grey {
  background: rgba(22, 22, 22, 0.78);
}

.section__kicker {
  margin: 0 0 0.45rem;
  color: var(--color-red);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.section__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  max-width: 100%;
}

.prose {
  max-width: 68ch;
}

.prose p:first-child::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 3.5rem;
  line-height: 0.75;
  padding: 0.35rem 0.45rem 0 0;
  color: var(--color-red);
  font-weight: 600;
}

.prose a {
  color: #fff;
  text-underline-offset: 0.18em;
}

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

/* Strengths */

.strengths__list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.strengths__card {
  padding: 1.4rem 1.25rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 1.35rem;
  background:
    linear-gradient(#141414, #141414) padding-box,
    linear-gradient(145deg, #ff6a6a, #6a0010 42%, #e31c23 68%, #ffd0d0) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -16px 28px rgba(0, 0, 0, 0.38),
    0 18px 34px rgba(0, 0, 0, 0.55),
    0 10px 18px rgba(227, 28, 35, 0.28);
}

.strengths__title {
  margin: 0 0 0.55rem;
  font-size: 2rem;
}

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

/* Service cards on the home page */

.offer-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

.service-card {
  background: #121212;
  border: 1px solid rgba(227, 28, 35, 0.55);
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

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

.service-card__body {
  padding: 1rem 1rem 1.15rem;
}

.service-card__title {
  margin: 0 0 0.35rem;
  font-size: 2rem;
}

.service-card__price {
  margin: 0 0 0.55rem;
  color: var(--color-red-hot);
  font-size: 0.95rem;
}

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

.service-card__text::first-letter,
.price-card__body > .price-card__text:first-of-type::first-letter,
.strengths__text::first-letter,
.mission__text::first-letter,
.timeline__text::first-letter,
.perks__text::first-letter,
.bonus__text::first-letter,
.faq__answer p::first-letter {
  font-family: var(--font-display);
  color: var(--color-red);
  font-size: 1.35em;
}

.button {
  display: inline-block;
  background: var(--color-red);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(227, 28, 35, 0.32);
}

.button:hover {
  background: var(--color-red-hot);
  color: #fff;
}

.button:focus-visible,
.form__input:focus-visible,
.form__select:focus-visible,
.form__textarea:focus-visible,
.faq__question:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Figures and advantages */

.figures {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.figures__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: baseline;
  padding-top: 0.8rem;
  border-top: 1px solid var(--color-line);
}

.figures__value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--color-red);
  line-height: 1;
  min-width: 3.2rem;
}

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

/* Forms */

.form {
  position: relative;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.95rem;
  max-width: 42rem;
}

.form__row {
  display: grid;
  gap: 0.95rem;
}

.form__field {
  display: grid;
  gap: 0.35rem;
}

.form__label {
  font-size: 0.92rem;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  background: #0c0c0c;
  color: #fff;
  border: 1px solid #5a5a5a;
  border-radius: 0.55rem;
  padding: 0.85rem 0.9rem;
  font: inherit;
}

.form__textarea {
  min-height: 9rem;
  resize: vertical;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(227, 28, 35, 0.28);
}

.form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 0.7rem;
  background: #141414;
}

.form__status[hidden] {
  display: none;
}

.form__status--ok {
  border: 1px solid var(--color-red);
  box-shadow: 0 10px 24px rgba(227, 28, 35, 0.2);
}

.form__status--error {
  border: 1px solid #fff;
}

.form__submit {
  justify-self: start;
}

/* FAQ */

.faq {
  margin-top: 1.2rem;
  max-width: 46rem;
}

.faq__item {
  border-bottom: 1px solid var(--color-line);
}

.faq__question {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.15;
  padding: 1rem 0;
}

.faq__question::-webkit-details-marker {
  display: none;
}

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

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

.faq__answer {
  color: var(--color-muted);
  padding-bottom: 0.8rem;
}

/* About */

.story {
  display: grid;
  gap: 1.5rem;
}

.story__gallery {
  display: grid;
  gap: 1rem;
}

.story__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(227, 28, 35, 0.45);
}

.story__caption {
  margin-top: 0.4rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.mission {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.mission__item {
  margin: 0;
  padding: 1.05rem 1.2rem;
  background: linear-gradient(90deg, #2a2a2a, #141414 78%);
  border-left: 8px solid var(--color-red);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.mission__title {
  margin: 0 0 0.3rem;
  font-size: 1.7rem;
}

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

.timeline {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0 0 0 0.2rem;
  border-left: 2px solid var(--color-red);
  max-width: 42rem;
}

.timeline__item {
  position: relative;
  margin: 0;
  padding: 0 0 1.8rem 1.5rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -0.48rem;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 0 5px #000;
}

.timeline__when {
  margin: 0;
  color: var(--color-red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.timeline__title {
  margin: 0.25rem 0 0.4rem;
  font-size: 2rem;
}

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

/* Services detail */

.price-list {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.8rem;
}

.price-card {
  display: grid;
  gap: 0;
  background: #121212;
  border: 1px solid rgba(227, 28, 35, 0.55);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

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

.price-card__body {
  padding: 1.2rem 1.15rem 1.35rem;
}

.price-card__title {
  margin: 0 0 0.35rem;
  font-size: 2.4rem;
}

.price-card__price {
  margin: 0 0 0.8rem;
  color: var(--color-red-hot);
}

.price-card__subhead {
  margin: 1rem 0 0.3rem;
  font-size: 1.55rem;
}

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

.price-card .button {
  margin-top: 0.4rem;
}

.steps {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
}

.steps__item {
  counter-increment: step;
  padding-left: 2.6rem;
  position: relative;
  color: var(--color-muted);
}

.steps__item::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 1px solid var(--color-red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.perks {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.perks__item {
  padding: 1rem 1rem 1rem 1.1rem;
  background: #141414;
  border-top: 2px solid var(--color-red);
}

.perks__title {
  margin: 0 0 0.3rem;
  font-size: 1.7rem;
}

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

.bonus__list {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.bonus__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(227, 28, 35, 0.4);
  border-radius: 0.9rem;
}

.bonus__icon {
  width: 42px;
  height: 42px;
  color: var(--color-red);
}

.bonus__title {
  margin: 0 0 0.25rem;
  font-size: 1.55rem;
}

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

/* Contact */

.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-card {
  background: #141414;
  border: 1px solid rgba(227, 28, 35, 0.5);
  border-radius: 1rem;
  padding: 1.2rem 1.15rem;
}

.contact-card__line {
  margin: 0 0 0.7rem;
}

.contact-card a {
  color: #fff;
}

.contact-card a:hover {
  color: var(--color-red-hot);
}

/* Legal */

.legal {
  padding: 3.5rem 0 4.5rem;
}

.legal__title {
  margin: 0 0 0.4rem;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  max-width: 14ch;
}

.legal__updated {
  margin: 0 0 1.6rem;
  color: var(--color-red);
}

.legal .prose {
  max-width: 74ch;
}

/* Footer */

.footer {
  background: rgba(8, 8, 8, 0.92);
  border-top: 1px solid rgba(227, 28, 35, 0.75);
  padding: 2.5rem 0 2rem;
}

.footer__inner {
  display: grid;
  gap: 1.6rem;
}

.footer__logo-image {
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.footer__nav-list,
.footer__policies {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer__link,
.footer__policy {
  text-decoration: none;
}

.footer__link:hover,
.footer__policy:hover,
.footer__social-link:hover {
  color: var(--color-red-hot);
}

.footer__phone,
.footer__email,
.footer__address,
.footer__social,
.footer__company,
.footer__owner,
.footer__reg,
.footer__copy {
  margin: 0 0 0.4rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  text-decoration: none;
}

.footer__company {
  margin-top: 0.8rem;
}

@media (min-width: 700px) {
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form__row {
    grid-template-columns: 1fr 1fr;
  }

  .story__gallery {
    grid-template-columns: 1fr 1fr;
  }

  .perks,
  .bonus__list,
  .figures {
    grid-template-columns: 1fr 1fr;
  }

  .figures {
    gap: 0.8rem 1.5rem;
  }

  .contact-layout {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .header__burger {
    display: none;
  }

  .header .header__nav {
    display: flex;
    align-items: center;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
    flex: 1 1 auto;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 1.15rem;
  }

  .nav__link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1;
  }

  .nav__contacts {
    display: none;
  }

  .header__contacts {
    display: flex;
  }

  .strengths__list {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
  }

  .strengths__card {
    flex: 1 1 0;
  }

  .strengths__card:nth-child(1) {
    margin-top: 2.6rem;
    min-height: 15.5rem;
  }

  .strengths__card:nth-child(2) {
    margin-top: 0;
    min-height: 18.5rem;
  }

  .strengths__card:nth-child(3) {
    margin-top: 3.7rem;
    min-height: 16.5rem;
  }

  .strengths__card:nth-child(4) {
    margin-top: 1.15rem;
    min-height: 17.4rem;
  }

  .banner__title {
    max-width: 13ch;
  }

  .section__title,
  .legal__title {
    max-width: 18ch;
  }

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

  .offer-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .service-card:nth-child(-n + 3) {
    grid-column: span 2;
  }

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

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

  .story {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .story__gallery {
    grid-template-columns: 1fr;
  }

  .mission__item:nth-child(1) {
    width: 100%;
  }

  .mission__item:nth-child(2) {
    width: 88%;
  }

  .mission__item:nth-child(3) {
    width: 76%;
  }

  .mission__item:nth-child(4) {
    width: 64%;
  }

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

  .price-card__image {
    height: 280px;
    width: 280px;
    aspect-ratio: 1 / 1;
  }

  .footer__inner {
    grid-template-columns: auto 1fr 1.1fr;
    align-items: start;
  }

  .perks {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 700px) and (max-width: 1099px) {
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-card {
    grid-template-columns: 240px 1fr;
  }

  .price-card__image {
    width: 240px;
    height: 240px;
  }
}

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

  .ambient::before,
  .ambient::after,
  .service-card,
  .header__burger-line {
    animation: none;
    transition: none;
  }
}
