@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: normal;
  font-weight: 100;
  src: url(/fonts/Inter/Inter-Thin.woff2) format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: italic;
  font-weight: 100;
  src: url(/fonts/Inter/Inter-ThinItalic.woff2) format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: normal;
  font-weight: 200;
  src: url(/fonts/Inter/Inter-ExtraLight.woff2) format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: italic;
  font-weight: 200;
  src: url(/fonts/Inter/Inter-ExtraLightItalic.woff2) format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: normal;
  font-weight: 300;
  src: url(/fonts/Inter/Inter-Light.woff2) format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: italic;
  font-weight: 300;
  src: url(/fonts/Inter/Inter-LightItalic.woff2) format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  src: url(/fonts/Inter/Inter-Regular.woff2) format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: italic;
  font-weight: 400;
  src: url(/fonts/Inter/Inter-Italic.woff2) format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  src: url(/fonts/Inter/Inter-Medium.woff2) format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: italic;
  font-weight: 500;
  src: url(/fonts/Inter/Inter-MediumItalic.woff2) format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  src: url(/fonts/Inter/Inter-SemiBold.woff2) format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: italic;
  font-weight: 600;
  src: url(/fonts/Inter/Inter-SemiBoldItalic.woff2) format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  src: url(/fonts/Inter/Inter-Bold.woff2) format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: italic;
  font-weight: 700;
  src: url(/fonts/Inter/Inter-BoldItalic.woff2) format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: normal;
  font-weight: 800;
  src: url(/fonts/Inter/Inter-ExtraBold.woff2) format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: italic;
  font-weight: 800;
  src: url(/fonts/Inter/Inter-ExtraBoldItalic.woff2) format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: normal;
  font-weight: 900;
  src: url(/fonts/Inter/Inter-Black.woff2) format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Inter;
  font-style: italic;
  font-weight: 900;
  src: url(/fonts/Inter/Inter-BlackItalic.woff2) format("woff2");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter";
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

#teacher,
#student,
#parent {
  scroll-margin-top: 60px;
}

#reviews,
#faq,
#video-gallery {
  scroll-margin-top: 120px;
}

@media (max-width: 1150px) {
  #teacher,
  #student,
  #parent {
    scroll-margin-top: 80px;
  }
}

main {
  min-height: 60vh;
}

.main-content {
  min-height: 800px;
}

.container {
  max-width: 1435px;
  margin: 0 auto;
  width: 100%;
}

/* header */
.header {
  background: #ffffff;
  border-radius: 0 0 20px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 20px 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 80px; /* Резервируем место для предотвращения CLS */
}

.logo-image {
  width: auto;
  max-width: 320px;
  object-fit: contain;
  height: auto;
  min-height: 41px; /* Резервируем место на основе height из HTML */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  position: relative;
}

.logo:hover {
  opacity: 0.8;
}

.logo:focus {
  outline: 2px solid #2b7ce9;
  outline-offset: 2px;
  border-radius: 8px;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  min-height: 40px; /* Резервируем место для предотвращения CLS */
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: #183b59;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #2b7ce9;
}

.nav-link:focus {
  outline: 2px solid #2b7ce9;
  outline-offset: 2px;
  border-radius: 8px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2b7ce9;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 1001;
}

.nav-toggle:focus {
  outline: 2px solid #2b7ce9;
  outline-offset: 2px;
  border-radius: 8px;
}

.hamburger {
  width: 25px;
  height: 3px;
  background: #0c6ed6;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.nav-toggle.active .hamburger:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.main-content {
  margin: 0 50px;
}

@media screen and (max-width: 1550px) {
  .main-content {
    margin: 0 40px;
  }
}

@media screen and (max-width: 1150px) {
  .header .container {
    padding: 0 20px;
  }

  .nav-menu {
    gap: 1rem;
  }

  .nav-link {
    font-size: 13px;
  }

  .logo-image {
    max-width: 240px;
  }
}

@media screen and (max-width: 950px) {
  .header {
    padding: 20px 15px;
  }

  .nav-link {
    font-size: 12px;
  }

  .main-content {
    margin: 0 30px;
  }

  .logo-image {
    width: 200px;
  }
}

@media screen and (max-width: 768px) {
  .header {
    padding: 20px;
    border-radius: 0 0 15px 15px;
  }

  .header .container {
    padding: 0 20px;
  }

  .main-content {
    margin: 0 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 16px;
    padding: 1rem 0;
  }

  .logo-image {
    height: 45px;
    max-width: 280px;
  }
}

@media screen and (max-width: 480px) {
  .header .container {
    padding: 0 15px;
  }

  .header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .logo-image {
    height: 36px;
    max-width: 240px;
  }

  .nav-link {
    font-size: 13px;
    padding: 0.8rem 0;
  }

  .nav-menu {
    gap: 1.5rem;
  }
}

@media screen and (max-width: 360px) {
  .header .container {
    padding: 0 12px;
  }

  .header {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .logo-image {
    height: 32px;
    max-width: 200px;
  }

  .nav-link {
    font-size: 12px;
    letter-spacing: 0.3px;
  }
}

/* footer */
.footer {
  background: #183b59;
  color: #ffffff;
  padding: 50px 50px 27px 50px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  min-height: 300px; /* Резервируем место для предотвращения CLS */
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer .buttons-line {
  margin-top: 27px;
}

.footer .buttons-line a {
  text-align: center;
  display: block;
}

.footer-button {
  background-color: #fff;
  width: 246px;
  padding: 12px 15px;
  border-radius: 10px;
  margin-top: 15px;
  text-decoration: none;
  color: #0c6ed6;
  font-family: "Inter";
  font-weight: 900;
  font-size: 14px;
  display: inline-block;
  text-transform: uppercase;
}

.buttons-line.double .green-type-footer {
  background: #b0e881;
  color: #183b59;
}

.buttons-line.double .white-type-footer {
  background: #e3effa;
  color: #183b59;
}

.footer-button:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.contact-link {
  font-family: "Inter";
  font-weight: 400;
  font-size: 14px;
  color: #ffffff;
  text-decoration: none;
}

.contact-link:hover {
  color: #6bb3ff;
}

.footer-social {
  display: flex;
  gap: 11px;
}

.social-link:hover {
  color: #0c6ed6;
}

.social-link {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.footer-nav {
  display: flex;
  gap: 74px;
}

.footer-nav-column {
  flex: 1;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.footer-nav-link {
  font-family: "Inter";
  font-weight: 400;
  font-size: 11px;
  color: #ffffff;
  text-decoration: none;
}

.footer-nav-link:hover {
  color: #6bb3ff;
}

.footer-partner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 36px;
}

.copyright,
.privacy-policy a {
  font-family: "Inter";
  font-weight: 400;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.privacy-policy a:hover {
  text-decoration: underline;
}

.privacy-policy {
  margin-bottom: 15px;
}

@media screen and (max-width: 1080px) {
  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
  }

  .footer-partner {
    grid-column: 1 / -1;
    align-items: center;
    align-items: center;
    margin-top: 20px;
  }
}

@media screen and (max-width: 885px) {
  .footer .buttons-line {
    display: flex;
    gap: 30px;
  }

  .footer {
    padding: 40px 0;
  }

  .footer .container {
    padding: 0 20px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    /* margin-bottom: 30px; */
  }

  .footer-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  .footer-logo-img {
    height: 50px;
    max-width: 180px;
  }

  .footer-contacts {
    grid-column: 1 / -1;
  }

  .footer-nav {
    grid-column: 1 / -1;
    gap: 30px;
  }

  .footer-partner {
    gap: 25px;
  }

  .partner-logo {
    width: 90px;
  }
}

@media screen and (max-width: 525px) {
  .footer {
    padding: 32px 0 40px;
  }

  .footer .container {
    padding: 0 12px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
    /* margin-bottom: 24px; */
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-logo-img {
    height: 45px;
    max-width: 160px;
  }

  .footer .buttons-line {
    display: block;
  }

  .footer-nav {
    flex-direction: column;
    gap: 20px;
  }

  .contact-link {
    font-size: 13px;
  }

  .footer-nav-link {
    font-size: 13px;
  }

  .footer-social {
    gap: 8px;
  }

  .partner-logo {
    width: 80px;
  }

  .copyright,
  .privacy-policy {
    font-size: 11px;
    text-align: center;
  }
}
