/* ===== CSS Variables ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;

    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --bg-light: #f8fafc;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dark: #1e293b;

    --border: #334155;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

    --radius: 16px;
    --radius-sm: 8px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.logo-image-full {
    height: 72px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    transition: var(--transition);
}

.logo-image-full:hover {
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.6)) drop-shadow(0 0 24px rgba(14, 165, 233, 0.4));
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.footer-logo-full {
    height: 64px;
    width: auto;
    object-fit: contain;
    display: block;
    transform: translateX(-25px);
    margin: 0;
    padding: 0;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.3), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(14, 165, 233, 0.2), transparent);
    z-index: -1;
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary), var(--accent), var(--primary-light));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
}

.hero-link {
    display: block;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.hero-link:hover {
    color: var(--primary-light);
    opacity: 1;
}

/* ===== Section Styles ===== */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: var(--radius);
    gap: 16px;
}

.btn-price {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
}

/* ===== Course Details ===== */
.course-details {
    padding: 100px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Course Program ===== */
.course-program {
    padding: 100px 0;
    background: var(--bg-card);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.program-module {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.program-module:hover {
    border-color: var(--primary-light);
}

.module-number {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.program-module h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.program-module p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== Gallery ===== */
.gallery {
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.gallery-item:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--text-muted);
}

.gallery-placeholder span {
    font-size: 2rem;
    margin-bottom: 8px;
}

.gallery-placeholder p {
    font-size: 0.85rem;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 60px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius);
    padding: 60px;
    text-align: center;
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.cta-card .btn-primary {
    background: #fff;
    color: var(--primary-dark);
}

.cta-card .btn-primary:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-card .btn-price {
    background: var(--primary);
    color: #fff;
}

/* ===== Seller Info ===== */
.seller-info {
    padding: 80px 0;
}

.seller-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}

.seller-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.seller-details {
    text-align: left;
    margin-bottom: 24px;
}

.seller-details p {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.seller-details p:last-child {
    border-bottom: none;
}

.seller-details strong {
    color: var(--text-primary);
}

.seller-details a {
    color: var(--primary-light);
}

.seller-link {
    color: var(--primary-light);
    font-weight: 500;
    transition: var(--transition);
}

.seller-link:hover {
    color: var(--secondary);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.modal-email {
    display: inline-block;
    color: var(--primary-light);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 24px;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-email:hover {
    background: var(--bg-card-hover);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}



.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
}

.footer-logo-link {
    display: flex;
    align-items: center;
}

.footer-logo-small {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-logo-small:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-title {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-section-title {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
}

.footer-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    color: var(--primary);
    flex-shrink: 0;
}

.footer-contacts span {
    display: flex;
    align-items: center;
}

.footer-contacts-title {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-contacts a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-contacts a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--primary-light);
}

/* ===== Offer Page ===== */
.offer-page {
    padding: 120px 0 60px;
}

.offer-document {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
}

.offer-document h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.offer-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.offer-date {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.offer-section {
    margin-bottom: 32px;
}

.offer-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.offer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--text-primary);
}

.offer-section p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-align: justify;
}

.offer-section ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.offer-section li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

.offer-section li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-light);
}

/* Requisites */
.requisites-card {
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin-top: 16px;
}

.requisites-table {
    width: 100%;
    border-collapse: collapse;
}

.requisites-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.requisites-table tr:last-child td {
    border-bottom: none;
}

.requisites-table td:first-child {
    width: 40%;
    color: var(--text-muted);
}

.requisites-table strong {
    color: var(--text-primary);
}

.requisites-table a {
    color: var(--primary-light);
}

.offer-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.offer-footer p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-style: italic;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .header .container {
        height: 64px;
    }

    .logo-image {
        width: 32px;
        height: 32px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .course-details,
    .course-program,
    .gallery {
        padding: 60px 0;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:nth-child(5) {
        grid-column: span 2;
    }

    .offer-document {
        padding: 24px;
    }

    .offer-document h1 {
        font-size: 1.75rem;
    }

    .modal-content {
        padding: 32px 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .btn-large {
        flex-direction: column;
        gap: 8px;
        padding: 16px 24px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:nth-child(5) {
        grid-column: span 1;
    }
}

/* ===== Contact Form Section ===== */
.contact-form-section {
    padding: 80px 0;
    background: var(--bg-card);
}

.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow);
}

.contact-form-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.contact-form-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: -8px 0 0 0;
}

.form-row-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: var(--transition);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.telegram-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: 100%;
}

.telegram-input-wrapper:focus-within {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.telegram-icon {
    padding: 14px 12px;
    font-size: 1.1rem;
    border-right: 1px solid var(--border);
}

.telegram-input-wrapper .form-input {
    border: none;
    background: transparent;
    box-shadow: none;
}

.telegram-input-wrapper .form-input:focus {
    box-shadow: none;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.phone-flag {
    padding: 14px 12px;
    font-size: 1.1rem;
    border-right: 1px solid var(--border);
}

.phone-input-wrapper .form-input {
    border: none;
    background: transparent;
    box-shadow: none;
}

.phone-input-wrapper .form-input:focus {
    box-shadow: none;
}

.form-checkbox {
    margin-top: 8px;
}

.form-checkbox label,
.form-checkbox-inline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-checkbox input[type="checkbox"],
.form-checkbox-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-checkbox a,
.form-footer a {
    color: var(--primary-light);
    text-decoration: underline;
}

.form-checkbox a:hover,
.form-footer a:hover {
    color: var(--primary);
}

.btn-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.form-footer {
    margin-top: 8px;
}

.form-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-checkbox-inline {
    font-size: 0.85rem;
    color: var(--success);
}

.form-checkbox-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 24px;
    }

    .contact-form-text h2 {
        font-size: 1.75rem;
    }

    .form-row-double {
        grid-template-columns: 1fr;
    }

    .btn-submit {
        width: 100%;
    }
}