/* --- Base & Reset --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Учитываем высоту фиксированного меню при прокрутке */
}

:root {
    --primary-color: #007BFF;
    --secondary-color: #0056b3;
    --text-color: #333;
    --bg-light: #f4f7f6;
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.1);
    --radius-md: 15px;
    --radius-lg: 25px;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

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

/* --- Navbar (Меню) --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0px 2px 15px rgb(0 123 255 / 24%);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 50px;
    display: block;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* --- Sections --- */
section { padding: 80px 0; }
h1, h2, h3 { font-weight: 700; color: #222; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--primary-color); margin: 15px auto 0; border-radius: 2px;
}

/* --- Hero Section --- */
.course-hero-custom {
    padding: 140px 0 80px; /* Increased top padding for fixed navbar */
    background: linear-gradient(135deg, #fdfbfb 0%, #f1f4f8 100%);
    margin-top: 0;
}
.course-hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}
.course-hero-content {
    flex: 1;
}
.course-hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}
.course-hero-content h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; }
.hero-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff !important; padding: 15px 40px; border-radius: 50px;
    font-weight: 600; box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease; text-decoration: none; display: inline-block;
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(0, 123, 255, 0.4); }

/* Reduced image size in header */
.course-hero-image img { 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-md); 
    max-width: 400px; /* Reduced from 100% */
    width: 100%; 
    height: auto; 
    object-fit: cover;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.floating-animation {
    animation: float 4s ease-in-out infinite;
}

/* --- Features --- */
.feature-section { background-color: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; }
.feature-card {
    background: #fff; padding: 40px 30px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); transition: all 0.3s ease; border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }

/* --- Expert / Case Studies --- */
.expert-section { background-color: #fff; }
.expert-section--alt { background-color: var(--bg-light); }
.expert-container { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
/* Checkerboard layout: reverse order for alt sections */
.expert-section--alt .expert-container { flex-direction: row-reverse; }

.expert-image-wrapper, .expert-content-wrapper { flex: 1; min-width: 300px; }

/* Center image and reduce size */
.expert-image-wrapper { display: flex; justify-content: center; }
.expert-image-wrapper img { 
    width: 100%; max-width: 450px; height: auto; 
    border-radius: var(--radius-md); box-shadow: var(--shadow-md); 
}

.expert-subtitle {
    color: var(--primary-color); font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; font-size: 0.9rem; display: block; margin-bottom: 10px;
}
.expert-description ul { list-style: none; padding: 0; }
.expert-description ul li { margin-bottom: 15px; }

/* Warning Well */
.warning-well {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: var(--shadow-sm);
}

/* --- Timer --- */
.timer-wrapper {
    text-align: center;
    margin: 0 auto 30px;
    background: #f0f8ff;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #cce5ff;
    display: none; /* Скрываем таймер по просьбе */
}
.timer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.timer-clock {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}
.timer-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}
.timer-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    margin-top: 5px;
}
.timer-separator {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-top: -20px;
}

/* --- Form --- */
.payment-section { background: #fff; padding: 100px 0; }
/* Центрирование заголовков в секции оплаты */
.payment-section .section-header { text-align: center; }
.section-subtitle { font-size: 1.2rem; color: #666; margin-top: -10px; margin-bottom: 30px; }

.payment-form {
    max-width: 500px; margin: 40px auto 0; background: #fff; padding: 50px;
    border-radius: 30px; box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.02);
}
.form-group {
    margin-bottom: 20px;
}
.payment-form input {
    width: 100%; padding: 0 25px; height: 55px;
    border: 2px solid transparent; border-radius: 10px;
    font-size: 1rem; transition: all 0.3s; background: #f4f6f8;
    box-sizing: border-box;
    color: #333; font-weight: 500;
}
.payment-form input:focus {
    border-color: var(--primary-color); background: #fff; outline: none;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.1);
}
.iti { width: 100%; } /* Fix for intl-tel-input */

.btn-submit {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); color: white;
    font-size: 1.1rem; padding: 18px; border: none; border-radius: 10px;
    cursor: pointer; font-weight: 700; letter-spacing: 0.5px; transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3); width: 100%;
    margin-top: 10px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(0, 123, 255, 0.4); }

/* --- Footer --- */
.site-footer { background-color: #191b45; color: #a9b2c9; padding: 40px 0; font-size: 0.95rem; }
.footer-bottom { text-align: center; }
.footer-copyright p { margin: 0; }
.umbrella-link { color: #fff; text-decoration: none; }

/* --- Arrow Up --- */
.arrow-up {
    width: 35px; height: 35px; background-color: #007BFF; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    position: fixed; bottom: 20px; right: 20px; cursor: pointer;
    opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 1000;
}
.arrow-up::before {
    content: ''; border: solid white; border-width: 0 2px 2px 0;
    display: inline-block; padding: 4px; transform: rotate(-135deg);
}
.arrow-up.visible { opacity: 1; visibility: visible; }

/* --- Responsive --- */
@media (max-width: 1023px) {
    .navbar-toggler { display: block; }
    .navbar-nav {
        flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%;
        background: #fff; border-radius: 0 0 20px 20px; padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        opacity: 0; visibility: hidden; transform: translateY(-10px);
        transition: all 0.3s;
    }
    .navbar-nav.show { opacity: 1; visibility: visible; transform: translateY(0); }
}

@media (max-width: 768px) {
    .course-hero-wrapper { flex-direction: column; text-align: center; }
    .course-hero-content h1 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .expert-container { flex-direction: column; }
    .expert-image-wrapper { order: -1; }
    .payment-form { padding: 25px; }
    .course-hero-image img { max-width: 80%; }
}

/* --- Form Success Message --- */
.form-success-message {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInScale 0.5s ease-out;
}

.form-success-message .success-icon {
    font-size: 4rem;
    color: #28a745; /* green */
    margin-bottom: 20px;
}

.form-success-message h3 {
    color: #191b45;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.form-success-message p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.highlight {
    color: #007BFF;
    font-weight: bold;
}