/* Основные стили */
:root {
    --primary-color: #ff6200;
    --secondary-color: #fff;
    --text-color: #333;
    --accent-color: #f8f9fa;
    --background-gradient: linear-gradient(135deg, #f5f7fa 0%, #e4e9f0 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--background-gradient);
    color: var(--text-color);
    line-height: 1.6;
}

/* Хедер */
.header {
    background: var(--primary-color);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 79px;
    width: fit-content;
    height: 100vh;
    left: 0;
    background: var(--primary-color);
    padding: 1rem;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.nav-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.nav-menu a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    padding: 0.5rem 3rem;
    border-radius: 10px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.nav-menu a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

.burger {
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Общие стили для секций */
section {
    padding: 5rem 2rem;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}



/* Геройский блок (слайдер) */
.hero-section {
    padding-top: 7rem;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.hero-slider {
    position: relative;
}

.hero-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.hero-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 5rem 2rem;
    background-size: cover;
    background-position: center;
    color: var(--secondary-color);
    text-align: center;
}

.hero-slide h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-slide p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.hero-slide .btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-slide .btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.slider-nav {
    position: absolute;
    display: none;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--secondary-color);
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
}

.slider-nav.prev {
    left: 1rem;
}

.slider-nav.next {
    right: 1rem;
}

.slider-dots {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-color);
}

/* Секция About */
.about-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.about-item {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}



.about-section img {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 0rem;
}

.about-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.about-section h4 {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.about-section p {
    margin-bottom: 1rem;
}

.btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin: 0 auto;
    text-align: center;
    display: flex
;
    text-decoration: none;
    justify-content: center;
}

/* Секция Subjects */
.subjects-section {
    text-align: center;
}

.subjects-grid {
    display: grid
;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.subject-item {
    background: #333;
    color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.subject-item:hover {
    transform: translateY(-5px);
}

.subject-item img {
    width: 100%;
    border-radius: 10px;
    height: 100%;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.subject-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Секция Courses */
.courses-section {
    text-align: center;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.course-item {
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
.course-item img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    height: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.course-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.course-item p {
    color: #666;
}

/* Секция Discount & Sign Up */
.discount-signup-section {
  
    padding: 3rem 2rem;
    color: var(--secondary-color);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.discount-signup-section h2 {
    color: var(--secondary-color);
}

.discount-signup-item {
 
    padding: 2rem;
    border-radius: 15px;
    flex: 1;
}

.discount-signup-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.discount-signup-item form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.discount-signup-item input {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.discount-signup-item button {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.8rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.discount-signup-item button:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* Секция Teachers */
.teachers-section {
    text-align: center;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.teacher-item {
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.teacher-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Секция Testimonials */
.testimonials-section {
    text-align: center;
}

.testimonial-item {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    max-width: 600px;
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-item .author {
    font-weight: bold;
}

/* Секция Blog */
.blog-section {
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.blog-item {
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.blog-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 200px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Секция Contact */
.contact-section {
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.contact-form button {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.contact-info {
    margin-top: 2rem;
}

/* Футер */
.footer {
    background: #1a2526;
    color: var(--secondary-color);
    padding: 2rem;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-grid a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-grid a:hover {
    color: var(--primary-color);
}

.footer-grid h3 {
    margin-bottom: 1rem;
}

.footer-grid .logo img {
    height: 40px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-slide h1 {
        font-size: 2rem;
    }
    .subjects-grid {
        display: flex
    ;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
        flex-direction: column;
    }
    .hero-slide p {
        font-size: 1rem;
    }
    .course-item img {
        width: 100%;
        max-height: 200px;
        object-fit: cover;
        height: fit-content;
        border-radius: 10px;
        margin-bottom: 1rem;
    }
    .discount-signup-section {
        flex-direction: column;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 79px;
        width: fit-content;
        height: 100vh;
        left: 0;
        background: var(--primary-color);
        padding: 1rem;
        border-radius: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        transform: translateY(-10px);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
    }
}
html,body{
    display: flex;
    flex-direction: column;
    height: 100%;
}
a{
    text-decoration: none;
}
.f{
    display: flex;
}
.f-col{
   flex-direction: column;
}
.f-wrap{
    display: flex;
    flex-wrap: wrap;
}
.f-star{
    align-items:flex-start
}
.b.f {
    display: flex
;

    justify-content: space-around;
}
@media screen and (max-width:768px) {
    .f{
       flex-wrap: wrap;
    }
    .map img{
width: 100%;
}
.map p{
width: 100%;
}
.b.f{
    flex-direction: column;
}
}