* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #e9edf6;
    color: #1e1e1e;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.page-bg {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, #e9c59e 0, #e9c59e 10%, transparent 10%),
        radial-gradient(circle at bottom right, #b8d9cb 0, #b8d9cb 12%, transparent 12%),
        radial-gradient(circle at bottom center, #c9d5ef 0, #c9d5ef 12%, transparent 12%),
        #dfe5f1;
    padding: 28px 14px;
}

.site-shell {
    max-width: 1250px;
    margin: 0 auto;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.7);
    backdrop-filter: blur(6px);
    border-radius: 28px;
    padding: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.main-card {
    background: #f7f8f6;
    border-radius: 24px;
    padding: 14px;
}

/* HEADER */
.topbar {
    background: #f1f3ef;
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1a028, #ffd16c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}

.menu {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #444;
}

.menu a {
    transition: 0.2s ease;
}

.menu a:hover {
    color: #111;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 14px;
}

.btn-dark {
    background: #111;
    color: #fff;
}

.btn-orange {
    background: #f7a526;
    color: #fff;
    box-shadow: 0 8px 20px rgba(247,165,38,0.28);
}

.btn-light {
    background: #edf0f4;
    color: #222;
}

/* HERO */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 14px;
    margin-top: 14px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-box {
    background: #2f6549;
    color: #fff;
    border-radius: 24px;
    padding: 22px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    margin-bottom: 16px;
}

.hero-box h1 {
    font-size: 54px;
    line-height: 1.02;
    margin: 0 0 14px;
    letter-spacing: -1px;
}

.hero-box p {
    margin: 0;
    color: rgba(255,255,255,0.88);
    max-width: 540px;
    font-size: 15px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.stat-card {
    background: #eceeea;
    border-radius: 18px;
    padding: 18px;
}

.stat-line {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
}

.stat-line strong {
    display: block;
    font-size: 22px;
    color: #111;
    margin-bottom: 5px;
}

.review-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.review-score {
    font-size: 26px;
    font-weight: 700;
}

.hero-image {
    background: #eceeea;
    border-radius: 24px;
    overflow: hidden;
    min-height: 390px;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
    display: block;
}

/* TRUSTED */
.trusted {
    padding: 28px 12px 8px;
    text-align: center;
}

.trusted h2 {
    margin: 0 0 18px;
    font-size: 44px;
    letter-spacing: -1px;
}

.trusted-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    color: #9aa1aa;
    font-size: 20px;
    font-weight: 700;
    align-items: center;
}

/* SECTIONS */
.section,
.single-section {
    margin-top: 26px;
    background: #ffffff;
    border-radius: 24px;
    padding: 26px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.section-header h3 {
    margin: 0;
    font-size: 36px;
    letter-spacing: -0.5px;
}

.section-header p {
    margin: 8px 0 0;
    color: #666;
    max-width: 700px;
    line-height: 1.7;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

.about-card {
    background: #f6f7fb;
    border-radius: 18px;
    padding: 20px;
}

.about-card h4 {
    margin: 0 0 10px;
    font-size: 20px;
}

.about-card p {
    margin: 0;
    color: #666;
    line-height: 1.7;
    font-size: 14px;
}

/* COURSES */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.course-card {
    background: #f6f7fb;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-image {
    height: 210px;
    background: #dde3ea;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-body h4 {
    margin: 0 0 10px;
    font-size: 23px;
    line-height: 1.2;
}

.course-body p {
    margin: 0 0 15px;
    color: #666;
    line-height: 1.7;
    font-size: 14px;
    flex: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    color: #444;
    font-size: 14px;
    flex-wrap: wrap;
}

.course-price {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 14px;
}

.course-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* BLOG */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.blog-card {
    background: #f6f7fb;
    border-radius: 18px;
    padding: 20px;
}

.blog-card .tag {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e4ebf7;
    color: #35506e;
    font-size: 12px;
    margin-bottom: 12px;
    font-weight: 700;
}

.blog-card h4 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.25;
}

.blog-card p {
    margin: 0 0 16px;
    color: #666;
    line-height: 1.7;
    font-size: 14px;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 20px;
}

.contact-card {
    background: #f6f7fb;
    border-radius: 18px;
    padding: 20px;
}

.contact-card h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 24px;
}

.contact-list {
    display: grid;
    gap: 10px;
    color: #555;
    line-height: 1.7;
}

.contact-form {
    display: grid;
    gap: 12px;
}

.contact-form input,
.contact-form textarea,
.input,
select,
textarea {
    width: 100%;
    border: 1px solid #d7dde8;
    background: #fff;
    border-radius: 14px;
    padding: 14px 15px;
    font-size: 15px;
    font-family: Arial, sans-serif;
}

.contact-form textarea,
textarea {
    min-height: 130px;
    resize: vertical;
}

/* SINGLE PAGE */
.single-banner {
    background: linear-gradient(135deg, #2f6549, #3d7d5c);
    color: #fff;
    border-radius: 20px;
    padding: 26px;
    margin-bottom: 20px;
}

.single-banner img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 16px;
    margin-top: 16px;
}

.single-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.single-card {
    background: #f6f7fb;
    border-radius: 18px;
    padding: 20px;
}

.single-card h1,
.single-card h2,
.single-card h3,
.single-card h4 {
    margin-top: 0;
}

/* BASKET */
.table-wrap {
    overflow-x: auto;
}

.basket-table {
    width: 100%;
    border-collapse: collapse;
}

.basket-table th,
.basket-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e8ef;
    text-align: left;
}

.form-grid {
    display: grid;
    gap: 14px;
}

.msg {
    padding: 13px 15px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.success {
    background: #eaf8ee;
    border: 1px solid #bfe5c9;
    color: #17643a;
}

.error {
    background: #fff1f1;
    border: 1px solid #efc3c3;
    color: #a32020;
}

/* FOOTER */
.footer {
    margin-top: 24px;
    background: #111;
    color: #fff;
    border-radius: 22px;
    padding: 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 20px;
}

.footer h4 {
    margin: 0 0 12px;
    font-size: 18px;
}

.footer p,
.footer a {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 18px;
    padding-top: 18px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

/* TABLET */
@media (max-width: 1100px) {
    .hero-grid,
    .contact-grid,
    .footer-grid,
    .about-grid,
    .courses-grid,
    .blog-grid,
    .single-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trusted-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-box h1 {
        font-size: 42px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .page-bg {
        padding: 12px;
    }

    .site-shell {
        padding: 10px;
        border-radius: 20px;
    }

    .main-card {
        padding: 10px;
        border-radius: 18px;
    }

    .topbar {
        display: block;
        padding: 14px;
    }

    .brand {
        justify-content: space-between;
        font-size: 18px;
    }

    .mobile-toggle {
        display: block;
        position: absolute;
        top: 16px;
        right: 18px;
    }

    .menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        margin-top: 14px;
        background: #fff;
        border-radius: 14px;
        overflow: hidden;
        border: 1px solid #e3e6ed;
    }

    .menu.active {
        display: flex;
    }

    .menu a {
        padding: 14px 16px;
        border-bottom: 1px solid #eceff4;
    }

    .menu a:last-child {
        border-bottom: 0;
    }

    .top-actions {
        margin-top: 14px;
        width: 100%;
    }

    .top-actions .btn {
        width: 100%;
    }

    .hero-grid,
    .mini-stats,
    .contact-grid,
    .footer-grid,
    .about-grid,
    .courses-grid,
    .blog-grid,
    .single-grid {
        grid-template-columns: 1fr;
    }

    .hero-box {
        min-height: auto;
        padding: 22px 18px;
    }

    .hero-box h1 {
        font-size: 30px;
        text-align: center;
    }

    .hero-box p {
        text-align: center;
        font-size: 14px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        min-height: 240px;
    }

    .hero-image img {
        min-height: 240px;
    }

    .trusted h2,
    .section-header h3 {
        font-size: 28px;
    }

    .trusted-row {
        grid-template-columns: repeat(2, 1fr);
        font-size: 16px;
    }

    .course-body h4 {
        font-size: 20px;
    }

    .course-price {
        font-size: 24px;
    }

    .course-actions {
        flex-direction: column;
    }

    .course-actions .btn {
        width: 100%;
    }

    .section,
    .single-section {
        padding: 18px;
        border-radius: 18px;
    }

    .single-banner {
        padding: 20px;
    }

    .footer {
        padding: 20px;
    }

    .basket-table th,
    .basket-table td {
        font-size: 14px;
        padding: 10px 8px;
    }
}