:root {
    --bg-main: #F9F6F0;
    --bg-white: #FFFFFF;
    --bg-dark-green: #5D6855;
    --bg-light-olive: #A8B3A0;
    --bg-footer: #E8DFC9;
    --text-dark: #2C2C2C;
    --text-gray: #757575;
    --accent-badge: #E8DFC9;
    --border-soft: #CCCCCC;
    --radius-card: 24px;
    --radius-button: 40px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-main);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.image-placeholder {
    width: 100%;
    background: #D9D9D9;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* HEADER */
.nav-toggle {
    display: none;
}

.main-nav {
    gap: 20px;
}

.main-nav a {
    white-space: nowrap;
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 48px;
    align-items: center;
    padding: 56px 0 72px;
}

.hero-content {
    min-width: 0;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-badge);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    color: #6D6048;
}

.hero-title {
    font-size: 52px;
    line-height: 1.08;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-text {
    font-size: 18px;
    line-height: 1.55;
    color: var(--text-gray);
    margin-bottom: 28px;
    max-width: 620px;
}

.hero-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    list-style: none;
    margin-bottom: 34px;
    max-width: 620px;
}

.hero-list li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-dark);
}

.hero-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg-light-olive);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-image-wrapper {
    width: 100%;
    height: 460px;
    border-radius: 40px 120px 40px 40px;
    overflow: hidden;
}

.hero-image {
    height: 100%;
}

/* SHARED SECTION */
.intro-section,
.knowledge-section,
.prices-section,
.reviews-section {
    padding: 64px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 36px;
}

.section-pretitle {
    font-size: 15px;
    color: var(--bg-light-olive);
    margin-bottom: 8px;
    font-weight: 700;
}

.section-title {
    font-size: 36px;
    line-height: 1.18;
    font-weight: 650;
    max-width: 760px;
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.service-card,
.topic-card,
.price-card,
.review-card {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-card);
    padding: 28px;
}

.service-card h3 {
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 14px;
}

.service-card p,
.approach-text,
.price-card p,
.review-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
}

/* APPROACH */
.approach-section {
    padding: 24px 0 64px;
}

.approach-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 42px;
    align-items: center;
    background: var(--bg-dark-green);
    color: #FFFFFF;
    border-radius: 32px;
    padding: 48px 56px;
}

.approach-card .section-pretitle {
    color: #D8E0D2;
}

.approach-card .section-title,
.approach-card .approach-text {
    color: #FFFFFF;
}

.approach-text {
    max-width: 700px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.82);
}

.work-result {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 28px;
}

.work-result h3 {
    font-size: 20px;
    margin-bottom: 18px;
}

.work-result ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.work-result li {
    position: relative;
    padding-left: 22px;
    line-height: 1.45;
}

.work-result li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E8DFC9;
}

/* KNOWLEDGE BASE */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.topic-card {
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

.topic-title {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 650;
    margin-bottom: 14px;
}

.topic-text {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.55;
    margin-bottom: 28px;
    flex-grow: 1;
}

.topic-more {
    margin-top: auto;
    font-size: 14px;
    color: var(--bg-dark-green);
    text-decoration: none;
    font-weight: 700;
}

/* PRICES */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.price-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.price-card--featured {
    border-color: rgba(93, 104, 85, 0.25);
    box-shadow: 0 16px 36px rgba(93, 104, 85, 0.12);
}

.price-label {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

.price-value {
    font-size: 34px;
    line-height: 1;
    font-weight: 750;
    color: var(--bg-dark-green);
    margin-bottom: 22px;
}

/* REVIEWS */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.review-card {
    display: flex;
    flex-direction: column;
}

.review-card p {
    flex-grow: 1;
}

.review-author {
    margin-top: 22px;
    font-weight: 750;
    color: var(--bg-dark-green);
}

/* CTA BANNER */
.cta-banner {
    background: var(--bg-dark-green);
    border-radius: 32px;
    padding: 48px 56px;
    margin: 44px 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
    gap: 36px;
    align-items: center;
}

.cta-left h3 {
    color: #FFFFFF;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 650;
    margin-bottom: 16px;
}

.cta-left p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    max-width: 520px;
    margin-bottom: 28px;
    line-height: 1.55;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: var(--bg-dark-green);
    border-radius: var(--radius-button);
    padding: 13px 28px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
}

.cta-note {
    display: grid;
    gap: 12px;
}

.cta-note span {
    display: block;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 14px;
}

/* FOOTER */
.footer-wrapper {
    background: var(--bg-footer);
    margin-top: 80px;
}

.footer {
    padding-block: 60px 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-block {
    max-width: 250px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #D9D9D9;
}

.footer-logo-text {
    font-weight: 700;
}

.footer-description {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 16px;
    line-height: 1.5;
}

.footer-column-title {
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text-dark);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #D9D9D9;
}

.footer-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-gray);
}

/* RESPONSIVE */
@media (max-width: 1080px) {
    .main-nav {
        gap: 14px;
        font-size: 14px;
    }

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

    .hero-image-wrapper {
        max-width: 620px;
        height: 360px;
    }

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

@media (max-width: 960px) {
    .container {
        padding: 0 24px;
    }

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

    .approach-card,
    .cta-banner {
        grid-template-columns: 1fr;
    }

    .footer {
        padding-inline: 0;
    }

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

@media (max-width: 820px) {
    .header-right {
        position: relative;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
        border: 1px solid var(--border-soft);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.55);
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
    }

    .nav-toggle span {
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: var(--text-dark);
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        z-index: 50;
        width: min(280px, calc(100vw - 40px));
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 10px;
        background: #FFFFFF;
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 18px;
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 14px;
        border-radius: 10px;
    }

    .main-nav a:hover {
        background: #F4EFE5;
    }
}

@media (max-width: 720px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 36px 0 52px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-list,
    .services-grid,
    .topics-grid,
    .prices-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-wrapper {
        height: 300px;
        border-radius: 28px 80px 28px 28px;
    }

    .intro-section,
    .knowledge-section,
    .prices-section,
    .reviews-section {
        padding: 46px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .approach-card,
    .cta-banner {
        border-radius: 24px;
        padding: 32px 24px;
    }

    .price-value {
        font-size: 30px;
    }

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

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

@media (max-width: 480px) {
    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .hero-buttons .hero-btn-primary,
    .hero-buttons .hero-btn-secondary,
    .cta-btn {
        width: 100%;
    }

    .service-card,
    .topic-card,
    .price-card,
    .review-card {
        padding: 24px;
    }

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