:root {
    --bg: #f3f6fb;
    --bg-accent: #e7eefc;
    --surface: #ffffff;
    --surface-soft: #f8faff;
    --ink: #121a2f;
    --ink-soft: #49516b;
    --primary: #1143c7;
    --primary-strong: #0c2f8f;
    --secondary: #0f7a6f;
    --danger: #b12b2b;
    --success: #0d7a4d;
    --border: #d5dced;
    --shadow: 0 16px 40px rgba(16, 39, 90, 0.08);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --container: min(1120px, calc(100vw - 3rem));
    --focus: #ff8f2d;
    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
}

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

html {
    color-scheme: light;
    font-size: 16px;
    overflow-x: hidden;
    min-height: 100%;
    height: auto;
}

body {
    margin: 0;
    height: auto;
    overflow-x: hidden;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 15%, rgba(17, 67, 199, 0.14), transparent 32%),
        radial-gradient(circle at 88% 0%, rgba(15, 122, 111, 0.12), transparent 27%),
        radial-gradient(circle at 78% 68%, rgba(9, 76, 175, 0.08), transparent 30%),
        linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
    line-height: 1.55;
}

h1,
h2,
h3 {
    font-family: "Fraunces", Georgia, serif;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(2rem, 3.5vw, 3.4rem);
}

h2 {
    font-size: clamp(1.55rem, 2.2vw, 2.2rem);
}

h3 {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

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

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 0.5rem;
    top: -100px;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #fff;
    z-index: 20;
}

.skip-link:focus {
    top: 0.5rem;
}

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

.site-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.site-shell > main {
    flex: 1 0 auto;
    min-height: 0;
}

.container {
    width: var(--container);
    margin-inline: auto;
}

.topbar {
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(213, 220, 237, 0.55);
    background-color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1200;
}

.topbar__inner {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    text-decoration: none;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.brand img {
    width: auto;
    height: 73px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

.nav__toggle {
    display: none;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    padding: 0.55rem;
    cursor: pointer;
}

.nav__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #0f2043;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle span + span {
    margin-top: 6px;
}

.nav__panel {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.lang-picker {
    position: relative;
    margin-left: 0.25rem;
}

.lang-picker summary {
    list-style: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lang-picker summary::-webkit-details-marker {
    display: none;
}

.lang-picker__current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lang-picker__current img {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    object-fit: cover;
}

.lang-picker[open] summary {
    border-color: #14a3d7;
    box-shadow: 0 0 0 2px rgba(20, 163, 215, 0.16);
}

.lang-picker__menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    min-width: 168px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 30px rgba(16, 39, 90, 0.16);
    padding: 0.45rem;
    z-index: 80;
}

.lang-picker__item {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    background: #f2f7ff;
}

.lang-picker__item img {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    object-fit: cover;
}

.lang-picker__item:hover,
.lang-picker__item:focus-visible {
    background: rgba(20, 163, 215, 0.2);
}

.lang-picker__item.is-current {
    outline: 2px solid rgba(20, 163, 215, 0.45);
    outline-offset: -2px;
}

.nav[data-open="true"] .nav__toggle span:nth-child(2) {
    transform: translateY(8px) rotate(45deg);
}

.nav[data-open="true"] .nav__toggle span:nth-child(3) {
    opacity: 0;
}

.nav[data-open="true"] .nav__toggle span:nth-child(4) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav a {
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 600;
    padding: 0.35rem 0.4rem;
    border-radius: 6px;
}

.nav .btn {
    padding: 10px 22px;
    border-radius: 8px;
}

.nav .btn.btn--outline {
    color: #14a3d7;
    border-color: #14a3d7;
    background: transparent;
}

.nav .btn.btn--outline:hover,
.nav .btn.btn--outline:active {
    background: #14a3d7;
    color: #ffffff;
    border-color: #14a3d7;
}

.nav .btn.btn--primary,
.nav .btn.btn--primary:hover,
.nav .btn.btn--primary:active,
.nav .btn.btn--primary:focus-visible {
    color: #ffffff;
}

.nav a[aria-current="page"],
.nav a:hover {
    color: var(--ink);
    background: rgba(17, 67, 199, 0.08);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1.2;
    border: 0;
    text-decoration: none;
    padding: 0.62rem 1.25rem;
}

.btn--primary {
    color: #ffffff;
    background: linear-gradient(90deg, #0f9fd6 0%, #19b5d0 52%, #35c790 100%);
    border: 0;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    box-shadow: none;
    background-clip: padding-box;
}

.btn--outline {
    border: 2px solid #14a3d7;
    color: #14a3d7;
    background-color: transparent;
}

.btn--primary:hover,
.btn--primary:active {
    background: linear-gradient(90deg, #0b8ec0, #2fbb80);
}

.btn--outline:hover,
.btn--outline:active {
    background: #14a3d7;
    color: #ffffff;
    border-color: #14a3d7;
}

.btn.is-disabled {
    pointer-events: none;
    opacity: 0.45;
}

.layout-stack {
    display: grid;
    gap: var(--space-6);
    padding-block: 2rem 4rem;
}

.admin-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.7rem;
}

.admin-menu__link {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    color: #21407a;
    border: 1px solid #d2dcef;
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    background: #f9fbff;
}

.admin-menu__link:hover,
.admin-menu__link:focus-visible {
    color: #0e2e69;
    border-color: #9eb8e9;
    background: #edf3ff;
}

.admin-menu__link.is-active {
    color: #ffffff;
    border-color: #1143c7;
    background: #1143c7;
}

body.is-home .topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
    z-index: 1600;
}

body.is-home .layout-stack {
    padding-top: 0;
}

.hero {
    display: grid;
    gap: var(--space-4);
    padding: clamp(1.6rem, 3vw, 3rem);
    background: linear-gradient(160deg, #ffffff 0%, #f5f8ff 65%, #eef4ff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.home-hero {
    position: relative;
    min-height: 84vh;
    overflow: hidden;
    color: #ffffff;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.home-hero.hero--decorative::before,
.home-hero.hero--decorative::after {
    display: none;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 13, 46, 0.72);
    z-index: 1;
}

.home-hero__content {
    position: relative;
    z-index: 3;
    max-width: 820px;
    text-align: center;
    margin-inline: auto;
    padding: 150px 1.5rem 150px;
}

.home-hero__content h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    margin-bottom: 12px;
}

.home-hero__content p {
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: #dbe9f5;
    margin-bottom: 30px;
}

.home-hero__wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    z-index: 2;
    display: block;
    line-height: 0;
}

.home-hero__wave path {
    stroke: none;
}

.home-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 4px;
    background: #ffffff;
    z-index: 3;
}

.home-hero-cards-wrap {
    position: relative;
    z-index: 5;
    margin-top: -22.2rem;
}

.home-hero__cards {
    position: relative;
    z-index: 1;
    width: min(1020px, calc(100% - 2rem));
    margin-inline: auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.home-hero__card {
    text-align: center;
    padding: 0.35rem 0.5rem;
}

.home-hero__card img {
    width: 105px;
    height: auto;
    margin-bottom: 0;
}

.home-hero__card h3 {
    color: #0d1b2a;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.home-hero__card p {
    color: #6c849e;
    margin: 0;
    font-size: 0.95rem;
}

.home-search-block {
    margin-top: -0.4rem;
    position: relative;
    z-index: 40;
}

.home-search-block.card--interactive,
.directory-search-block.card--interactive {
    overflow: visible;
    contain: none;
}

.directory-search-block {
    position: relative;
    z-index: 35;
}

.hero--decorative {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero--decorative::before,
.hero--decorative::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    z-index: -1;
}

.hero--decorative::before {
    width: 320px;
    height: 320px;
    right: -80px;
    top: -140px;
    background: radial-gradient(circle, rgba(17, 67, 199, 0.2), rgba(17, 67, 199, 0));
}

.hero--decorative::after {
    width: 240px;
    height: 240px;
    left: -70px;
    bottom: -100px;
    background: radial-gradient(circle, rgba(15, 122, 111, 0.16), rgba(15, 122, 111, 0));
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-search {
    display: grid;
    gap: 0.75rem;
}

.hero-search__row {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 1fr auto;
}

.hero-search__autocomplete {
    position: relative;
    z-index: 70;
}

.autocomplete-list {
    position: absolute;
    z-index: 2200;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 16px 34px rgba(16, 39, 90, 0.14);
}

.autocomplete-list[hidden] {
    display: none;
}

.autocomplete-item {
    display: grid;
    gap: 0.15rem;
    padding: 0.65rem 0.7rem;
    border-radius: 10px;
    text-decoration: none;
}

button.autocomplete-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.autocomplete-item:hover,
.autocomplete-item:focus-visible {
    background: rgba(17, 67, 199, 0.08);
}

.autocomplete-item small {
    color: var(--ink-soft);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(17, 67, 199, 0.28);
    color: var(--primary-strong);
    background: rgba(17, 67, 199, 0.08);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.35rem 0.7rem;
}

.grid-3 {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    box-shadow: var(--shadow);
}

.card--soft {
    background: var(--surface-soft);
}

.card--interactive {
    position: relative;
    overflow: hidden;
    contain: paint;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card--interactive::after {
    content: "";
    position: absolute;
    inset: -140% auto auto -20%;
    width: 70%;
    height: 380%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
    opacity: 0;
    pointer-events: none;
}

.card--interactive:hover,
.card--interactive:focus-within {
    transform: translateY(-5px);
    border-color: rgba(17, 67, 199, 0.35);
    box-shadow: 0 20px 36px rgba(16, 39, 90, 0.14);
}

.card--interactive:hover::after,
.card--interactive:focus-within::after {
    opacity: 1;
    animation: card-shine 0.9s ease;
}

.fx-animate .card--interactive.is-visible,
.fx-animate .hero--decorative.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fx-animate .card--interactive,
.fx-animate .hero--decorative {
    opacity: 1;
    transform: none;
}

.fx-animate .home-hero.hero--decorative,
.fx-animate .home-hero.hero--decorative.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.flash {
    border-left: 6px solid;
}

.flash--success {
    border-left-color: var(--success);
}

.flash--error {
    border-left-color: var(--danger);
}

.section-header {
    display: grid;
    gap: 0.5rem;
    margin-bottom: var(--space-4);
}

.metric {
    font-size: clamp(1.7rem, 2.5vw, 2.3rem);
    font-weight: 800;
    color: var(--ink);
}

.muted {
    color: var(--ink-soft);
}

.list-clean {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-3);
}

.list-clean li {
    padding-left: 1.25rem;
    position: relative;
}

.list-clean li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--secondary);
}

.faq {
    display: grid;
    gap: 0.85rem;
}

.faq__item,
.faq details {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq__item[open],
.faq details[open] {
    border-color: #9cb5e2;
    box-shadow: 0 10px 24px rgba(16, 39, 90, 0.08);
}

.faq__question,
.faq summary {
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
    padding: 0.95rem 1rem;
    margin: 0;
}

.faq__question::-webkit-details-marker,
.faq summary::-webkit-details-marker {
    display: none;
}

.faq__question::after,
.faq summary::after {
    content: "+";
    font-size: 1.15rem;
    line-height: 1;
    color: #2f4c83;
}

.faq__item[open] .faq__question::after,
.faq details[open] summary::after {
    content: "−";
}

.faq__answer {
    padding: 0 1rem 1rem;
}

.faq__answer p,
.faq p {
    margin-top: 0;
}

.faq__links {
    margin-top: 0.2rem;
}

.page-header {
    display: grid;
    gap: 0.55rem;
    max-width: 70ch;
}

.error-hero {
    display: grid;
    gap: 1rem;
    padding: clamp(1.25rem, 3vw, 2.1rem);
}

.error-hero__code {
    display: inline-flex;
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(177, 43, 43, 0.32);
    color: #8b1f1f;
    background: rgba(177, 43, 43, 0.1);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.error-hero__lead {
    max-width: 70ch;
}

.error-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.error-hero__search {
    margin-top: 0.3rem;
}

.error-quick-links {
    display: grid;
    gap: 1rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

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

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.checkbox-inline__input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    flex: 0 0 auto;
    accent-color: #14a3d7;
}

.checkbox-inline__label {
    margin: 0;
    display: inline;
    font-weight: 700;
}

.widget-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
}

.widget-inline-check .checkbox-inline__label {
    line-height: 1.35;
}

.widget-color-field__controls {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.color-hex-input {
    width: min(170px, 100%);
    font-family: "JetBrains Mono", "Consolas", monospace;
    text-transform: uppercase;
}

.color-square-picker {
    appearance: none;
    -webkit-appearance: none;
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #cfd9ee;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.color-square-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-square-picker::-webkit-color-swatch {
    border: 0;
    border-radius: 9px;
}

.color-square-picker::-moz-color-swatch {
    border: 0;
    border-radius: 9px;
}

.widget-preview-card {
    display: grid;
    gap: 0.9rem;
}

.widget-preview-shell {
    --widget-preview-bg: #0b1a35;
    --widget-preview-text: #ffffff;
    --widget-preview-border: rgba(255, 255, 255, 0.2);
    --widget-preview-card: rgba(255, 255, 255, 0.12);
    --widget-preview-arrow-bg: rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    border: 1px solid var(--widget-preview-border);
    background: var(--widget-preview-bg);
    color: var(--widget-preview-text);
    box-shadow: 0 16px 36px rgba(15, 35, 85, 0.25);
    padding: 1rem;
    display: grid;
    gap: 0.8rem;
    position: relative;
}

.widget-preview-shell__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.widget-preview-shell__head strong {
    font-size: 1rem;
}

.widget-preview-shell__head p,
.widget-preview-shell__score small {
    margin: 0;
    opacity: 0.84;
    color: inherit;
}

.widget-preview-shell__score {
    display: grid;
    justify-items: end;
    gap: 0.1rem;
}

.widget-preview-shell__score strong {
    font-size: 1.4rem;
    line-height: 1;
}

.widget-preview-shell__list {
    display: grid;
    gap: 0.6rem;
    position: relative;
}

.widget-preview-shell__item {
    border: 1px solid var(--widget-preview-border);
    border-radius: 12px;
    background: var(--widget-preview-card);
    padding: 0.72rem;
}

.widget-preview-shell__item-title {
    margin: 0 0 0.2rem 0;
    color: inherit;
    font-weight: 700;
}

.widget-preview-shell__item-meta {
    margin: 0 0 0.25rem 0;
    color: inherit;
    opacity: 0.84;
    font-size: 0.82rem;
}

.widget-preview-shell__item-text {
    margin: 0;
    color: inherit;
    font-size: 0.9rem;
}

.widget-preview-shell.is-compact .widget-preview-shell__item-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-preview-shell__nav {
    display: none;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.widget-preview-arrow {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.35rem;
    line-height: 1;
    border: 1px solid var(--widget-preview-text);
    color: var(--widget-preview-text);
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.widget-preview-arrow:hover,
.widget-preview-arrow:focus-visible {
    background: var(--widget-preview-arrow-bg);
}

.widget-preview-arrow:first-child {
    left: 0.35rem;
}

.widget-preview-arrow:last-child {
    right: 0.35rem;
}

.widget-preview-shell.is-carousel .widget-preview-shell__list {
    padding-inline: 2.6rem;
}

.widget-preview-shell.is-carousel .widget-preview-shell__nav {
    display: block;
}

.widget-live-shell {
    min-height: 120px;
}

.widget-code {
    min-height: 120px;
    font-family: "JetBrains Mono", "Consolas", monospace;
    font-size: 0.86rem;
    line-height: 1.45;
}

label {
    font-weight: 700;
    display: block;
    margin-bottom: 0.35rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.65rem 0.7rem;
    border: 1px solid #c8d8e7;
    border-radius: var(--radius-sm);
    background: #fff;
    font: inherit;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #14a3d7;
    outline-offset: 2px;
    border-color: #14a3d7;
}

.password-toggle {
    position: relative;
}

.password-toggle__input {
    padding-right: 2.9rem;
}

.password-toggle__button {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 0;
    background: transparent;
    color: #4f6286;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.password-toggle__button:hover,
.password-toggle__button:focus-visible {
    background: rgba(20, 163, 215, 0.16);
    color: #14386f;
}

.password-toggle__icon--hide {
    display: none;
}

.password-toggle__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.password-toggle.is-visible .password-toggle__icon--show {
    display: none;
}

.password-toggle.is-visible .password-toggle__icon--hide {
    display: block;
}

.toggle-stack {
    display: grid;
    gap: 0.55rem;
}

.toggle-field {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.toggle-field__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.toggle-field__label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    font-weight: 700;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #cfd9ed;
    border: 1px solid #b8c8e4;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.toggle-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(12, 32, 73, 0.2);
    transition: transform 0.2s ease;
}

.toggle-field__input:checked + .toggle-field__label .toggle-switch {
    background: linear-gradient(90deg, #0f9fd6 0%, #35c790 100%);
    border-color: #129ecf;
}

.toggle-field__input:checked + .toggle-field__label .toggle-switch::after {
    transform: translateX(20px);
}

.toggle-field__input:focus-visible + .toggle-field__label .toggle-switch {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.terms-inline {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
}

.terms-inline__checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
}

.terms-inline__label {
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: #fff;
}

.footer__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.footer__links {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.footer__links a {
    text-decoration: none;
}

.rating-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rating-field {
    border: 1px solid #d8e3ef;
    border-radius: 12px;
    background: #fbfdff;
    padding: 0.9rem 1rem;
    display: grid;
    gap: 0.45rem;
}

.rating-field__label {
    font-weight: 700;
    color: #0d1b2a;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.rating-star {
    border: 0;
    background: transparent;
    color: #b5c2d8;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.08rem 0.15rem;
}

.rating-star.is-active {
    color: #f2b300;
    text-shadow: 0 0 8px rgba(242, 179, 0, 0.25);
}

.rating-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.rating-field__value {
    margin: 0;
    color: #5f7590;
    font-size: 0.88rem;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 1rem;
    z-index: 1490;
    padding-inline: 1rem;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner__inner {
    width: min(960px, 100%);
    margin-inline: auto;
    background: #ffffff;
    border: 1px solid #d7e1f3;
    border-radius: 14px;
    box-shadow: 0 16px 38px rgba(16, 39, 90, 0.16);
    padding: 1rem 1.1rem;
    display: grid;
    gap: 0.75rem;
}

.cookie-banner__title {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.05rem;
    color: #11234a;
    margin: 0;
}

.cookie-banner__text {
    margin: 0;
    color: #425778;
    font-size: 0.94rem;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.global-loader {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(10, 20, 48, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.global-loader.is-active {
    display: flex;
}

.global-loader__box {
    width: min(380px, 96vw);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 26px 50px rgba(15, 35, 85, 0.25);
    padding: 1.2rem;
    display: grid;
    gap: 0.7rem;
    text-align: center;
}

.global-loader__spinner {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 4px solid rgba(17, 67, 199, 0.2);
    border-top-color: #1143c7;
    margin-inline: auto;
    animation: spin 0.8s linear infinite;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.32rem 0.72rem;
    border: 1px solid transparent;
}

.badge--warn {
    color: #7b4a00;
    background: #fff3dc;
    border-color: #ffd89a;
}

.badge--success {
    color: #0c6e45;
    background: #e6fbef;
    border-color: #b6efd1;
}

.badge--neutral {
    color: #475779;
    background: #edf3ff;
    border-color: #d3e0fb;
}

.company-hero {
    gap: var(--space-5);
}

.company-hero__head {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr minmax(230px, 300px);
    align-items: start;
}

.company-hero__identity {
    display: grid;
    gap: 0.9rem;
}

.company-facts {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.2rem;
    padding: 0.9rem 1rem;
    border: 1px solid #d9e3f7;
    background: rgba(255, 255, 255, 0.84);
    border-radius: 12px;
}

.company-facts__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    color: #425981;
    font-size: 0.92rem;
}

.company-facts__label {
    font-weight: 700;
    color: #162f60;
}

.company-facts__row a {
    color: #1143c7;
    text-decoration: none;
    font-weight: 700;
}

.company-facts__row a:hover,
.company-facts__row a:focus-visible {
    text-decoration: underline;
}

.company-facts__description {
    color: #344a74;
    font-size: 0.95rem;
}

.company-hero__claim {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.company-google-rating {
    display: grid;
    gap: 0.45rem;
    align-content: start;
}

.company-google-rating__brand {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 0.7rem;
    align-items: center;
    margin-bottom: 0.2rem;
}

.company-google-rating__brand-text {
    display: grid;
    gap: 0.05rem;
}

.company-google-rating__brand-text strong {
    color: #0e2148;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.company-google-rating__brand-text small {
    color: #61759a;
    font-size: 0.8rem;
}

.company-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid #d3def3;
    background: #f0f5ff;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #ffffff;
}

.company-logo-editor {
    display: grid;
    gap: 0.45rem;
}

.company-logo--preview {
    width: 96px;
    height: 96px;
    border-radius: 16px;
}

.company-logo__fallback {
    color: #1f4dac;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.company-google-rating__value {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    color: var(--ink);
    white-space: nowrap;
}

.company-google-rating__value span {
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 800;
    line-height: 1;
}

.company-google-rating__value small {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4c5f83;
}

.company-google-rating__stars,
.review-stars {
    --rating: 0;
    --star-size: 1.18rem;
    position: relative;
    display: inline-block;
    font-size: var(--star-size);
    line-height: 1;
    letter-spacing: 0.08em;
}

.company-google-rating__stars::before,
.company-google-rating__stars::after,
.review-stars::before,
.review-stars::after {
    content: "★★★★★";
}

.company-google-rating__stars::before,
.review-stars::before {
    color: #d2d9e8;
}

.company-google-rating__stars::after,
.review-stars::after {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--rating) / 5 * 100%);
    overflow: hidden;
    white-space: nowrap;
    color: #f7b500;
}

.company-google-rating__meta {
    font-size: 0.9rem;
    color: #4c5f83;
}

.company-kpi .card {
    min-height: 138px;
    display: grid;
    align-content: center;
    gap: 0.35rem;
}

.company-insights {
    align-items: start;
}

.score-bars {
    list-style: none;
    margin: 1.15rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.72rem;
}

.score-bars__item {
    display: grid;
    grid-template-columns: minmax(82px, auto) 1fr auto;
    gap: 0.7rem;
    align-items: center;
}

.score-bars__label {
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 700;
}

.score-bars__track {
    position: relative;
    display: block;
    height: 10px;
    border-radius: 999px;
    background: #e4eaf7;
    overflow: hidden;
}

.score-bars__fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, #ffcd57 0%, #f7a600 100%);
    border-radius: inherit;
}

.score-bars__meta {
    min-width: 28px;
    text-align: right;
    color: #4f6286;
    font-weight: 700;
    font-size: 0.92rem;
}

.company-reviews {
    display: grid;
    gap: 1.2rem;
}

.reviews-list {
    display: grid;
    gap: 1rem;
}

.review-card {
    padding: 1.25rem;
    display: grid;
    gap: 0.95rem;
}

.review-card__header {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: 1fr auto;
    align-items: start;
}

.review-card__title-wrap {
    display: grid;
    gap: 0.42rem;
}

.review-card__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.review-card__meta {
    color: #556486;
    font-size: 0.9rem;
}

.review-card__score {
    margin: 0;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.2rem 0;
    text-align: right;
    white-space: nowrap;
}

.review-card__score-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #11234d;
}

.review-card .review-stars {
    --star-size: 1rem;
    flex-basis: 100%;
    text-align: right;
}

.review-card__badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.review-card__comment {
    white-space: pre-line;
}

.review-card__title-badge {
    font-size: 0.72rem;
    padding: 0.24rem 0.55rem;
}

.directory-rating {
    margin-top: -0.15rem;
}

.directory-rating .review-stars {
    --star-size: 0.96rem;
}

.directory-card__claim {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.35rem;
    margin-bottom: 0.45rem;
}

.directory-card__claim a {
    color: #1143c7;
    text-decoration: none;
    font-weight: 700;
}

.directory-card__claim a:hover,
.directory-card__claim a:focus-visible {
    text-decoration: underline;
}

.directory-card__actions {
    margin-top: 0.35rem;
}

.company-map__frame {
    border: 1px solid #d8e3f4;
    border-radius: 14px;
    overflow: hidden;
    height: 320px;
}

.company-map__frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.review-response {
    margin-top: 0.1rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid #d5e4ff;
    background: #eef5ff;
    display: grid;
    gap: 0.35rem;
}

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

@media (max-width: 760px) {
    body {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .topbar__inner {
        padding-block: 0.85rem;
    }

    .layout-stack {
        gap: 2.1rem;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 1.2rem;
    }

    .home-hero {
        min-height: 62vh;
        overflow: hidden;
    }

    .home-hero__content {
        padding: 162px 1rem 44px;
    }

    .home-hero__wave {
        height: 86px;
        bottom: -1px;
    }

    .home-hero__cards {
        width: min(560px, calc(100% - 1.2rem));
        margin-inline: auto;
        margin-top: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .home-hero__card {
        background: #ffffff;
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 10px 24px rgba(16, 39, 90, 0.12);
        padding: 0.9rem 0.8rem;
    }

    .home-hero-cards-wrap {
        margin-top: -10.7rem;
    }

    .hero-search__row {
        grid-template-columns: 1fr;
    }

    .error-hero__actions {
        display: grid;
        gap: 0.55rem;
    }

    .error-hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .rating-grid {
        grid-template-columns: 1fr;
    }

    .review-card__header {
        grid-template-columns: 1fr;
    }

    .review-card__score {
        justify-content: flex-start;
        text-align: left;
    }

    .review-card .review-stars {
        text-align: left;
    }

    .company-map__frame {
        height: 260px;
    }

    /* Evite le grand espace blanc ajouté par la barre Symfony en mode dev sur mobile. */
    .sf-toolbar-clearer {
        height: 0 !important;
    }

    .widget-preview-shell__score {
        justify-items: start;
    }

    .widget-preview-shell__head {
        gap: 0.55rem;
    }

    .widget-preview-arrow {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }

    .widget-color-field__controls {
        width: 100%;
    }

    .color-hex-input {
        flex: 1 1 auto;
        max-width: none;
    }

    .cookie-banner {
        bottom: 0.55rem;
        padding-inline: 0.55rem;
    }

    .cookie-banner__inner {
        padding: 0.85rem;
        border-radius: 12px;
    }

    .cookie-banner__actions {
        display: grid;
        gap: 0.45rem;
    }

    .cookie-banner__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 860px) {
    .topbar__inner {
        min-height: 88px;
    }

    .nav {
        margin-left: auto;
        flex-wrap: nowrap;
    }

    .nav__toggle {
        display: inline-block;
    }

    .nav__panel {
        position: absolute;
        top: calc(100% + 0.55rem);
        right: 0;
        width: min(360px, calc(100vw - 2rem));
        max-height: min(78vh, 560px);
        overflow-y: auto;
        display: none;
        align-items: stretch;
        flex-direction: column;
        flex-wrap: nowrap;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: 0 20px 34px rgba(16, 39, 90, 0.16);
        padding: 0.8rem;
        z-index: 50;
    }

    .nav[data-open="true"] .nav__panel {
        display: flex;
    }

    .nav__panel a,
    .nav__panel .btn {
        width: 100%;
        justify-content: flex-start;
        margin: 0;
    }

    .lang-picker {
        margin: 0;
        width: 100%;
    }

    .lang-picker summary {
        width: 100%;
        justify-content: flex-start;
        padding-inline: 0.7rem;
    }

    .lang-picker__menu {
        left: 0;
        right: auto;
        min-width: 100%;
    }

    .company-hero__head {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .card--interactive,
    .hero--decorative {
        opacity: 1 !important;
        transform: none !important;
    }
}

@keyframes card-shine {
    from {
        transform: translateX(-120%) rotate(18deg);
    }
    to {
        transform: translateX(260%) rotate(18deg);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
