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

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

body {
    font-family: "Geologica", "Arial", sans-serif;
    background: #f7f5ff;
    color: #162033;
    line-height: 1.7;
}

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

a {
    color: inherit;
    text-decoration: none;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.2rem 5rem;
    background: rgba(255,255,255,0.88);
    border-bottom: 0.1rem solid rgba(22,32,51,0.12);
    backdrop-filter: blur(18px);
}

header img {
    width: 6.8rem;
    height: 6.8rem;
    object-fit: contain;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
    font-size: 1.45rem;
    font-weight: 800;
}

nav a {
    padding: 0.8rem 1.2rem;
    border-radius: 999rem;
}

nav a:hover {
    background: #f5f7ff;
}

.demo_garage nav a:hover,
.demo_garage .back_aside {
    background: #f4f6f8;
}

.demo_beauty nav a:hover,
.demo_beauty .back_aside {
    background: #f8f4ef;
}

.demo_school nav a:hover,
.demo_school .back_aside {
    background: #f1f7ff;
}

.back_aside {
    width: 100%;
    padding: 1.6rem 5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.78), #f5f7ff);
}

.back_to_projects {
    display: inline-flex;
    align-items: center;
    min-height: 4.2rem;
    padding: 0.9rem 1.4rem;
    border-radius: 999rem;
    background: #ffffff;
    color: #5f6b7d;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 1rem 2.6rem rgba(22,32,51,0.08);
}

section {
    padding: 8rem 7rem;
}

.hero {
    min-height: 74rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(30rem, 0.88fr);
    align-items: center;
    gap: 7rem;
    background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 100%);
}

.demo_garage .hero {
    background: #111827;
    color: #ffffff;
}

.demo_beauty .hero {
    background: #f7f0e8;
}

.demo_school .hero {
    background: linear-gradient(135deg, #f7fbff 0%, #eaf4ff 100%);
}

.hero_text {
    max-width: 74rem;
}

.demo_label {
    display: inline-flex;
    margin-bottom: 1.6rem;
    padding: 0.7rem 1.2rem;
    border-radius: 999rem;
    background: rgba(120,104,255,0.12);
    color: #5142d8;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.demo_garage .demo_label {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
}

.demo_beauty .demo_label {
    color: #567267;
}

.demo_school .demo_label {
    color: #1f5ea8;
}

h1 {
    max-width: 84rem;
    font-size: 7.4rem;
    line-height: 1.05;
    letter-spacing: 0;
}

main > section:not(.hero) > h1 {
    font-size: 5.8rem;
    line-height: 1.08;
}

h2 {
    margin-bottom: 2rem;
    font-size: 4.8rem;
    line-height: 1.12;
}

h3 {
    margin-bottom: 1rem;
    font-size: 2.1rem;
}

p,
li {
    color: #5f6b7d;
    font-size: 1.7rem;
}

.demo_garage .hero p,
.demo_garage .hero li {
    color: rgba(255,255,255,0.78);
}

.hero_lead {
    max-width: 66rem;
    margin-top: 2rem;
    font-size: 1.95rem;
}

.hero_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 3rem;
}

.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.8rem;
    padding: 1.3rem 2rem;
    border: 0;
    border-radius: 999rem;
    background: #7868ff;
    color: #ffffff;
    font-family: inherit;
    font-size: 1.55rem;
    font-weight: 900;
    cursor: pointer;
}

.demo_garage .btn {
    background: #e33a2f;
}

.demo_beauty .btn {
    background: #8a7a62;
}

.demo_school .btn {
    background: #2f7fd7;
}

.btn.secondary {
    background: #ffffff;
    color: #162033;
}

.hero_media {
    position: relative;
}

.hero_media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 2.8rem;
    box-shadow: 0 2.6rem 7rem rgba(22,32,51,0.2);
}

.demo_beauty .hero_media img {
    aspect-ratio: 1 / 1.2;
    border-radius: 999rem 999rem 3rem 3rem;
}

.quick_panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: 3rem;
}

.quick_panel div,
.info_card,
.service_card,
.course_card,
.price_card,
.review_card,
.faq_card,
.contact_box,
.subpage_note {
    padding: 2.2rem;
    border: 0.1rem solid rgba(22,32,51,0.12);
    border-radius: 2.2rem;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 1.4rem 4rem rgba(22,32,51,0.08);
}

.quick_panel strong,
.info_card strong,
.subpage_note strong {
    display: block;
    color: #162033;
    font-size: 1.85rem;
}

.subpage_note strong {
    margin-bottom: 0.8rem;
}

.demo_garage .quick_panel div {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
}

.demo_garage .quick_panel strong {
    color: #ffffff;
}

.section_intro {
    max-width: 82rem;
    margin-bottom: 3rem;
}

.split,
.subpage_lead_grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 7rem;
}

.split img {
    width: 100%;
    min-height: 36rem;
    object-fit: cover;
    border-radius: 2.8rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

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

.service_card ul,
.course_card ul,
.contact_box ul,
.info_card ul {
    margin: 1.4rem 0 1.8rem;
    padding-left: 1.8rem;
}

.hours_list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.hours_list p {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 0.1rem solid rgba(22,32,51,0.12);
}

.map_box {
    min-height: 28rem;
    display: grid;
    place-items: center;
    border-radius: 2.8rem;
    background: repeating-linear-gradient(45deg, #f5f7ff, #f5f7ff 1.2rem, #ffffff 1.2rem, #ffffff 2.4rem);
    border: 0.1rem solid rgba(22,32,51,0.12);
    color: #5f6b7d;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 900;
}

.demo_form {
    display: grid;
    gap: 1.2rem;
}

.demo_form input,
.demo_form textarea,
.demo_form select {
    width: 100%;
    border: 0.1rem solid rgba(22,32,51,0.12);
    border-radius: 1.4rem;
    padding: 1.4rem 1.5rem;
    background: #ffffff;
    color: #162033;
    font: inherit;
    font-size: 1.55rem;
}

.demo_form textarea {
    min-height: 12rem;
    resize: vertical;
}

.beauty_offer {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: stretch;
}

.beauty_offer img {
    width: 100%;
    height: 100%;
    min-height: 42rem;
    object-fit: cover;
    border-radius: 2.8rem;
}

.price_card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.price_card strong {
    color: #162033;
    font-size: 1.8rem;
}

.price_card span {
    flex: 0 0 auto;
    padding: 0.7rem 1.1rem;
    border-radius: 999rem;
    background: #5142d8;
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.demo_beauty .price_card span {
    background: #2f3b35;
}

.demo_school .price_card span {
    background: #1f5ea8;
}

.review_card p:first-child {
    color: #162033;
    font-weight: 800;
}

.faq_card details {
    padding: 0;
    border: 0;
    background: transparent;
}

.faq_card summary {
    cursor: pointer;
    color: #162033;
    font-size: 1.8rem;
    font-weight: 900;
}

.demo_note {
    max-width: 105rem;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 2rem;
    background: rgba(120,104,255,0.09);
    text-align: center;
}

footer {
    padding: 4rem 7rem;
    background: #101827;
    color: #ffffff;
}

footer a,
footer p {
    color: rgba(255,255,255,0.78);
}

.footer_demo_top,
.footer_links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.4rem;
    margin-bottom: 2rem;
}

.footer_demo_top strong {
    font-size: 2rem;
}

#copyright_footer {
    padding-top: 2rem;
    border-top: 0.1rem solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.72);
    font-size: 1.35rem;
}

.footer_note {
    margin-top: 0.8rem;
    font-size: 1.25rem;
}

#demo_popup_overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(7, 10, 18, 0.72);
}

#demo_popup_overlay.active {
    display: flex;
}

#demo_popup {
    position: relative;
    max-width: 54rem;
    padding: 3rem;
    border-radius: 2.2rem;
    background: #ffffff;
    box-shadow: 0 2rem 8rem rgba(0,0,0,0.28);
}

#demo_popup h2 {
    margin-bottom: 1.4rem;
    font-size: 3rem;
}

#demo_popup p + p {
    margin-top: 1.2rem;
}

#demo_popup_close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 3.6rem;
    height: 3.6rem;
    border: 0;
    border-radius: 999rem;
    background: #f5f7ff;
    color: #162033;
    font-size: 2.4rem;
    cursor: pointer;
}

@media (max-width: 1100px) {
    h1 {
        font-size: 5.6rem;
    }

    h2 {
        font-size: 3.8rem;
    }

    main > section:not(.hero) > h1 {
        font-size: 4.6rem;
    }
}

@media (max-width: 900px) {
    header {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.2rem 2rem;
    }

    nav {
        justify-content: flex-start;
    }

    section {
        padding: 5rem 2rem;
    }

    .back_aside {
        padding: 1.4rem 2rem;
    }

    .hero,
    .split,
    .subpage_lead_grid,
    .beauty_offer,
    .grid,
    .grid.two {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        gap: 3rem;
    }

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

    footer {
        padding: 4rem 2rem;
    }
}

@media (max-width: 560px) {
    header img {
        width: 5.6rem;
        height: 5.6rem;
    }

    nav a {
        padding: 0.7rem 0.9rem;
        font-size: 1.3rem;
    }

    section {
        padding: 4.5rem 1.4rem;
    }

    h1 {
        font-size: 4rem;
    }

    main > section:not(.hero) > h1 {
        font-size: 3.4rem;
    }

    h2 {
        font-size: 3rem;
    }

    .hero_media img,
    .split img,
    .beauty_offer img {
        min-height: 28rem;
        border-radius: 2rem;
    }
}
