@import url("/tokens.css?v=20260708a");

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body.product-page {
    --product-accent: var(--accent);
    --product-accent-strong: var(--accent-strong);
    --product-accent-soft: var(--accent-soft);
    --product-accent-border: var(--accent-border);
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

body.product-page--fix {
    --product-accent: #17483d;
    --product-accent-strong: #0f362d;
    --product-accent-soft: rgba(23, 72, 61, 0.08);
    --product-accent-border: rgba(23, 72, 61, 0.16);
}

body.product-page--puzzles {
    --product-accent: #4f3f8f;
    --product-accent-strong: #382a72;
    --product-accent-soft: rgba(79, 63, 143, 0.09);
    --product-accent-border: rgba(79, 63, 143, 0.16);
}

body.product-page--autoskola {
    --product-accent: #255a9b;
    --product-accent-strong: #173f70;
    --product-accent-soft: rgba(37, 90, 155, 0.09);
    --product-accent-border: rgba(37, 90, 155, 0.18);
}

body.product-page--fishtest {
    --product-accent: #176052;
    --product-accent-strong: #0f4339;
    --product-accent-soft: rgba(23, 96, 82, 0.09);
    --product-accent-border: rgba(23, 96, 82, 0.18);
}

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

a {
    color: inherit;
    text-underline-offset: 0.16em;
}

.product-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.product-nav__inner,
.product-container,
.product-footer {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
}

.product-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-mark {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--radius-lg);
    background: var(--product-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
}

.brand-mark svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-copy {
    display: grid;
    gap: 0.05rem;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0;
}

.brand-tag {
    font-size: 0.74rem;
    color: var(--text-soft);
}

.product-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.85rem;
    justify-content: flex-end;
}

.product-nav__links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 650;
}

.product-nav__links a:hover,
.product-nav__links a:focus-visible {
    color: var(--product-accent);
}

.product-container {
    padding: clamp(2rem, 5vw, 4rem) 0 4rem;
}

.product-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-bottom: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2.25rem;
    border-bottom: 1px solid var(--line);
}

.product-hero__copy {
    min-width: 0;
}

.product-icon-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.product-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.product-identity {
    display: grid;
    gap: 0.1rem;
}

.product-identity strong {
    font-size: 0.95rem;
    color: var(--product-accent);
}

.product-identity span {
    font-size: 0.86rem;
    color: var(--text-soft);
}

.product-hero h1 {
    margin: 0 0 0.85rem;
    max-width: 12ch;
    font-family: var(--font-serif);
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.product-hero__lead {
    margin: 0;
    max-width: 42rem;
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1.45;
}

.product-hero__support {
    margin: 0.9rem 0 0;
    max-width: 44rem;
    color: var(--text-muted);
    font-size: 1rem;
}

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

.product-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.68rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 700;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.product-button:hover,
.product-button:focus-visible {
    background: var(--bg-muted);
    border-color: var(--line-strong);
}

.product-button--primary {
    background: var(--product-accent);
    color: var(--text-inverse);
    border-color: var(--product-accent);
}

.product-button--primary:hover,
.product-button--primary:focus-visible {
    background: var(--product-accent-strong);
    color: var(--text-inverse);
    border-color: var(--product-accent-strong);
}

.product-button--secondary {
    background: transparent;
}

.product-button svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
}

.product-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.8rem;
    margin-top: 1rem;
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 700;
}

.product-trust span + span::before {
    content: "/";
    margin-right: 0.8rem;
    color: var(--line-strong);
}

.product-showcase {
    min-width: 0;
    justify-self: stretch;
}

.phone-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(9.5rem, 1fr));
    gap: 0.85rem;
    align-items: end;
    justify-content: center;
    max-width: 42rem;
    margin-inline: auto;
}

.phone-stack img,
.feature-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}

.icon-mosaic {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 1rem 0 0;
    border-top: 1px solid var(--line);
}

.icon-mosaic a,
.icon-mosaic span {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.icon-mosaic img {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: var(--radius-lg);
}

.product-section {
    margin-top: 2.25rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--line);
}

.section-heading {
    max-width: 46rem;
    margin-bottom: 1.2rem;
}

.section-heading h2 {
    margin: 0 0 0.55rem;
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1.05;
    letter-spacing: 0;
}

.section-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.feature-grid,
.faq-grid,
.link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
}

.feature-card,
.faq-card,
.link-card {
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 1rem 1.1rem 0;
}

.feature-card:not(:nth-child(3n)),
.faq-card:not(:nth-child(3n)),
.link-card:not(:nth-child(3n)) {
    border-right: 1px solid var(--line);
}

.feature-card:nth-child(3n + 2),
.faq-card:nth-child(3n + 2),
.link-card:nth-child(3n + 2),
.feature-card:nth-child(3n + 3),
.faq-card:nth-child(3n + 3),
.link-card:nth-child(3n + 3) {
    padding-left: 1rem;
}

.feature-card h3,
.faq-card h3,
.link-card h3 {
    margin: 0 0 0.45rem;
    font-family: var(--font-serif);
    font-size: 1.08rem;
    line-height: 1.25;
}

.feature-card p,
.faq-card p,
.link-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.feature-card a,
.link-card a {
    color: var(--product-accent);
    font-weight: 700;
}

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

.feature-copy {
    border-left: 1px solid var(--product-accent);
    padding-left: 1rem;
}

.feature-copy h2 {
    margin: 0 0 0.7rem;
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1.05;
}

.feature-copy p {
    margin: 0 0 0.9rem;
    color: var(--text-muted);
}

.feature-copy ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.feature-media {
    display: grid;
    grid-template-columns: repeat(3, minmax(8.75rem, 1fr));
    gap: 0.65rem;
    align-items: end;
    justify-content: center;
    max-width: 44rem;
    margin-inline: auto;
}

.product-note {
    border-left: 1px solid var(--product-accent);
    padding: 0.1rem 0 0.1rem 1rem;
    color: var(--text-muted);
}

.product-note p {
    margin: 0;
}

.product-footer {
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--line);
    color: var(--text-soft);
    text-align: center;
    font-size: 0.84rem;
}

.product-footer p {
    margin: 0.2rem 0;
}

.product-footer a {
    color: var(--text-muted);
}

a:focus-visible,
.product-button:focus-visible {
    outline: 3px solid var(--product-accent-border);
    outline-offset: 3px;
}

@media (max-width: 920px) {
    .product-hero,
    .feature-split {
        grid-template-columns: 1fr;
    }

    .product-hero h1 {
        max-width: 14ch;
    }

    .feature-grid,
    .faq-grid,
    .link-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-card:not(:nth-child(3n)),
    .faq-card:not(:nth-child(3n)),
    .link-card:not(:nth-child(3n)) {
        border-right: 0;
    }

    .feature-card:nth-child(odd),
    .faq-card:nth-child(odd),
    .link-card:nth-child(odd) {
        border-right: 1px solid var(--line);
    }

    .feature-card,
    .faq-card,
    .link-card {
        padding-left: 1rem;
    }
}

@media (max-width: 640px) {
    .product-nav__inner,
    .product-container,
    .product-footer {
        width: min(calc(100% - 2rem), var(--max-width));
    }

    .product-nav__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-nav__links {
        justify-content: flex-start;
    }

    .product-container {
        padding-top: 1.2rem;
        max-width: calc(100vw - 2rem);
        overflow: clip;
    }

    .product-icon-row {
        align-items: flex-start;
    }

    .product-icon {
        width: 3.8rem;
        height: 3.8rem;
    }

    .product-hero h1 {
        font-size: 2.35rem;
    }

    .product-hero__lead {
        font-size: 1.05rem;
    }

    .product-hero__copy,
    .product-hero,
    .product-actions,
    .product-trust,
    .product-section,
    .feature-split,
    .feature-grid,
    .faq-grid,
    .link-grid,
    .section-heading,
    .feature-copy,
    .feature-card,
    .faq-card,
    .link-card,
    .product-note {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .product-hero__lead,
    .product-hero__support,
    .section-heading p,
    .feature-card p,
    .faq-card p,
    .link-card p {
        overflow-wrap: anywhere;
    }

    .product-actions,
    .product-button {
        width: 100%;
    }

    .phone-stack,
    .feature-media {
        grid-template-columns: minmax(0, 1fr);
        max-width: 18rem;
    }

    .icon-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-grid,
    .faq-grid,
    .link-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .faq-card,
    .link-card,
    .feature-card:nth-child(odd),
    .faq-card:nth-child(odd),
    .link-card:nth-child(odd) {
        border-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .product-button {
        transition: none;
    }
}

/* v20260708b additions */
.product-footer__links {
    color: var(--text-soft);
}

.product-footer__links a {
    color: var(--text-muted);
}

/* v20260708c additions */
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }
.product-section a, .product-footer a { text-underline-offset: 3px; transition: color 150ms ease; }
.related-guides { border-top: 1px solid var(--line); }
.related-guides__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.related-guides__links a { display: block; padding: 0.85rem 0; border-top: 1px solid var(--line); color: var(--text); font-weight: 700; }
@media (max-width: 720px) { .related-guides__links { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .product-section a, .product-footer a { transition: none; } }

/* v20260708d additions */
.lang-switch { max-width: var(--container); margin: 1rem auto 0; padding: 0 1.5rem; display: flex; flex-wrap: wrap; gap: .45rem .7rem; font-size: .78rem; letter-spacing: 0; }
.lang-switch a, .lang-switch strong { color: var(--text-muted); text-decoration: none; font-weight: 700; }
.lang-switch strong { color: var(--text); }
.lang-switch a:hover { color: var(--accent); }
@media (max-width: 720px) { .lang-switch { margin-top: .75rem; padding: 0 1rem; } }
