:root {
    --bg-white: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #4A4A4A;
    --blue: #0066FF;
    --orange: #FF9900;
    --pink: #FFC0CB;
    --lime: #32CD32;
    --black: #000000;
    --gray-light: #F9F9F9;
    --radius-btn: 12px;
    --radius-input: 8px;
    --container-width: 1200px;
    --section-pad: 100px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.underline {
    position: relative;
    display: inline-block;
}

.underline::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--black);
}

.underline--blue::after { background-color: var(--blue); }
.underline--orange::after { background-color: var(--orange); }
.underline--lime::after { background-color: var(--lime); }

/* Buttons & Inputs */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-btn);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    text-align: center;
}

.btn--black { background: var(--black); color: white; }
.btn--black:hover { opacity: 0.8; }
.btn--blue { background: var(--blue); color: white; }
.btn--orange { background: var(--orange); color: white; }
.btn--lime { background: var(--lime); color: var(--black); }
.btn--outline { border: 1px solid var(--black); background: transparent; }

.input {
    padding: 16px;
    border: 1px solid #E0E0E0;
    border-radius: var(--radius-input);
    font-size: 16px;
    width: 100%;
}

/* Header */
.header {
    padding: 24px 0;
    border-bottom: 1px solid #F0F0F0;
}

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

.logo__img { height: 40px; }

.nav__list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav__link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.link-login {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
}

/* Hero */
.hero {
    padding: var(--section-pad) 0;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__title {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero__form {
    display: flex;
    gap: 12px;
}

.hero__image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero__img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape--blue {
    width: 300px;
    height: 300px;
    background: var(--blue);
    left: -40px;
    top: -20px;
    opacity: 0.1;
}

.shape--lime {
    width: 120px;
    height: 120px;
    background: var(--lime);
    right: -20px;
    bottom: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    transform: rotate(15deg);
}

/* Benefits */
.benefits { padding: 60px 0; background: var(--gray-light); }
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.benefit-card__icon {
    width: 48px;
    height: 48px;
    background: var(--black);
    margin-bottom: 24px;
}

.benefit-card__icon--triangle { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.benefit-card__icon--users { border-radius: 50%; }

.benefit-card__title { margin-bottom: 12px; font-size: 20px; }
.benefit-card__text { color: var(--text-muted); }

/* Common Block Styles */
.block-it, .block-math { padding: var(--section-pad) 0; }
.block-it__container, .block-math__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-title { font-size: 42px; margin-bottom: 24px; line-height: 1.2; }
.section-text { font-size: 18px; margin-bottom: 32px; color: var(--text-muted); }
.rounded-img { width: 100%; border-radius: 24px; }

/* Interfaces */
.interface-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px;
    border-radius: 32px;
    margin-bottom: 40px;
    align-items: center;
}

.interface-card--orange { background: #FFF5E6; }
.interface-card--blue { background: #E6F0FF; }
.interface-card--pink { background: #FFF0F2; }

.interface-card.reverse { direction: rtl; }
.interface-card.reverse .interface-card__text { direction: ltr; }

.interface-card h3 { font-size: 32px; margin-bottom: 16px; }
.interface-card__visual img { width: 100%; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }

/* Camp Block */
.camp-block {
    background: var(--lime);
    padding: 80px 0;
    border-radius: 40px;
    margin: 40px;
}

.camp-block__title { font-size: 48px; margin-bottom: 40px; }
.camp-block__grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.camp-block__desc { max-width: 600px; font-size: 20px; margin-bottom: 32px; font-weight: 500; }

.seats-counter {
    background: var(--black);
    color: white;
    padding: 20px;
    border-radius: 12px;
    font-weight: 700;
}

/* Navigator */
.navigator { padding: var(--section-pad) 0; }
.navigator__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.nav-card {
    padding: 30px;
    border: 1px solid #EEE;
    border-radius: 16px;
    transition: 0.3s;
}

.nav-card:hover { border-color: var(--blue); transform: translateY(-5px); }
.nav-card__tag { color: var(--blue); font-weight: 700; font-size: 12px; text-transform: uppercase; }
.nav-card__title { margin: 16px 0; font-size: 20px; }
.nav-card__link { color: var(--black); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--lime); }

.all-articles { display: block; text-align: center; font-weight: 700; color: var(--black); text-decoration: none; font-size: 18px; }

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: #111;
    color: white;
}

.footer__container {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer__logo { height: 40px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer__tagline { font-size: 14px; opacity: 0.6; }
.footer__phone { font-size: 24px; font-weight: 700; margin: 10px 0; }
.footer__address { opacity: 0.8; }
.footer__list { list-style: none; }
.footer__list li { margin-bottom: 12px; }
.footer__list a { color: white; text-decoration: none; opacity: 0.7; transition: 0.3s; }
.footer__list a:hover { opacity: 1; }
.footer__social { display: flex; flex-direction: column; gap: 10px; }
.footer__social a { color: var(--lime); text-decoration: none; font-weight: 600; }

.footer__bottom {
    padding-top: 40px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    opacity: 0.5;
}

.footer__bottom a { color: white; }

/* Inner Page */
.breadcrumbs { margin-bottom: 30px; font-size: 14px; opacity: 0.6; }
.breadcrumbs a { color: var(--black); text-decoration: none; }
.article-container { max-width: 800px; padding: 60px 20px; }
.article-title { font-size: 48px; line-height: 1.1; margin-bottom: 20px; }
.article-meta { margin-bottom: 40px; opacity: 0.6; font-size: 14px; }
.article-main-image { margin-bottom: 50px; }
.article-content h2 { margin: 40px 0 20px; font-size: 28px; }
.article-content p { margin-bottom: 24px; font-size: 18px; color: var(--text-muted); }
.article-content blockquote { padding: 30px; border-left: 4px solid var(--lime); background: var(--gray-light); margin: 40px 0; font-size: 20px; font-style: italic; }
.lead { font-size: 22px !important; font-weight: 500; color: var(--text-main) !important; }

.article-cta-box {
    background: #F0F0F0;
    padding: 40px;
    border-radius: 20px;
    margin: 60px 0;
}

.article-cta-box h4 { font-size: 24px; margin-bottom: 16px; }

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }
.modal__overlay { position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.8); }
.modal__content {
    background: white;
    padding: 50px;
    border-radius: 24px;
    position: relative;
    max-width: 500px;
    width: 90%;
    z-index: 2;
}

.modal__close { position: absolute; top: 20px; right: 20px; border: none; background: none; font-size: 30px; cursor: pointer; }
.modal__form { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }

/* Responsive */
@media (max-width: 1024px) {
    .hero__container, .block-it__container, .block-math__container, .interface-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero__title { font-size: 42px; }
    .footer__container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .benefits__grid, .navigator__grid { grid-template-columns: 1fr; }
    .hero__form { flex-direction: column; }
    .footer__container { grid-template-columns: 1fr; gap: 30px; }
    .header__actions .link-login { display: none; }
}
/* --- Smart Hub Styles (Avant-Garde/Minimalism) --- */
.smart-hub {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.hub-controls {
    margin-bottom: 2rem;
}

.hub-search {
    position: relative;
    max-width: 400px;
}

.hub-search input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.hub-search input:focus {
    outline: none;
    border-color: #333;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hub-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.hub-card {
    background: transparent;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 400px;
}

.hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.hub-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hub-card__image-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.hub-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hub-card:hover .hub-card__image-wrapper img {
    transform: scale(1.05);
}

/* Pattern Thumbnails */
.hub-card__image-wrapper.pattern-0 {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
}

.hub-card__image-wrapper.pattern-1 {
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}

.hub-card__image-wrapper.pattern-2 {
    background: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
}

.hub-card__image-wrapper.pattern-3 {
    background: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);
}

.hub-card__image-wrapper.pattern-4 {
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
}

.hub-card__image-wrapper.pattern-5 {
    background: linear-gradient(to right, #43e97b 0%, #38f9d7 100%);
}

.hub-card__image-wrapper.pattern-6 {
    background: linear-gradient(to top, #30cfd0 0%, #330867 100%);
}

.hub-card__image-wrapper.pattern-7 {
    background: linear-gradient(to right, #fa709a 0%, #fee140 100%);
}

.hub-card__image-wrapper.pattern-8 {
    background: linear-gradient(to top, #5ee7df 0%, #b490ca 100%);
}

.hub-card__image-wrapper.pattern-9 {
    background: linear-gradient(to right, #f78ca0 0%, #f9748f 19%, #fd868c 60%, #fe9a8b 100%);
}

.hub-card__content {
    padding: 1.5rem;
}

.hub-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: inherit;
    line-height: 1.4;
}

.hub-card__excerpt {
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.8;
    line-height: 1.6;
}

.hub-footer {
    margin-top: 3rem;
    text-align: center;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    margin-bottom: 6rem;
    padding-top: 2rem;
    border-top: 1px solid #eaeaea;
}

.related-posts__heading {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.related-post-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.related-post-card:hover {
    background: rgba(128, 128, 128, 0.05);
}

.related-post-card__image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
}

.related-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-card__title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* Utilities */
.btn-clean {
    background: none;
    border: 1px solid #333;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-clean:hover {
    background: #333;
    color: #fff;
}