:root {
    --bg: #eef3f6;
    --bg-deep: #dde6eb;
    --surface: #f8fbfc;
    --surface-strong: #fdfeff;
    --text: #27313a;
    --muted: #66737d;
    --line: rgba(66, 82, 96, 0.16);
    --line-strong: rgba(66, 82, 96, 0.28);
    --accent: #70808d;
    --accent-soft: #ced8de;
    --shadow: 0 18px 40px rgba(55, 70, 83, 0.08);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(206, 216, 222, 0.34), transparent 24%),
        linear-gradient(180deg, #f5f9fb 0%, var(--bg) 100%);
    line-height: 1.7;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 36px));
    margin: 0 auto;
}

.footer-links,
.contact-list {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-list {
    flex-wrap: wrap;
}

.contact-list p {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.contact-card a {
    position: relative;
    display: inline-block;
    color: var(--text);
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-card a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.contact-card a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.contact-card a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(245, 249, 251, 0.92);
    border-bottom: 1px solid rgba(66, 82, 96, 0.1);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 92px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-text strong,
h1,
h2 {
    font-family: "Cormorant Garamond", serif;
}

.brand-text strong {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 0.92;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav a {
    position: relative;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 1px;
    background: var(--text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--text);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-cta {
    padding: 12px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface-strong);
}

.nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 253, 249, 0.9);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1px;
    margin: 0 auto;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hero-section,
.page-hero {
    position: relative;
    padding: 84px 0 58px;
}

.hero-section::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 22%),
        radial-gradient(circle at top left, rgba(221, 230, 235, 0.45), transparent 28%);
    pointer-events: none;
}

.hero-grid,
.page-hero-grid,
.split-layout,
.contact-grid,
.about-preview,
.focus-grid,
.services-grid,
.articles-grid,
.info-grid,
.faq-grid {
    display: grid;
    gap: 28px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: end;
}

.page-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
    align-items: start;
}

.split-layout,
.about-preview,
.contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.issues-grid {
    margin-top: 28px;
}

.services-grid,
.info-grid,
.faq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
}

h1,
h2 {
    font-weight: 600;
    line-height: 0.98;
}

h1 {
    max-width: 11ch;
    font-size: clamp(3.3rem, 6vw, 5.9rem);
}

h2 {
    font-size: clamp(2.4rem, 4vw, 3.9rem);
}

h3 {
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

p {
    margin: 0;
    color: var(--muted);
}

.hero-text,
.page-intro {
    max-width: 60ch;
    margin-top: 24px;
    font-size: 1.02rem;
    color: #fff;
}

.intro-block {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
    padding: 0 8px;
}

.intro-block p {
    font-size: 1.03rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    border: 1px solid var(--line-strong);
    background: var(--text);
    color: #fff;
}

.button-secondary {
    border: 1px solid var(--line-strong);
    background: rgba(255, 253, 249, 0.74);
    color: var(--text);
}

.hero-card,
.page-hero-card,
.page-hero-note,
.focus-card,
.service-card,
.info-card,
.article-card,
.webinar-panel,
.service-detail,
.contact-card,
.booking-card,
.checklist-panel,
.faq-panel,
.hero-stats article,
.cta-banner {
    border: 1px solid var(--line);
    background: rgba(255, 252, 247, 0.8);
    box-shadow: var(--shadow);
}

.hero-card,
.page-hero-card {
    overflow: hidden;
}

.hero-copy {
    padding-bottom: 10px;
}

.hero-card,
.page-hero-card,
.page-hero-note,
.cta-banner {
    border-radius: var(--radius-lg);
}

.hero-card img,
.page-hero-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: saturate(0.86) contrast(0.94);
}

.hero-card-content,
.page-hero-note {
    padding: 26px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.hero-stats article {
    padding: 18px;
    border-radius: var(--radius-sm);
}

.hero-stats strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 1.1rem;
}

.section {
    padding: 56px 0;
}

.section-soft {
    background:
        linear-gradient(180deg, rgba(221, 230, 235, 0.32), rgba(255, 255, 255, 0));
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading-left {
    margin-left: 0;
    text-align: left;
}

.about-image img {
    min-height: 460px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    filter: saturate(0.88);
}

.about-content,
.focus-card,
.service-card,
.info-card,
.article-content,
.webinar-panel,
.booking-card {
    display: grid;
    gap: 16px;
}

.focus-card,
.service-card,
.info-card,
.service-detail,
.contact-card,
.booking-card,
.checklist-panel,
.faq-panel,
.webinar-panel {
    padding: 28px;
    border-radius: var(--radius-md);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.services-grid-editorial .service-card,
.issues-grid .focus-card {
    background: rgba(255, 253, 249, 0.58);
}

.issues-heading {
    max-width: none;
    margin-bottom: 0;
}

.soft-list {
    margin-top: 6px;
}

.booking-banner {
    margin-top: 6px;
    background: linear-gradient(180deg, rgba(253, 254, 255, 0.96), rgba(221, 230, 235, 0.66));
}

.hero-reference {
    position: relative;
    min-height: 450px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) brightness(0.65);
}

.hero-reference::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-reference-inner {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 18px;
    text-align: center;
}

.hero-reference-inner h1 {
    max-width: none;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    color: #fff;
}

.hero-kicker {
    color: #fff;
    font-size: 0.88rem;
    letter-spacing: 0.7em;
    text-transform: uppercase;
}

.narrow-block {
    max-width: 920px;
    text-align: center;
}

.page-hero-simple {
    padding: 72px 0 34px;
}

.intro-section h2,
.formats-section h2,
.about-reference h2,
.cta-dark h2,
.issue-card h3,
.section-heading h2 {
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.button-muted {
    min-height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 0;
    background: #aeb9c2;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.button-outline-light {
    min-height: 42px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.services-grid-editorial {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card-image {
    position: relative;
    min-height: 200px;
    padding: 0;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.62) saturate(0.8);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 26px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.6) 100%);
}

.service-card-overlay h3,
.service-card-overlay p,
.service-card-overlay .card-tag {
    color: #fff;
}

.service-card-overlay h3 {
    width: 100%;
    margin-top: 36px;
    margin-bottom: auto;
}

.about-reference {
    align-items: start;
}

.about-reference .about-image img {
    min-height: 370px;
}

.contact-grid-simple {
    align-items: start;
}

.articles-list {
    display: grid;
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
}

.article-entry {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(253, 254, 255, 0.82);
    box-shadow: var(--shadow);
}

.article-entry-soft {
    background: rgba(248, 251, 252, 0.92);
}

.service-inline-note {
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cta-dark {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
}

.cta-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(21, 21, 21, 0.62), rgba(21, 21, 21, 0.62)),
        url("../images/pictures/transformation.jpg?v=2") center/cover no-repeat;
    filter: grayscale(1);
}

.cta-dark-inner {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 18px;
    text-align: center;
}

.cta-dark-inner h2 {
    color: #fff;
    overflow-wrap: break-word;
    word-break: break-word;
}

.eyebrow-light,
.eyebrow-light::before {
    color: #fff;
}

.issue-card {
    justify-items: center;
    text-align: center;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.issue-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--accent);
    font-size: 2rem;
    line-height: 1;
}

.text-link::after {
    content: "\2192";
}

.card-tag {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.card-footer,
.service-meta,
.footer-content {
    display: flex;
    align-items: center;
}

.card-footer {
    justify-content: space-between;
    gap: 18px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(69, 53, 42, 0.08);
}

.card-footer span,
.service-meta span {
    color: var(--text);
    font-weight: 800;
}

.card-footer a {
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.article-card {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.article-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: saturate(0.82);
}

.article-content {
    padding: 24px 24px 26px;
}

.webinar-list,
.check-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.webinar-list li,
.check-list li {
    position: relative;
    padding-left: 24px;
    color: var(--muted);
}

.webinar-list li::before,
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.76em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 34px;
}

.site-footer {
    padding: 28px 0 34px;
}

.footer-content {
    justify-content: space-between;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-content > p {
    flex: 1;
}

.footer-links {
    flex: 1;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.social-links a {
    color: var(--muted);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--text);
    transform: translateY(-2px);
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.timeline {
    display: grid;
    gap: 20px;
}

.timeline-item {
    padding: 0 0 0 26px;
    border-left: 1px solid var(--line-strong);
}

.timeline-item h3 {
    margin-bottom: 10px;
}

.service-stack {
    display: grid;
    gap: 18px;
}

.service-detail {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.service-meta {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 180px;
    text-align: right;
    gap: 8px;
}

.contact-list {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
}

@media (max-width: 1024px) {

    .hero-grid,
    .page-hero-grid,
    .split-layout,
    .about-preview,
    .contact-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .hero-card img,
    .page-hero-card img,
    .about-image img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .services-grid,
    .info-grid,
    .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-detail {
        flex-direction: column;
    }

    .service-meta {
        align-items: flex-start;
        text-align: left;
    }

    .cta-dark {
        padding: 72px 0;
    }

    .cta-dark-inner {
        max-width: 820px;
        margin: 0 auto;
    }

    .cta-dark-inner h2 {
        font-size: clamp(1.45rem, 3.8vw, 2.3rem);
        letter-spacing: 0.08em;
        line-height: 1.3;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(var(--container), calc(100% - 24px));
    }

    .header-bar {
        min-height: 78px;
        gap: 16px;
    }

    .brand-text strong {
        font-size: clamp(1.25rem, 5vw, 1.45rem);
    }

    .brand-text small {
        font-size: 0.65rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        inset: 78px 12px auto;
        display: grid;
        gap: 16px;
        padding: 22px;
        border: 1px solid var(--line-strong);
        border-radius: 24px;
        background: rgba(238, 240, 242, 0.98);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .site-nav a {
        font-size: 1.05rem;
    }

    .nav-open .site-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Balanced Mobile Typography */
    h1 {
        max-width: none;
        font-size: clamp(1.85rem, 8vw, 2.5rem);
        line-height: 1.18;
    }

    h2 {
        font-size: clamp(1.4rem, 6vw, 1.95rem);
        line-height: 1.25;
    }

    /* Calibrated letter-spacing for mobile so words fit cleanly */
    .intro-section h2,
    .formats-section h2,
    .about-reference h2,
    .cta-dark h2,
    .section-heading h2 {
        letter-spacing: 0.07em;
    }

    .hero-kicker {
        font-size: 0.8rem;
        letter-spacing: 0.28em;
    }

    .hero-section,
    .page-hero,
    .section {
        padding-top: 40px;
        padding-bottom: 30px;
    }

    .cabinet-page-section {
        padding-top: 36px !important;
    }

    .hero-stats,
    .focus-grid,
    .services-grid,
    .articles-grid,
    .info-grid,
    .faq-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-reference {
        min-height: 420px;
        padding: 40px 0;
    }

    .hero-reference-inner h1 {
        font-size: clamp(1.65rem, 7vw, 2.35rem);
        letter-spacing: 0.08em;
        line-height: 1.22;
    }

    .page-intro {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-top: 14px;
    }

    .hero-card img,
    .page-hero-card img,
    .about-image img {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .focus-card,
    .service-card,
    .info-card,
    .service-detail,
    .contact-card,
    .booking-card,
    .checklist-panel,
    .faq-panel,
    .webinar-panel,
    .article-content,
    .hero-card-content,
    .page-hero-note,
    .cta-banner {
        padding: 22px;
    }

    /* Mobile Service & Webinar Cards */
    .service-card-image {
        min-height: 290px;
    }

    .service-card-overlay h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-top: 20px;
    }

    .service-card-overlay p {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    /* Issue & Focus Cards */
    .issue-card h3 {
        font-size: 1.05rem;
        letter-spacing: 0.06em;
    }

    .issue-card p {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .contact-list a {
        word-break: break-all;
    }

    .button {
        white-space: normal;
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        line-height: 1.4;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 18px;
        font-size: 0.9rem;
    }

    .cta-dark {
        padding: 64px 0;
    }

    .cta-dark-inner h2 {
        font-size: clamp(1.2rem, 5.5vw, 1.65rem);
        letter-spacing: 0.05em;
        line-height: 1.35;
    }
}

.auth-page-main {
    padding: 48px 0 88px;
    min-height: 70vh;
}

.auth-layout {
    display: grid;
    gap: 22px;
    max-width: 520px;
    margin: 0 auto;
}

.auth-card {
    display: grid;
    gap: 18px;
    padding: 32px;
    border-radius: var(--radius-md);
}

.auth-card h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.1;
}

.auth-note,
.auth-switch {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.auth-switch a,
.auth-note a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form[hidden],
.auth-card h1[hidden],
.auth-note[hidden] {
    display: none !important;
}

.auth-form label {
    display: grid;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: var(--surface-strong);
    color: var(--text);
}

.auth-form input:focus {
    outline: 2px solid var(--accent-soft);
    outline-offset: 1px;
}

.auth-status {
    display: none;
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.auth-status.is-visible {
    display: block;
}

.auth-status.is-error {
    color: #7a2e2e;
    background: rgba(180, 80, 80, 0.1);
    border: 1px solid rgba(180, 80, 80, 0.2);
}

.auth-status.is-info {
    color: var(--text);
    background: rgba(206, 216, 222, 0.45);
    border: 1px solid var(--line);
}

.auth-status a {
    font-weight: 700;
    text-decoration: underline;
}

/* Language selection support */
html[lang="uk"] .lang-ru {
    display: none !important;
}
html[lang="ru"] .lang-uk {
    display: none !important;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
}

.lang-link {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-link:hover,
.lang-link.active {
    color: var(--text);
    background-color: var(--accent-soft);
}

.lang-separator {
    color: var(--line-strong);
    font-size: 0.85rem;
    pointer-events: none;
}

/* Adjustments for mobile nav drawer containing language switcher */
@media (max-width: 760px) {
    .lang-switcher {
        margin: 10px auto 0;
        justify-content: center;
    }
}

/* Privacy Modal */
.privacy-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 30, 0.72);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.privacy-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.privacy-modal-dialog {
    position: relative;
    background: var(--surface-strong);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 820px;
    max-height: 85vh;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(16px);
    transition: transform 0.25s ease;
}

.privacy-modal-overlay.active .privacy-modal-dialog {
    transform: translateY(0);
}

.privacy-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, color 0.2s ease;
}

.privacy-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

.privacy-modal-body {
    overflow-y: auto;
    padding: 38px 36px;
    font-size: 0.98rem;
    line-height: 1.7;
}

.privacy-modal-body h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.95rem;
    margin: 0 0 6px;
    color: var(--text);
    padding-right: 40px;
}

.privacy-modal-date {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

.privacy-modal-body h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 24px 0 10px;
    color: var(--text);
}

.privacy-modal-body p {
    margin: 0 0 12px;
}

.privacy-modal-body ul {
    margin: 0 0 14px 22px;
    padding: 0;
}

.privacy-modal-body li {
    margin-bottom: 6px;
}

.privacy-modal-body a {
    color: #436e8b;
    text-decoration: underline;
}

.privacy-modal-body a:hover {
    color: var(--text);
}

@media (max-width: 768px) {
    .privacy-modal-overlay {
        padding: 12px;
    }
    .privacy-modal-dialog {
        max-height: 92vh;
        border-radius: var(--radius-sm);
    }
    .privacy-modal-body {
        padding: 26px 18px;
        font-size: 0.92rem;
    }
    .privacy-modal-body h3 {
        font-size: 1.6rem;
    }
}

/* ===== Article text (Markdown from the admin panel) ===== */
.article-body {
    line-height: 1.75;
    font-size: 1.05rem;
}

.article-body > :first-child {
    margin-top: 0;
}

.article-body p {
    margin: 0 0 1.1em;
    color: var(--text);
}

.article-body .md-h1,
.article-body .md-h2,
.article-body .md-h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin: 1.6em 0 0.55em;
    text-transform: none;
    letter-spacing: normal;
}

.article-body .md-h1 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
}

.article-body .md-h2 {
    font-size: clamp(1.55rem, 2.4vw, 1.9rem);
}

.article-body .md-h3 {
    font-size: 1.3rem;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.1em;
    padding-left: 1.5em;
}

.article-body ul {
    list-style: disc;
}

.article-body ol {
    list-style: decimal;
}

.article-body li {
    margin: 0.3em 0;
    padding-left: 0.2em;
}

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

/* ===== Editable page background (login.html, cabinet.html). The picture is chosen in the admin panel. ===== */
.page-bg {
    position: relative;
    background-color: #16212b;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 18, 27, 0.62), rgba(10, 18, 27, 0.78));
    pointer-events: none;
}

.page-bg > * {
    position: relative;
}

.page-bg .cabinet-page-section > .container > h1 {
    color: #fff;
}

.page-bg .cabinet-page-section,
.page-bg .cabinet-page-section p {
    color: #e8eef2;
}


/* About page: YouTube project block */
#youtube-project h2 {
    margin-bottom: 18px;
}
