:root {
    /* Colors */
    --exam-color-primary: #eef6f0;
    --exam-color-secondary: #47d161;
    --exam-color-accent: #e052c6;
    --exam-color-dark: #265930;
    --exam-color-white: #ffffff;
    --exam-color-text: #333333;

    /* Typography */
    --exam-font-heading: 'Montserrat', serif;
    --exam-font-body: 'Lato', sans-serif;
    --exam-font-size-base: 16px;
    --exam-font-size-h1: 3rem;
    --exam-font-size-h2: 2.25rem;
    --exam-font-size-h3: 1.75rem;

    /* Spacing */
    --exam-space-xs: 0.35rem;
    --exam-space-sm: 0.65rem;
    --exam-space-md: 1.25rem;
    --exam-space-lg: 2.25rem;
    --exam-space-xl: 3.5rem;

    /* Layout */
    --exam-container-max: 1200px;
    --exam-radius-sm: 4px;
    --exam-radius-md: 8px;
    --exam-radius-lg: 12px;

    /* Shadows */
    --exam-shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --exam-shadow-md: 0 4px 8px rgba(0,0,0,0.12);
}

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

body {
    font-family: var(--exam-font-body);
    background-color: var(--exam-color-primary);
    color: var(--exam-color-text);
    line-height: 1.6;
    font-size: var(--exam-font-size-base);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--exam-font-heading);
    color: var(--exam-color-dark);
    margin-bottom: var(--exam-space-sm);
}

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

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

a:hover {
    opacity: 0.8;
}

/* Utilities */
.exam-container {
    max-width: var(--exam-container-max);
    margin: 0 auto;
    padding: 0 var(--exam-space-md);
    width: 100%;
}

.exam-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: var(--exam-radius-md);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    font-family: var(--exam-font-heading);
}

.exam-btn--primary {
    background-color: var(--exam-color-secondary);
    color: var(--exam-color-white);
}

.exam-btn--secondary {
    background-color: transparent;
    border: 2px solid var(--exam-color-secondary);
    color: var(--exam-color-secondary);
}

.exam-card {
    background-color: var(--exam-color-white);
    border-radius: var(--exam-radius-lg);
    padding: var(--exam-space-sm);
    box-shadow: none;
}

/* Header */
.exam-header {
    background-color: var(--exam-color-white);
    box-shadow: var(--exam-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--exam-space-xs) 0;
}

.exam-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exam-header__logo {
    font-family: var(--exam-font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--exam-color-dark);
}

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

.exam-nav__list {
    display: flex;
    list-style: none;
    gap: var(--exam-space-sm);
}

.exam-nav__link {
    color: var(--exam-color-dark);
    font-weight: 600;
}

/* Burger button */
.exam-burger {
    display: none;
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 110;
}
.exam-burger__line {
    position: absolute;
    left: 50%;
    width: 22px;
    height: 2px;
    margin-left: -11px;
    background: var(--exam-color-dark);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.exam-burger__line:nth-child(1) {
    top: 10px;
}
.exam-burger__line:nth-child(2) {
    top: 50%;
    margin-top: -1px;
}
.exam-burger__line:nth-child(3) {
    bottom: 10px;
}
/* Крестик при открытом меню */
body.exam-menu-open .exam-burger__line:nth-child(1) {
    top: 50%;
    margin-top: -1px;
    transform: rotate(45deg);
}
body.exam-menu-open .exam-burger__line:nth-child(2) {
    opacity: 0;
}
body.exam-menu-open .exam-burger__line:nth-child(3) {
    bottom: auto;
    top: 50%;
    margin-top: -1px;
    transform: rotate(-45deg);
}

/* Mobile menu panel */
.exam-nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--exam-color-white);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 105;
    padding: 70px var(--exam-space-sm) var(--exam-space-sm);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}
body.exam-menu-open .exam-nav-mobile {
    transform: translateX(0);
}
.exam-nav-mobile__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--exam-space-sm);
}
.exam-nav-mobile__link {
    display: block;
    padding: var(--exam-space-xs) 0;
    font-weight: 600;
    color: var(--exam-color-dark);
    font-size: 1.1rem;
}
.exam-nav-mobile__cta {
    margin-top: var(--exam-space-sm);
    text-align: center;
}

.exam-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 104;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
body.exam-menu-open .exam-nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Состояния exam-nav при открытом/закрытом бургер-меню */

@media (max-width: 768px) {
  .exam-nav.exam-nav--closed {display: none; }
.exam-nav.exam-nav--open { display: flex;}
    .exam-nav .exam-btn {
        display: none;
    }
    .exam-burger {
        display: flex;
        margin-left: auto;
    }
    .exam-nav-mobile,
    .exam-nav-overlay {
        display: block;
    }
}

/* Hero */
.exam-hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.exam-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.exam-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 2;
}

.exam-hero__content {
    position: relative;
    z-index: 3;
    color: var(--exam-color-white);
}

.exam-hero__title {
    font-size: var(--exam-font-size-h1);
    color: var(--exam-color-white);
    margin-bottom: var(--exam-space-sm);
}

.exam-hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--exam-space-sm);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
.exam-section {
    padding: var(--exam-space-xl) 0;
}

.exam-section__title {
    text-align: center;
    font-size: var(--exam-font-size-h2);
    margin-bottom: var(--exam-space-md);
}

/* Features */
.exam-features__grid {
    display: grid;
    gap: var(--exam-space-md);
}

.exam-feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--exam-space-sm);
    align-items: center;
}

.exam-feature-card:nth-child(even) .exam-feature-card__content {
    order: 2;
}

.exam-feature-card__content {
    padding: var(--exam-space-sm);
}

.exam-feature-card__title {
    color: var(--exam-color-secondary);
    font-size: var(--exam-font-size-h3);
}

.exam-feature-card__image img {
    border-radius: var(--exam-radius-lg);
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .exam-feature-card {
        grid-template-columns: 1fr;
    }
    .exam-feature-card:nth-child(even) .exam-feature-card__content {
        order: 0;
    }
}

/* Testimonials */
.exam-testimonials {
    background-color: var(--exam-color-white);
}

.exam-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--exam-space-sm);
}

.exam-testimonial {
    background-color: var(--exam-color-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.exam-testimonial__text {
    font-style: italic;
    margin-bottom: var(--exam-space-sm);
}

.exam-testimonial__author {
    display: flex;
    align-items: center;
    gap: var(--exam-space-sm);
    font-weight: 700;
}

.exam-testimonial__author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* Partners */
.exam-partners__track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--exam-space-md);
    align-items: center;
}

.exam-partners__track img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.exam-partners__track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer */
.exam-footer {
    background-color: var(--exam-color-dark);
    color: var(--exam-color-white);
    padding: var(--exam-space-md) 0;
    text-align: center;
}

.exam-footer__col {
    display: flex;
    flex-direction: column;
    gap: var(--exam-space-sm);
}

.exam-footer__nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--exam-space-sm);
}

.exam-footer__link {
    color: rgba(255,255,255,0.8);
}

.exam-footer__link:hover {
    color: var(--exam-color-secondary);
}

/* Cookie Banner */
.exam-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--exam-color-dark);
    color: var(--exam-color-white);
    padding: var(--exam-space-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.exam-cookie-banner a {
    text-decoration: underline;
}

.exam-cookie-banner__actions {
    display: flex;
    gap: var(--exam-space-sm);
}

@media (max-width: 768px) {
    .exam-cookie-banner {
        flex-direction: column;
        gap: var(--exam-space-sm);
        text-align: center;
    }
}

/* Page Specifics */
.exam-text--prose .exam-text__content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.exam-text--prose p {
    margin-bottom: var(--exam-space-xs);
}

.exam-quote__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--exam-space-md);
    align-items: center;
}

.exam-quote__content blockquote {
    font-size: 1.5rem;
    font-family: var(--exam-font-heading);
    color: var(--exam-color-dark);
    border-left: 4px solid var(--exam-color-secondary);
    padding-left: var(--exam-space-sm);
}

.exam-quote__image img {
    border-radius: var(--exam-radius-lg);
}

.exam-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--exam-space-sm);
    text-align: center;
}

.exam-stat-item__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--exam-color-secondary);
}

.exam-contact__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--exam-space-md);
}

.exam-form__group {
    margin-bottom: var(--exam-space-sm);
}

.exam-form__label {
    display: block;
    margin-bottom: var(--exam-space-xs);
    font-weight: 700;
}

.exam-form__input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: var(--exam-radius-md);
}

.exam-faq__grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: var(--exam-space-sm);
}

.exam-faq__question {
    color: var(--exam-color-secondary);
    margin-bottom: var(--exam-space-xs);
}

.exam-legal__section {
    margin-bottom: var(--exam-space-sm);
}
.exam-legal__section h2 {
    font-size: 1.25rem;
    margin-top: var(--exam-space-sm);
    margin-bottom: var(--exam-space-xs);
}
.exam-legal__updated {
    margin-bottom: var(--exam-space-sm);
    opacity: 0.85;
}

@media (max-width: 768px) {
    .exam-quote__inner, .exam-contact__split {
        grid-template-columns: 1fr;
    }
    .exam-stats__grid {
        grid-template-columns: 1fr 1fr;
    }
}
