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

body {
    font-family: 'Inter', sans-serif;
    background-color: #FEFCF5;   /* тёплый светлый фон */
    color: #2C2A29;
    line-height: 1.4;
    scroll-behavior: smooth;     /* глобальный smooth, но js тоже добавим для надёжности */
}

/* цветовые переменные */
:root {
    --accent-1: #F5A65B;   /* тёплый апельсин */
    --accent-2: #E8C468;   /* золотистый */
    --accent-soft: #FBE9D2;
    --text-dark: #2C2A29;
    --text-light: #5E5B59;
    --bg-card: #FFFFFF;
    --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 20px 25px -12px rgba(0, 0, 0, 0.08);
}

/* === стили для цветных подчёркиваний / обводок (как на референсе) === */
.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

/* разноцветное подчеркивание (волной / двойное / обводка) */
.title-underline {
    position: relative;
    display: inline-block;
}
.title-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 70%;
    height: 12px;
    background: linear-gradient(120deg, #F5A65B, #F7C58F);
    border-radius: 20px;
    opacity: 0.6;
    z-index: -1;
}

/* вариант с обводкой (как у некоторых заголовков на forbusiness) */
.title-outline {
    display: inline-block;
    background: linear-gradient(120deg, #F5A65B, #E8C468);
    background-repeat: no-repeat;
    background-size: 100% 8px;
    background-position: bottom;
    padding-bottom: 6px;
}

/* кнопки и карточки */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* ГАМБУРГЕР МЕНЮ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(254, 252, 245, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    padding: 1rem 0;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}
.logo {
    margin-right: auto;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #C17B4E, #A5653A);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
/* гамбургер иконка */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #2C2A29;
    border-radius: 4px;
    transition: 0.25s ease;
}
/* меню (мобильное/десктоп) */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #FFFFFF;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    padding: 5rem 2rem 2rem;
    transition: right 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 1000;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.nav-menu.active {
    right: 0;
}
.nav-menu li a {
    font-size: 1.3rem;
    font-weight: 500;
    color: #2C2A29;
    text-decoration: none;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 6px;
}
.nav-menu li a:hover {
    color: #F5A65B;
    border-bottom-color: #F5A65B;
}
.close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.8rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #2C2A29;
}
/* оверлей */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Приветственный блок */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}
.hero-content {
    flex: 1.2;
}
.hero-photo {
    flex: 0.8;
    text-align: center;
}
.hero-photo img {
    width: 100%;
    max-width: 320px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-md);
    background: #EADBC6;
}
.hero-badge {
    background: var(--accent-soft);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #A5653A;
    margin-bottom: 1rem;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 1.2rem 0 1.5rem;
    line-height: 1.5;
}

/* карточки стоимости / принципов */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}
.price-card {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0e7db;
}
.price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.price-icon {
    font-size: 2rem;
    color: var(--accent-1);
    margin-bottom: 1rem;
}
.price-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.price-detail {
    font-size: 0.95rem;
    color: #6B6258;
    margin-top: 0.5rem;
}

/* принципы работы (список с обводками) */
.principles-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}
.principle-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #FFFBF5;
    padding: 1rem 1.5rem;
    border-radius: 60px;
    border-left: 6px solid var(--accent-1);
    transition: all 0.2s;
}
.principle-num {
    font-weight: 800;
    font-size: 2rem;
    color: var(--accent-2);
    min-width: 50px;
}
.principle-text h4 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}
.principle-text p {
    color: var(--text-light);
}

/* дипломы - галерея с прикреплением */
.diploma-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    justify-content: center;
    margin: 2rem 0 1rem;
}
.diploma-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    width: 220px;
    box-shadow: var(--shadow-sm);
    transition: 0.2s;
    cursor: pointer;
    text-align: center;
    border: 1px solid #F1E4D8;
}
.diploma-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}
.diploma-img {
    height: 170px;
    background: #f8f0e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #c9ab8a;
}
.diploma-card p {
    padding: 12px;
    font-weight: 500;
    background: white;
}
.diploma-btn {
    margin-top: 2rem;
    text-align: center;
}
.btn-download {
    background: none;
    border: 2px solid var(--accent-1);
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    color: #A5653A;
    transition: 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.btn-download:hover {
    background: var(--accent-1);
    color: white;
    border-color: var(--accent-1);
}
/* контакты */
.contacts-block {
    background: #FFF6ED;
    border-radius: 48px;
    padding: 2.5rem;
    text-align: center;
}
.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #2AABEE;
    color: white;
    padding: 1rem 2rem;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.2s;
    margin-top: 1.2rem;
}
.telegram-link:hover {
    background: #1f98da;
    transform: scale(1.02);
}
footer {
    text-align: center;
    padding: 2rem;
    color: #8B8178;
    font-size: 0.85rem;
}
/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: #FFFFFF;
    max-width: 500px;
    width: 90%;
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: fadeInUp 0.2s ease;
    position: relative;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #8B7A6B;
    transition: 0.2s;
}
.modal-close:hover { color: #2C2A29; }
.modal-icon {
    font-size: 3rem;
    background: var(--accent-soft);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
}
.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.modal-description {
    color: #5E5B59;
    margin: 1rem 0 1.8rem;
    line-height: 1.5;
}
.modal-pdf-btn {
    background-color: var(--accent-1);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: 0.2s;
    text-decoration: none;
}
.modal-pdf-btn:hover {
    background-color: #e08e3a;
    transform: scale(1.02);
}

/* адаптив */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero {
        flex-direction: column-reverse;
        text-align: center;
    }
    .principle-item {
        border-radius: 30px;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .principle-num {
        margin-bottom: 0.2rem;
    }
    .nav-container {
        justify-content: space-between;
    }
    .logo {
        font-size: 1.2rem;
    }
}
button, a {
    cursor: pointer;
}
img {
    max-width: 100%;
}