/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цветовая схема */
    --primary: #ff8c00;
    --primary-dark: #e67e00;
    --primary-light: #ffaa33;
    --secondary: #2c3e50;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --success: #28a745;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --header-height: 80px;
    --header-height-shrink: 60px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
}

.highlight {
    color: var(--primary);
}

/* ========== ШАПКА (СВОРАЧИВАЮЩАЯСЯ) ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
    height: var(--header-height);
}

/* Отступ для основного контента, чтобы не перекрывался шапкой */
main {
    padding-top: var(--header-height);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
    transition: padding 0.3s ease;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
    transition: height 0.3s ease;
}

/* Навигация */
.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: var(--primary);
}

.header__contacts {
    text-align: right;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    transition: font-size 0.3s ease;
}

.work-hours {
    font-size: 0.8rem;
    color: var(--gray);
    transition: font-size 0.3s ease;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    transition: all 0.3s ease;
}

/* Уменьшенная шапка */
.header.header--shrink {
    height: var(--header-height-shrink);
}

.header.header--shrink .header__inner {
    padding: 0.5rem 0;
}

.header.header--shrink .logo img {
    height: 32px;
}

.header.header--shrink .phone {
    font-size: 0.95rem;
}

.header.header--shrink .work-hours {
    font-size: 0.7rem;
}

/* Скрытая шапка (при скролле вниз) */
.header.header--hidden {
    transform: translateY(-100%);
}

/* Герой-секция */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero__content {
    text-align: center;
}

.hero__title {
    font-size: clamp(1.8rem, 6vw, 3rem);
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat__value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat__label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Сетки категорий */
.categories__grid,
.specialization__grid,
.archive__grid,
.educational__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Карточки категорий */
.category-card,
.special-card,
.archive-card,
.educational-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 1px solid #e0e0e0;
}

.category-card:hover,
.special-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card__image img {
    transform: scale(1.05);
}

.category-card__title,
.special-card__title,
.archive-card h3,
.educational-card h3 {
    font-size: 1.2rem;
    padding: 1rem 1rem 0.5rem;
    color: var(--dark);
}

.category-card__description,
.special-card__subtitle {
    padding: 0 1rem 1rem;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Архивные карточки */
.archive-card {
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.archive-card__year {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Образовательные карточки */
.educational-card {
    text-align: center;
    padding: 2rem;
}

.educational-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Блок экономии */
.savings {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    margin: 3rem 0;
    padding: 4rem 0;
    text-align: center;
}

.savings__content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.savings__content p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Контактная форма */
.questions {
    background-color: var(--light);
    padding: 4rem 0;
}

.questions__inner {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.questions__contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
}

.contact-info__icon {
    font-size: 1.5rem;
}

/* Подвал */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 3rem 0 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer__col h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer__col ul {
    list-style: none;
}

.footer__col ul li {
    margin-bottom: 0.5rem;
}

.footer__col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__col a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --header-height-shrink: 55px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        z-index: 1001;
        padding: 5rem 2rem;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav__link {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }
    
    .header__contacts {
        display: none;
    }
    
    .hero__stats {
        gap: 1.5rem;
    }
    
    .stat__value {
        font-size: 1.5rem;
    }
    
    .categories__grid,
    .specialization__grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .header.header--shrink .logo img {
        height: 28px;
    }
}

@media (max-width: 480px) {
    .categories__grid,
    .specialization__grid,
    .archive__grid,
    .educational__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info {
        flex-direction: column;
        text-align: center;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card,
.special-card,
.archive-card,
.educational-card {
    animation: fadeInUp 0.6s ease forwards;
}

:root {
    /* Цветовая схема */
    --primary: #ff8c00;
    --primary-dark: #e67e00;
    --primary-light: #ffaa33;
    --secondary: #2c3e50;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --success: #28a745;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
}

.highlight {
    color: var(--primary);
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn--primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn--outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn--large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Шапка */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Навигация */
.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: var(--primary);
}

.header__contacts {
    text-align: right;
    flex-shrink: 0;
}

.phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
}

.work-hours {
    font-size: 0.8rem;
    color: var(--gray);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    transition: all 0.3s ease;
}

/* Герой-секция */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero__content {
    text-align: center;
}

.hero__title {
    font-size: clamp(1.8rem, 6vw, 3rem);
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat__value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat__label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Сетки категорий */
.categories__grid,
.specialization__grid,
.archive__grid,
.educational__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Карточки категорий */
.category-card,
.special-card,
.archive-card,
.educational-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 1px solid #e0e0e0;
}

.category-card:hover,
.special-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card__image img {
    transform: scale(1.05);
}

.category-card__title,
.special-card__title,
.archive-card h3,
.educational-card h3 {
    font-size: 1.2rem;
    padding: 1rem 1rem 0.5rem;
    color: var(--dark);
}

.category-card__description,
.special-card__subtitle {
    padding: 0 1rem 1rem;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Архивные карточки */
.archive-card {
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.archive-card__year {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Образовательные карточки */
.educational-card {
    text-align: center;
    padding: 2rem;
}

.educational-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Блок экономии */
.savings {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    margin: 3rem 0;
    padding: 4rem 0;
    text-align: center;
}

.savings__content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.savings__content p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Контактная форма */
.questions {
    background-color: var(--light);
    padding: 4rem 0;
}

.questions__inner {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.questions__contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
}

.contact-info__icon {
    font-size: 1.5rem;
}

/* Подвал */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 3rem 0 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer__logo img {
    filter: brightness(0) invert(1);
}

.footer__col h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer__col ul {
    list-style: none;
}

.footer__col ul li {
    margin-bottom: 0.5rem;
}

.footer__col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__col a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        z-index: 1001;
        padding: 5rem 2rem;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav__link {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }
    
    .header__contacts {
        display: none;
    }
    
    .hero__stats {
        gap: 1.5rem;
    }
    
    .stat__value {
        font-size: 1.5rem;
    }
    
    .categories__grid,
    .specialization__grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .categories__grid,
    .specialization__grid,
    .archive__grid,
    .educational__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info {
        flex-direction: column;
        text-align: center;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card,
.special-card,
.archive-card,
.educational-card {
    animation: fadeInUp 0.6s ease forwards;
}
/* ========== СВОРАЧИВАЮЩАЯСЯ ШАПКА ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
    height: 80px;
}

/* Отступ для основного контента, чтобы не перекрывался шапкой */
main {
    padding-top: 80px;
}

/* Уменьшенная шапка */
.header.header--shrink {
    height: 60px;
}

.header.header--shrink .header__inner {
    padding: 0.5rem 0;
}

.header.header--shrink .logo img {
    height: 32px;
}

.header.header--shrink .phone {
    font-size: 0.95rem;
}

.header.header--shrink .work-hours {
    font-size: 0.7rem;
}

/* Скрытая шапка (при скролле вниз) */
.header.header--hidden {
    transform: translateY(-100%);
}

/* Плавные переходы для элементов внутри шапки */
.header__inner {
    transition: padding 0.3s ease;
}

.logo img {
    transition: height 0.3s ease;
}

.phone {
    transition: font-size 0.3s ease;
}

.work-hours {
    transition: font-size 0.3s ease;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .header {
        height: 70px;
    }
    
    main {
        padding-top: 70px;
    }
    
    .header.header--shrink {
        height: 55px;
    }
    
    .header.header--shrink .logo img {
        height: 28px;
    }
}