/* Import fonts */
@import url('fonts.css');

/* Base styles */
:root {
  --color-primary: #e52f2f;
  --color-primary-light: #ff4b4b;
  --color-primary-dark: #c41e1e;
  --color-secondary: #f7f9fc;
  --color-text: #222125;
  --color-text-light: #222125;
  --color-phone: #737277;
  --color-white: #ffffff;
  --container-width: 1224px;
  --font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: 80px; /* Adjust this value based on your header height */
}
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}
body.no-scroll {
  overflow: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width:425px) {
  .benefits__container{
    padding: 0px;
  }
}
/* Button component */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 99999px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
  font-family: var(--font-family);
}

.button--primary {
  background-color: #222125;
  color: var(--color-white);
}

.button--primary:hover {
  background-color: #333333;
}

.button--secondary {
  background-color: rgba(130,155,189,0.06);
  color: var(--color-text);
}

.button--secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Header component */
.header {
  padding: 16px 0;
  background-color: rgba(255,255,255,0.85);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: transform 0.3s ease, backdrop-filter 0.3s ease;
  will-change: transform;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.header--hidden {
  transform: translateY(-100%);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo component */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
}

.header__logo {
  margin-right: 40px;
}

/* Navigation component */
.nav__list {
  display: flex;
  gap: 24px;
}

.nav__link {
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 8px 0;
  position: relative;
  white-space: pre;
}

.nav__link:hover {
  color:black;
}


.nav__link:hover::after {
  width: 100%;
}

/* Header contacts */
.header__contacts {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 24px;
}

.header__phone {
  font-weight: 500;
  font-size: 14px;
  color: var(--color-phone);
  transition: color 0.2s ease;
  margin-left: 5px;
  white-space: pre ;
}

.header__phone:hover {
  color: black;
}

.header__social {
  display: flex;
  gap: 12px;
}

.header__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.header__social-link:hover {
  color: #000000;
}

.header__social-icon {
  width: 48px;
  height: 48px;
  fill: var(--color-text);
  transition: fill 0.2s ease;
}

.header__social-link:hover .header__social-icon {
  fill: var(--color-primary);
}

.header__social-link:hover rect {
  fill: black !important;
  fill-opacity: 1;
}

/* Burger menu */
.burger-menu {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 375px;
  height: 100vh;
  background-color: var(--color-white);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

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

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--color-secondary);
}

.mobile-menu__close {
  background-color: white;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu__nav {
  flex: 1;
  padding: 32px 24px;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu__link {
  font-size: 32px;
  font-weight: 700;
  display: block;
  padding: 8px 0;
}

.mobile-menu__footer {
  padding: 24px;
}

.mobile-menu__phone {
  font-size: 32px;
  font-weight: 700;
  color: #FF0000;
  display: block;
  margin-bottom: 24px;
}

.mobile-menu__social {
  display: flex;
  gap: 16px;
}

.mobile-menu__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #222125;
  border-radius: 50%;
}

/* Hero section */
.hero {
  background-color: var(--color-white);
  padding: 60px 0 24px;
}
@media (max-width:768px) {
  .hero{
    padding: 15px 0 24px;
  }
}
.hero__container {
  display: flex;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  gap: 24px;
  height: 500px;
}

.hero__content {
  flex: 0 0 calc(50% - 12px);
  width: calc(50% - 12px);
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 24px;
  border-radius: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero__emoji-img{
  position: absolute;
  right: 10%;
  top: 16px;
  animation: floatUp 3s ease-in-out infinite;
}
@media (max-width: 1024px) {
  .hero__emoji-img{
    right: 10px;
    top: 0;
    width: 391px;
  }
}
@media (max-width: 425px) {
  .hero__emoji-img{
    width: 245px;
    right: 10px;
  }
}
.hero__image-container {
  flex: 0 0 calc(50% - 12px);
  width: calc(50% - 12px);
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
}

.hero__title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 32px;
  color: var(--color-white);
}
@media (max-width:1150px) {
  .hero__title{
    font-size: 48px;
  }
  .feature__text{
    font-size: 14px;
  }
}

.hero__emoji {
  position: relative;
  height: 120px;
  width: 100%;

}

.hero__emoji-top, 
.hero__emoji-bottom {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center center;
}

.hero__emoji-top {
  top: 40px;
  left: 30%;
  border-radius: 40px;
  font-size: 2.3rem;
  background-color: #177359;
  transform: translateX(0%) rotate(-3deg);
  animation: floatTop 3s ease-in-out infinite;
  z-index: 1;
}

.hero__emoji-bottom {
  bottom: -50px;
  left: 65%;
  font-size: 3rem;
  background-color: #E9DED0;
  transform: translateX(-50%) rotate(-5deg);
  animation: floatBottom 3.5s ease-in-out infinite;
  z-index: 2;
}

.hero__emoji-text {

  display: block;
}

.hero__emoji-top .hero__emoji-text {
  color: white;
}

.hero__emoji-bottom .hero__emoji-text {
  color: #333;
}


@keyframes floatBottom {
  0%, 100% { transform: translateX(-50%) rotate(-8deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(-7deg) translateY(-6px); }
}

.hero__emoji-top:hover, 
.hero__emoji-bottom:hover {
  transform: translateX(-50%) scale(1.05) rotate(0);
}

.hero__info {
  background-color: #f6f7fb;
  padding: 24px;
  border-radius: 12px;
  color: var(--color-text);
  z-index: 3;
}

.hero__text {
  font-size: 19px;
  line-height: 28px;
  color: #222125;
}

.hero__text:last-child {
  margin-bottom: 0;
}

/* Hero image */
.hero__image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__location {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: #F6F7FB;
  border-radius: 24px;
  padding: 4px 12px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  z-index: 2;
}
.hero__location-text{
  font-weight: 500;
}
.hero__location-icon {
  fill: var(--color-text-light);
}

/* CTA Section */
.cta {
  padding: 0 0 96px 0;
  background-color: transparent;
}

.cta__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cta__button {
  width: 100%;
  height: 60px;
  font-weight: 500;
  font-size: 16px;
  border-radius: 44px;
}

/* Features section */
.features {
  padding: 120px 0;
  position: relative;
  overflow: visible;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
  overflow: visible;
}

.feature {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
}

.feature--security {
  background-color: #F7F7F9;
  margin-top: -120px;
  z-index: 2;
  overflow: visible;
}

.feature--concept {
  background-color: #FFF2EF;
  padding-left: 50px;
  margin-top: 120px;
  margin-bottom: -120px;
}

.feature__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature__emoji {
  position: absolute;
  font-size: 1.75rem;
  font-weight: normal;
  font-family: monospace;
  z-index: 2;
}

.feature__cool-emoji {
  position: absolute;
  top: 32%;
  left: 82%;
  transform: translate(0%, -50%) ;
  background-color: transparent;
  color: white;
  width: 155px;
  height: 72px;
  font-family: monospace;
  font-size: 1.95rem;
  z-index: 3;
}

.feature__star {
  position: absolute;
  top: 90%;
  right: -40px;
  transform: rotate(15deg);
  width: 80px;
  height: 80px;
  z-index: 3;
}

.feature__star img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature__kawaii {
  position: absolute;
  top: 20%;
  right: -350px;
  transform: rotate(7deg);
  font-family: monospace;
  font-size: 1.95rem;
  z-index: 3;
  color: #000000;
  animation: wiggle 4s ease-in-out infinite;
}

@keyframes starRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.feature--security .feature__emoji {
  right: 40px;
  top: 30px;
}

.feature--concept .feature__emoji {
  right: 40px;
  top: 30px;
}

.feature__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  width: 100%;
}
@media (max-width: 374px) {
  .feature--security .feature__title {
    font-size: 1rem !important;
  }
}
.feature__text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  width: 100%;
}
@media (max-width:1150px) {
  .hero__title{
    font-size: 48px;
  }
  .feature__text{
    font-size: 14px;
  }
}
.feature--concept .feature__text {
  width: 100%;
  max-width: none;
}

.feature--security .feature__title,
.feature--security .feature__text {
  width: 100%;
  max-width: none;
}

.feature--concept .feature__content {
  width: 100%;
  max-width: none;
}

.feature__visuals {
  position: relative;
  margin-top: 20px;
  min-height: 0px;
}

.feature__camera {
  position: absolute;
  right: 20px;
  top: -100px;
  transform: rotate(15deg);
  z-index: 1;
}

.feature__icon {
  position: absolute;
}
@media (max-width: 1004px) {
  .feature__text br {
    display: none; /* Hide <br> tags at 1004px and above */
  }
}


.feature__icon--heart {
  position: absolute;
  bottom: -210px;
  left: 40%;
  transform: rotate(-15deg);
  font-size: 60px;
  color: black;
  z-index: 3;
  animation: floatUp 4.5s ease-in-out infinite;
}

.feature__icon--asterisk {
  top: -130px;
  right: 20px;
}


.feature--concept .feature__content {
  /* max-width: 85%; */
}


/* Media queries for responsiveness */
@media (max-width: 1024px) {
  .header__nav,
  .header__contacts {
    display: none;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .header__logo {
    margin-right: 0;
  }

  .hero__container {
    height: 450px;
  }
  
  .hero__content {
    width: 50%;
    padding: 24px;
  }
  
  .hero__title {
    font-size: 44px;
  }
  .hero__info {
    max-height: 480px;
  }
  .hero__emoji-top {
    top: 20px;
    font-size: 2rem;
  }
  .hero__emoji-bottom {
    bottom: 0px;
    font-size: 2rem;
  }
  
  .feature__title {
    max-width: 280px;
  }

  .feature--concept {
    padding-left: 40px;
  }

  .hero__location {
    width: auto;
    font-size: 0.8rem;
    white-space: no-wrap;
    margin-right: 20px;
  }
  
  .feature--security .feature__title,
  .feature--security .feature__text {
    max-width: 80%;
  }
  .burger-menu img {
    width: 40px;
    height: 40px;
  }
  .mobile-menu__close img{
    width: 40px;
    height: 40px;
  }
  .header__logo img{
    width: 222px;

  }
}

@media (max-width: 963px) {
  .hero__title {
    font-size: 41px;
  }
}
@media (max-width: 890px) {
  .hero__title {
    font-size: 34px;
  }
}
@media (max-width: 768px) {
  .hero__container {
    flex-direction: column-reverse;
    height: auto;
  }
  .hero__image{
    max-height: 360px;
    object-fit: fill;
    
  }
  
  .hero__content, 
  .hero__image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
  }
  .hero__emoji-top {
    top: 30px;
    left: auto;
    right: 120px;
    font-size: 1.8rem;
    transform: translateX(0) rotate(-3deg);
  }
  .hero__emoji-bottom {
    bottom: -30px;
    left: auto;
    right: -80px;
    font-size: 2.5rem;
    transform: translateX(0) rotate(-8deg);
  }
  
  .hero__emoji-top:hover, 
  .hero__emoji-bottom:hover {
    transform: translateX(0) scale(1.05) rotate(0);
  }
  
  .cta__buttons {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero__title {
    font-size: 2rem;
  }
  
  .hero__info {
    padding: 24px;
  }
  
  .features__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .feature__kawaii {
    top: 13%;
    right: -45%;
    font-size: 1.65rem;
  }
  .feature--concept .feature__text{
    font-size: 0.85rem;
  }

  .feature__cool-emoji{
    left: 65%;
    top: 40%;
  }

  .feature__star{
    top: 90%;
    right: -80px;
  }
  .feature__icon--heart{
    bottom: -250px;
    left: 0;
  }
  .features{
    padding: 0px;
  }

  .feature {
  
    min-height: auto;
    height: 320px;
    padding: 24px;
    width: 70%;
  }
  
  .feature--security {
    margin-top: 0;
    margin-right: auto;
    margin-left: 0;
  }
  
  .feature--concept {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: 0;
  }
  
  .feature__camera {
    right: 20px;
    top: -90px;
    transform: rotate(15deg) scale(0.9);
  }
  
  .feature__icon--asterisk {
    top: -100px;
    right: 10px;
    transform: scale(0.9);
  }

  .feature--concept {
    padding-left: 24px;
  }
  
  .feature--security .feature__title,
  .feature--security .feature__text {
    max-width: 85%;
    font-size: 1.2rem;
  }
  .feature__text {
    position: relative;
    bottom: auto;
  }
  .feature__content{
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    height: 100%;
  }
  .feature--concept .feature__content {
    /* max-width: 90%; */
  }

  .feature__emoji {
    font-size: 1.5rem;
  }
  
  .feature--security .feature__emoji,
  .feature--concept .feature__emoji {
    right: 30px;
    top: 20px;
  }
}
@media (max-width:425px) {
  .cta__buttons {
    grid-template-columns: 1fr;
  }
  .hero__location {
    font-size: 0.6rem;

  }
}
@media (max-width: 576px) {
  .hero__content, 
  .hero__image-container {
    height: 350px;
  }
  
  .hero__title {
    font-size: 1.75rem;
  }
  
  .mobile-menu {
    max-width: 100%;
  }
  
  .hero__info {
    padding: 30px 20px;
  }
  
  .hero__text {
    font-size: 1rem;
  }
  
  .feature {
    padding: 20px;
  }
  
  .feature__title {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }
  
  .feature__camera {
    right: 10px;
    top: -60px;
    transform: rotate(15deg) scale(0.7);
  }
  
  .feature__icon--heart {
    left: 10px;
    transform: scale(0.8);
  }
  
  .feature__icon--asterisk {
    top: -70px;
    right: 5px;
    transform: scale(0.7);
  }

  .feature--security .feature__title,
  .feature--security .feature__text,
  .feature--concept .feature__content {
    max-width: 100%;
  }
  
  .feature--concept {
    padding-left: 20px;
  }

  .feature__emoji {
    font-size: 1.25rem;
  }
  
  .feature--security .feature__emoji,
  .feature--concept .feature__emoji {
    right: 20px;
    top: 15px;
  }
}

/* Mission section */
.mission {
  position: relative;
  overflow: hidden;
}

.mission__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 120px;
}
.teachers__background-image{
  position:absolute;
  right: 0px;
}
@media (max-width:768px) {
  .teachers__background-image{
    top:20px;
    left: 0px;
  }
  .mobile{
    display: block;
  }
  .desktop{
    display: none;
  }
}
.mission__title {
  position: relative;
  z-index: 2;
  transform: translateZ(0);
  will-change: transform;
  font-size: 55px;
  font-weight: 700;
  margin-bottom:24px;
  color: var(--color-text);
}

.mission__description {
  position: relative;
  z-index: 2;
  transform: translateZ(0);
  will-change: transform;
  margin-bottom: 50px;
}

.mission__text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text);
}

.mission__text:last-child {
  margin-bottom: 0;
}

.mission__features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mission-feature:nth-child(4){
  margin-bottom: 0px;
}

.mission-feature {
  background-color: #F7F7F9;
  padding: 24px;
  border-radius: 16px;
  width: 100%;
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
}


.mission-feature__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.mission-feature__text {
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 480px;
  color:rgba(34,33,37,0.62);
}

.mission-action {
  width: 100%;
  margin-top: 8px;
  position: relative;
}

.mission-action__button {
  padding: 16px 32px;
  font-size: 1.125rem;
  width: 100%;
  max-width: 100%;
}

.mission__content {
  position: relative;
}

.mission__bubble-wrapper {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 150px;
  margin-top: 30px;
}

.mission__pool-message {
  text-align: center;
  background-color: #f0f7ff;
  padding: 12px 20px;
  border-radius: 150px/50px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: -65px;
  left: 65%;
  height: 92px;
  width: 500px;
  font-weight: 600;
  transform: translateX(-50%);
  max-width: 300px;
  font-size: 1.1rem;
  color: var(--color-text);
  z-index: 10;
}

.mission__pool-message::before,
.mission__pool-message::after,
.mission__pool-message > span::before {
  content: '';
  position: absolute;
  background-color: #f0f7ff;
  border-radius: 50%;
}

/* Маленький овал */
.mission__pool-message::before {
  width: 20px;
  height: 15px;
  bottom: -45px;
  left: 20%;
  left: 32%;

}

/* Средний овал */
.mission__pool-message::after {
  width: 30px;
  height: 30px;
  bottom: -22px;
  left: 25%;
}

/* Самый маленький овал */
.mission__pool-message > span::before {
  width: 15px;
  height: 15px;
  bottom: -20px;
  left: 35%;
}

.mission__pool-message::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 41%;
  width: 57px;
  height: 23px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid #f0f7ff;
}

.mission__pool-emoji {
  text-align: center;
  font-size: 2rem;
  position: absolute;
  bottom: 0;
  color: var(--color-text);
  z-index: 1;
  width: auto;
  white-space: nowrap;
  display: inline-block;
  width: 100%;
}

.mission__pool-emoji img {
  display: block;
  width: auto;
  height: auto;
}

@media (max-width:425px) {
  .header__logo img{
    width: 202px;

  }
  .hero__info {
    padding: 12px;
    font-size: 1rem;
  }
  .hero__content{
    padding: 16px;
  }
  .hero__text {
    font-size: 0.9rem;
    margin-bottom: 0px;
  }
  .hero__emoji{
    height: 80px;
  } 
  .hero__emoji-bottom{
    font-size: 1.5rem;
    bottom: -10px;
    right: -20px;
    padding: 8px;
  }
  .hero__emoji-top{
    font-size: 1.2rem;
    top: 10px;
    right:100px;
    padding: 8px;
  }
  .feature {
    width: 100%;
  }
  .feature__cool-emoji{
    left: -20px;
    top: 46%;
    width: 108px;
    height: 50px;
    font-size: 1.5rem;
  }
  .feature--security .feature__text{
    font-size: 1rem;
  }
  .feature__star {
    top: 117%;
    right: 4px;
    width: 50px;
  }
  .feature__icon--heart{
    display: none;
  }
  .promo__content {
    max-width: 100%;
    padding: 24px;
    max-height: 500px;
  }
  .promo__emoji-image {
    max-width: 226px !important;
}
  .promo__emoji--blue{
    font-size: 1.2rem !important;
    width: 110px !important;
    top: 150px !important;
  }
  .promo__emoji--green{
    font-size: 1.2rem !important;
    width: 140px !important;
    top: 110px !important;
  }
  .promo__text {
    font-size: 14px !important;
  }
  .mission__pool-message {
    right: 0 !important;
    margin-right: auto;
  }
  .mission__pool-emoji {
    font-size: 1.5rem !important;
    left: 0px !important; 
  }
  .mission__pool-emoji img {

  }
  .mission-action__button{
    font-size: 1rem !important;
  }
  .pricing__card{
    overflow: hidden;
  }
  .pricing__price-bubble {
    left: 25px !important;
    height: 84px !important;
    width: 188px !important;
  }
  
  .footer__emoji--happy {
    right: auto !important;
  }
  .footer__emoji--eating{
    left: auto !important;
    right: 20px !important;
    bottom: 54px !important;
  }
  .footer__emoji--sleeping {
    top: 28px !important;
    left: 1px !important;
  }
  .footer__emoji--cool {
    bottom: 145px;
    right: 9px;
}
}
/* Адаптивность для планшетов */
@media (max-width: 1024px) {
  .mission__title {

  }
  
  .mission__description {
    margin-bottom: 40px;
  }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .mission {
    padding: 60px 0;
  }
  
  .mission__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 0px;
  }
  .mission{
    padding-bottom: 0px;
  }
  .mission-feature {
    padding: 20px;
  }
  
  .mission__title {

    margin-bottom: 24px;
  }
  
  .mission__text {
    font-size: 1rem;
  }
  
  .mission__bubble-wrapper {
    position: static;
    height: auto;
    width: 100%;
    margin: 30px 0;
    display: block;
  }
  
  .mission__pool-message {
    position: relative;
    top: auto;
    left: auto;
    right: 20px;
    transform: none;
    margin-bottom: 20px;
    height: 65px;
    max-width: 288px;
    margin-left: auto;
  }

  
  
  .mission__pool-emoji {
    position: relative;
    bottom: auto;
    max-width: 553px;
    width: 100%;
    transform: none;
    font-size: 1.3rem;
    text-align: center;
    display: block;
    margin-top: 65px;
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .mission {
    padding: 40px 0;
  }
  
  .mission__grid {
    gap: 30px;
  }
  
  .mission-feature__title {
    font-size: 1.125rem;
  }
  
  .mission-feature__text {
    font-size: 0.9rem;
  }
  
  .mission-feature {
    padding: 16px;
  }
}

.mission__pool {
  background-color: #E9F3F9;
  border-radius: 16px;
  padding: 24px;
  margin: 30px 0;
  width: fit-content;
  position: relative;
}

.mission__pool-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
}

.mission__visual {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .mission__pool {
    padding: 20px;
    margin: 20px 0;
  }
  
  .mission__pool-text {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .mission__visual {
    margin-top: 30px;
  }
}

@media (max-width: 576px) {
  .mission__pool {
    padding: 16px;
    margin: 16px 0;
    width: 100%;
  }
}

/* Promo section */
.promo {
  padding: 80px 0 0 0;
  background-color: transparent;
}

.promo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.promo__content {
  background-color: #f7f9fb;
  padding: 30px;
  border-radius: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.promo__spacer {
  height: 150px;
  visibility: hidden;
}

.promo__emoji-container {
  position: relative;
  height: 200px;
  margin-bottom: 20px;
}

.promo__emoji {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 20px 0;
}

.promo__emoji-image {
  max-width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  pointer-events: none;
}

/* Remove old emoji styles since we're not using them anymore */
.promo__emoji--green,
.promo__emoji--blue {
  display: none;
}

.promo__emoji--green {
  background-color: #177359;
  color: white;
  top: 130px;
  right: 30px;
  transform: rotate(-5deg);
  padding: 16px 24px;
  z-index: 2;
  border-radius: 0px;
  animation: wiggle 3.5s ease-in-out infinite;
  width: 195px;
  text-align: center;
}

.promo__emoji--blue {
  background-color: #0CB8EB;
  color: black;
  top: 180px;
  right: 174px;
  width: 156px;
  text-align: center;
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 1.7rem;
  z-index: 1;
  animation: pulse 2.5s ease-in-out infinite;
}

/* Remove hover effect */
.promo__emoji {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 20px 0;
}

.promo__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.3;
  color: var(--color-text);
}

.promo__text {
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-text-light);
  line-height: 1.4;
}

.promo__image-wrapper {
  position: relative;
  border-radius: 9999999px;
  overflow: hidden;
  height: 100%;
}

.promo__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
  .promo__title {
    font-size: 1.75rem;
  }
  
  .promo__grid {
    gap: 30px;
  }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .promo {
    padding: 60px 0;
  }
  
  .promo__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  
  .promo__image-wrapper {
    order: -1;
    max-height: 365px;
  }
  
  .promo__emoji {
    font-size: 1.2rem;
    padding: 8px 12px;
  }
  
  .promo__emoji--green {
    left: auto;
    right: 25px;
    font-size: 1.7rem;
    top: 120px;
  }
  .promo__content{
    width: 100%;
    max-width: max-content;
  }
  
  .promo__emoji--blue {
    top: 160px;
    right: calc(20% + 55px);
    font-size: 1.7rem;
  }
}

@media (max-width: 576px) {
  .promo {
    padding: 40px 0;
  }
  
  .promo__content {
    padding: 20px;
  }
  
  .promo__title {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
}

/* Gallery section */
.gallery {
  padding: 96px 0;
  background-color: var(--color-white);
  overflow: hidden;
}

.gallery__title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--color-text);
}

.gallery__slider {
  position: relative;
  width: 100%;
  overflow: visible;
}
@media (max-width:425px) {

}
.gallery__wrapper {
  display: flex;
  transition: transform 0.5s ease;
  gap: 30px;
  width: 100%;
}

.gallery__slide {
  border-radius: 20px;
  overflow: hidden;
  height: 280px;
  min-width: 400px;
  width: 400px;
  flex-shrink: 0;
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery__navigation {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.gallery__nav-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #222125;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-white);
}

.gallery__nav-button:hover {
  background-color: #333333;
}

.gallery__nav-button:focus {
  outline: none;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
  .gallery__slide {
    min-width: 320px;
    width: 320px;
    height: 240px;
  }
  
  .gallery__image {
    height: 100%;
  }
  
  .gallery__title {
    font-size: 36px;
    margin-bottom: 30px;
  }
  
  .teacher {
    min-width: 340px;
    width: 340px;
    height: 460px;
    display: flex;
    flex-direction: column;
  }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .gallery {
    padding: 0 0 50px 0;
  }
  
  .gallery__slide {
    min-width: 280px;
    width: 280px;
    height: 200px;
  }
  
  .gallery__image {
    height: 100%;
  }
  
  .gallery__navigation {
    margin-top: 20px;
    display: none;
  }
  
  .gallery__title {
    font-size: 30px;
    margin-bottom: 20px;
  }
  
  .teacher {
    min-width: 280px;
    width: 280px;
    height: 440px;
    display: flex;
    flex-direction: column;
  }
  
  .teacher__image-wrapper {
    height: 220px;
  }
}

@media (max-width: 576px) {
  .gallery {
    padding: 40px 0;
  }
  
  .gallery__slide {
    min-width: 260px;
    width: 260px;
    height: 200px;
  }
  
  .gallery__image {
    height: 100%;
  }
  
  .gallery__title {
    font-size: 26px;
    margin-bottom: 16px;
    line-height: 1.2;
  }
}

/* Benefits section */
.benefits {
  padding: 0 0 96px 0;
  background-color: transparent;
}

.benefits__title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--color-text);
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
  row-gap: 24px;
  background-color: #f7f9fc;
  border-radius: 30px;
  padding: 40px;
}

.benefit {
  background-color: var(--color-white);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.benefit__icon {
  min-width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7f9fc;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit__icon:hover {
  transform: scale(1.1);
}

.benefit__icon.animated {
  animation: iconPulse 2s infinite ease-in-out;
}

@keyframes iconPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.benefit__icon img {
  width: 56px;
  height: 56px;
}

.benefit__text {
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-text);
  font-weight: 600;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
  .benefits__title {
    font-size: 2rem;
    margin-bottom: 32px;
  }
  
  .benefit {
    padding: 20px;
  }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .benefits {
    padding: 60px 0 0 0;
  }
  
  .benefits__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 30px;
  }
  
  .benefits__title {
    font-size: 1.75rem;
    margin-bottom: 24px;
  }
}

@media (max-width: 576px) {
  .benefits {
    padding: 40px 0;
  }
  
  .benefits__title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .benefits__grid {
    padding: 20px;
    border-radius: 20px;
  }
  
  .benefit {
    padding: 16px;
  }
  
  .benefit__icon {
    width: 48px;
    height: 48px;
  }
  
  .benefit__icon img {
    width: 48px;
    height: 48px;
  }
  
  .benefit__text {
    font-size: 0.9rem;
  }
}

/* Teachers section */
.teachers {
  padding: 80px 0;
  background-color: var(--color-white);
  overflow: visible;
  position: relative;
  width: 110%;
  left: 50%;
  transform: translateX(-50%);
}

.teachers::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/teachers_stickers.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
}

.teachers .container {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
  overflow: visible;
  padding: 0 20px;
}

.teachers__header {
  margin-bottom: 50px;
  position: relative;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Remove emoji styles */
.teachers__emoji-left,
.teachers__emoji-right {
  display: none;
}

.teachers__title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text);
}

.teachers__description {
  margin-bottom: 20px;
}

.teachers__text {
  font-size: 1.125rem;
  line-height: 1.6;
  width: 460px;
  max-width: 100%;
  margin: 0 auto;
  color: var(--color-text-light);
  text-wrap: balance;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.teachers__slider {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: 10px 0;
}

.teachers__wrapper {
  display: flex;
  transition: transform 0.5s ease;
  gap: 30px;
  margin-bottom: 32px;
  width: 100%;
}

.teacher {
  min-width: 380px;
  width: 380px;
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: rgba(130, 155, 189, 0.06);
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  flex-direction: column;
}

.teacher__image-wrapper {
  height: 240px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 24px;
}
.teacher:hover {
  background: #f6ebec;
 
 }
.teacher:hover .teacher__image {
  transform:scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}
.teacher__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher__info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.teacher__name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.teacher__position {
  font-size: 16px;
  color: rgba(34,33,37,0.62);
  margin-bottom: 16px;
}

.teacher__quote {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
  font-style: italic;
  margin-top: auto;
}

.teachers__navigation {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.teachers__nav-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #222125;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-white);
}

.teachers__nav-button:hover {
  background-color: #333333;
}

.teachers__nav-button:focus {
  outline: none;
}

/* Настройка отображения последней карточки */
.teachers__wrapper .teacher:last-child {
  margin-right: 0;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
  .teachers__header {
    margin-bottom: 40px;
    max-width: 100%;
  }
  
  .teachers__title {
    font-size: 2rem;
  }
  
  .teachers__emoji-left,
  .teachers__emoji-right {
    /* Стили перенесены в отдельные селекторы ниже */
  }
  
  .teachers__emoji-left {
    left: 0px;
    top: 75%;
    font-size: 1.5rem;
    padding: 8px 12px;
  }
  
  .teachers__emoji-right {
    right: -5px;
    top: 100px;
    font-size: 1.5rem;
    padding: 8px 12px;
  }
  
  .teacher {
    min-width: 320px;
    width: 320px;
    height: 420px;
  }
  
  .teacher__image-wrapper {
    height: 250px;
  }
  
  .teacher__info {
    padding: 20px;
  }
  
  .teacher__name {
    font-size: 1.1rem;
  }
  
  .teacher__quote {
    font-size: 0.9rem;
  }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .teachers {
    padding: 60px 0;
  }
  
  .teachers__title {
    font-size: 1.75rem;
    margin-bottom: 16px;
  }
  
  .teachers__text {
    font-size: 1rem;
    width: auto;
    padding: 0 15px;
    overflow-wrap: break-word;
    margin-bottom: 20px;
  }
  
  .teachers__emoji-left, 
  .teachers__emoji-right {
    position: absolute;
    z-index: 2;
    font-size: 1.2rem;
    padding: 8px 12px;
  }
  
  .teachers__emoji-left {
    left: -40px;
    top: 100%;
    font-size: 2rem;
    padding: 6px 10px;
    z-index: 0;
  }
  
  .teachers__emoji-right {
    right: -40px;
    top: 100%;
    font-size: 2rem;
    padding: 6px 10px;
    z-index: 0;
  }
  
  .teachers__slider {
    overflow: visible;
  }
  
  .teacher {
    min-width: 280px;
    width: 280px;
    height: 380px;
    display: flex;
    flex-direction: column;
  }
  
  .teacher__image-wrapper {
    height: 220px;
  }
  
   
  .teacher__info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .teacher__name {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  
  .teacher__position {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }
  
  .teacher__quote {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .teachers__navigation {
    display: none;
  }
}

@media (max-width: 576px) {
  .teachers {
    padding: 0;
  }
  
  .teachers__header {
    margin-bottom: 30px;
  }
  
  .teachers__title {
    font-size: 26px;
    margin-bottom: 15px;
  }
  .mission__features{
    gap: 16px;
  }
  .cta{
    padding: 0 0 48px 0;
  }
  
  .teachers__emoji-left {
    display: none;
  }
  
  .teachers__emoji-right {
    display: none;
  }
  
  .teachers__text{
    font-size: 16px;
  }
  
  .teacher {
    min-width: 260px;
    width: 260px;
    height: 440px;
    display: flex;
    flex-direction: column;
  }
  
  .teacher__image-wrapper {
    height: 180px;
  }
  
  .teacher__info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .teacher__name {
    font-size: 18px;
  }
  
  .teacher__name {
    font-size: 18px;
    margin-bottom: 5px;
  }
  
  .teacher__position {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .teacher__quote {
    font-size: 14px;
    line-height: 1.4;
  }
}

/* Team section */
.team {
  padding: 80px 0;
  background-color: transparent;
  overflow: hidden;
}

.team .container {
  background-color: #f7f9fc;
  border-radius: 30px;
  padding: 40px;
}

.team__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.team__title {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

.team__text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

.team__content, 
.team__description {
  position: relative;
}

.team__emoji {
  position: absolute;
}

.team__emoji--left {
  bottom: -30px;
  left: 20px;
}

.team__emoji--right {
  top: -30px;
  right: 20px;
}

.team__photos {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: hidden;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  cursor: grab;
}

.team__photos:active {
  cursor: grabbing;
}

.team__photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
  .team .container {
    padding: 30px;
  }
  
  .team__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
  }
  
  .team__title {
    font-size: 2rem;
  }
  
  .team__text {
    font-size: 1rem;
  }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .team {
    padding: 0 20px;
  }
  
  .team__title {
    font-size: 1.75rem;
  }
  
  .team__emoji--left {
    bottom: -20px;
    left: 10px;
  }
  
  .team__emoji--right {
    top: -20px;
    right: 10px;
  }
  
  .team__emoji img {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .team {
    padding:0 20px;
  }
  
  .team .container {
    padding: 25px;
    border-radius: 20px;
  }
  
  .team__title {
    font-size: 1.5rem;
  }
  
  .team__grid {
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .team__photo {
    width: 90px;
    height: 90px;
  }
}

/* Pricing section */
.pricing {
  padding: 80px 0;
  background-color: var(--color-white);
  overflow: hidden;
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 24px;
}

.pricing__card {
  height: 400px;
  border-radius: 30px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: space-between;
}

.pricing__card--primary {
  background-color: #f7f9fc;
}

.pricing__card--secondary {
  background-color: #ff3d00;
  color: var(--color-white);
}

.pricing__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.3;
}

.pricing__card--secondary .pricing__title {
  color: var(--color-white);
}

.pricing__description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-top: auto;
  margin-top: 10px;
}

.pricing__card--secondary .pricing__description {
  color: rgb(255, 255, 255,1);
}
.feature__heart-img {
  width: 100%;
  height: auto;
}
@media (max-width:425px) {
  .teacher-popup__details{
    margin-right: 30px;
  }
}
.pricing__price-bubble {
  width: 256px;
  height: 127px;
  position: relative;
  background-color: #e52f2f;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  position: relative;
  margin-bottom: 30px;
  margin-left: auto;
}

/* Маленький овал */
.pricing__price-bubble::before {
  width: 26px;
  height: 12px;
  bottom: -30px;
  left: 92%;

}
.pricing__price-bubble::before,
.pricing__price-bubble::after,
.pricing__price-bubble > span::before {
  content: '';
  position: absolute;
  background-color: #e52f2f;
  border-radius: 50%;
}
/* Самый маленький овал */
.pricing__price-bubble > span::before {
  width: 56px;
  height: 26px;
  bottom: -14px;
  left: 76%;
}


.pricing__price {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.pricing__period {
  font-size: 0.875rem;
  opacity: 0.9;
}

.pricing__emoji {
  position: relative;
  height: 150px;
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.pricing__emoji-image {
  max-width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
}
@media (max-width:425px) {
  .pricing__emoji-image{
    max-width: 192px;
  }
}
/* Remove old emoji styles since we're not using them anymore */
.pricing__emoji-top,
.pricing__emoji-bottom {
  display: none;
}

.pricing__emoji-bottom {
  position: absolute;
  bottom: 10px;
  right: 20px;
  background-color: #4cdd3c;
  animation: wiggle 3.7s ease-in-out infinite;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 2rem;
  z-index: 2;
}

@media (max-width: 768px) {
  
}

@media (max-width: 576px) {
}

.pricing__emoji-image {
  color: #333;
}

.pricing__cta {
  width: 100%;
}

.pricing__button {
  width: 100%;
  display: block;
  padding: 16px 24px;
  font-size: 1.125rem;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
  .pricing__title {
    font-size: 1.5rem;
  }
  .pricing__price {
    font-size: 1.5rem;
  }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .pricing {
    padding: 60px 0;
  }
  
  .pricing__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .pricing__card {
    height: 350px;
    padding: 30px;
  }
}


@media (max-width: 576px) {
  .pricing {
    padding: 40px 0;
  }
  
  .pricing__card {
    height: 300px;
    padding: 20px;
    border-radius: 20px;
  }
  
  .pricing__title {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }
  
  .pricing__price {
    font-size: 1.25rem;
  }
  
  .pricing__period {
    font-size: 0.75rem;
  }
  
  .pricing__description {
    font-size: 0.9rem;
  }
  
  .pricing__emoji {
    margin-top: 10px;
    margin-bottom: 20px;
    gap: 10px;
  }
  
  .pricing__emoji-top,
  .pricing__emoji-bottom {
    padding: 8px 12px;
    border-radius: 8px;
  }
}
@media (max-width:425px) {
  .pricing__description {
    font-size: 0.8rem;
  }
}
/* Bottom promo section */
.bottom-promo {
  padding: 60px 0;
  background-color: transparent;
  overflow: hidden;
}
.bottom-promo img{
  height: 560px;
  width: 100%;
  object-fit: cover;
  object-position: left;
}
.bottom-promo__image-wrapper {
  border-radius: 300px;
  overflow: hidden;
  margin: 0 auto;
  min-width: 100%;
  position: relative;
}

.bottom-promo__image {
  width: 100%;
  height: auto;
  display: block;
}

/* Animated lines styles */
.bottom-promo__lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 2500px;
  height: 560px;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.bottom-promo__line {
  position: absolute;
  width: 2500px;
  height: 560px;
  opacity: 1 ;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-promo__line img {
  position: absolute;
  width: 180%;
  height: auto;
  left: -40%;
}

.bottom-promo__line--1 {
  top: -33px;
  transform: rotate(-5deg);
}

.bottom-promo__line--1 img {
  animation: lineMove1 20s ease-in-out infinite;
}

.bottom-promo__line--2 {
  top: -30px;
  transform: rotate(12deg);
}

.bottom-promo__line--2 img {
  animation: lineMove1 20s ease-in-out infinite;
}

.bottom-promo__line--3 {
  top: -325px;
  transform: rotate(-24deg);
}

.bottom-promo__line--3 img {
  animation: lineMove1 20s ease-in-out infinite;

}
.feature__heart-img{
  height: 42px;
  width: auto;
}
.feature__kawaii-img{
  height: 40px;
  width: auto;
}
@media (max-width: 768px) {
  .bottom-promo img{
    max-height: 400px;
  }
  .bottom-promo__line--1{
    top: -128px;
  }
  .bottom-promo__line--2{
    top: -65px;
  }
  .bottom-promo__line--3{
    top: -488px;
  } 
}
@media (max-width: 425px) {
  .bottom-promo__line--1{
    transform: rotate(-17deg);
    top: -304px;
  }
  .bottom-promo__line--2{
    top: -320px;
    transform: rotate(-4deg);
  }
  .bottom-promo__line--3{
    top: -828px;
    transform: rotate(-38deg);
  }
  .mission__title {
    font-size: 32px;
    margin-bottom: 24px;
  }
}

@keyframes lineMove1 {
  0% {
    transform: translateX(0%);
  }
  50%{
    transform: translateX(30%);
  }
  100% {
    transform: translateX(0%);
  }
}

@keyframes lineMove2 {
  0% {
    transform: translateX(0%);
  }
  50%{
    transform: translateX(40%);
  }
  100% {
    transform: translateX(0%);
  }
}

@keyframes lineMove3 {
  0% {
    transform: translateX(0%);
  }
  50%{
    transform: translateX(40%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* Responsive adjustments for animated lines */
@media (max-width: 1024px) {
  .bottom-promo {
    padding: 50px 0;
  }
  
  .bottom-promo__image-wrapper {
    border-radius: 400px;
    max-width: 800px;
  }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .bottom-promo {
    padding: 40px 0;
  }
  
  .bottom-promo__image-wrapper {
    border-radius: 400px;
    max-width: 600px;
  }
}

@media (max-width: 576px) {
  .bottom-promo {
    padding: 30px 0;
  }
  
  .bottom-promo__image-wrapper {
    border-radius: 400px;
    max-width: 100%;
  }
}

/* Footer styles */
.footer {
  padding: 60px 0;
  margin-top: 30px;
  background-color: var(--color-white);
  position: relative;
}
.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.footer__emoji {
  position: absolute;
  font-size: 1.75rem;
  padding: 10px;
  z-index: 2;
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.footer__emoji:hover {
  transform: scale(1.15);
}

.footer__emoji.clicked {
  animation: emoji-click 0.5s ease forwards;
}

@keyframes emoji-click {
  0% { transform: scale(1.15); }
  40% { transform: scale(0.8); }
  70% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.footer__emoji-container {
  display: none;
  order: 5;
}

.footer__title {
  order: 1;
}

.footer__phone {
  order: 2;
}

.footer__social {
  order: 3;
}

.footer__address {
  order: 4;
}

.footer__copyright {
  order: 6;
}

.footer__emoji--sleeping {
  top: 80px;
  transform: rotate(-4deg);
  left: 20px;
  background-color: transparent;
  font-size: 1.5rem;
}

.footer__emoji--eating {
  bottom: 80px;
  left: 30px;
  background-color: #177359;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  transform: rotate(-4deg);
}

.footer__emoji--happy {
  top: 60px;
  right: 30px;
  background-color: #ECC615;
  color: #333;
  padding: 10px 15px;
  transform: rotate(12deg); 
  border-radius: 0px;
}

.footer__emoji--cool {
  bottom: 135px;
  right: 20px;
  background-color: transparent;
  font-size: 1.5rem;
  transform: rotate(-4deg);
}

.footer__title h2 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  z-index: 2;
  position: relative;
}

.footer__phone {
  margin-bottom: 30px;
}

.footer__phone-link {
  font-size:56px;
  font-weight: 700;
  color: #ff5722;
  transition: color 0.2s ease;
}

.footer__phone-link:hover {
  color: #e64a19;
}

.footer__social {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #222125;
  transition: background-color 0.2s ease;
}

.footer__social-link:hover {
  background-color: #333333;
}

.footer__social-icon {
  filter: brightness(0) invert(1);
  width: 28px;
  height: 28px;
}

.footer__address {
  margin-bottom: 30px;
  font-size: 18px;
  color: var(--color-text-light);
}

.footer__copyright {
  font-size: 14px;
  color: #999;
}
.footer__copyright a {
  cursor: pointer;
}
@media (max-width: 768px) {
  .footer__title h2 {
    font-size: 48px;
  }
  
  .footer__phone-link {
    font-size: 48px;
  }
  
  .footer__social-icon {
    width: 26px;
    height: 26px;
  }
  .footer__address{
    font-size: 20px;
  }
  
  .footer__emoji {
    position: absolute;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .footer__emoji:hover {
    transform: scale(1.2);
  }
  
  .footer__emoji-container {
    display: block;
    position: relative;
    width: 100%;
    height: 207px;
    margin-top: 0;
    margin-bottom: 20px;
  }
  
  .footer__emoji--sleeping {
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    background-color: transparent;
  }
  
  .footer__emoji--eating {
    bottom: 20px;
    left: 30px;
    background-color: #177359;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
  }
  
  .footer__emoji--happy {
    top: 110px;
    right: 40px;
    background-color: #ECC615;
    color: #333;
    padding: 10px 15px;
    border-radius: 20px;
  }
  
  .footer__emoji--cool {
    bottom: 130px;
    right: 20px;
    font-size: 1.5rem;
    background-color: transparent;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 0;
  }
  
  .footer__title h2 {
    font-size: 32px;
  }
  
  .footer__phone-link {
    font-size: 32px;
  }
  
  .footer__address {
    width: 300px;
    font-size: 16px;
  }
  
  
  .footer__social-icon {
    width: 24px;
    height: 24px;
  }
}

/* Анимации для эмодзи */
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* Image popup styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup.active {
  display: flex;
  opacity: 1;
}

.popup__image {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.popup__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #333;
  transition: background-color 0.2s ease;
}

.popup__close:hover {
  background-color: #f0f0f0;
}

@media (max-width: 768px) {
  .popup__close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* Teacher popup styles */
.teacher-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.teacher-popup.active {
  display: flex;
  opacity: 1;
}

.teacher-popup__content {
  background-color: white;
  border-radius: 24px;
  padding: 32px;
  position: relative;
  width: 90%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  height: auto;
  min-height: 400px;
}
.teacher-popup__info-block{
  display: flex;
}
.teacher-popup.active .teacher-popup__content {
  transform: scale(1);
  opacity: 1;
}

.teacher-popup__image-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 24px;
}

.teacher-popup__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-popup__info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.teacher-popup__header {
  margin-bottom: 16px;
}

.teacher-popup__quote {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
  margin-top: auto;

}

.teacher-popup__close {
  position: fixed;
  top: -40px;
  right: -20px;
  width: 40px;
  height: 40px;
  background-color: #222125;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 1001;
}

@media (max-width: 769px) {

  .teacher-popup__image-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 16px;
   
  }

  .teacher-popup__info {
    margin-right: 20px;
  }

}

@media (max-width: 768px) {

  .teacher-popup.active .teacher-popup__content {
    transform: translateY(0);
  }

}
.teacher-popup__position{
  color: rgba(34,33,37,0.62);
}
@media (max-width: 480px) {
  .teacher-popup__content {
    padding: 16px;

  }

  .teacher-popup__image-wrapper {
    width: 80px;
    height: 80px;
  }

  .teacher-popup__name {
    font-size: 1rem;
  }

  .teacher-popup__position {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .teacher-popup__quote {
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 0px;
  }

  .teacher-popup__close {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
  pointer-events: none; /* Отключаем события мыши для невидимых элементов */
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; /* Возвращаем события мыши */
}

/* Стили для изначально видимых элементов - более быстрая анимация */
.animate-on-scroll[style*="transition-delay"].animated {
  transition-duration: 0.5s;
}

/* Разные задержки для блоков benefit, чтобы они появлялись последовательно */
.benefit:nth-child(1).animate-on-scroll {
  transition-delay: 50ms !important;
}

.benefit:nth-child(2).animate-on-scroll {
  transition-delay: 100ms !important;
}

.benefit:nth-child(3).animate-on-scroll {
  transition-delay: 150ms !important;
}

.benefit:nth-child(4).animate-on-scroll {
  transition-delay: 200ms !important;
}

.benefit:nth-child(5).animate-on-scroll {
  transition-delay: 250ms !important;
}

.benefit:nth-child(6).animate-on-scroll {
  transition-delay: 300ms !important;
}

.benefit:nth-child(7).animate-on-scroll {
  transition-delay: 350ms !important;
}

.benefit:nth-child(8).animate-on-scroll {
  transition-delay: 400ms !important;
}

.benefit:nth-child(9).animate-on-scroll {
  transition-delay: 450ms !important;
}

.benefit:nth-child(10).animate-on-scroll {
  transition-delay: 500ms !important;
}

.benefit:nth-child(11).animate-on-scroll {
  transition-delay: 550ms !important;
}

.benefit:nth-child(12).animate-on-scroll {
  transition-delay: 600ms !important;
}

/* Different animations for different element types */
.hero__content.animate-on-scroll {
  transform: translateY(40px);
  transition-delay: 0.1s;
}

.hero__image-container.animate-on-scroll {
  transform: translateY(30px);
  transition-delay: 0.3s;
}

.feature.animate-on-scroll {
  transform: translateY(25px);
  transition-delay: 0.2s;
}

.mission__content.animate-on-scroll {
  transform: translateY(30px);
  transition-delay: 0.1s;
}

.mission-feature.animate-on-scroll {
  transform: translateY(20px);
}

.mission-feature:nth-child(1).animate-on-scroll {
  transition-delay: 0.1s;
}

.mission-feature:nth-child(2).animate-on-scroll {
  transition-delay: 0.2s;
}

.mission-feature:nth-child(3).animate-on-scroll {
  transition-delay: 0.3s;
}

.mission-feature:nth-child(4).animate-on-scroll {
  transition-delay: 0.4s;
}

.gallery__slide.animate-on-scroll,
.teacher-card.animate-on-scroll,
.prices__card.animate-on-scroll {
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Разные задержки для карточек в одном ряду */
.gallery__slide:nth-child(1).animate-on-scroll,
.teacher-card:nth-child(1).animate-on-scroll,
.prices__card:nth-child(1).animate-on-scroll {
  transition-delay: 0.1s;
}

.gallery__slide:nth-child(2).animate-on-scroll,
.teacher-card:nth-child(2).animate-on-scroll,
.prices__card:nth-child(2).animate-on-scroll {
  transition-delay: 0.2s;
}

.gallery__slide:nth-child(3).animate-on-scroll,
.teacher-card:nth-child(3).animate-on-scroll,
.prices__card:nth-child(3).animate-on-scroll {
  transition-delay: 0.3s;
}

.gallery__slide:nth-child(4).animate-on-scroll,
.teacher-card:nth-child(4).animate-on-scroll,
.prices__card:nth-child(4).animate-on-scroll {
  transition-delay: 0.4s;
}

.cta__buttons.animate-on-scroll {
  transform: translateY(15px);
}

.section-title.animate-on-scroll {
  transform: translateY(20px);
  transition-delay: 0.1s;
}

/* Анимации для боковых элементов */
.animate-on-scroll.from-left {
  transform: translateX(-30px);
}

.animate-on-scroll.from-right {
  transform: translateX(30px);
}

.animate-on-scroll.from-left.animated,
.animate-on-scroll.from-right.animated {
  transform: translateX(0);
}

/* Анимация для сетки элементов */
.grid-item.animate-on-scroll {
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.grid-item.animate-on-scroll.animated {
  transform: scale(1);
}

/* Адаптивные стили для анимации на мобильных устройствах */
@media (max-width: 768px) {
  .animate-on-scroll {
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .animate-on-scroll.from-left,
  .animate-on-scroll.from-right {
    transform: translateY(20px);
  }

  .animate-on-scroll.from-left.animated,
  .animate-on-scroll.from-right.animated {
    transform: translateY(0);
  }
}

/* Отключаем анимацию для пользователей, которые предпочитают уменьшенное движение */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Анимация с эффектом поворота */
.animate-on-scroll.rotate {
  transform: translateY(30px) rotate(-3deg);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.rotate.animated {
  transform: translateY(0) rotate(0);
}

/* Анимация с эффектом появления */
.animate-on-scroll.fade-in {
  transform: translateY(0);
  opacity: 0;
  transition: opacity 1s ease;
}

.animate-on-scroll.fade-in.animated {
  opacity: 1;
}

/* Анимация снизу вверх */
.animate-on-scroll.from-bottom {
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.from-bottom.animated {
  transform: translateY(0);
}

/* Анимация для эмодзи */
.hero__emoji.animate-on-scroll,
.feature__cool-emoji.animate-on-scroll,
.feature__kawaii.animate-on-scroll {
  transform: scale(0.5);
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero__emoji.animate-on-scroll.animated,
.feature__cool-emoji.animate-on-scroll.animated,
.feature__kawaii.animate-on-scroll.animated {
  transform: scale(1) ;
  opacity: 1;
}
/* Адаптивные стили для анимации на мобильных устройствах */
@media (max-width: 768px) {
  .animate-on-scroll {
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .animate-on-scroll.from-left,
  .animate-on-scroll.from-right {
    transform: translateY(20px);
  }

  .animate-on-scroll.from-left.animated,
  .animate-on-scroll.from-right.animated {
    transform: translateY(0);
  }
  
  /* Уменьшаем задержки на мобильных устройствах для более быстрой анимации */
  .mission-feature:nth-child(n).animate-on-scroll,
  .gallery__slide:nth-child(n).animate-on-scroll,
  .teacher-card:nth-child(n).animate-on-scroll,
  .prices__card:nth-child(n).animate-on-scroll {
    transition-delay: 0.1s;
  }
}

/* Анимация для элементов "Что вас ждёт" */
.benefit.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.benefit.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.benefit:nth-child(odd).animate-on-scroll {
  transform: translateX(-20px);
}

.benefit:nth-child(even).animate-on-scroll {
  transform: translateX(20px);
}

.benefit:nth-child(odd).animate-on-scroll.animated,
.benefit:nth-child(even).animate-on-scroll.animated {
  transform: translateX(0);
}

/* Анимация иконок в блоках "Что вас ждёт" */
.benefit__icon.animate-on-scroll {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.benefit__icon.animate-on-scroll.animated {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  .benefit:nth-child(odd).animate-on-scroll,
  .benefit:nth-child(even).animate-on-scroll {
    transform: translateY(20px);
  }
  
  .benefit:nth-child(odd).animate-on-scroll.animated,
  .benefit:nth-child(even).animate-on-scroll.animated {
    transform: translateY(0);
  }
}

/* Ускоренная анимация для изначально видимых элементов */
.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
  transition-duration: 0.6s;
}

/* Задержка между анимациями разных элементов на экране */
.benefit.animate-on-scroll.animated,
.mission-feature.animate-on-scroll.animated,
.gallery__slide.animate-on-scroll.animated {
  transition-property: opacity, transform;
  transition-timing-function: ease;
}

/* Базовые стили анимации */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
  pointer-events: none; /* Отключаем события мыши для невидимых элементов */
}

/* Подготовка элементов к анимации */
.animate-on-scroll.ready {
  transition-delay: 0s !important;
  transition-duration: 0.4s !important;
}

/* При появлении элемента */
.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; /* Возвращаем события мыши */
}

/* Анимация исходно видимых элементов после загрузки страницы */
.animate-on-scroll.ready.animated {
  transition-duration: 0.4s !important;
}

/* Разные задержки для блоков benefit */
.benefit:nth-child(1).animate-on-scroll {
  transition-delay: 50ms;
}

.benefit:nth-child(2).animate-on-scroll {
  transition-delay: 100ms;
}

.benefit:nth-child(3).animate-on-scroll {
  transition-delay: 150ms;
}

.benefit:nth-child(4).animate-on-scroll {
  transition-delay: 200ms;
}

.benefit:nth-child(5).animate-on-scroll {
  transition-delay: 250ms;
}

.benefit:nth-child(6).animate-on-scroll {
  transition-delay: 300ms;
}

.benefit:nth-child(7).animate-on-scroll {
  transition-delay: 350ms;
}

.benefit:nth-child(8).animate-on-scroll {
  transition-delay: 400ms;
}

.benefit:nth-child(9).animate-on-scroll {
  transition-delay: 450ms;
}

.benefit:nth-child(10).animate-on-scroll {
  transition-delay: 500ms;
}

.benefit:nth-child(11).animate-on-scroll {
  transition-delay: 550ms;
}

.benefit:nth-child(12).animate-on-scroll {
  transition-delay: 600ms;
}

/* Анимация при видимости элементов */
.benefit__icon.animate-on-scroll {
  transition-delay: 100ms;
}

/* Анимация для элементов "Что вас ждёт" */
.benefit.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.benefit.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.benefit:nth-child(odd).animate-on-scroll {
  transform: translateX(-20px);
}

.benefit:nth-child(even).animate-on-scroll {
  transform: translateX(20px);
}

.benefit:nth-child(odd).animate-on-scroll.animated,
.benefit:nth-child(even).animate-on-scroll.animated {
  transform: translateX(0);
}

/* Анимация иконок в блоках "Что вас ждёт" */
.benefit__icon.animate-on-scroll {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.benefit__icon.animate-on-scroll.animated {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  .benefit:nth-child(odd).animate-on-scroll,
  .benefit:nth-child(even).animate-on-scroll {
    transform: translateY(20px);
  }
  
  .benefit:nth-child(odd).animate-on-scroll.animated,
  .benefit:nth-child(even).animate-on-scroll.animated {
    transform: translateY(0);
  }
}

/* Мгновенная анимация для элементов, которые видны при загрузке */
.animate-on-scroll.no-delay {
  transition-delay: 0ms !important;
  transition-duration: 0.4s !important;
}

/* Анимация для элементов "Что вас ждёт" */
.benefit.animate-on-scroll.no-delay {
  transition-delay: 0ms !important;
  transition-duration: 0.3s !important;
}

.benefit__icon.animate-on-scroll.no-delay {
  transition-delay: 50ms !important;
  transition-duration: 0.3s !important;
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__content {
  background-color: #fff;
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  padding:32px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal.active .modal__content {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: -40px;
  right: -20px;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #222125;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
@media (max-width:425px) {
  .modal__close{
    top: 16px;
    right: 16px;
  }
}
.modal__close img {
  width: 16px;
  height: 16px;
}

.modal__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #333;
  text-align: left;
}

.modal__form {
  display: flex;
  flex-direction: column;
  
}

.modal__field {
  position: relative;
  margin-bottom: 24px;
}

.modal__input,
.modal__textarea {
  width: 100%;
  border: 0;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 16px;
  background-color: #829BBD0F;
  outline: none;
  font-family: var(--font-family);
  transition: all 0.3s ease;
}

.modal__input.error,
.modal__textarea.error {
  border: 1px solid #ff4b4b;
  background-color: rgba(255, 75, 75, 0.05);
}

.field-error {
  color: #ff4b4b;
  font-size: 12px;
  margin-top: 4px;
  position: absolute;
  bottom: -20px;
  left: 0;
}

.modal__field .modal-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #666;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal__field.focused .modal-label,
.modal__input:not(:placeholder-shown) + .modal-label {
  top: 7px;
  left: 10px;
  font-size: 10px;
  background-color: transparent;
  padding: 0 6px;
}

/* Special handling for textarea field */
.modal__field textarea ~ .modal-label {
  top: 14px;
  transform: none;
}

.modal__field.focused textarea ~ .modal-label,
.modal__textarea:not(:placeholder-shown) + .modal-label {
  top: -10px;
  transform: none;
}

.modal__textarea {
  min-height: 100px;
  resize: vertical;
}


.modal__field:last-of-type {
  margin-bottom: 20px;
}

.modal__submit {
  margin-top: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 500;
}

.modal__success, 
.modal__error {
  text-align: center;
  background-color: #fff;
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}



.modal__success-icon {
  width: 80px;
  height: 80px;
  background-color: #4cdd3c;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px;
}

.modal__success-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #333;
  text-align: left;
}
.success_icon{
  
  height: auto;
  max-height: 150px;
  object-fit: contain;
}
.modal__success-close {
  margin-top: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal__success-text {
  font-size: 16px;
  color: #666;
  text-align: left;
  margin-bottom: 21px;
}

@media (max-width: 576px) {
  .modal__content {
    padding: 30px 20px;
    max-width: 90%;
  }
  
  .modal__title {
    font-size: 24px;
  }
  
  .modal__input,
  .modal__textarea {
    border:0;
    padding: 12px 14px;
    font-size: 14px;
  }
  
  .modal__success-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
}

.mission__content {
  position: relative;
  z-index: 2;
}

.mission__parallax {
  position: relative;
  transform: translateZ(0);
  will-change: transform;
}

.mission__title {
  position: relative;
  z-index: 2;
  transform: translateZ(0);
  will-change: transform;
}

.mission__description {
  position: relative;
  z-index: 2;
  transform: translateZ(0);
  will-change: transform;
}

@media (max-width: 768px) {
  .mission__parallax {
    transform: none !important;
  }
}

.teachers__background-image.mobile {
  display: none;
}

.teachers__background-image.desktop {
  display: block;
}

@media (max-width: 768px) {
  .teachers__background-image.mobile {
    display: block;
    top: 117px;
  }
  
  .teachers__background-image.desktop {
    display: none;
  }
}
@media (max-width: 550px) {
  .teachers__background-image.mobile {
    display: block;
    top: 147px;
  }
  
}
@media (max-width: 425px) {
  .teachers__background-image.mobile {
    display: block;
    top: 167px;
  }
  
  
}
@media (max-width: 424px) {
  .teachers__background-image.mobile {
    display: block;
    top: 187px;
  }
  
}

.footer__stickers {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.footer__stickers-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .footer__stickers {
    position: relative;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    order: 5;
  }

  .footer__stickers-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 425px) {
  .footer__stickers {
    margin-bottom: 20px;
  }

  .footer__stickers-image {
    width: 100%;
    height: auto;
  }
}

/* Remove old emoji styles since we're not using them anymore */
.footer__emoji,
.footer__emoji--sleeping,
.footer__emoji--eating,
.footer__emoji--happy,
.footer__emoji--cool,
.footer__emoji-container {
  display: none;
}

/* Toast notification styles */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(34, 33, 37, 1);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
}

.footer__phone-link,
.footer__address {
  cursor: pointer;
}

@media (max-width: 1024px) {
  .footer__social-link {
    background-color: #222125;
  }
  
  .footer__social-icon {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
  }
}

@media (max-width: 425px) {
  .modal__content {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    padding: 20px;
    transform: translateY(100%);
    margin: 0;
  }

  .modal.active .modal__content {
    transform: translateY(0);
  }

  .modal__success, 
  .modal__error {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    padding: 20px;
    transform: translateY(100%);
    margin: 0;
  }

  .modal.active .modal__success,
  .modal.active .modal__error {
    transform: translateY(0);
  }

  .modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #222125;
    width: 36px;
    height: 36px;
  }

  .modal__close img {
    filter: none;
  }

  .modal__title {
    font-size: 25px;
    margin-bottom: 20px;
    padding-right: 40px;
    width: 270px;
  }

  .modal__field {
    margin-bottom: 20px;
  }

  .modal__input,
  .modal__textarea {
    font-size: 14px;
  }

  .modal__submit {
    font-size: 14px;
    padding: 12px;
  }

  /* Стили для модального окна учителя */
  .teacher-popup__content {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    min-height: 0px;
    border-radius: 24px 24px 0 0;
    padding: 20px 20 24px;
  }
  .teacher-popup__info-block{
    gap:16px;
  }

  .teacher-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }

  .teacher-popup__image-wrapper {
    width: 56px;
    height: 56px;
  }

  .teacher-popup__name {
    padding-right: 40px;
  }
}