:root {
    --ink: #3e414e;
    --muted: #717685;
    --primary: #4e73df;
    --primary-dark: #4052a8;
    --paper: #fcfcff;
    --soft: #edf0fa;
    --line: #e3e5ed;
    --card: #fff;
    --footer: #f5f6fc;
    --shadow: 0 3px 16px rgba(67, 77, 122, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Nunito, ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    margin: 0;
    color: #383b48;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 800;
}

p {
    margin: 0 0 1rem;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

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

.site-shell main {
    flex: 1;
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    background: var(--primary);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    width: 44px;
    height: 44px;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1rem;
    line-height: 1.1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand small {
    font-size: 0.72rem;
    opacity: 0.76;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.desktop-nav a {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    color: #e9ecff;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav .is-active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
}

.desktop-nav a.account-button {
    margin-left: 0.45rem;
    background: #fff;
    color: var(--primary-dark);
}

.desktop-nav a.account-button:hover {
    background: var(--soft);
    color: var(--primary-dark);
}

.mobile-nav {
    position: relative;
    display: none;
}

.mobile-nav summary {
    display: grid;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 99px;
    cursor: pointer;
    gap: 4px;
    list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
    display: none;
}

.mobile-nav summary span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
}

.mobile-nav nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: var(--primary-dark);
    box-shadow: var(--shadow);
}

.mobile-nav nav a {
    display: block;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.mobile-nav nav a.account-button {
    border-bottom: 0;
    background: var(--primary);
    color: #fff;
    text-align: center;
}

.mobile-nav nav a.account-button:hover {
    background: #5d80e6;
    color: #fff;
    text-decoration: none;
}

.hero {
    padding: 3.8rem 0;
    background: #fff;
}

.hero-grid {
    display: grid;
    align-items: center;
    gap: 3.5rem;
    grid-template-columns: 1fr 1fr;
}

.eyebrow {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--soft);
    color: #424d75;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero h1 {
    margin-top: 1.2rem;
}

.lead {
    max-width: 58ch;
    margin-top: 1.1rem;
    color: var(--muted);
    font-size: 1.12rem;
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1.7rem;
    gap: 0.75rem;
}

.button {
    display: inline-flex;
    padding: 0.72rem 1.2rem;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.button:hover {
    text-decoration: none;
}

.button-primary {
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(86, 107, 197, 0.23);
    color: #fff;
}

.button-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.button-outline {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
}

.button-outline:hover {
    background: var(--soft);
    color: var(--ink);
}

.section {
    padding: 3.5rem 0;
}

.section-last {
    padding-top: 0;
    padding-bottom: 3.8rem;
}

.muted,
.intro {
    color: var(--muted);
}

.gallery {
    display: flex;
    height: 320px;
    margin-top: 1.8rem;
    overflow: hidden;
    border-radius: 14px;
    gap: 0.7rem;
}

.gallery-item {
    position: relative;
    min-width: 0;
    flex: 1;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    outline-offset: -3px;
    transition: flex 0.45s ease;
}

.gallery-item:first-child {
    flex: 6;
}

.gallery:hover .gallery-item,
.gallery:focus-within .gallery-item {
    flex: 1;
}

.gallery .gallery-item:hover,
.gallery .gallery-item:focus {
    flex: 6;
}

.gallery-item::after {
    position: absolute;
    background: rgba(31, 35, 50, 0.35);
    content: "";
    inset: 0;
    transition: opacity 0.3s;
}

.gallery-item:first-child::after {
    opacity: 0;
}

.gallery:hover .gallery-item::after,
.gallery:focus-within .gallery-item::after {
    opacity: 1;
}

.gallery .gallery-item:hover::after,
.gallery .gallery-item:focus::after {
    opacity: 0;
}

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

.callout {
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.callout h2 {
    margin-bottom: 0.8rem;
}

.page {
    width: min(820px, calc(100% - 2rem));
    padding: 3.2rem 0 4rem;
}

.page .intro {
    margin-top: 1rem;
}

.service-list {
    display: grid;
    margin: 2rem 0;
    gap: 1rem;
}

.card {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.service-card {
    display: grid;
    gap: 0.5rem 1.25rem;
    grid-template-columns: 1fr auto;
}

.service-card h2 {
    font-size: 1.1rem;
}

.service-card small,
.contact-grid small {
    display: block;
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-card strong {
    color: var(--primary);
    font-size: 1.05rem;
}

.service-card p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    grid-column: 1 / -1;
}

.included-activities {
    margin: -0.5rem 0 2rem;
    color: var(--muted);
}

.legal {
    font-size: 1rem;
}

.legal h1 {
    margin-bottom: 1.4rem;
}

.legal h2 {
    margin: 2rem 0 0.65rem;
    font-size: 1.35rem;
}

.legal p,
.legal ul {
    margin-bottom: 0.9rem;
}

.legal ul {
    padding-left: 1.35rem;
}

.legal li {
    margin-bottom: 0.4rem;
}

.legal a {
    font-weight: 700;
}

.contact-grid {
    display: grid;
    margin: 2rem 0;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

.contact-grid p {
    margin: 0.25rem 0 0;
    font-weight: 800;
}

.contact-icon {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 1.7rem;
    line-height: 1;
}

.requisites {
    margin-top: 2.5rem;
    background: var(--soft);
    box-shadow: none;
}

.requisites ul {
    margin: 1rem 0 0;
    padding-left: 0;
    list-style: none;
}

.requisites li {
    margin: 0.45rem 0;
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    background: var(--footer);
}

.footer-grid {
    display: grid;
    padding: 3rem 0;
    gap: 3rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer h2 {
    font-size: 1.1rem;
}

.site-footer h3 {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer p,
.site-footer li {
    color: var(--muted);
    font-size: 0.86rem;
}

.site-footer ul {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 0.35rem 0;
}

.footer-bottom {
    border-top: 1px solid var(--line);
}

.footer-bottom .container {
    display: flex;
    padding: 1rem 0;
    justify-content: center;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
}

@media (max-width: 1060px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }
}

@media (max-width: 700px) {
    .hero {
        padding: 2.5rem 0;
    }

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

    .hero-image {
        order: -1;
    }

    .gallery {
        height: 250px;
        gap: 0.4rem;
    }

    .gallery .gallery-item:hover,
    .gallery .gallery-item:focus {
        flex: 4;
    }

    .footer-grid,
    .contact-grid {
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
    }

    .page {
        padding-top: 2.4rem;
    }

    .callout {
        padding: 1.35rem;
    }
}

@media (max-width: 420px) {
    .gallery {
        height: 210px;
    }

    .gallery .gallery-item:hover,
    .gallery .gallery-item:focus {
        flex: 3;
    }

    .actions .button {
        width: 100%;
    }

    .service-card {
        grid-template-columns: 1fr;
    }

    .service-card strong {
        grid-row: 2;
    }
}
