:root {
  --bg-pink: #f6dbe5;
  --accent-pink: #d99aae;
  --soft-pink: #e9b7c8;
  --text-main: #7d6a70;
  --title-pink: #c98fa5;
  --white: #ffffff;
  --border-pink: #e8c0cc;
  --button-pink: #dc9caf;
  --card-width: 390px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text-main);
  font-family: Manrope, Arial, sans-serif;
  background:
    linear-gradient(rgba(246, 219, 229, 0.36), rgba(246, 219, 229, 0.5)),
    url("assets/site-bg.jpg") center / cover fixed,
    var(--bg-pink);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 10px;
}

.mobile-card {
  width: min(var(--card-width), 100%);
  overflow: hidden;
  position: relative;
  padding: 24px 18px 34px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(164, 107, 124, 0.14);
}

.mobile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 2%, rgba(217, 154, 174, 0.16), transparent 120px),
    linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 42%);
}

.header,
.hero,
.about,
.services,
.courses,
.students,
.online,
.offline,
.contacts {
  position: relative;
  z-index: 1;
}

.header {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  z-index: 30;
}

.logo {
  color: var(--title-pink);
  font-family: "Great Vibes", Georgia, serif;
  font-size: 31px;
  line-height: 1;
}

.menu-button {
  width: 42px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  width: 29px;
  height: 1px;
  display: block;
  border-radius: 999px;
  background: var(--title-pink);
}

.menu-button span {
  position: relative;
}

.menu-button span::before,
.menu-button span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-button span::before {
  top: -7px;
}

.menu-button span::after {
  top: 7px;
}

.menu {
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 60;
  width: 184px;
  padding: 8px;
  border: 1px solid var(--border-pink);
  background: var(--white);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu a {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(232, 192, 204, 0.45);
  color: var(--text-main);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu a:last-child {
  border-bottom: 0;
}

.hero {
  text-align: center;
}

.hero-frame {
  width: min(300px, 92%);
  margin: 0 auto 30px;
  border: 0;
  border-radius: 4px;
  position: relative;
  aspect-ratio: 564 / 721;
}

.hero-photo {
  position: absolute;
  inset: 14.7% 15.8% 10.1% 16.1%;
  z-index: 1;
  overflow: hidden;
  border: 0;
  background-color: #d99aae;
  line-height: 0;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: url("assets/ornate-frame-cut.png") center / 100% 100% no-repeat;
}

.frame-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.01);
}

.hero-title {
  margin: 0 0 28px;
  color: var(--title-pink);
  font-family: "Great Vibes", Georgia, serif;
  font-size: clamp(62px, 19vw, 82px);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: 0;
}

.hero-title span {
  display: block;
  margin-left: 56px;
}

.section-title {
  margin: 0 0 28px;
  color: var(--title-pink);
  font-family: "Great Vibes", Georgia, serif;
  font-size: clamp(50px, 14vw, 68px);
  font-weight: 400;
  line-height: 0.95;
  text-align: center;
  letter-spacing: 0;
}

.text {
  margin: 0 0 20px;
  color: var(--text-main);
  font-size: 12px;
  line-height: 1.72;
  text-align: justify;
}

.primary-button,
.contact-button {
  width: min(292px, 100%);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--button-pink);
  color: var(--white);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-button {
  margin-top: 6px;
}

.offline > .primary-button {
  display: flex;
  margin-right: auto;
  margin-left: auto;
}

.primary-button:hover,
.contact-button:hover {
  background: #ce8da2;
  transform: translateY(-1px);
}

.outline-button {
  min-width: 156px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 9px 16px;
  border: 1px solid var(--border-pink);
  border-radius: 999px;
  background: var(--white);
  color: var(--title-pink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.outline-button:hover {
  background: #fff6f9;
  border-color: var(--accent-pink);
  color: #bf8298;
}

.outline-button span {
  font-size: 14px;
  line-height: 1;
}

.about,
.services,
.courses,
.students,
.online,
.offline,
.contacts {
  margin-top: 64px;
}

.mobile-card--details .services {
  margin-top: 0;
}

.about-banner,
.services-banner,
.course-banner {
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(232, 192, 204, 0.54);
  background-image: url("assets/taplink-lilashes.jpg");
  background-size: cover;
  background-repeat: no-repeat;
}

.about-banner {
  aspect-ratio: 16 / 7;
  margin-top: 20px;
  background-position: 50% 82%;
}

.services-banner {
  aspect-ratio: 16 / 7;
  margin-top: 22px;
  background-position: 78% 80%;
}

.course-banner {
  aspect-ratio: 16 / 8;
  margin-bottom: 22px;
  background-position: 82% 48%;
}

.service-card,
.course-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.service-card:nth-of-type(even),
.course-card:nth-of-type(even) {
  grid-template-columns: minmax(0, 1fr) 86px;
}

.service-card:nth-of-type(even) .service-image,
.course-card:nth-of-type(even) .course-image {
  order: 2;
}

.service-card h3,
.course-card h3 {
  margin: 0 0 7px;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.32;
  text-transform: uppercase;
}

.service-card .text,
.course-card .text {
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.55;
}

.service-image,
.course-image {
  width: 86px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-pink);
  border-radius: 23px;
  background:
    linear-gradient(rgba(255, 248, 250, 0.58), rgba(255, 248, 250, 0.58)),
    url("assets/taplink-lilashes.jpg") center / 240% auto;
  color: var(--title-pink);
  font-family: "Great Vibes", Georgia, serif;
  font-size: 39px;
}

.course-image {
  border-radius: 50%;
}

.hero-copy {
  text-align: center;
}

.mini-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
}

.mini-gallery img,
.students-collage img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.mini-gallery img {
  aspect-ratio: 1;
  border-radius: 22px;
  border: 1px solid rgba(232, 192, 204, 0.68);
}

.students-collage {
  overflow: hidden;
  margin-top: 26px;
  border-radius: 24px;
  border: 1px solid rgba(232, 192, 204, 0.68);
}

.students-collage img {
  aspect-ratio: 16 / 11;
  object-position: center;
}

.course-card--wide {
  align-items: start;
}

.image-thumb {
  background-size: cover;
  background-position: center;
}

.image-thumb--online {
  background-image:
    linear-gradient(rgba(255, 248, 250, 0.24), rgba(255, 248, 250, 0.24)),
    url("assets/training-mask.jpg");
}

.course-note {
  display: grid;
  gap: 6px;
  margin: 24px 0;
  padding: 14px 16px;
  border: 1px solid var(--border-pink);
  border-radius: 22px;
  background: rgba(255, 248, 250, 0.72);
}

.course-note strong {
  color: var(--title-pink);
  font-size: 13px;
}

.course-note span {
  color: var(--text-main);
  font-size: 11px;
  line-height: 1.55;
}

.program {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.program details {
  border: 1px solid var(--border-pink);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  transition:
    height 0.34s ease,
    border-color 0.24s ease,
    background-color 0.24s ease;
  will-change: height;
}

.program details[open] {
  border-color: var(--soft-pink);
  background: rgba(255, 250, 252, 0.86);
}

.program summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--title-pink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
  list-style: none;
}

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

.program summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 7px;
  transform: translateY(-1px) rotate(0deg);
  transition: transform 0.28s ease;
}

.program details[open] summary::before {
  transform: translateY(-1px) rotate(90deg);
}

.program ul {
  margin: 0;
  padding: 0 16px 14px 30px;
}

.program li {
  margin-bottom: 7px;
  color: var(--text-main);
  font-size: 11px;
  line-height: 1.45;
}

.small-text {
  font-size: 11px;
}

.contacts {
  display: grid;
  justify-items: center;
  text-align: center;
}

.bow-icon {
  width: 58px;
  height: 30px;
  position: relative;
  margin: -4px auto 24px;
}

.bow-icon::before,
.bow-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 27px;
  height: 22px;
  border: 2px solid var(--title-pink);
  background: rgba(233, 183, 200, 0.42);
}

.bow-icon::before {
  left: 0;
  border-radius: 70% 28% 70% 28%;
  transform: rotate(-16deg);
}

.bow-icon::after {
  right: 0;
  border-radius: 28% 70% 28% 70%;
  transform: rotate(16deg);
}

.contact-button {
  margin-bottom: 12px;
}

@media (min-width: 431px) {
  .page {
    padding-top: 42px;
    padding-bottom: 42px;
  }
}

@media (min-width: 860px) {
  body {
    overflow: auto;
  }

  .page {
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    padding: 56px 24px;
  }

  .mobile-card {
    width: min(760px, calc(100vw - 48px));
    max-height: none;
    padding: 42px 52px 48px;
  }

  .mobile-card--intro {
    transform: none;
  }

  .mobile-card--details {
    transform: none;
  }

  .header {
    margin-bottom: 34px;
  }

  .menu-button,
  .menu {
    display: none;
  }

  .logo {
    font-size: 42px;
  }

  .hero-frame {
    width: min(360px, 70%);
    margin-bottom: 34px;
  }

  .hero-title {
    margin-bottom: 28px;
    font-size: 92px;
  }

  .section-title {
    margin-bottom: 30px;
    font-size: 74px;
  }

  .text {
    max-width: 620px;
    margin-right: auto;
    margin-bottom: 20px;
    margin-left: auto;
    font-size: 15px;
    line-height: 1.85;
  }

  .primary-button,
  .contact-button {
    min-height: 42px;
    font-size: 12px;
  }

  .outline-button {
    min-width: 180px;
    min-height: 38px;
    padding: 10px 18px;
    gap: 14px;
    font-size: 11px;
  }

  .about,
  .services,
  .courses,
  .students,
  .online,
  .offline,
  .contacts {
    margin-top: 74px;
  }

  .about-banner {
    display: block;
    max-width: 620px;
    margin: 26px auto 0;
  }

  .services-banner,
  .course-banner {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
  }

  .service-card,
  .course-card {
    max-width: 620px;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 24px;
    margin: 0 auto 30px;
  }

  .service-card:nth-of-type(even),
  .course-card:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr) 118px;
  }

  .service-card h3,
  .course-card h3 {
    margin-bottom: 9px;
    font-size: 14px;
  }

  .service-card .text,
  .course-card .text {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.65;
  }

  .service-image,
  .course-image {
    width: 118px;
    border-radius: 28px;
    font-size: 52px;
  }

  .course-image {
    border-radius: 50%;
  }

  .bow-icon {
    width: 48px;
    height: 22px;
    margin-bottom: 10px;
  }

  .contact-button {
    margin-bottom: 7px;
  }

  .mini-gallery {
    max-width: 620px;
    gap: 18px;
    margin: 30px auto 0;
  }

  .students-collage {
    max-width: 620px;
    margin: 30px auto 0;
    border-radius: 28px;
  }

  .course-note {
    max-width: 620px;
    margin: 30px auto;
    padding: 22px 24px;
    border-radius: 24px;
  }

  .course-note strong {
    font-size: 16px;
  }

  .course-note span,
  .program li,
  .small-text {
    font-size: 13px;
  }

  .program {
    max-width: 620px;
    gap: 14px;
    margin: 30px auto;
  }

  .program summary {
    padding: 16px 18px;
    font-size: 12px;
  }

  .program ul {
    padding: 0 24px 18px 36px;
  }

  .bow-icon {
    width: 62px;
    height: 32px;
    margin-bottom: 24px;
  }

  .contact-button {
    width: min(340px, 100%);
    margin-bottom: 14px;
  }
}

@media (max-width: 360px) {
  .page {
    padding: 0;
  }

  .mobile-card {
    min-height: 100vh;
    padding: 20px 14px 30px;
  }

  .hero-frame {
    width: min(270px, 92%);
  }

  .text {
    font-size: 11px;
    line-height: 1.72;
  }

  .hero-title {
    margin-bottom: 24px;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .service-card,
  .course-card,
  .service-card:nth-of-type(even),
  .course-card:nth-of-type(even) {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 11px;
  }

  .service-card:nth-of-type(even) .service-image,
  .course-card:nth-of-type(even) .course-image {
    order: 0;
  }

  .service-image,
  .course-image {
    width: 76px;
    border-radius: 20px;
  }

  .course-image {
    border-radius: 50%;
  }

  .outline-button {
    min-width: 142px;
    padding-inline: 12px;
    gap: 10px;
  }
}
