/* Guild Instructors — alpine UI
   Лёгкий тёмный slate, snow-mint accent. Без JS, system fonts. */

:root {
    --bg:        #0e131b;
    --bg-2:      #131924;
    --bg-elev:   #1a2030;
    --bg-card:   #1c2331;
    --bg-card-2: #232b3c;
    --bg-soft:   #161c28;

    --line:      #2a3346;
    --line-2:    #3a4660;
    --line-soft: #232c40;

    --fg:        #f3f5f8;
    --fg-mute:   #b4bccd;
    --fg-dim:    #7d869b;

    --acc:       #6df0c8;          /* glacier mint */
    --acc-2:     #8ec5ff;          /* sky blue */
    --acc-3:     #c39bff;          /* heather */
    --acc-soft:  rgba(109,240,200,0.10);
    --warn:      #ffb454;
    --bad:       #ff6b6b;

    --r-sm: 6px;
    --r:    12px;
    --r-lg: 18px;

    --shadow-1:  0 1px 0 rgba(255,255,255,0.03) inset, 0 6px 18px -10px rgba(0,0,0,0.5);
    --shadow-2:  0 1px 0 rgba(255,255,255,0.04) inset, 0 14px 38px -18px rgba(0,0,0,0.7);
    --glow:      0 0 0 1px rgba(109,240,200,0.18), 0 12px 40px -16px rgba(109,240,200,0.35);

    --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background:
        radial-gradient(1100px 600px at 80% -10%, rgba(109,240,200,0.06), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(142,197,255,0.05), transparent 60%),
        var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }

a {
    color: var(--fg);
    text-decoration: none;
    transition: color .15s;
}
a:hover { color: var(--acc); }

::selection { background: var(--acc); color: #06231b; }

/* ─── Layout ────────────────────────────────────────────────────────────── */

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(14,19,27,0.78);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--mono);
    font-weight: 600; letter-spacing: -0.01em;
    font-size: 15px;
    color: var(--fg);
}
.brand .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--acc);
    box-shadow: 0 0 0 4px rgba(109,240,200,0.14);
}
.brand small {
    color: var(--fg-dim);
    font-weight: 400;
    margin-left: 2px;
}

.nav-ghost {
    display: flex; gap: 22px;
    color: var(--fg-mute);
    font-size: 13px;
    font-family: var(--mono);
}
.nav-ghost a:hover { color: var(--fg); }

/* ─── Hero ──────────────────────────────────────────────────────────────── */

.hero {
    padding: 64px 0 32px;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.hero::before {
    content: "";
    position: absolute; right: -10%; top: 0; bottom: 0; width: 500px;
    background: radial-gradient(closest-side, rgba(109,240,200,0.10), transparent 70%);
    pointer-events: none;
}
.hero h1 {
    margin: 0 0 14px;
    font-weight: 800;
    font-size: clamp(38px, 6.4vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.035em;
    color: var(--fg);
}
.hero h1 .accent {
    color: var(--acc);
    font-style: italic;
    font-weight: 800;
}
.hero p.lead {
    margin: 0;
    max-width: 660px;
    color: var(--fg-mute);
    font-size: 16.5px;
    line-height: 1.55;
}
.hero .meta-row {
    display: flex; flex-wrap: wrap;
    gap: 24px;
    margin-top: 26px;
    color: var(--fg-dim);
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.hero .meta-row span b {
    color: var(--fg);
    font-weight: 700;
    font-size: 20px;
    text-transform: none;
    letter-spacing: -0.01em;
    margin-right: 6px;
}

/* ─── Filter bar ────────────────────────────────────────────────────────── */

.filterbar {
    position: sticky; top: 64px; z-index: 9;
    background: rgba(14,19,27,0.85);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}
.filterbar .wrap {
    display: flex; flex-wrap: wrap;
    gap: 10px; align-items: center;
}
.fgroup {
    display: inline-flex;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
}
.fgroup a {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--fg-mute);
    font-family: var(--mono);
    transition: background .15s, color .15s;
}
.fgroup a:hover { color: var(--fg); }
.fgroup a.on {
    background: var(--fg);
    color: var(--bg);
}
.fgroup a.on.acc { background: var(--acc); color: #06231b; }

.search {
    display: flex; align-items: center;
    margin-left: auto;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 14px;
    height: 38px;
    min-width: 220px;
    flex: 1 1 220px;
    max-width: 320px;
    transition: border-color .15s;
}
.search:focus-within { border-color: var(--acc); }
.search input {
    flex: 1;
    background: transparent;
    border: 0; outline: 0;
    color: var(--fg);
    font: inherit; font-size: 13px;
    padding: 0;
    font-family: var(--mono);
}
.search input::placeholder { color: var(--fg-dim); }
.search button {
    background: transparent; border: 0; cursor: pointer;
    color: var(--fg-mute);
    font: inherit; font-size: 13px;
    font-family: var(--mono);
    padding: 4px 0 4px 8px;
}
.search button:hover { color: var(--acc); }

/* ─── Catalog grid ──────────────────────────────────────────────────────── */

.catalog {
    padding: 32px 0 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
    box-shadow: var(--shadow-1);
}
.card:hover {
    transform: translateY(-3px);
    border-color: var(--line-2);
    background: var(--bg-card-2);
    box-shadow: var(--shadow-2);
}
.card a.cover { display: block; color: inherit; }

.card .photo {
    position: relative;
    aspect-ratio: 4 / 3;
    background:
        linear-gradient(135deg, #2a3548 0%, #161c28 100%);
    overflow: hidden;
}
.card .photo::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
    pointer-events: none;
}
.card .photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.card:hover .photo img { transform: scale(1.04); }

.card .photo .placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 64px;
    letter-spacing: -0.04em;
    color: rgba(255,255,255,0.08);
    user-select: none;
}

.card .badges {
    position: absolute; top: 12px; left: 12px;
    display: flex; flex-wrap: wrap; gap: 6px;
    z-index: 2;
}

.badge {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(14,19,27,0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--fg);
    white-space: nowrap;
}
.badge.ski        { color: var(--acc-2); border-color: rgba(142,197,255,0.4); }
.badge.snowboard  { color: var(--acc-3); border-color: rgba(195,155,255,0.4); }
.badge.universal  { color: var(--acc);   border-color: rgba(109,240,200,0.4); }
.badge.group      { color: var(--warn);  border-color: rgba(255,180,84,0.4); }
.badge.freeride   { color: var(--acc);   border-color: rgba(109,240,200,0.5);
                    background: rgba(109,240,200,0.10); }

.card .body { padding: 14px 16px 16px; }
.card h3 {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.012em;
    line-height: 1.2;
    color: var(--fg);
}
.card .desc {
    margin: 0;
    color: var(--fg-mute);
    font-size: 13.5px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card .foot {
    display: flex; align-items: center; justify-content: flex-end;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--fg-dim);
}
.card .foot .cta {
    color: var(--acc);
    transition: gap .15s ease;
    display: inline-flex; align-items: center; gap: 6px;
}
.card:hover .foot .cta { gap: 10px; }

/* ─── Empty / 404 ───────────────────────────────────────────────────────── */

.empty {
    grid-column: 1 / -1;
    border: 1px dashed var(--line);
    border-radius: var(--r-lg);
    padding: 64px 24px;
    text-align: center;
    color: var(--fg-dim);
    font-family: var(--mono);
}
.empty strong { color: var(--fg); display: block; font-size: 16px; margin-bottom: 6px; }

.center-pad {
    padding: 80px 0;
    text-align: center;
}
.center-pad h1 {
    font-weight: 800;
    font-size: clamp(56px, 12vw, 140px);
    color: var(--acc);
    letter-spacing: -0.04em;
    margin: 0 0 6px;
    line-height: 1;
}
.center-pad p { color: var(--fg-mute); margin: 0 0 20px; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    background: var(--acc);
    color: #06231b;
    border: 0;
    cursor: pointer;
    transition: transform .15s, filter .15s, box-shadow .2s;
    box-shadow: var(--glow);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); color: #06231b; }
.btn.full { width: 100%; }
.btn.ghost {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--line-2);
    box-shadow: none;
}
.btn.ghost:hover { color: var(--fg); border-color: var(--fg); transform: none; }
.btn .tg-ic {
    width: 16px; height: 16px;
    flex-shrink: 0;
}

/* ─── Profile page ──────────────────────────────────────────────────────── */

.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 22px 0 18px;
    color: var(--fg-mute);
    font-family: var(--mono); font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.back-link:hover { color: var(--acc); }

.profile-head {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #1f2a3c, #11161f);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    margin-bottom: 28px;
    aspect-ratio: 16 / 7;
    min-height: 260px;
}
.profile-head__cover {
    position: absolute; inset: 0;
}
.profile-head__cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-head__cover .placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 180px;
    color: rgba(255,255,255,0.07);
    letter-spacing: -0.05em;
}
.profile-head::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 80%;
    background: linear-gradient(to top, rgba(10,13,19,0.92) 0%, rgba(10,13,19,0.55) 40%, transparent 100%);
    pointer-events: none;
}
.profile-head__title {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 28px 32px;
    display: flex; flex-direction: column; gap: 12px;
    z-index: 1;
}
.profile-head__title h1 {
    margin: 0;
    font-weight: 800;
    font-size: clamp(32px, 4.6vw, 56px);
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--fg);
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.profile-head__title .badges {
    position: static;
    display: flex; flex-wrap: wrap; gap: 6px;
}

.profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
    padding-bottom: 60px;
    align-items: start;
}
.col-side { min-width: 0; }

.section-h {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fg-dim);
    margin: 0 0 12px;
    font-weight: 600;
    display: flex; align-items: center; gap: 10px;
}
.section-h::before {
    content: "";
    width: 18px; height: 1px;
    background: var(--acc);
}

.col section { margin-bottom: 32px; }

.body-text {
    white-space: pre-wrap;
    color: var(--fg);
    font-size: 15.5px;
    line-height: 1.65;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px 20px;
}
.panel.accent {
    border-color: rgba(109,240,200,0.25);
    background:
        linear-gradient(180deg, rgba(109,240,200,0.05), rgba(109,240,200,0.0) 70%),
        var(--bg-card);
}

.pricelist {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-left: 3px solid var(--acc);
    border-radius: var(--r);
    padding: 16px 18px;
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    color: var(--fg);
}

.kv {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px 16px;
    font-size: 14.5px;
}
.kv .k { color: var(--fg-dim); font-family: var(--mono); font-size: 12px; align-self: center; text-transform: uppercase; letter-spacing: 0.06em; }
.kv .v { color: var(--fg); word-break: break-word; }
.kv .v a { color: var(--acc); }
.kv .v a:hover { text-decoration: underline; }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}
.gallery img {
    width: 100%; aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--bg-card-2);
    transition: transform .25s, border-color .25s;
}
.gallery img:hover { transform: scale(1.02); border-color: var(--line-2); }

/* ─── Booking sidebar ───────────────────────────────────────────────────── */

.booking {
    position: sticky;
    top: 88px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: var(--shadow-2);
}
.booking__tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--acc);
    background: var(--acc-soft);
    padding: 5px 11px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.booking h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fg);
    line-height: 1.15;
}
.booking p.lead {
    margin: 0 0 18px;
    color: var(--fg-mute);
    font-size: 14px;
    line-height: 1.55;
}
.booking__contacts {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line-soft);
}
.booking__sep {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-dim);
    margin-bottom: 12px;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 24px 0;
    margin-top: 40px;
    color: var(--fg-dim);
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--bg-2);
}
.site-footer .wrap {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.site-footer a { color: var(--fg-mute); }
.site-footer a:hover { color: var(--acc); }

/* ─── Mobile ────────────────────────────────────────────────────────────── */

@media (max-width: 880px) {
    .profile {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .booking { position: static; }
    .profile-head { aspect-ratio: 4 / 3; min-height: 0; }
    .profile-head__cover .placeholder { font-size: 110px; }
    .profile-head__title { padding: 22px 20px; }
    .profile-head__title h1 { font-size: 32px; }
}

@media (max-width: 600px) {
    .wrap { padding: 0 16px; }
    .site-header .wrap { height: 56px; }
    .filterbar { top: 56px; }
    .nav-ghost { display: none; }
    .hero { padding: 40px 0 22px; }
    .hero .meta-row { gap: 16px; }
    .head-row h1 { font-size: 34px; }
    .kv { grid-template-columns: 1fr; gap: 0; }
    .kv .k { margin-top: 10px; }
    .search { margin-left: 0; max-width: 100%; }
}
