/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0057B8;
    --secondary-color: #1E90FF;
    --accent-color: #FFD700;
    --text-color: #1f2937;
    --light-bg: #FFF9E6;
    --border-color: #FFE680;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 18px;
    font-weight: 500;
}

p {
    font-size: 18px;
    font-weight: 500;
}

body {
    background-color: var(--white);
}

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

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 30px;
}

.logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
}

.nav {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 87, 184, 0.3);
}

/* Language Selector */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.language-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.language-btn .flag {
    font-size: 18px;
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    display: none;
    flex-direction: column;
    z-index: 200;
}

.language-menu.active {
    display: flex;
}

.lang-option {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.lang-option:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.lang-option .flag {
    font-size: 18px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%), url('assets/task_01k9atn3m2fyj96vnfhcjxfckx_1762373968_img_0.webp') center/cover no-repeat;
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
    background-attachment: fixed;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #E6A000;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #0043A8;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.about .container {
    max-width: 1000px;
    margin: 0 auto;
}

.about h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

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

.about-content p {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.9;
    color: var(--text-color);
    text-align: center;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

.about-content em {
    color: var(--secondary-color);
    font-style: italic;
    font-weight: 600;
}

.about-intro {
    margin-bottom: 40px;
}

.about-intro h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 0;
    text-align: center;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 25px 0 35px;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.about-list li {
    font-size: 19px;
    font-weight: 500;
    line-height: 1.9;
    margin-bottom: 18px;
    padding-left: 30px;
    position: relative;
    color: var(--text-color);
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
}

.about-highlight {
    background: linear-gradient(135deg, rgba(0, 87, 184, 0.08) 0%, rgba(255, 215, 0, 0.08) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 30px 35px;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.about-highlight p {
    margin-bottom: 0;
    font-size: 20px;
    line-height: 1.9;
}

.about-closing {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.about-slogan {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin-bottom: 20px !important;
    line-height: 1.5 !important;
}

.about-slogan:last-child {
    margin-bottom: 0 !important;
}

/* Achievements Section */
.achievements {
    padding: 80px 20px;
    background-color: var(--white);
}

.achievements h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    color: var(--primary-color);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.achievement-item {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(0, 87, 184, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.achievement-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.achievement-label {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
}

/* Programs Section */
.programs {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.programs h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    color: var(--primary-color);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.program-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.program-image {
    width: 100%;
    height: 280px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #E6F2FF;
}

.program-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 25px;
    padding: 0 25px;
}

.program-card p {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-color);
    padding: 15px 25px 25px;
    line-height: 1.7;
    flex-grow: 1;
}

/* Partners Section */
.partners {
    padding: 80px 20px;
    background-color: var(--white);
}

.partners h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    color: var(--primary-color);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-item {
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.partner-item:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 87, 184, 0.02) 0%, rgba(255, 215, 0, 0.02) 100%);
    box-shadow: 0 8px 24px rgba(0, 87, 184, 0.15);
    transform: translateY(-5px);
}

.partner-placeholder {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.partner-item p {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

/* Application Section */
.application {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.application h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    color: var(--primary-color);
}

.application > .container > p {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 50px;
    color: var(--text-color);
}

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

.application-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.1);
}

.form-group textarea {
    resize: none;
    overflow-y: auto;
}

.error-message {
    display: block;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    margin-top: 6px;
    min-height: 18px;
}

.application-form .btn {
    align-self: flex-start;
    margin-top: 10px;
}

.application-form .btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.application-form .btn:disabled:hover {
    background-color: #cccccc;
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.help-info {
    background-color: var(--white);
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
}

.help-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.help-info p {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.5;
    white-space: normal;
    max-width: 280px;
}

.help-info .btn-secondary {
    width: fit-content;
    padding: 12px 24px;
    font-size: 16px;
}

/* Contacts Section */
.contacts {
    padding: 80px 20px;
    background-color: var(--white);
}

.contacts h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    color: var(--primary-color);
}

.contacts-card {
    background-color: var(--light-bg);
    border-radius: 12px;
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: start;
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-label {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
}

.contact-row p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.contact-row a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-row a:hover {
    color: var(--accent-color);
}

/* Map */
.contacts-map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    margin-top: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.leaflet-popup-content {
    font-size: 14px;
    font-family: inherit;
}

.leaflet-popup-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 20px;
    }

    .nav {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-btn {
        padding: 6px 16px;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero {
        padding: 80px 20px;
    }

    .about,
    .achievements,
    .programs,
    .partners,
    .application,
    .contacts {
        padding: 60px 20px;
    }

    .about h2,
    .achievements h2,
    .programs h2,
    .partners h2,
    .application h2,
    .contacts h2 {
        font-size: 32px;
        margin-bottom: 35px;
    }
    
    .about-content p {
        font-size: 18px;
        margin-bottom: 25px;
        line-height: 1.8;
    }

    .about-intro h3 {
        font-size: 26px;
    }

    .about-list {
        margin: 20px 0 30px;
    }

    .about-list li {
        font-size: 17px;
        margin-bottom: 15px;
    }

    .about-highlight {
        padding: 25px 25px;
        margin: 30px 0;
    }

    .about-highlight p {
        font-size: 18px;
    }

    .about-closing {
        margin-top: 40px;
        padding-top: 25px;
    }

    .about-slogan {
        font-size: 20px !important;
    }

    .application-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .partner-item {
        padding: 30px 20px;
        min-height: 160px;
    }

    .partner-placeholder {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .partner-item p {
        font-size: 13px;
    }

    .achievement-number {
        font-size: 32px;
    }

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

    .contacts-card {
        padding: 35px;
    }

    .contact-row {
        grid-template-columns: 150px 1fr;
        gap: 20px;
        padding: 12px 0;
    }

    .contact-label {
        font-size: 13px;
    }

    .contact-row p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .hero {
        padding: 60px 15px;
    }

    .achievement-item,
    .program-card {
        padding: 20px 15px;
    }

    .program-image {
        height: 220px;
    }

    .program-card h3 {
        font-size: 18px;
        margin-top: 15px;
        padding: 0 15px;
    }

    .program-card p {
        font-size: 14px;
        padding: 10px 15px 15px;
    }

    .achievement-number {
        font-size: 28px;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contacts-card {
        padding: 20px;
    }

    .contact-row {
        grid-template-columns: 120px 1fr;
        gap: 15px;
        padding: 10px 0;
    }

    .contact-label {
        font-size: 12px;
    }

    .contact-row p {
        font-size: 12px;
    }

    .contacts-map {
        height: 300px;
        margin-top: 30px;
    }

    .about-intro h3 {
        font-size: 22px;
    }

    .about-list li {
        font-size: 16px;
        margin-bottom: 12px;
        padding-left: 25px;
    }

    .about-highlight {
        padding: 20px 20px;
        margin: 25px 0;
    }

    .about-highlight p {
        font-size: 17px;
    }

    .about-slogan {
        font-size: 18px !important;
    }
}

@media (max-aspect-ratio: 1/1) {
  /* Применяем белый фон и скрываем все содержимое */
  body {
    background-color: white !important;
    color: transparent !important; /* Скрыть текст */
  }
  /* Скрываем все элементы внутри body */
  body > * {
    display: none !important;
  }
}
