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

:root {
    --color-white: #FFFFFF;
    --color-blue: #0039A6;
    --color-red: #D52B1E;
    --color-dark: #1a1a1a;
    --color-gray: #666666;
    --color-light-gray: #f5f5f5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== ШАПКА ==================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 3px solid var(--color-blue);
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
}

.logo-img {
    max-height: 60px;
    width: auto;
    display: block;
}

.nav a {
    margin-left: 30px;
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav a:hover {
    color: var(--color-red);
}

.burger {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-blue);
}

/* ==================== ГЛАВНЫЙ ЭКРАН ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-red) 100%);
    color: var(--color-white);
    text-align: center;
    padding-top: 100px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.3;
}

.hero h1 span {
    color: #FFD700;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--color-white);
    color: var(--color-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    background: var(--color-red);
    color: var(--color-white);
}

/* ==================== СЕКЦИИ ==================== */
section {
    padding: 100px 0;
}

h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-blue);
    position: relative;
    padding-bottom: 20px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-red));
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray);
    font-size: 18px;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== ОБО МНЕ ==================== */
.about {
    background: var(--color-light-gray);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.about-photo {
    display: flex;
    justify-content: center;
}

.photo-placeholder {
    width: 300px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: 5px solid var(--color-white);
}

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

.about-text h3 {
    font-size: 28px;
    color: var(--color-blue);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--color-gray);
    line-height: 1.8;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.tag {
    background: var(--color-white);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    color: var(--color-blue);
    font-weight: 500;
    border: 2px solid var(--color-blue);
}

/* ==================== УСЛУГИ ==================== */
.services {
    background: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-top: 4px solid var(--color-blue);
}

.service-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--color-red);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--color-blue);
    font-size: 22px;
}

.service-card p {
    color: var(--color-gray);
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card ul li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
    font-size: 15px;
    line-height: 1.5;
}

.service-card ul li::before {
    content: "✓";
    color: var(--color-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ==================== ПРЕИМУЩЕСТВА ==================== */
.advantages {
    background: var(--color-light-gray);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.advantage-item:hover {
    transform: translateY(-10px);
}

.advantage-item .icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.advantage-item h4 {
    font-size: 20px;
    color: var(--color-blue);
    margin-bottom: 15px;
}

.advantage-item p {
    color: var(--color-gray);
    font-size: 15px;
    line-height: 1.6;
}

/* ==================== СТУДЕНЧЕСКИЕ ЦЕНЫ ==================== */
.student-offer-section {
    background: var(--color-white);
    padding: 80px 0;
}

.student-offer {
    background: linear-gradient(135deg, var(--color-blue) 0%, #002266 100%);
    color: var(--color-white);
    text-align: center;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(0, 57, 166, 0.3);
}

.student-offer h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #FFD700;
}

.student-offer h2::after {
    background: #FFD700;
}

.student-offer p {
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto 25px;
    line-height: 1.8;
    color: #e0e0e0;
}

.student-offer strong {
    color: #FFD700;
}

.student-offer .btn {
    margin-top: 20px;
}

/* ==================== ПОРТФОЛИО ==================== */
.portfolio {
    background: var(--color-light-gray);
}

.portfolio-project {
    margin-bottom: 80px;
}

.portfolio-project:last-child {
    margin-bottom: 0;
}

.portfolio-project h3 {
    font-size: 28px;
    color: var(--color-blue);
    margin-bottom: 10px;
    text-align: center;
}

.project-info {
    text-align: center;
    color: var(--color-gray);
    margin-bottom: 30px;
    font-size: 16px;
}

/* Карусель */
.carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 3px solid var(--color-blue);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 500px;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-white);
    border: 2px solid var(--color-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
}

.carousel-btn:hover {
    background: var(--color-blue);
    color: var(--color-white);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--color-white);
}

.carousel-dot.active {
    background: var(--color-red);
    width: 30px;
    border-radius: 6px;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ==================== КОНТАКТЫ ==================== */
.contacts {
    background: var(--color-white);
}

.contacts-info-centered {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-item {
    text-align: center;
    min-width: 180px;
}

.contact-item strong {
    display: block;
    color: var(--color-blue);
    margin-bottom: 8px;
    font-size: 16px;
}

.contact-item a {
    color: var(--color-red);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 18px;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--color-blue);
}

/* ==================== ПОДВАЛ ==================== */
.footer {
    background: var(--color-blue);
    color: var(--color-white);
    text-align: center;
    padding: 30px 0;
    border-top: 4px solid var(--color-red);
}

.footer p {
    margin-bottom: 8px;
}

/* ==================== АНИМАЦИИ ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 968px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        margin: 10px 0;
    }
    
    .burger {
        display: block;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .photo-placeholder {
        width: 250px;
        height: 350px;
    }
    
    .services-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-track {
        height: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .contacts-info-centered {
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }
    
    h2 {
        font-size: 32px;
    }
    
    .portfolio-project h3 {
        font-size: 24px;
    }
    
    .student-offer {
        padding: 40px 20px;
    }
    
    .student-offer h2 {
        font-size: 24px;
    }
    
    .student-offer p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .carousel-track {
        height: 250px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .photo-placeholder {
        width: 200px;
        height: 280px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
}

/* ==================== ВРЕМЕННО СКРЫТЬ ПОРТФОЛИО ==================== */
/* УДАЛИТЕ ЭТОТ БЛОК, КОГДА БУДЕТЕ ГОТОВЫ ПОКАЗАТЬ ПОРТФОЛИО */
.portfolio {
    display: none !important;
}