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

:root {
  --black: #000000;
  --text: #333333;
  --muted: #555555;
  --gray: #eeecec;
  --white: #ffffff;
  --blue: #5199ff;
  --blue-dark: #2f77dd;
  --line: rgba(0, 0, 0, 0.1);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "TildaSans", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0;
}

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

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

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

ul {
  margin: 0;
  padding: 0;
}

strong {
  font-weight: 600;
}

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

.narrow {
  max-width: 860px;
}

section,
.divider {
  scroll-margin-top: 50px;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  min-height: 50px;
  background: rgba(0, 0, 0, 0.7);
}

.site-nav {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 42px;
}

.site-nav a {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #cfcfcf;
}

.nav-toggle,
.burger {
  display: none;
}

.hero {
  padding: 75px 0 45px;
  background: var(--gray);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-image {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--white);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  display: grid;
  gap: 28px;
  align-content: center;
  min-height: 520px;
}

h1 {
  color: var(--text);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.25;
}

h2 {
  color: var(--black);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.23;
  text-align: center;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.hero-text p {
  max-width: 560px;
  color: var(--black);
  font-size: 20px;
  line-height: 1.55;
}

.button,
.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}

.button:hover,
.social-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  width: 132px;
  color: var(--white);
  background: var(--blue);
}

.primary-button:hover {
  background: var(--blue-dark);
}

.section-white {
  padding: 45px 0 90px;
  background: var(--white);
}

.section-gray {
  padding: 45px 0 90px;
  background: var(--gray);
}

.requests h2 {
  margin-bottom: 86px;
}

.request-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 44px;
  list-style: none;
}

.request-list li {
  position: relative;
  min-height: 34px;
  padding-left: 46px;
  color: var(--black);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}

.request-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  content: "";
}

.request-list li::after {
  position: absolute;
  top: 8px;
  left: 7px;
  width: 10px;
  height: 6px;
  border-bottom: 2px solid var(--white);
  border-left: 2px solid var(--white);
  content: "";
  transform: rotate(-45deg);
}

.request-list span {
  color: var(--muted);
}

.intro-text {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 22px auto 28px;
  color: var(--black);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.55;
  text-align: center;
}

.accordion-list {
  display: grid;
  gap: 2px;
  max-width: 760px;
  margin: 0 auto;
}

details {
  overflow: hidden;
  border-radius: 12px;
  background: var(--gray);
}

summary {
  display: flex;
  min-height: 77px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--black);
  cursor: pointer;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  list-style: none;
}

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

summary::after {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  color: var(--blue);
  content: "+";
  font-size: 26px;
  font-weight: 300;
  line-height: 28px;
  text-align: center;
}

details[open] summary::after {
  content: "−";
}

.details-content {
  padding: 0 22px 22px;
  color: var(--black);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
}

.details-content p {
  margin-top: 16px;
}

.divider {
  position: relative;
  padding: 0;
  background: var(--gray);
  text-align: center;
}

.divider::before {
  position: absolute;
  top: 50%;
  right: max(20px, calc((100% - 960px) / 2));
  left: max(20px, calc((100% - 960px) / 2));
  height: 1px;
  background: rgba(0, 0, 0, 0.18);
  content: "";
}

.divider span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 0 16px;
  color: #551199;
  background: var(--gray);
  font-size: 32px;
  line-height: 1;
}

.education-copy {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 22px auto;
  color: var(--black);
  font-size: 22px;
  line-height: 1.55;
  text-align: left;
}

.education-list {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto 28px;
  list-style: none;
}

.education-list li {
  position: relative;
  padding-left: 44px;
  color: var(--black);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}

.education-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.education-list li::after {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 10px;
  height: 6px;
  border-bottom: 2px solid var(--white);
  border-left: 2px solid var(--white);
  content: "";
  transform: rotate(-45deg);
}

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

.education-details-content {
  max-height: 620px;
  overflow: auto;
  padding-right: 24px;
}

.certificates {
  padding-top: 15px;
}

.certificates h2 {
  margin-bottom: 30px;
}

.certificate-strip {
  display: grid;
  grid-auto-columns: minmax(280px, 36vw);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.certificate-strip figure {
  display: grid;
  gap: 12px;
  margin: 0;
  scroll-snap-align: center;
}

.certificate-strip img {
  width: 100%;
  height: 460px;
  border-radius: 2px;
  background: #f5f5f5;
  object-fit: contain;
}

.certificate-strip figcaption {
  min-height: 64px;
  color: var(--black);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
}

.contact {
  padding-top: 45px;
}

.contact h2 {
  margin-bottom: 22px;
}

.contact-links {
  display: grid;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
}

.social-button {
  min-height: 60px;
  border-radius: 6px;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
}

.telegram {
  background: #1d98dc;
}

.whatsapp {
  background: #27d061;
}

@media (max-width: 900px) {
  .site-header {
    background: transparent;
  }

.burger {
    position: fixed;
    top: 25px;
    right: 28px;
    z-index: 45;
    display: grid;
    width: 28px;
    height: 20px;
    align-content: space-between;
    cursor: pointer;
    pointer-events: auto;
  }

  .burger span {
    display: block;
    height: 3px;
    background: var(--white);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 44;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    gap: 17px;
    justify-content: flex-start;
    padding-top: 88px;
    background: var(--gray);
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .site-nav a {
    color: var(--text);
    font-size: 13px;
  }

  .nav-toggle:checked ~ .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .nav-toggle:checked ~ .burger span {
    background: var(--text);
  }

  .nav-toggle:checked ~ .burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle:checked ~ .burger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  main {
    padding-top: 0;
  }

  section,
  .divider {
    scroll-margin-top: 0;
  }

  .container {
    width: min(100% - 40px, 560px);
  }

  .hero {
    padding: 75px 0 45px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-text {
    gap: 20px;
    min-height: auto;
  }

  .hero-text p {
    font-size: 20px;
  }

  h1 {
    font-size: 24px;
    line-height: 1.15;
  }

  h2 {
    font-size: 30px;
    line-height: 1.23;
  }

  .requests h2 {
    margin-bottom: 45px;
  }

  .request-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-white {
    padding: 45px 0 75px;
  }

  .section-gray {
    padding: 45px 0 75px;
  }

  .intro-text,
  .education-copy {
    font-size: 20px;
    text-align: left;
  }

  summary {
    min-height: 67px;
    font-size: 20px;
  }

  .certificate-strip {
    grid-auto-columns: minmax(280px, 88vw);
    padding-right: 20px;
    padding-left: 20px;
  }

  .certificate-strip img {
    height: 390px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 40px, 360px);
  }

  .hero-image {
    aspect-ratio: 1 / 1;
  }

  .request-list li {
    padding-left: 40px;
  }

  .certificate-strip {
    grid-auto-columns: minmax(260px, 82vw);
  }

  .certificate-strip img {
    height: 360px;
  }
}

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

  .site-nav,
  .button,
  .social-button,
  .site-nav a {
    transition: none;
  }
}
