* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #fff;
    color: #333;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 60px 0;
}
.section-title {
    font-size: 36px;
    color: #000000;
    margin-bottom: 30px;
    text-align: center;
}
.header {
    background: #6A1B9A;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;    gap: 15px;
}
.logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}
.nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}
.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}
.nav a:hover {
    text-decoration: underline;
}
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}
.btn-pink {
    background: #D81B60;
    color: #000000;
}
.btn-pink:hover {
    background: #C2185B;
}
.btn-small {
    display: inline-block;
    background: #D81B60;
    color: #fff;
    text-decoration: none;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}
.btn-small:hover {
    background: #C2185B;
}
.hero-text {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}
.test-block {
    background: #F8BBD0;
    text-align: center;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
}
.test-question {
    font-size: 28px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 15px;
}
.test-desc {
    font-size: 16px;
    color: #000000;
    margin-bottom: 25px;
}
.courses-section {
    background: #F8F9FA;
    text-align: center;
}
.courses-main-title {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
}
.courses-subtitle {
    font-size: 28px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 40px;
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.course-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.course-card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
}
.about-flex {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}
.about-text {
    flex: 1;
}
.about-text p {
    margin-bottom: 20px;
    line-height: 1.5;
}
.about-photo {
    flex: 1;
    text-align: center;
}
.about-photo img {
     width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
}
.mission {
    background: #F8BBD0;
    padding: 30px;
    border-radius: 20px;
    margin-top: 20px;
}
.mission h3 {
    font-size: 24px;
    color: #4A148C;
    margin-bottom: 15px;
}
.teachers-section {
    background: #F8F9FA;
}
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.teacher-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
}
.teacher-card h3 {
    font-size: 20px;
    color: #6A1B9A;
    margin-bottom: 10px;
}
.teacher-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}
.cabinet-info {
    background: #F8F9FA;
    border-radius: 20px;
    padding: 30px;
    max-width: 700px;
    margin: 0 auto;
}
.cabinet-info h3 {
    font-size: 24px;
    color: #6A1B9A;
    margin-bottom: 20px;
}
.cabinet-info p {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}
.age {
    font-size: 18px;
    font-weight: 600;
    color: #D81B60;
}
.reviews
 {
    background: #F8F9FA;
}
.reviews-stats {
    text-align: center;
    font-size: 18px;
    color: #6A1B9A;
    margin-bottom: 40px;
}
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}
.review-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
}
.review-card h3 {
    font-size: 18px;
    color: #6A1B9A;
    margin-bottom: 10px;
}
.stars {
    color: #F5A623;
    margin-bottom: 15px;
}
.review-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}
.leave-review {
    text-align: center;
    margin-top: 30px;
}
.contact-section {
    background: #fff;
}
.contact-info {
    background: #F8F9FA;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}
.contact-info p {
    margin-bottom: 20px;
    font-size: 18px;
}
* {
    transition: all 0.3s ease;
}
.btn, .btn-small {
    position: relative;
    overflow: hidden;
}
.btn:hover, .btn-small:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(216,27,96,0.3);
}
.btn::after, .btn-small::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
}
.btn:hover::after, .btn-small:hover::after {
    left: 100%;
    transition: 0.6s;
}
.course-card {
    position: relative;
    overflow: hidden;
}
.course-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.course-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(106,27,154,0.15), rgba(216,27,96,0.15));
    opacity: 0;
}
.course-card:hover::before {
    opacity: 1;
}
.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}
.review-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.about-photo img:hover {
    transform: scale(1.05) rotate(1deg);
}
.nav a {
    position: relative;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #fff;
}
.nav a:hover::after {
    width: 100%;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.section {
    animation: fadeUp 0.8s ease both;
}
#home {
    position: relative;
    background: url('images/fon.jpg') center/cover no-repeat;
}
#home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}
#home * {
    position: relative;
    z-index: 1;
    color: #fff;
}
.btn-pink {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(216,27,96,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(216,27,96,0); }
    100% { box-shadow: 0 0 0 0 rgba(216,27,96,0); }
}
.phone {
    color: #6A1B9A;
    font-weight: 600;
}
.footer {
    background: #6A1B9A;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}
html, body {
    height: 100%;
}
.teacher-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.teacher-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid #F8BBD0;
    transition: 0.4s;
}
.teacher-card h3 {
    font-size: 18px;
    color: #6A1B9A;
    margin-bottom: 10px;
}
.teacher-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}
.teacher-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.teacher-card:hover img {
    transform: scale(1.1);
    border-color: #D81B60;
}
.cabinet-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.cabinet-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.cabinet-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #D81B60;
}
.progress-bar {
    width: 100%;
    height: 12px;
    background: #eee;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 10px;
}
.progress {
    height: 100%;
    background: linear-gradient(90deg, #D81B60, #6A1B9A);
    border-radius: 20px;
    transition: 1s;
}
.cabinet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.teacher-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(106,27,154,0.1), rgba(216,27,96,0.1));
    opacity: 0;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.review-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.review-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.stars {
    color: #F5A623;
}
.review-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
@media(max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}
.teacher-card:hover::before {
    opacity: 1;
}
body {
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
}
.footer {
    margin-top: auto;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-form {
    background: #F8F9FA;
    padding: 30px;
    border-radius: 20px;
}
.contact-form h3 {
    margin-bottom: 20px;
    color: #6A1B9A;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #D81B60;
    outline: none;
    box-shadow: 0 0 10px rgba(216,27,96,0.2);
}
.contact-info-block {
    background: #F8BBD0;
    padding: 30px;
    border-radius: 20px;
}
.contact-info-block h3 {
    margin-bottom: 20px;
    color: #4A148C;
}
.socials {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
.socials a {
    text-decoration: none;
    background: #6A1B9A;
    color: #fff;
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 14px;
}
.socials a:hover {
    transform: translateY(-3px);
    background: #4A148C;
}
.contact-form:hover,
.contact-info-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}


@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .header {
    padding: 15px 20px;
  }

  .header-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .logo {
    font-size: 24px;
    text-align: center;
  }

  .nav {
    justify-content: center;
    gap: 12px 18px;
  }

  .nav a {
    font-size: 15px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title,
  .courses-main-title {
    font-size: 28px;
    line-height: 1.2;
  }

  .courses-subtitle {
    font-size: 22px;
    line-height: 1.2;
  }

  .hero-text {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .test-block,
  .contact-info,
  .cabinet-card,
  .contact-form,
  .contact-info-block,
  .mission {
    padding: 20px;
    border-radius: 16px;
  }

  .test-question {
    font-size: 22px;
  }

  .test-desc {
    font-size: 15px;
  }

  .courses-grid,
  .teachers-grid,
  .reviews-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .course-card,
  .teacher-card,
  .review-card {
    padding: 20px;
  }

  .about-flex {
    flex-direction: column;
    gap: 25px;
  }

  .about-photo img {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .cabinet-header {
    flex-direction: column;
    text-align: center;
  }

  .socials {
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn,
  .btn-small {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 12px 15px;
  }

  .logo {
    font-size: 22px;
  }

  .nav {
    gap: 10px 14px;
  }

  .nav a {
    font-size: 14px;
  }

  .section {
    padding: 30px 0;
  }

  .section-title,
  .courses-main-title {
    font-size: 24px;
  }

  .courses-subtitle {
    font-size: 20px;
  }

  .hero-text,
  .cabinet-info p,
  .contact-info p,
  .review-card p,
  .teacher-card p,
  .course-card p {
    font-size: 14px;
  }

  .test-question {
    font-size: 20px;
  }

  .test-desc {
    font-size: 14px;
  }

  .teacher-card img,
  .cabinet-header img {
    width: 90px;
    height: 90px;
  }

  .btn,
  .btn-small {
    font-size: 14px;
  }
}


html, body {
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
}
#home {
  position: relative;
  min-height: 100vh;
  background: url('images/fon.jpg') center/cover no-repeat;
}