/* Сброс стилей и общие настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #FFD700;
    --primary-orange: #FFA500;
    --accent-orange: #FF8C00;
    --dark-orange: #FF6600;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Заголовки */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Навигация */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(8px, 0.8vw, 18px);
    padding: 0 clamp(18px, 2vw, 40px);
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
    position: static;
    min-width: 0;
}

.nav-logo img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-logo span {
    white-space: nowrap;
    line-height: 1.2;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(10px, 0.65vw, 16px);
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: clamp(1.1rem, 1.02vw, 1.22rem);
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--dark-orange);
    transform: translateY(-2px);
}

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

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

.social-links {
    display: flex;
    gap: clamp(3px, 0.3vw, 6px);
    align-items: center;
    justify-self: end;
    position: static;
}

.social-links a {
    color: var(--text-dark);
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 3px;
}

.social-links a:hover {
    color: var(--dark-orange);
    transform: scale(1.1);
}

.social-links img {
    height: 18px;
    width: 18px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Секции */
.section {
    padding: 20px 0;
    position: relative;
}

.section:first-of-type {
    padding-top: 130px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    border-radius: 2px;
}

/* Стили для страницы образования */
.education-types {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.education-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
    position: relative;
}

.education-type::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #FFD700;
    border-radius: 2px;
    z-index: 1;
}

.education-types > .education-type:nth-child(3),
.education-types > .education-type:nth-child(7) {
    grid-template-columns: 2fr 1fr;
}

.education-types > .education-type:nth-child(3)::before,
.education-types > .education-type:nth-child(7)::before {
    left: auto !important;
    right: -30px !important;
}

/* Возвращаем полосу слева для 3-го блока */
.education-types > .education-type:nth-child(5)::before {
    left: -30px !important;
    right: auto !important;
}

.education-types > .education-type:nth-child(3) .education-type-image,
.education-types > .education-type:nth-child(7) .education-type-image {
    order: 2;
}

.education-types > .education-type:nth-child(3) .education-type-content,
.education-types > .education-type:nth-child(7) .education-type-content {
    order: 1;
}

.education-type-image {
    position: relative;
}

.education-type-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.education-type-image img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.education-type-content h3 {
    color: var(--primary-orange);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.education-type-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.education-type-content strong {
    color: #333;
    font-weight: normal;
}

.education-type-content h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
}

.method-steps {
    list-style: none;
    padding: 0;
}

.method-steps li {
    margin: 15px 0;
    padding: 15px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-orange);
    transition: var(--transition);
}

.method-steps li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.problems-list {
    list-style: none;
    padding: 0;
}

.problems-list li {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-gold);
    transition: var(--transition);
}

.problems-list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.problems-list i {
    color: var(--primary-orange);
    font-size: 1.1rem;
}

.masterclass-features {
    list-style: none;
    padding: 0;
}

.masterclass-features li {
    margin: 12px 0;
    padding: 12px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-gold);
    transition: var(--transition);
}

.masterclass-features li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.consultation-process {
    list-style: none;
    padding: 0;
}

.consultation-process li {
    margin: 15px 0;
    padding: 15px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-orange);
    transition: var(--transition);
}

.consultation-process li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.highlight-text {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 20px 0;
}

.highlight-text p {
    color: var(--text-dark);
    margin: 0;
    font-weight: bold;
}

.highlight-text strong {
    font-weight: bold;
}

.free-offer {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 20px 0;
}

.free-offer p {
    color: var(--text-dark);
    margin: 5px 0;
    font-weight: bold;
}

.free-offer strong {
    font-weight: bold;
}

.free-entry {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 20px 0;
}

.free-entry p {
    color: var(--text-dark);
    margin: 5px 0;
    font-weight: bold;
}

.free-entry strong {
    font-weight: bold;
}

.confidence-guarantee {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 20px 0;
}

.confidence-guarantee p {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin: 0;
    font-weight: bold;
}

.confidence-guarantee strong {
    font-weight: bold;
}

/* Галерея слайдеров */
.gallery-section {
    /*margin-top: 30px;*/
}

.gallery-section h4 {
    color: var(--primary-orange);
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

.gallery-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--light-bg);
}

.image-container {
    flex: 1;
    text-align: center;
}

.image-container img {
    width: 100%;
    max-width: none;
    height: 400px;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background: var(--white);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 215, 0, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: var(--transition);
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--primary-orange);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

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

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 165, 0, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dot.active {
    background: var(--primary-orange);
    transform: scale(1.2);
}

/* Подвал */
.footer {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    color: #000;
    padding: 90px 0 45px;
}

.footer * {
    color: #000 !important;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-social a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-gold);
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .education-type {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .education-types > .education-type:nth-child(3),
    .education-types > .education-type:nth-child(7) {
        grid-template-columns: 1fr;
    }

    .education-types > .education-type:nth-child(3) .education-type-image,
    .education-types > .education-type:nth-child(7) .education-type-image {
        order: 1;
    }

    .education-types > .education-type:nth-child(3) .education-type-content,
    .education-types > .education-type:nth-child(7) .education-type-content {
        order: 2;
    }
}

@media (max-width: 2100px) {
    .nav-container {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
        padding: 0 16px;
    }

    .nav-logo {
        gap: 8px;
        font-size: 1.05rem;
    }

    .nav-logo img {
        height: 38px;
    }

    .nav-logo span {
        max-width: 215px;
    }

    .nav-menu {
        justify-self: stretch;
        justify-content: center;
        gap: clamp(9px, 0.6vw, 14px);
    }

    .social-links a {
        padding: 1px;
    }
}
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 20px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-logo {
        font-size: 1rem;
        flex-shrink: 1;
        min-width: 0;
    }

    .nav-logo img {
        height: 30px;
    }

    .nav-logo span {
        max-width: 150px;
        font-size: 0.9rem;
    }

    .social-links {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .section:first-of-type {
        padding-top: 100px;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .gallery-slide {
        flex-direction: column;
        gap: 15px;
    }

    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .gallery-slide {
        padding: 15px;
    }

    .image-container img {
        height: 250px;
    }
}
/* Desktop header reset for small screens */
@media (max-width: 768px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
    }

    .hamburger {
        margin-left: auto;
    }
}

@media (min-width: 1201px) and (max-width: 2100px) {
    .education-type-content h3 {
        font-size: 1.72rem;
        margin-bottom: 0.85rem;
    }

    .education-type-content h4 {
        font-size: 1.08rem;
        margin: 1.05rem 0 0.55rem;
    }

    .education-type-content p {
        font-size: 0.92rem;
        line-height: 1.42;
        margin-bottom: 0.85rem;
    }

    .method-steps li,
    .problems-list li,
    .masterclass-features li,
    .consultation-process li {
        margin: 7px 0;
        padding: 8px 10px;
        line-height: 1.32;
        font-size: 0.86rem;
    }

    .education-types > .education-type:nth-child(3) .education-type-content h3,
    .education-types > .education-type:nth-child(7) .education-type-content h3 {
        font-size: 1.45rem;
        margin-bottom: 0.65rem;
    }

    .education-types > .education-type:nth-child(3) .education-type-content h4,
    .education-types > .education-type:nth-child(7) .education-type-content h4 {
        font-size: 0.98rem;
        margin: 0.75rem 0 0.45rem;
    }

    .education-types > .education-type:nth-child(3) .education-type-content p,
    .education-types > .education-type:nth-child(7) .education-type-content p {
        font-size: 0.82rem;
        line-height: 1.28;
        margin-bottom: 0.6rem;
    }

    .education-types > .education-type:nth-child(3) .method-steps li,
    .education-types > .education-type:nth-child(7) .method-steps li,
    .education-types > .education-type:nth-child(3) .problems-list li,
    .education-types > .education-type:nth-child(7) .problems-list li,
    .education-types > .education-type:nth-child(3) .masterclass-features li,
    .education-types > .education-type:nth-child(7) .masterclass-features li,
    .education-types > .education-type:nth-child(3) .consultation-process li,
    .education-types > .education-type:nth-child(7) .consultation-process li {
        margin: 5px 0;
        padding: 6px 8px;
        font-size: 0.78rem;
        line-height: 1.22;
    }
}
