:root {
    --bg-deep: #07090d;
    --bg: #0b0e14;
    --surface: #111722;
    --surface-2: #161d2e;
    --text: #f1f4fa;
    --muted: #8b95ab;
    --accent: #ff3355;
    --accent-soft: #ff6b84;
    --cyan: #22d3ee;
    --cyan-dim: rgba(34, 211, 238, 0.12);
    --ring: rgba(255, 51, 85, 0.45);
    --glass: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --radius-lg: 22px;
    --radius-md: 14px;
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 80px rgba(255, 51, 85, 0.15);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background-color: var(--bg-deep);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(255, 51, 85, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 20%, rgba(34, 211, 238, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 60%, rgba(99, 102, 241, 0.12), transparent 45%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black, transparent 75%);
    opacity: 0.5;
}

a {
    color: inherit;
    text-decoration-thickness: 0.06em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--cyan);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 9, 13, 0.75);
    backdrop-filter: blur(16px) saturate(1.3);
}

.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--accent), #c026d3);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 8px 32px var(--ring);
}

.brand-mark svg {
    width: 24px;
    height: 24px;
}

.nav {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav a {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.nav a:hover {
    color: var(--text);
    background: var(--glass);
}

.hero {
    position: relative;
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 8vw, 5rem);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 400px);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    /* Текст героя зверху, картка з фото — під ним (навіть якщо в HTML порядок інший). */
    .hero-copy {
        order: 1;
    }

    .hero-visual-wrap {
        order: 2;
    }

    /* Повна ширина екрана для блоку з фото; текст героя лишається з полями. */
    .hero .wrap {
        width: 100%;
        max-width: none;
        margin-inline: 0;
        padding-inline: 0;
    }

    .hero-copy {
        padding-inline: 1rem;
    }

    /* Порядок як у розмітці: спочатку заголовок і кнопки, потім картка «Запис і питання». */
    .hero-visual-wrap {
        width: 100%;
        max-width: none;
        margin-inline: 0;
    }

    .hero-visual-wrap .card-panel--hero {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .hero-visual-wrap .card-panel--hero .photo-link {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .hero-visual-wrap .card-panel--hero .panel-title,
    .hero-visual-wrap .card-panel--hero .panel-muted {
        padding-inline: 1.1rem;
    }

    /* Графік і Instagram — ті самі бокові поля, що й у заголовка/телефону (блок не «їде» вліво). */
    .hero-visual-wrap .card-panel--hero .panel-hours-wrap {
        padding-inline: 1.1rem;
    }

    .hero-visual-wrap .card-panel--hero .panel-title {
        padding-top: 1.1rem;
    }
}

.hero h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(2.25rem, 5vw, 3.35rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.hero h1 .hl {
    background: linear-gradient(120deg, #fff 0%, #fda4af 40%, var(--cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    margin: 0 0 1.65rem;
    color: var(--muted);
    font-size: 1.0625rem;
    max-width: 48ch;
    line-height: 1.65;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #db2777);
    color: #fff;
    box-shadow: 0 12px 40px rgba(255, 51, 85, 0.4);
}

.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #fff;
}

.btn-ghost {
    background: var(--glass);
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    margin-top: 1.5rem;
}

.stat-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--muted);
}

.stat-pill strong {
    color: var(--text);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hero-visual-wrap {
    align-self: center;
}

.card-panel {
    position: relative;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.1rem;
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    backdrop-filter: blur(8px);
}

.card-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), transparent 40%, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card-panel .photo-link {
    display: block;
    border-radius: calc(var(--radius-lg) - 6px);
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-panel .photo-link:hover {
    transform: scale(1.01);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.card-panel .photo {
    aspect-ratio: 4 / 3;
    width: 100%;
    background-color: var(--surface-2);
    background-size: cover;
    background-position: center;
}

.card-panel .panel-title {
    margin: 1.1rem 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.card-panel .panel-muted {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.55;
}

.card-panel .panel-muted + .panel-muted {
    margin-top: 0.55rem;
}

.panel-hours-wrap {
    margin-top: 0.65rem;
}

.panel-hours-label {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.hours-list {
    margin: 0;
    padding-left: 1.25rem;
    padding-right: 0.25rem;
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.45;
    list-style: disc;
    list-style-position: outside;
}

.hours-list li {
    padding: 0.08rem 0;
}

.contact .hours-list {
    margin-top: 0.1rem;
}

.card-panel--hero {
    margin-top: 0;
}

.section {
    position: relative;
    padding: clamp(2.75rem, 6vw, 4.25rem) 0;
}

.section::before {
    content: "";
    display: block;
    height: 1px;
    margin-bottom: clamp(2.75rem, 6vw, 4.25rem);
    margin-top: calc(clamp(2.75rem, 6vw, 4.25rem) * -1);
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-head {
    margin-bottom: 1.5rem;
    max-width: 40rem;
}

.eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.section h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr minmax(200px, 280px);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 800px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-deco {
        max-width: 240px;
        margin-inline: auto;
    }
}

.about-text {
    margin: 0;
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.about-text strong {
    color: var(--text);
    font-weight: 700;
}

.about-gloves {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin-inline: auto;
    display: block;
    opacity: 0.9;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

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

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.tile {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.4rem;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    opacity: 0;
    transition: opacity 0.2s;
}

.tile:hover {
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.tile:hover::before {
    opacity: 1;
}

.tile-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 51, 85, 0.2), rgba(34, 211, 238, 0.1));
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.tile-icon svg {
    width: 26px;
    height: 26px;
}

.tile h3 {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tile p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 820px) {
    .contact {
        grid-template-columns: 1fr;
    }
}

.contact .tile {
    padding: 1.5rem;
}

.contact dl {
    margin: 0;
    display: grid;
    gap: 1rem;
}

.contact dt {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact dd {
    margin: 0.2rem 0 0;
    font-size: 1.05rem;
    font-weight: 500;
}

.site-footer {
    padding: 2rem 0 2.75rem;
    color: var(--muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
}

.site-footer a {
    color: var(--text);
    font-weight: 500;
}

.site-footer a:hover {
    color: var(--cyan);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
