@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
    --cream: #fbf7f0;
    --paper: #fffaf3;
    --ink: #112552;
    --ink-soft: #31466f;
    --gold: #d39b42;
    --gold-soft: #ead7b8;
    --line: rgba(17, 37, 82, 0.1);
    --shadow: 0 32px 80px -54px rgba(11, 24, 54, 0.5);
    --container: 1340px;
    --hero-stage-w: 1620px;
    --header-h: 92px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 40;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 max(44px, calc((100vw - var(--hero-stage-w)) / 2 + 44px));
    border-bottom: 1px solid var(--line);
    background: rgba(250, 246, 239, 0.94);
    backdrop-filter: blur(14px);
    font-family: "Inter", sans-serif;
}

.logo-link {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 0;
    text-decoration: none;
}

.ribbon-logo {
    width: 204px;
    height: 170px;
    padding: 8px 17px 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #112552 0%, #112552 100%);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 18px 36px -28px rgba(17, 37, 82, 0.72);
}

.ribbon-logo::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(251, 247, 240, 0.2);
    border-radius: 0 0 7px 7px;
    pointer-events: none;
}

.ribbon-logo img {
    width: 168px;
    height: 145px;
    object-fit: contain;
    transform: translateY(-2px);
}

.nav-desktop {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 3.8vw, 54px);
    margin-left: auto;
    margin-right: clamp(32px, 5vw, 88px);
    padding-top: 0;
}

.nav-desktop a,
.lang-switch a {
    text-decoration: none;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 500;
    transition: color 180ms ease;
}

.nav-desktop a:hover,
.lang-switch a:hover {
    color: var(--gold);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 0;
}

.lang-switch .current {
    color: var(--gold);
}

.menu-button,
.mobile-nav {
    display: none;
}

.mobile-nav a {
    text-decoration: none;
}

.guide-shell,
.article-card,
.guide-sidebar,
.toc,
.app-card,
.share-card,
.related-card {
    min-width: 0;
    max-width: 100%;
}

.article-body h2,
.article-body h3,
.article-body p,
.article-body li,
.verdict p,
.app-card h2,
.app-card p,
.toc a,
.related-card a {
    overflow-wrap: anywhere;
    word-break: normal;
}

.app-card {
    overflow: hidden;
}

.guide-hero {
    position: relative;
    overflow: hidden;
    margin-top: var(--header-h);
    background:
        linear-gradient(90deg, #fbf7f0 0%, rgba(251, 247, 240, 0.92) 32%, rgba(251, 247, 240, 0.64) 48%, rgba(251, 247, 240, 0.18) 66%, rgba(251, 247, 240, 0) 100%),
        var(--guide-hero-image, url("../assets/img/hero_stradivarius.png")) right center / min(64vw, 980px) auto no-repeat,
        var(--cream);
}

.guide-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 44% 52%, rgba(251, 247, 240, 0.84) 0%, rgba(251, 247, 240, 0.58) 20%, rgba(251, 247, 240, 0.18) 38%, rgba(251, 247, 240, 0) 56%),
        linear-gradient(90deg, #fbf7f0 0%, rgba(251, 247, 240, 0.98) 28%, rgba(251, 247, 240, 0.66) 48%, rgba(251, 247, 240, 0.2) 66%, rgba(251, 247, 240, 0) 100%),
        linear-gradient(180deg, rgba(251, 247, 240, 0) 68%, #fbf7f0 100%);
    pointer-events: none;
}

.guides-index-page .guide-hero {
    background:
        linear-gradient(90deg, #fbf7f0 0%, rgba(251, 247, 240, 0.92) 34%, rgba(251, 247, 240, 0.58) 56%, rgba(251, 247, 240, 0.12) 82%, rgba(251, 247, 240, 0) 100%),
        var(--guide-hero-image, url("../assets/hero-boutique-generated.png")) right center / cover no-repeat,
        var(--cream);
}

.guides-index-page .guide-hero::before {
    background:
        radial-gradient(ellipse at 42% 50%, rgba(251, 247, 240, 0.72) 0%, rgba(251, 247, 240, 0.44) 24%, rgba(251, 247, 240, 0.08) 52%, rgba(251, 247, 240, 0) 72%),
        linear-gradient(90deg, #fbf7f0 0%, rgba(251, 247, 240, 0.92) 32%, rgba(251, 247, 240, 0.42) 58%, rgba(251, 247, 240, 0.08) 100%),
        linear-gradient(180deg, rgba(251, 247, 240, 0) 70%, #fbf7f0 100%);
}

.guide-hero-inner {
    position: relative;
    z-index: 1;
    width: min(var(--container), calc(100% - 48px));
    min-height: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 640px) 1fr;
    align-items: center;
    padding: 124px 0 92px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(51, 69, 98, 0.72);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 52px;
    height: 1px;
    background: var(--gold);
}

.guide-hero h1 {
    max-width: 720px;
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(4.2rem, 7.6vw, 8.4rem);
    line-height: 0.88;
    font-weight: 600;
    letter-spacing: -0.055em;
}

.guide-hero h1 em {
    color: var(--gold);
    font-style: italic;
    font-weight: 500;
}

.guide-lead {
    max-width: 570px;
    margin: 28px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 1.4vw, 1.22rem);
    line-height: 1.7;
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.guide-meta span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(211, 155, 66, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    color: var(--ink-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

.guide-shell {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 760px) 320px;
    gap: clamp(44px, 6vw, 88px);
    padding: 72px 0 92px;
}

.article-card {
    padding: clamp(28px, 4vw, 54px);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow);
}

.verdict {
    display: grid;
    gap: 20px;
    margin-bottom: 54px;
    padding: clamp(24px, 4vw, 36px);
    border-radius: 26px;
    background:
        radial-gradient(circle at 90% 20%, rgba(211, 155, 66, 0.14), transparent 28%),
        linear-gradient(135deg, #101e3e, #0b1836);
    color: white;
}

.verdict span {
    color: var(--gold-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.verdict p {
    margin: 0;
    color: white;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3.1rem, 4.4vw, 4.4rem);
    line-height: 0.92;
}

.article-body h2 {
    margin: 56px 0 22px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.6rem, 4.2vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.article-body h3 {
    margin: 36px 0 14px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.9rem, 2.8vw, 2.5rem);
    line-height: 1;
}

.article-body p,
.article-body li {
    color: var(--ink-soft);
    font-size: 1.06rem;
    line-height: 1.86;
}

.article-body .verdict p {
    color: white;
    font-size: 32px;
    line-height: 1.18;
}

.article-body p {
    margin: 0 0 22px;
}

.article-body ul {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.article-body li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.article-body li::before {
    content: "";
    position: absolute;
    top: 0.8em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--gold);
}

.comparison-table {
    width: 100%;
    margin: 32px 0 44px;
    overflow: hidden;
    border: 1px solid rgba(17, 37, 82, 0.1);
    border-radius: 22px;
    background: white;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 18px 20px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(17, 37, 82, 0.08);
}

.comparison-table th {
    color: var(--ink);
    background: rgba(211, 155, 66, 0.1);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.comparison-table tr:last-child td {
    border-bottom: 0;
}

.note-box {
    margin: 38px 0;
    padding: 28px;
    border-left: 5px solid var(--gold);
    border-radius: 20px;
    background: #fff;
}

.note-box strong {
    color: var(--ink);
}

.faq details {
    border-top: 1px solid rgba(17, 37, 82, 0.1);
    padding: 22px 0;
}

.faq details:last-child {
    border-bottom: 1px solid rgba(17, 37, 82, 0.1);
}

.faq summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 800;
}

.faq p {
    margin-top: 14px;
}

.guide-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
}

.toc,
.app-card,
.share-card,
.related-card {
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 20px 60px -48px rgba(11, 24, 54, 0.42);
}

.toc {
    padding: 26px;
}

.toc-title,
.related-title {
    margin: 0 0 16px;
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.toc a {
    display: block;
    padding: 10px 0;
    border-top: 1px solid rgba(17, 37, 82, 0.08);
    color: var(--ink-soft);
    text-decoration: none;
}

.toc a:hover {
    color: var(--gold);
}

.app-card {
    margin-top: 22px;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(211, 155, 66, 0.24), transparent 30%),
        linear-gradient(145deg, #101e3e, #0b1836);
    color: white;
}

.share-card {
    margin-top: 22px;
    padding: 24px;
}

.share-card p {
    margin: 0 0 18px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.share-button {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(211, 155, 66, 0.34);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.share-button:hover {
    border-color: rgba(211, 155, 66, 0.72);
    color: var(--gold);
    transform: translateY(-1px);
}

.share-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.share-status {
    min-height: 20px;
    margin-top: 12px;
    color: rgba(49, 70, 111, 0.78);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.app-card h2 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 2.5rem;
    line-height: 0.98;
}

.app-card p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.app-card a {
    display: flex;
    justify-content: center;
}

.store-badge {
    width: 170px;
    margin: 0 auto;
}

.related-card {
    margin-top: 22px;
    padding: 24px;
}

.related-card a {
    display: block;
    padding: 14px 0;
    border-top: 1px solid rgba(17, 37, 82, 0.08);
    text-decoration: none;
}

.related-card a:hover {
    color: var(--gold);
}

.guides-index {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0 104px;
}

.guides-index-intro {
    max-width: 760px;
    margin: 0 0 42px;
    color: var(--ink-soft);
    font-size: clamp(1.02rem, 1.35vw, 1.18rem);
    line-height: 1.75;
}

.guides-index-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.guide-list-card {
    min-height: 390px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: end;
    padding: 24px;
    border-radius: 24px;
    text-decoration: none;
    background: var(--card-image) center / cover no-repeat;
    box-shadow: var(--shadow);
}

.guide-list-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(17, 37, 82, 0.02) 0%, rgba(17, 37, 82, 0.22) 44%, rgba(17, 37, 82, 0.86) 100%),
        linear-gradient(90deg, rgba(17, 37, 82, 0.26), transparent 55%);
}

.guide-list-card-content {
    position: relative;
    z-index: 1;
    color: white;
}

.guide-list-card .guide-tag {
    margin-bottom: 14px;
}

.guide-list-card h2 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.2rem, 3vw, 3rem);
    line-height: 0.98;
    font-weight: 600;
}

.guide-list-card p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.55;
}

.guide-footer {
    padding: 34px clamp(24px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.62);
}

.guide-footer-inner {
    width: min(var(--container), 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: rgba(51, 69, 98, 0.72);
}

.guide-footer img {
    width: 94px;
}

.guide-footer nav {
    display: flex;
    gap: 20px;
}

.guide-footer a {
    text-decoration: none;
}

@media (max-width: 980px) {
    :root {
        --header-h: 84px;
    }

    .site-header {
        padding: 0 18px;
    }

    .ribbon-logo {
        width: 100px;
        height: 76px;
        padding: 7px 10px;
        border-radius: 0 0 8px 8px;
    }

    .ribbon-logo img {
        width: 70px;
        height: 54px;
        transform: translateY(0);
    }

    .nav-desktop,
    .lang-switch {
        display: none;
    }

    .menu-button {
        position: absolute;
        top: 20px;
        right: 18px;
        display: inline-flex;
        margin: 0;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.72);
        color: var(--ink);
        font-size: 1.2rem;
        line-height: 1;
    }

    .mobile-nav[data-open="true"] {
        position: fixed;
        inset: var(--header-h) 14px auto 14px;
        z-index: 39;
        display: grid;
        gap: 14px;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(251, 247, 240, 0.98);
        box-shadow: var(--shadow);
    }

    .mobile-nav a {
        text-decoration: none;
        font-size: 1rem;
    }

    .guide-hero {
        background:
            linear-gradient(90deg, rgba(251, 247, 240, 0.94) 0%, rgba(251, 247, 240, 0.72) 50%, rgba(251, 247, 240, 0.22) 78%, rgba(251, 247, 240, 0.04) 100%),
            var(--guide-hero-image, url("../assets/img/hero_stradivarius.png")) 70% top / cover no-repeat,
            var(--cream);
    }

    .guide-hero::before {
        background:
            linear-gradient(90deg, rgba(251, 247, 240, 0.88) 0%, rgba(251, 247, 240, 0.58) 54%, rgba(251, 247, 240, 0.08) 100%),
            linear-gradient(180deg, rgba(251, 247, 240, 0.24) 0%, rgba(251, 247, 240, 0.2) 58%, #fbf7f0 100%);
    }

    .guide-hero-inner {
        min-height: 620px;
        grid-template-columns: 1fr;
        align-items: start;
        padding-top: 54px;
    }

    .guide-shell {
        grid-template-columns: 1fr;
        padding-top: 42px;
    }

    .guide-sidebar {
        position: static;
    }

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

    .guide-footer-inner {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .guide-footer nav {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    :root {
        --header-h: 84px;
    }

    .guide-hero-inner,
    .guide-shell,
    .guides-index {
        width: min(100% - 30px, var(--container));
    }

    .guide-hero {
        margin-top: var(--header-h);
    }

    .guide-hero-inner {
        display: block;
        min-height: auto;
        padding: 52px 0 84px;
    }

    .guides-index-page .guide-hero {
        background:
            linear-gradient(90deg, rgba(251, 247, 240, 0.94) 0%, rgba(251, 247, 240, 0.72) 50%, rgba(251, 247, 240, 0.22) 78%, rgba(251, 247, 240, 0.04) 100%),
            var(--guide-hero-image, url("../assets/img/hero_stradivarius.png")) 70% top / cover no-repeat,
            var(--cream);
    }

    .guides-index-page .guide-hero::before {
        background:
            linear-gradient(90deg, rgba(251, 247, 240, 0.88) 0%, rgba(251, 247, 240, 0.58) 54%, rgba(251, 247, 240, 0.08) 100%),
            linear-gradient(180deg, rgba(251, 247, 240, 0.24) 0%, rgba(251, 247, 240, 0.2) 58%, #fbf7f0 100%);
    }

    .guides-index-page .guide-hero-inner {
        min-height: auto;
        padding: 52px 0 84px;
    }

    .guide-hero-inner > div {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .guide-hero h1 {
        max-width: 100%;
        font-size: clamp(2.7rem, 12.5vw, 3.55rem);
        line-height: 0.96;
        letter-spacing: 0;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }

    .guide-lead {
        width: 100%;
        max-width: 100%;
        font-size: 1rem;
        overflow-wrap: break-word;
    }

    .article-body .verdict p {
        font-size: clamp(1.55rem, 7.2vw, 2rem);
        line-height: 1.16;
    }

    .article-card {
        padding: 24px 16px;
        border-radius: 22px;
        overflow: hidden;
    }

    .article-body h2 {
        margin-top: 44px;
        font-size: clamp(2.15rem, 10vw, 3rem);
        line-height: 1;
        letter-spacing: 0;
    }

    .article-body p,
    .article-body li {
        font-size: 1rem;
        line-height: 1.74;
    }

    .verdict {
        padding: 24px;
        border-radius: 22px;
    }

    .comparison-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table table {
        min-width: 520px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 14px 12px;
        font-size: 0.95rem;
    }

    .toc,
    .app-card,
    .share-card,
    .related-card {
        border-radius: 22px;
        padding: 24px;
    }

    .app-card h2 {
        font-size: clamp(2rem, 10vw, 2.65rem);
        line-height: 1.02;
    }

    .store-badge {
        width: min(170px, 100%);
    }

    .guides-index {
        padding-top: 48px;
    }

    .guides-index-grid {
        grid-template-columns: 1fr;
    }

    .guide-list-card {
        min-height: 340px;
        border-radius: 22px;
    }
}
