@font-face {
  font-family: "TildaSans";
  font-style: normal;
  font-weight: 250 1000;
  font-display: swap;
  src: url("fonts/TildaSans-VF.woff2") format("woff2-variations");
}

:root {
  --dark: #191921;
  --dark-soft: #47484e;
  --dark-deep: #303030;
  --pink: #ff78ad;
  --pink-hover: #ff5f9f;
  --blue: #16b5e8;
  --paper: #f7f4f4;
  --white: #ffffff;
  --text: #202029;
  --muted: #696a70;
  --container: 1180px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--white);
  font-family: "TildaSans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--dark);
  background: var(--white);
  border-radius: 8px;
  transition: top .2s ease;
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  position: relative;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.socials a {
  display: grid;
  width: 28px;
  height: 28px;
  color: currentColor;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--dark);
  background: var(--white);
  transform: translateY(-2px);
}

.socials svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: var(--white);
  transition: transform .2s ease, opacity .2s ease;
}

.hero {
  position: relative;
  min-height: 720px;
  color: var(--white);
  background: var(--dark);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  z-index: 2;
  top: 0;
  right: -12%;
  width: 36%;
  height: 100%;
  content: "";
  background: var(--dark);
  clip-path: polygon(82% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 4;
  min-height: 720px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: 47%;
  padding-top: 60px;
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 34px;
  font-size: clamp(42px, 4.5vw, 68px);
  font-weight: 700;
  letter-spacing: -.035em;
}

.hero p {
  margin-bottom: 34px;
  font-size: 20px;
}

.hero-media {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 38%;
  overflow: hidden;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
  transform: scale(1.03);
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  color: var(--white);
  background: var(--pink);
  border: 2px solid var(--pink);
  border-radius: 0;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--pink-hover);
  border-color: var(--pink-hover);
  box-shadow: 0 14px 32px rgb(255 95 159 / 23%);
  transform: translateY(-2px);
}

.section {
  padding: 104px 0;
}

.about-grid {
  display: grid;
  max-width: 980px;
  align-items: center;
  gap: 80px;
  grid-template-columns: 1fr .9fr;
}

.about-photo img {
  width: 100%;
  max-height: 590px;
  object-fit: contain;
}

.specialization {
  padding: 56px 50px;
  color: var(--white);
  background: var(--blue);
}

.specialization h2 {
  margin-bottom: 18px;
  font-size: 35px;
}

.title-line {
  display: block;
  width: 42px;
  height: 2px;
  margin-bottom: 27px;
  background: rgb(255 255 255 / 78%);
}

.specialization ul {
  margin: 0;
  padding-left: 19px;
}

.specialization li + li {
  margin-top: 7px;
}

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

.section-deep-dark {
  color: var(--white);
  background: var(--dark-deep);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 62px;
  text-align: center;
}

.section-heading h2,
.blue-title {
  margin-bottom: 25px;
  font-size: clamp(32px, 3vw, 45px);
  letter-spacing: -.02em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading-light p {
  color: rgb(255 255 255 / 78%);
}

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

.problem-card {
  min-width: 0;
}

.pink-dot {
  display: block;
  width: 17px;
  height: 17px;
  margin-bottom: 25px;
  background: var(--pink);
  border-radius: 50%;
}

.problem-card h3 {
  min-height: 54px;
  margin-bottom: 12px;
  font-size: 17px;
}

.problem-card p {
  margin-bottom: 0;
  color: #ff82b5;
  line-height: 1.62;
}

.centered-action {
  margin-top: 66px;
  text-align: center;
}

.education-inner {
  max-width: 1040px;
}

.blue-title {
  color: var(--blue);
  text-align: center;
}

.education-copy {
  max-width: 760px;
  margin: 0 auto 60px;
}

.education-copy p {
  margin-bottom: 20px;
}

.education-gallery {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, 1fr);
}

.education-gallery figure {
  height: 285px;
  margin: 0;
  overflow: hidden;
  background: #dedede;
}

.education-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.education-gallery figure:nth-child(2) img {
  object-position: center 28%;
}

.process-inner {
  max-width: 900px;
}

.timeline {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  min-height: 135px;
  gap: 25px;
  grid-template-columns: 52px 1fr;
}

.timeline li:not(:last-child)::before {
  position: absolute;
  top: 50px;
  bottom: 0;
  left: 25px;
  width: 2px;
  content: "";
  background: rgb(255 255 255 / 33%);
}

.timeline-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  color: var(--white);
  background: var(--pink);
  border-radius: 50%;
  font-weight: 700;
  place-items: center;
}

.timeline h3 {
  margin: 5px 0 8px;
  font-size: 18px;
}

.timeline p {
  margin-bottom: 0;
  color: rgb(255 255 255 / 72%);
}

.services {
  background: var(--paper);
}

.services-grid {
  display: grid;
  align-items: stretch;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  min-height: 340px;
  padding: 43px 36px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgb(26 25 33 / 3%);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
  box-shadow: 0 18px 42px rgb(26 25 33 / 9%);
  transform: translateY(-5px);
}

.service-card h3 {
  min-height: 54px;
  margin-bottom: 24px;
  font-size: 18px;
}

.price {
  margin-bottom: 28px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
}

.price span {
  font-size: 30px;
}

.service-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

ul.service-note {
  padding-left: 20px;
  text-align: left;
}

.service-card-featured {
  box-shadow: 0 16px 40px rgb(26 25 33 / 10%);
}

.site-footer {
  padding: 100px 0 42px;
  color: var(--white);
  background: #171717;
  text-align: center;
}

.footer-inner h2 {
  margin-bottom: 36px;
  font-size: 38px;
}

.footer-inner address {
  margin-bottom: 28px;
  font-style: normal;
}

.footer-inner address p {
  margin-bottom: 3px;
}

.footer-inner address a {
  color: rgb(255 255 255 / 80%);
  text-decoration: none;
}

.footer-inner address a:hover,
.footer-inner address a:focus-visible {
  color: var(--pink);
}

.footer-socials {
  justify-content: center;
  color: var(--pink);
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--dark);
  background: var(--pink);
}

.copyright {
  margin: 70px 0 0;
  color: rgb(255 255 255 / 33%);
  font-size: 12px;
}

@media (max-width: 1050px) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: 42px;
  }

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

@media (max-width: 900px) {
  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .site-header {
    position: absolute;
  }

  .header-inner {
    min-height: 70px;
  }

  .menu-toggle {
    position: relative;
    z-index: 52;
    display: block;
    order: 2;
    margin-left: auto;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    z-index: 51;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    padding: 90px 28px 42px;
    background: rgb(25 25 33 / 98%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .2s ease, transform .2s ease;
  }

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

  .main-nav a {
    padding: 17px 0;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
    font-size: 20px;
  }

  .header-socials {
    position: relative;
    z-index: 52;
    order: 1;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero {
    padding-top: 70px;
  }

  .hero::after {
    display: none;
  }

  .hero-inner {
    display: block;
  }

  .hero-copy {
    width: 100%;
    padding: 78px 0 62px;
  }

  .hero h1 {
    font-size: clamp(40px, 8vw, 58px);
  }

  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 510px;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
  }

  .hero-media img {
    object-position: 55% 40%;
  }

  .about-grid {
    max-width: 680px;
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .about-photo {
    display: flex;
    justify-content: center;
  }

  .about-photo img {
    max-width: 610px;
  }

  .specialization {
    padding: 46px 40px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-socials {
    gap: 7px;
  }

  .header-socials a {
    width: 26px;
    height: 26px;
  }

  .hero-copy {
    padding-top: 60px;
  }

  .hero h1 {
    margin-bottom: 25px;
    font-size: 38px;
  }

  .hero p {
    margin-bottom: 28px;
    font-size: 17px;
  }

  .hero .button,
  .centered-action .button {
    width: 100%;
  }

  .hero-media {
    height: 390px;
  }

  .hero-media img {
    object-position: 54% 50%;
  }

  .section {
    padding: 76px 0;
  }

  .specialization {
    padding: 38px 28px;
  }

  .specialization h2 {
    font-size: 29px;
  }

  .problem-grid,
  .services-grid,
  .education-gallery {
    grid-template-columns: 1fr;
  }

  .problem-card h3 {
    min-height: auto;
  }

  .section-heading {
    margin-bottom: 45px;
  }

  .section-heading h2,
  .blue-title {
    font-size: 30px;
  }

  .education-copy {
    margin-bottom: 42px;
  }

  .education-gallery figure {
    height: 260px;
  }

  .education-gallery figure:nth-child(2) {
    height: 350px;
  }

  .timeline li {
    min-height: 175px;
    gap: 17px;
    grid-template-columns: 44px 1fr;
  }

  .timeline-number {
    width: 44px;
    height: 44px;
  }

  .timeline li:not(:last-child)::before {
    top: 44px;
    left: 21px;
  }

  .centered-action {
    margin-top: 48px;
  }

  .service-card {
    min-height: auto;
    padding: 38px 28px;
  }

  .service-card h3 {
    min-height: auto;
  }

  .site-footer {
    padding-top: 76px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
