/* ===================================
   GLOBAL STYLES & VARIABLES
   =================================== */

:root {
    /* Color Palette - Blue, Yellow, Green tones (no pink) */
    --primary-blue: #4A90E2;
    --primary-light-blue: #7FB3E8;
    --primary-dark-blue: #2E5C8A;
    --accent-yellow: #F9D423;
    --accent-green: #6BCF9E;
    --accent-light-green: #A8E6CF;
    
    /* Neutral colors */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #E9ECEF;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    
    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Border radius */
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 30px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

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

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light-blue) 0%, var(--primary-blue) 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    animation: fadeInUp 1s ease-out;
}

.hero-text {
    color: var(--white);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-workplace {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-slogan {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 35px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-yellow);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 1s ease-out 1s both;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: #FFE066;
}

.hero-image {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: var(--white);
    font-size: 2rem;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.hero-scroll a:hover {
    opacity: 1;
}

/* ===================================
   SECTION COMMON STYLES
   =================================== */

section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-blue);
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-green));
    border-radius: 2px;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about {
    background: var(--light-gray);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-dark);
}

/* ===================================
   AWARDS SECTION (CAROUSEL)
   =================================== */

.awards {
    background: var(--white);
}

.awards-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    padding: 20px;
}

.award-item {
    background: var(--light-gray);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.award-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.award-caption {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 15px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: var(--transition-smooth);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

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

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

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--medium-gray);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background: var(--primary-blue);
    transform: scale(1.3);
}

/* ===================================
   DIPLOMA SECTION
   =================================== */

.diploma {
    background: var(--light-gray);
}

.diploma-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.diploma-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    object-fit: contain;
}

.diploma-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.diploma-text p {
    margin-bottom: 15px;
}

/* ===================================
   GALLERY SECTION
   =================================== */

.gallery {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===================================
   NEWS SECTION
   =================================== */

.news {
    background: var(--light-gray);
}

.news-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: var(--transition-smooth);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.news-image {
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.news-date {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.news-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* ===================================
   REVIEWS SECTION
   =================================== */

.reviews {
    background: var(--white);
}

.reviews-form-container {
    max-width: 700px;
    margin: 0 auto 60px;
    background: var(--light-gray);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.reviews-form-container h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.submit-btn:hover {
    background: var(--primary-dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.form-note {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.reviews-list {
    display: grid;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.review-item {
    background: var(--light-gray);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-green);
    animation: fadeInUp 0.5s ease-out;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-author {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.review-relation {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* ===================================
   CONTACTS SECTION
   =================================== */

.contacts {
    background: var(--light-gray);
}

.contacts-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    margin-bottom: 50px;
}

.contact-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.contact-vk {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 45px;
    background: #0077FF;
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.contact-vk:hover {
    background: #0066DD;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-vk i {
    font-size: 1.8rem;
}

.contact-workplace {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-workplace h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.contact-workplace p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--primary-dark-blue);
    color: var(--white);
    padding: 50px 0 25px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

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

.footer-workplace {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 2rem;
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: #0077FF;
    transform: scale(1.1);
}

.footer-copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* ===================================
   MODAL
   =================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--radius-md);
    animation: zoomIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--accent-yellow);
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.8); }
    to { transform: translate(-50%, -50%) scale(1); }
}

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .diploma-content,
    .news-card {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 20px;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-md);
    }
    
    .nav.active {
        left: 0;
    }
    
    .burger {
        display: flex;
    }
    
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-btn.prev {
        left: -10px;
    }
    
    .carousel-btn.next {
        right: -10px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-workplace,
    .hero-slogan {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .reviews-form-container {
        padding: 25px;
    }
    
    .award-item,
    .diploma-image,
    .news-content,
    .review-item {
        padding: 20px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}
