/* Extracted from index-php-17 */

:root {
    --primary: #786cf8;
    --primary-hover: #675ae9;
    --primary-light: #eef0ff;
    --primary-rgb: 120, 108, 248;
    --accent-blue: #3a7dde;
    --accent-blue-hover: #2d6dcb;
    --accent-blue-rgb: 58, 125, 222;
    --text-dark: #1a2235;
    --text-gray: #6f7d91;
    --text-soft: #9aa8bb;
    --bg-body: #f1f4f9;
    --bg-card: rgba(255, 255, 255, 0.96);
    --bg-muted: #edf3fb;
    --border-color: rgba(151, 171, 198, 0.28);
    --radius: 16px;
    --shadow-sm: 0 16px 34px -28px rgba(99, 126, 166, 0.75);
    --shadow-md: 0 28px 64px -46px rgba(114, 139, 173, 0.6);
    --shadow-lg: 0 38px 96px -58px rgba(123, 146, 179, 0.62);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background-color: var(--bg-body);
    background-image:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 46%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(241, 244, 249, 0) 34%);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.container {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

header,
section[id],
footer {
    scroll-margin-top: 110px;
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 0;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(168, 183, 208, 0.36);
    border-radius: 10px;
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 36px -30px rgba(137, 157, 191, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-logo {
    display: block;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-logo--header {
    width: 130px;
}

.brand-logo--footer {
    width: 91px;
}

nav {
    display: flex;
    gap: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #79869a;
}

nav a {
    position: relative;
    padding: 6px 0;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), rgba(84, 166, 255, 0.75));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

nav a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.site-language-switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.site-language-switch summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 12px;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    list-style: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-language-switch summary::-webkit-details-marker { display: none; }

.site-language-switch summary:hover,
.site-language-switch[open] summary {
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: var(--shadow-sm);
}

.site-language-flag {
    display: inline-block;
    width: 18px;
    height: 12px;
    flex-shrink: 0;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.16);
}
.site-language-flag--ru {
    background: linear-gradient(to bottom, #ffffff 0 33.33%, #2563eb 33.33% 66.66%, #ef4444 66.66% 100%);
}
.site-language-flag--en {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 36'%3E%3Cpath fill='%23012169' d='M0 0h60v36H0z'/%3E%3Cpath stroke='%23fff' stroke-width='7' d='M0 0l60 36M60 0L0 36'/%3E%3Cpath stroke='%23C8102E' stroke-width='4' d='M0 0l60 36M60 0L0 36'/%3E%3Cpath stroke='%23fff' stroke-width='12' d='M30 0v36M0 18h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='7' d='M30 0v36M0 18h60'/%3E%3C/svg%3E");
}
.site-language-code { min-width: 19px; letter-spacing: 0.02em; }
.site-language-chevron { color: var(--text-gray); transition: transform 0.2s ease; }
.site-language-switch[open] .site-language-chevron { transform: rotate(180deg); }

.site-language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    display: grid;
    min-width: 138px;
    padding: 6px;
    border: 1px solid rgba(170, 184, 209, 0.38);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 38px -24px rgba(46, 62, 93, 0.45);
}

.site-language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 9px;
    border-radius: 7px;
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.site-language-option:hover,
.site-language-option.is-active {
    color: var(--accent-blue);
    background: rgba(var(--accent-blue-rgb), 0.1);
}

.header-user-pill {
    display: inline-flex;
    align-items: center;
    max-width: 220px;
    min-height: 44px;
    padding: 0 14px;
    overflow: hidden;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(170, 184, 209, 0.32);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-outline {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: rgba(var(--primary-rgb), 0.32);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(180deg, #8a7cf9 0%, var(--primary) 100%);
    color: white;
    box-shadow: 0 16px 34px -22px rgba(var(--primary-rgb), 0.68);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #7c70ef 0%, var(--primary-hover) 100%);
    color: #ffffff;
}

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

.form-submit.btn-primary {
    background: linear-gradient(180deg, #4c91e9 0%, var(--accent-blue) 100%);
    box-shadow: 0 18px 38px -24px rgba(var(--accent-blue-rgb), 0.72);
}

.form-submit.btn-primary:hover {
    background: linear-gradient(180deg, #4187e0 0%, var(--accent-blue-hover) 100%);
}

.theme-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-gray);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.3);
}

main {
    padding-top: 14px;
}

.hero {
    position: relative;
    padding: 82px 0 56px;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
}

.hero-orbit {
    position: absolute;
    top: 48px;
    width: 192px;
    height: 192px;
    border: 1px dashed rgba(174, 191, 215, 0.62);
    border-radius: 50%;
}

.hero-orbit.left {
    left: -30px;
}

.hero-orbit.right {
    right: -30px;
}

.hero-float {
    position: absolute;
    width: 92px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(173, 189, 215, 0.38);
    border-radius: 16px;
    box-shadow: 0 20px 48px -32px rgba(150, 169, 197, 0.62);
    backdrop-filter: blur(18px);
    color: rgba(var(--primary-rgb), 0.9);
    z-index: 1;
}

.hero-float svg {
    display: block;
    margin: 0 auto;
}

.hero-float-left-top {
    top: 96px;
    left: 28px;
}

.hero-float-left-bottom {
    top: 214px;
    left: 66px;
}

.hero-float-right-top {
    top: 84px;
    right: 34px;
}

.hero-float-right-bottom {
    top: 206px;
    right: 80px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(165, 181, 207, 0.34);
    border-radius: 999px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 12px 30px -26px rgba(123, 146, 184, 0.82);
}

.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.hero h1 span {
    display: inline-block;
    background: linear-gradient(90deg, #8a7cf9 0%, #6f6cf6 54%, #5d8ef5 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--text-gray);
    font-size: 18px;
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-subtext {
    margin-top: 16px;
    color: #8a97aa;
    font-size: 13px;
}

.hero-metrics {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-metric {
    min-width: 192px;
    max-width: 235px;
    padding: 16px 18px;
    text-align: left;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 9px;
    box-shadow: var(--shadow-sm);
}

.hero-metric strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.hero-metric span {
    display: block;
    color: var(--text-gray);
    font-size: 12px;
    line-height: 1.5;
}

.analyzer-card {
    position: relative;
    margin-bottom: 48px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 40px;
    background: #f2f7fc;
    border: 2px solid #c9dbf1;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    box-sizing: border-box;
}

.analyzer-card::before {
    content: none;
}

.analyzer-card::after {
    content: none;
}

.analyzer-card > * {
    position: static;
}

.analyzer-intro {
    display: block;
    margin-bottom: 30px;
    text-align: center;
}

.analyzer-card h2 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #111;
}

.analyzer-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.4;
    color: #111;
}

.form-group {
    margin-bottom: 25px;
}

.form-group--url,
.form-group--scenario {
    margin-bottom: 25px;
}

.form-group-title {
    display: block;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.form-group-title .optional {
    color: #888;
    font-weight: 400;
    font-size: 16px;
}

.analysis-input-row {
    display: flex;
    gap: 10px;
}

.analysis-input-row .input-wrapper {
    flex: 1;
}

.input-wrapper {
    display: block;
}

.form-control {
    width: 100%;
    min-height: 50px;
    padding: 14px 20px;
    border: 1px solid #b0c3d9;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 16px;
    outline: none;
    box-shadow: none;
    transition: border-color 0.2s ease;
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

select.form-control {
    padding-left: 16px;
    appearance: none;
}

.form-control:focus {
    border-color: #225ebc;
    box-shadow: none;
}

.form-control--invalid {
    border-color: #dd6b5f;
    background: linear-gradient(180deg, #fff, #fff5f2);
}

.form-control--invalid:focus {
    border-color: #cf4e40;
    box-shadow: 0 0 0 4px rgba(221, 107, 95, 0.14);
}

.form-hint {
    display: none;
}

.home-url-feedback {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid #f0c7bf;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff8f6 0%, #fff1ee 100%);
    color: #8a2e28;
    box-shadow: 0 18px 34px -28px rgba(170, 71, 60, 0.45);
}

.home-url-feedback[hidden] {
    display: none;
}

.home-url-feedback.is-visible {
    animation: home-url-feedback-pop 0.22s ease;
}

.home-url-feedback-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #d74e41;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.home-url-feedback-copy {
    display: grid;
    gap: 4px;
}

.home-url-feedback-title {
    color: #7a201a;
    font-size: 14px;
    font-weight: 700;
}

.home-url-feedback-text {
    color: #9b433b;
    font-size: 14px;
    line-height: 1.5;
}

@keyframes home-url-feedback-pop {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.options-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.option-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
    min-height: 0;
    padding: 20px;
    background: #fff;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s ease;
}

a.option-card {
    color: inherit;
    text-decoration: none;
}

.option-card:hover {
    transform: none;
    border-color: #b3c8e8;
    box-shadow: none;
}

.option-card.active {
    border-color: #225ebc;
    background: #eaf3ff;
    box-shadow: none;
}

.option-card .check-icon {
    display: none;
}

.option-card.active .check-icon {
    display: none;
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-shrink: 0;
    font-size: 34px;
    line-height: 1;
}

.card-icon span:last-child {
    margin-left: -4px;
}

.card-content {
    min-width: 0;
}

.option-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111;
    line-height: 1.2;
}

.option-card p {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.analysis-settings-head {
    display: block;
    margin-bottom: 12px;
}

.settings-heading {
    display: block;
}

.settings-panel {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.settings-panel[hidden] {
    display: none;
}

.setting-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    flex: 1;
}

.setting-option input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: #225ebc;
}

.setting-option > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.setting-option strong {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 400;
    color: #111;
}

.setting-option span {
    display: block;
    color: #888;
    font-size: 12px;
    line-height: 1.35;
}

.form-submit {
    min-width: 210px;
    padding: 0 30px;
}

.home-language-hidden {
    display: none !important;
}

.analyzer-card .btn-primary,
.analyzer-card .form-submit.btn-primary {
    min-height: 50px;
    border-radius: 8px;
    background: #225ebc;
    box-shadow: none;
    font-size: 16px;
    font-weight: 600;
}

.analyzer-card .btn-primary:hover,
.analyzer-card .form-submit.btn-primary:hover {
    background: #1a4a99;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 84px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 254, 0.88));
    border: 1px solid rgba(166, 184, 211, 0.3);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.feature-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.section-copy {
    max-width: 620px;
    margin: 0 auto 36px;
    text-align: center;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
}

.section-title-left,
.section-copy-left {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 84px;
}

.step-card {
    padding: 28px 22px;
    text-align: center;
}

.step-num {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.12), rgba(var(--accent-blue-rgb), 0.08));
    color: var(--primary);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.step-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

.pricing-section {
    display: flex;
    margin-bottom: 84px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(168, 183, 207, 0.35);
    border-radius: 20px;
    box-shadow: 0 30px 72px -52px rgba(130, 154, 188, 0.75);
}

.pricing-left {
    flex: 1;
    padding: 42px;
    border-right: 1px solid rgba(170, 187, 212, 0.32);
}

.pricing-left h3 {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.pricing-left p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.check-list {
    list-style: none;
    margin-bottom: 32px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 14px;
}

.check-list li svg {
    color: var(--primary);
    flex-shrink: 0;
}

.pricing-cards {
    display: flex;
    flex: 2;
}

.price-card {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 42px 24px;
    border-right: 1px solid rgba(170, 187, 212, 0.22);
}

.price-card:last-child {
    border-right: none;
}

.price-card.popular {
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.14), rgba(255, 255, 255, 0.95));
    box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.18);
}

.popular-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 10px;
    background: white;
    border: 1px solid rgba(170, 187, 212, 0.34);
    border-radius: 999px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

.price-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.price-amount span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
}

.price-features {
    list-style: none;
    margin-bottom: 32px;
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.65;
    flex-grow: 1;
}

.price-features li {
    margin-bottom: 10px;
}

.price-card .btn {
    width: 100%;
}

.faq-testimonial-wrapper {
    display: flex;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 84px;
}

.faq {
    flex: 1;
}

.faq-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(170, 184, 209, 0.36);
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-item:first-child {
    border-top: 1px solid rgba(170, 184, 209, 0.36);
}

.faq-item:hover .faq-question,
.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
}

.faq-answer {
    display: none;
    padding-top: 12px;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.testimonial-card {
    flex: 1;
    padding: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 254, 0.92));
    border: 1px solid rgba(170, 184, 209, 0.3);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    position: relative;
    padding-left: 6px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 28px;
}

.testimonial-quote::before {
    content: '“';
    position: absolute;
    top: -24px;
    left: -10px;
    color: rgba(var(--primary-rgb), 0.18);
    font-size: 60px;
    font-weight: 700;
    z-index: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.22), rgba(84, 166, 255, 0.22));
}

.author-info h5 {
    font-size: 14px;
    margin-bottom: 2px;
}

.author-info p {
    font-size: 12px;
    color: var(--text-gray);
}

.stars {
    margin-left: auto;
    color: #fbbf24;
}

footer {
    padding: 60px 0 20px;
    border-top: 1px solid rgba(170, 184, 209, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h5 {
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-brand-copy {
    max-width: 320px;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    font-size: 14px;
    color: var(--text-gray);
}

.footer-links li {
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    color: var(--text-gray);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(170, 184, 209, 0.3);
    font-size: 13px;
    color: var(--text-gray);
}

.locale-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.locale-switch select {
    min-width: 110px;
    padding: 4px 8px;
    color: inherit;
    font: inherit;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(170, 184, 209, 0.32);
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

body.dark-mode .locale-switch select {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dark);
}

@media (max-width: 1100px) {
    .hero-orbit,
    .hero-float {
        display: none;
    }

    .options-grid,
    .features-grid,
    .steps-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-section,
    .faq-testimonial-wrapper {
        flex-direction: column;
    }

    .pricing-left {
        border-right: none;
        border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    }

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

/* ── Hamburger button ─────────────────────────────────── */
.hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-gray);
    transition: background 0.2s, border-color 0.2s;
}
.hamburger-btn:hover { background: rgba(255, 255, 255, 0.95); }
body.dark-mode .hamburger-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e0e0ff;
}
body.dark-mode .hamburger-btn:hover { background: rgba(255, 255, 255, 0.14); }

/* ── Dark mode (full) ─────────────────────────────────── */
body.dark-mode {
    --bg-body: #090b18;
    --bg-card: rgba(22, 26, 52, 0.96);
    --bg-muted: #12162b;
    --text-dark: #f3f5ff;
    --text-gray: #c6d0ea;
    --text-soft: #8b96b8;
    --border-color: rgba(166, 184, 232, 0.26);
    background-color: var(--bg-body);
    background-image:
        radial-gradient(circle at top center, rgba(120, 108, 248, 0.22) 0%, rgba(120, 108, 248, 0) 42%),
        linear-gradient(180deg, #090b18 0%, #11162b 48%, #0d1224 100%);
}
body.dark-mode header {
    background: rgba(16, 20, 40, 0.9);
    border-color: rgba(166, 184, 232, 0.18);
    box-shadow: 0 18px 42px -34px rgba(5, 8, 19, 0.92);
}
body.dark-mode nav {
    color: #c6d0ea;
}
body.dark-mode .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5ff;
    border-color: rgba(166, 184, 232, 0.24);
}
body.dark-mode .header-user-pill {
    color: #e0ddff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}
body.dark-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e0e0ff;
}
body.dark-mode .site-language-switch summary,
body.dark-mode .site-language-menu {
    background: rgba(18, 20, 42, 0.98);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e0ddff;
}
body.dark-mode .site-language-option {
    color: #c4d4f6;
}
body.dark-mode .site-language-option:hover,
body.dark-mode .site-language-option.is-active {
    color: #93c5fd;
    background: rgba(147, 197, 253, 0.12);
}

body.dark-mode .badge {
    color: #d8d4ff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(216, 212, 255, 0.24);
    box-shadow: 0 18px 38px -28px rgba(5, 8, 19, 0.9);
}

body.dark-mode .hero h1,
body.dark-mode .section-title,
body.dark-mode .pricing-left h3,
body.dark-mode .price-title,
body.dark-mode .price-amount,
body.dark-mode .feature-item h4,
body.dark-mode .step-card h4,
body.dark-mode .faq-question,
body.dark-mode .testimonial-quote,
body.dark-mode .footer-col h5 {
    color: #f8f7ff;
}

body.dark-mode .hero p,
body.dark-mode .hero-subtext,
body.dark-mode .section-copy,
body.dark-mode .feature-item p,
body.dark-mode .step-card p,
body.dark-mode .pricing-left p,
body.dark-mode .price-features,
body.dark-mode .faq-answer,
body.dark-mode .footer-brand-copy,
body.dark-mode .footer-links,
body.dark-mode .footer-bottom,
body.dark-mode .author-info p {
    color: #c6d0ea;
}

/* ── Mobile full-screen menu overlay ─────────────────── */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    padding: 24px;
}
.mobile-menu.open { display: flex; }
body.dark-mode .mobile-menu { background: rgba(14, 16, 32, 0.97); }

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-gray);
    transition: border-color 0.2s;
}
.mobile-menu-close:hover { border-color: var(--primary); color: var(--primary); }

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    list-style: none;
}
.mobile-menu-nav a {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}
.mobile-menu-nav a:hover { color: var(--primary); }
body.dark-mode .mobile-menu-nav a { color: #e0e0ff; }

/* Logo SVG text colors */
.site-logo-text { fill: #1f2430; }
.site-logo-muted { fill: #9aa0a6; }
body.dark-mode .site-logo-text { fill: #e8e6ff; }
body.dark-mode .site-logo-muted { fill: #7a7890; }

/* ── Dark mode: content sections ─────────────────────── */
body.dark-mode .analyzer-card {
    background: linear-gradient(180deg, rgba(20, 25, 52, 0.98), rgba(17, 21, 43, 0.96));
    border-color: rgba(191, 219, 254, 0.62);
    box-shadow: 0 28px 72px -48px rgba(0, 0, 0, 0.92), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body.dark-mode .analyzer-card::after {
    background:
        radial-gradient(circle at top left, rgba(var(--accent-blue-rgb), 0.16), transparent 38%),
        radial-gradient(circle at bottom right, rgba(var(--primary-rgb), 0.14), transparent 34%);
}
body.dark-mode .form-control {
    background: rgba(10, 14, 30, 0.84);
    color: #f8fafc;
    border-color: rgba(166, 184, 232, 0.28);
}
body.dark-mode .form-control::placeholder {
    color: #8fa2c5;
}
body.dark-mode .form-control:focus {
    border-color: #7db4ff;
    box-shadow: 0 0 0 4px rgba(77, 145, 233, 0.16);
}
body.dark-mode .form-control--invalid {
    border-color: rgba(255, 135, 125, 0.8);
    background: rgba(76, 28, 34, 0.82);
}
body.dark-mode .form-control--invalid:focus {
    border-color: #ff8b83;
    box-shadow: 0 0 0 4px rgba(255, 139, 131, 0.16);
}
body.dark-mode .home-url-feedback {
    border-color: rgba(255, 138, 128, 0.28);
    background: linear-gradient(180deg, rgba(82, 28, 34, 0.9), rgba(60, 21, 29, 0.95));
    color: #ffd4cf;
}
body.dark-mode .home-url-feedback-title {
    color: #ffe5e1;
}
body.dark-mode .home-url-feedback-text {
    color: rgba(255, 219, 214, 0.84);
}
body.dark-mode .option-card {
    background: rgba(24, 29, 57, 0.88);
    border-color: rgba(166, 184, 232, 0.22);
}
body.dark-mode .option-card.active {
    background: linear-gradient(180deg, rgba(45, 88, 160, 0.34), rgba(24, 29, 57, 0.96));
    border-color: rgba(96, 165, 250, 0.86);
}
body.dark-mode .form-submit.btn-primary {
    background: linear-gradient(180deg, #5a9cf3 0%, #3d81e6 100%);
    box-shadow: 0 18px 38px -24px rgba(var(--accent-blue-rgb), 0.66);
}
body.dark-mode .setting-option {
    background: transparent;
}
body.dark-mode .analyzer-card h2,
body.dark-mode .form-group-title,
body.dark-mode .option-card h3,
body.dark-mode .setting-option strong {
    color: #f8fafc;
}
body.dark-mode .analyzer-subtitle,
body.dark-mode .option-card p,
body.dark-mode .setting-option span,
body.dark-mode .form-group-title .optional {
    color: #c6d0ea;
}
body.dark-mode .feature-item {
    background: rgba(22, 24, 48, 0.85);
    border-color: rgba(166, 184, 232, 0.18);
}
body.dark-mode .pricing-section {
    background: rgba(20, 22, 46, 0.92);
    border-color: rgba(166, 184, 232, 0.18);
}
body.dark-mode .price-card.popular {
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.18), rgba(20, 22, 48, 0.92));
}
body.dark-mode .popular-badge {
    background: rgba(30, 32, 60, 0.96);
}
body.dark-mode .testimonial-card {
    background: rgba(22, 24, 50, 0.9);
    border-color: rgba(166, 184, 232, 0.18);
}
body.dark-mode .hero-float {
    background: rgba(22, 24, 50, 0.72);
    border-color: rgba(166, 184, 232, 0.18);
    color: #b9c4ff;
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 240px;
}
.mobile-menu-actions .btn { text-align: center; justify-content: center; }
.mobile-menu-logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 700;
}
body.dark-mode .mobile-menu-logout-link { color: #c4d4f6; }

@media (max-width: 860px) {
    .container {
        padding: 0 10px 32px;
    }

    header {
        top: 0;
        gap: 10px;
        margin-top: 0;
        padding: 12px 10px;
    }

    .header-actions {
        gap: 8px;
    }

    nav {
        display: none;
    }

    .hamburger-btn {
        display: inline-flex;
    }

    .header-actions .btn-outline {
        display: none;
    }

    .header-actions .btn-primary[href="/auth/logout.php"] {
        display: none;
    }

    .header-user-pill {
        display: none;
    }

    .hero {
        padding-top: 64px;
    }

    .analyzer-intro,
    .analysis-input-row,
    .options-grid,
    .settings-panel,
    .pricing-cards,
    .footer-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .analysis-input-row .form-submit,
    .form-submit {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 6px 24px;
    }

    .hero,
    .analyzer-card,
    .pricing-left,
    .price-card,
    .testimonial-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pricing-section,
    .testimonial-card {
        border-radius: 18px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p,
    .section-copy,
    .analyzer-intro p,
    .pricing-left p {
        font-size: 14px;
    }

    .hero-actions,
    .hero-metrics,
    .options-grid,
    .features-grid,
    .steps-container,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-metric {
        max-width: none;
        width: 100%;
    }

    .options-grid,
    .features-grid,
    .steps-container,
    .footer-grid {
        display: grid;
    }

    .section-title,
    .section-title-left {
        font-size: 28px;
    }

    .footer-bottom {
        align-items: flex-start;
    }
}
