:root {
    --color-primary: #169B62;
    --color-secondary: #25B672;
    --color-dark: #333333;
    --color-light: #FFFFFF;
    --color-muted: #F5F5F5;
    --color-accent: rgba(22, 155, 98, 0.15);
    --shadow-soft: 0 20px 45px rgba(22, 155, 98, 0.15);
    --shadow-muted: 0 10px 30px rgba(51, 51, 51, 0.08);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-xxl: 5rem;
    --font-primary: 'Roboto', Arial, sans-serif;
}

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-dark);
    background: var(--color-muted);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

ul {
    list-style: none;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.section {
    padding: var(--space-xl) 0;
}

.section-light {
    background: var(--color-light);
}

.section-muted {
    background: var(--color-muted);
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(51, 51, 51, 0.75);
    max-width: 640px;
    margin-bottom: var(--space-lg);
}

.text-highlight {
    color: var(--color-primary);
    font-weight: 600;
}

.responsive-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    z-index: 999;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xs) 0;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.8px;
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(22, 155, 98, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease, transform 0.3s ease;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--color-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle::before {
    transform: translateY(-6px);
}

.nav-toggle::after {
    transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] span {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
    transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
    transform: translateY(0) rotate(-45deg);
}

.nav-menu {
    position: absolute;
    top: 100%;
    right: var(--space-sm);
    background: var(--color-light);
    box-shadow: var(--shadow-muted);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    display: none;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: 220px;
}

.nav-menu a {
    padding: var(--space-2xs) var(--space-xs);
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--color-dark);
}

.nav-menu a:hover,
.nav-menu a:focus {
    background: var(--color-accent);
}

.nav-menu.active {
    display: flex;
}

.nav-actions {
    display: none;
}

.page-hero {
    padding: var(--space-xxl) 0 var(--space-xl);
    background: var(--color-light);
    position: relative;
    overflow: hidden;
}

.page-hero .container {
    display: grid;
    gap: var(--space-lg);
}

.page-hero.homepage-hero {
    background: linear-gradient(135deg, rgba(22, 155, 98, 0.08), rgba(22, 155, 98, 0));
    min-height: 92vh;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: var(--space-sm);
}

.hero-title strong {
    color: var(--color-primary);
}

.hero-text {
    font-size: clamp(1.05rem, 2.8vw, 1.2rem);
    max-width: 560px;
    color: rgba(51, 51, 51, 0.78);
    margin-bottom: var(--space-md);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-sm);
    max-width: 640px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.metric-card span {
    display: block;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-2xs);
}

.metric-card p {
    font-size: 0.95rem;
    color: rgba(51, 51, 51, 0.7);
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: 12% 10% 0 14%;
    background: linear-gradient(135deg, rgba(22, 155, 98, 0.2), rgba(22, 155, 98, 0));
    border-radius: var(--radius-lg);
    filter: blur(48px);
    z-index: -1;
}

.hero-video {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.hero-video img {
    border-radius: 0;
}

.hero-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--color-light);
    color: var(--color-primary);
    padding: var(--space-2xs) var(--space-sm);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-muted);
}

.hero-video .floating-card {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    background: rgba(255, 255, 255, 0.95);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-muted);
    max-width: 220px;
}

.hero-video .floating-card h4 {
    font-size: 1rem;
    margin-bottom: var(--space-2xs);
    color: var(--color-primary);
}

.hero-video .floating-card p {
    font-size: 0.85rem;
    color: rgba(51, 51, 51, 0.65);
}

.cards-grid {
    display: grid;
    gap: var(--space-lg);
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.grid.featured-grid {
    gap: var(--space-lg);
}

.card {
    background: var(--color-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-muted);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px rgba(22, 155, 98, 0.18);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.card-text {
    color: rgba(51, 51, 51, 0.7);
    margin-bottom: var(--space-sm);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.meta-pill {
    background: rgba(22, 155, 98, 0.12);
    color: var(--color-primary);
    padding: var(--space-2xs) var(--space-xs);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xs);
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-light);
    border-radius: 999px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    border: none;
    cursor: pointer;
    min-height: 48px;
}

.primary-btn:hover,
.primary-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(22, 155, 98, 0.22);
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xs);
    padding: var(--space-xs) var(--space-md);
    border-radius: 999px;
    border: 1px solid rgba(22, 155, 98, 0.45);
    color: var(--color-primary);
    background: rgba(22, 155, 98, 0.08);
    font-weight: 600;
    min-height: 48px;
}

.secondary-btn:hover,
.secondary-btn:focus {
    background: rgba(22, 155, 98, 0.18);
}

.stats-panel {
    display: grid;
    gap: var(--space-md);
}

.stats-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    border: 1px solid rgba(22, 155, 98, 0.08);
}

.stats-card strong {
    font-size: 1.1rem;
    color: var(--color-primary);
}

.timeline {
    display: grid;
    gap: var(--space-sm);
    position: relative;
}

.timeline-step {
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    background: var(--color-light);
    box-shadow: var(--shadow-muted);
    position: relative;
    padding-left: calc(var(--space-lg));
}

.timeline-step::before {
    content: attr(data-step);
    position: absolute;
    left: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.testimonial-card {
    padding: var(--space-lg);
    display: grid;
    gap: var(--space-sm);
    background: linear-gradient(135deg, rgba(22, 155, 98, 0.08), rgba(22, 155, 98, 0));
    border-radius: var(--radius-lg);
}

.testimonial-card blockquote {
    font-size: 1.05rem;
    font-style: italic;
    color: rgba(51, 51, 51, 0.8);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.testimonial-author img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-author div strong {
    display: block;
    font-size: 1rem;
    color: var(--color-primary);
}

.testimonial-author div span {
    font-size: 0.9rem;
    color: rgba(51, 51, 51, 0.65);
}

.highlight-grid {
    display: grid;
    gap: var(--space-md);
}

.highlight-card {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--color-light);
    box-shadow: var(--shadow-muted);
}

.highlight-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
}

.highlight-card p {
    color: rgba(51, 51, 51, 0.7);
}

.two-column {
    display: grid;
    gap: var(--space-lg);
}

.feature-list {
    display: grid;
    gap: var(--space-sm);
}

.feature-item {
    display: grid;
    gap: var(--space-2xs);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    background: rgba(22, 155, 98, 0.08);
    border: 1px solid rgba(22, 155, 98, 0.12);
}

.feature-item h4 {
    font-size: 1.05rem;
    color: var(--color-primary);
}

.detail-card {
    background: var(--color-light);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-muted);
}

.detail-card ul {
    display: grid;
    gap: var(--space-2xs);
    margin-top: var(--space-sm);
    margin-left: var(--space-sm);
}

.detail-card ul li {
    list-style: disc;
    margin-left: var(--space-sm);
    color: rgba(51, 51, 51, 0.75);
}

.instructor-grid {
    display: grid;
    gap: var(--space-lg);
}

.instructor-card {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-muted);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.instructor-card img {
    height: 260px;
    width: 100%;
    border-radius: 0;
}

.instructor-content {
    padding: var(--space-lg);
    display: grid;
    gap: var(--space-sm);
}

.instructor-content h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
}

.instructor-content span {
    font-size: 0.95rem;
    color: rgba(51, 51, 51, 0.65);
}

.instructor-content ul {
    display: grid;
    gap: var(--space-2xs);
}

.callout {
    background: linear-gradient(135deg, rgba(22, 155, 98, 0.18), rgba(22, 155, 98, 0.05));
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    display: grid;
    gap: var(--space-sm);
    text-align: center;
    box-shadow: var(--shadow-muted);
}

.callout h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 700;
}

.callout p {
    color: rgba(51, 51, 51, 0.75);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.form-card {
    background: var(--color-light);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-muted);
}

.form-grid {
    display: grid;
    gap: var(--space-sm);
}

.form-group {
    display: grid;
    gap: var(--space-2xs);
}

.form-group label {
    font-weight: 600;
    color: var(--color-dark);
}

.form-control {
    padding: var(--space-sm);
    border: 1px solid rgba(51, 51, 51, 0.12);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.85);
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 155, 98, 0.25);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.support-card {
    background: rgba(22, 155, 98, 0.08);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: grid;
    gap: var(--space-sm);
    border: 1px solid rgba(22, 155, 98, 0.15);
}

.support-info {
    display: grid;
    gap: var(--space-2xs);
}

.support-info h4 {
    font-size: 1.05rem;
    color: var(--color-primary);
}

.support-info p {
    color: rgba(51, 51, 51, 0.75);
}

.contact-links {
    display: grid;
    gap: var(--space-2xs);
}

.contact-links a {
    font-weight: 600;
    color: var(--color-primary);
    word-break: break-word;
}

.faq-group {
    display: grid;
    gap: var(--space-sm);
}

.faq-item {
    background: var(--color-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-muted);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
}

.faq-item p {
    color: rgba(51, 51, 51, 0.7);
}

.policy-section {
    padding-bottom: var(--space-lg);
}

.policy-section h2 {
    font-size: 1.6rem;
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
}

.policy-section p,
.policy-section ul {
    color: rgba(51, 51, 51, 0.75);
    margin-bottom: var(--space-sm);
}

.policy-section ul {
    padding-left: var(--space-md);
}

.policy-section ul li {
    list-style: disc;
    margin-bottom: var(--space-2xs);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-md);
    background: var(--color-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-muted);
}

.cookie-table th,
.cookie-table td {
    padding: var(--space-sm);
    text-align: left;
    border-bottom: 1px solid rgba(51, 51, 51, 0.08);
    font-size: 0.95rem;
}

.cookie-table th {
    background: rgba(22, 155, 98, 0.12);
    color: var(--color-primary);
    font-weight: 600;
}

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

.site-footer {
    background: #121212;
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-xl) 0 var(--space-lg);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    gap: var(--space-lg);
}

.footer-brand {
    display: grid;
    gap: var(--space-sm);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 440px;
}

.footer-nav {
    display: grid;
    gap: var(--space-sm);
}

.footer-nav-group {
    display: grid;
    gap: var(--space-xs);
}

.footer-nav-group h4 {
    font-size: 1rem;
    color: var(--color-light);
    font-weight: 600;
}

.footer-nav-group a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.footer-nav-group a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: var(--space-lg);
    text-align: center;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    align-items: center;
}

.footer-contacts a {
    color: var(--color-primary);
    font-weight: 600;
}

.footer-contacts a:hover {
    opacity: 0.8;
}

.cookie-banner {
    position: fixed;
    bottom: var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    max-width: 420px;
    width: calc(100% - 2 * var(--space-sm));
    background: rgba(18, 18, 18, 0.9);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    display: none;
    gap: var(--space-sm);
    z-index: 1200;
}

.cookie-banner.active {
    display: grid;
}

.cookie-banner h4 {
    font-size: 1.1rem;
    color: var(--color-light);
}

.cookie-banner p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.cookie-actions {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.cookie-btn {
    flex: 1 1 48%;
    text-align: center;
    padding: var(--space-xs);
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
}

.cookie-accept {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-light);
}

.cookie-decline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-light);
    border-color: rgba(255, 255, 255, 0.3);
}

.thankyou-wrapper {
    display: grid;
    gap: var(--space-md);
    justify-items: center;
    text-align: center;
    padding: var(--space-xxl) var(--space-sm);
}

.thankyou-wrapper h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: var(--color-primary);
    font-weight: 700;
}

.thankyou-wrapper p {
    font-size: 1.05rem;
    color: rgba(51, 51, 51, 0.75);
    max-width: 520px;
}

@media (min-width: 768px) {
    .nav-menu {
        position: static;
        display: flex;
        background: transparent;
        box-shadow: none;
        flex-direction: row;
        gap: var(--space-sm);
        padding: 0;
        min-width: auto;
    }

    .nav-menu a {
        padding: var(--space-xs) var(--space-sm);
    }

    .nav-toggle {
        display: none;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
    }

    .page-hero .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
    }

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

    .grid.featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stats-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .highlight-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .two-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-contacts {
        flex-direction: row;
        gap: var(--space-sm);
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid.featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stats-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cookie-banner {
        max-width: 520px;
        padding: var(--space-lg) var(--space-xl);
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .card {
        padding: var(--space-md);
    }

    .form-card {
        padding: var(--space-lg);
    }

    .support-card {
        padding: var(--space-md);
    }

    .cookie-actions {
        flex-direction: column;
    }
}