:root {
    --primary: #9a7743;
    --primary-strong: #7d5b2f;
    --background: #f6f1e8;
    --background-2: #efe6d8;
    --surface: #fffaf3;
    --surface-strong: #fff3e1;
    --text: #20170f;
    --muted: #6e6256;
    --border: #dfd1bf;
    --shadow: 0 18px 50px rgba(54, 35, 16, 0.12);
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #14110d;
        --background-2: #1c1712;
        --surface: #1f1a15;
        --surface-strong: #2a221a;
        --text: #f6efe5;
        --muted: #c7b9a7;
        --border: #3d3429;
        --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    }
}

html[data-theme='light'] {
    color-scheme: light;
    --background: #f6f1e8;
    --background-2: #efe6d8;
    --surface: #fffaf3;
    --surface-strong: #fff3e1;
    --text: #20170f;
    --muted: #6e6256;
    --border: #dfd1bf;
    --shadow: 0 18px 50px rgba(54, 35, 16, 0.12);
}

html[data-theme='dark'] {
    color-scheme: dark;
    --background: #14110d;
    --background-2: #1c1712;
    --surface: #1f1a15;
    --surface-strong: #2a221a;
    --text: #f6efe5;
    --muted: #c7b9a7;
    --border: #3d3429;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: light dark;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Aptos", "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(154, 119, 67, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(125, 91, 47, 0.12), transparent 24%),
        linear-gradient(180deg, var(--background) 0%, var(--background-2) 100%);
    color: var(--text);
    line-height: 1.6;
}

.hero,
.intro,
.features,
.workflow,
.screenshots,
.azplayer,
.privacy,
.faq,
.support,
.feedback {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.hero {
    padding-top: 16px;
    padding-bottom: 28px;
    text-align: center;
}

.hero-content {
    max-width: 920px;
    margin: 0 auto;
    padding: 34px 28px 28px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.28));
    box-shadow: 0 14px 36px rgba(54, 35, 16, 0.10);
    backdrop-filter: blur(12px);
}

@media (prefers-color-scheme: dark) {
    .hero-content {
        background:
            linear-gradient(180deg, rgba(35, 29, 22, 0.96), rgba(25, 20, 15, 0.94));
        border-color: rgba(214, 196, 169, 0.16);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    }

    .eyebrow {
        color: #d8b16f;
    }

    .subtitle {
        color: #e2d5c6;
    }

    .btn.secondary {
        background: rgba(255, 255, 255, 0.05);
        color: #e5dbce;
        border-color: rgba(255, 255, 255, 0.12);
    }
}

html[data-theme='light'] .hero-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.28));
    border-color: var(--border);
    box-shadow: 0 14px 36px rgba(54, 35, 16, 0.10);
}

html[data-theme='light'] .eyebrow {
    color: var(--primary-strong);
}

html[data-theme='light'] .subtitle {
    color: var(--muted);
}

html[data-theme='light'] .hero-meta-label {
    color: var(--text);
}

html[data-theme='light'] .hero-meta-list li {
    color: var(--muted);
}

html[data-theme='light'] .hero-meta-list li+li::before {
    color: rgba(125, 91, 47, 0.28);
}

html[data-theme='light'] .btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    border-color: rgba(125, 91, 47, 0.22);
}

html[data-theme='light'] h1 {
    color: var(--text);
    text-shadow: none;
}

html[data-theme='dark'] .hero-content {
    background: linear-gradient(180deg, rgba(35, 29, 22, 0.96), rgba(25, 20, 15, 0.94));
    border-color: rgba(214, 196, 169, 0.16);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

html[data-theme='dark'] .eyebrow {
    color: #d8b16f;
}

html[data-theme='dark'] .subtitle {
    color: #e2d5c6;
}

html[data-theme='dark'] .hero-meta-label {
    color: #f4ede4;
}

html[data-theme='dark'] .hero-meta-list li {
    color: #e8ddd0;
}

html[data-theme='dark'] .hero-meta-list li+li::before {
    color: rgba(255, 255, 255, 0.26);
}

html[data-theme='dark'] .btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #e5dbce;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme='dark'] .language-switcher {
    background: rgba(28, 23, 18, 0.82);
}

html[data-theme='dark'] h1 {
    color: #fbf6ef;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
}

.eyebrow {
    margin: 0 0 18px;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-strong);
    font-weight: 700;
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 20px 0;
}

.separator {
    opacity: 0.6;
    font-size: 32px;
    color: #a88b5c;
    font-weight: bold;
}

.logo {
    width: min(300px, 70%);
    display: block;
    margin: 0 auto 8px;
}

h1 {
    margin: 14px 0 12px;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.05;
}

@media (prefers-color-scheme: dark) {
    h1 {
        color: #fbf6ef;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
    }
}

.subtitle {
    max-width: 740px;
    margin: 0 auto;
    font-size: 1.08rem;
    color: var(--muted);
}

.distributed {
    max-width: 740px;
    margin: 12px auto 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.download-note {
    margin: 16px auto 0;
    max-width: 760px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--muted);
}

.download-note a {
    color: var(--primary-strong);
    font-weight: 700;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    justify-content: center;
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.03rem;
}

.hero-meta-label {
    font-weight: 600;
    color: var(--text);
}

.hero-meta-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-meta-list li {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
}

.hero-meta-list li+li::before {
    content: '•';
    margin: 0 10px;
    color: var(--border);
}

.language-switcher-label {
    font-size: 0.84rem;
    color: var(--muted);
    font-weight: 700;
}

.language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    margin-top: 20px;
    padding: 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 250, 243, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.language-switcher-button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 6px 10px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.language-switcher-button.active {
    color: var(--text);
    background: rgba(154, 119, 67, 0.50);
}

@media (prefers-color-scheme: dark) {
    .language-switcher {
        background: rgba(28, 23, 18, 0.88);
    }

    .language-switcher-button.active {
        background: rgba(255, 255, 255, 0.50);
    }
}

html[data-theme='light'] .language-switcher {
    background: rgba(255, 250, 243, 0.92);
}

html[data-theme='dark'] .language-switcher {
    background: rgba(28, 23, 18, 0.88);
}

.hero-companion-note {
    margin: 14px auto 0;
    max-width: 720px;
    font-size: 0.95rem;
    color: var(--muted);
}

.hero-companion-note a {
    color: var(--primary-strong);
    font-weight: 700;
}

.download-buttons,
.support-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn {
    padding: 11px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    min-width: 250px;
}

.download-button-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.download-button-label {
    font-size: 1rem;
}

.download-button-meta {
    margin-top: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.82);
}

.btn.secondary .download-button-meta {
    color: inherit;
}

.download-button-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.download-button-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.btn.primary .download-button-icon {
    color: rgba(255, 255, 255, 0.95);
}

.btn.primary .download-button-meta {
    color: rgba(255, 255, 255, 0.78);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.btn.primary {
    background: linear-gradient(180deg, #ad874f, #8d6635);
    color: white;
}

.btn.secondary {
    border: 1px solid rgba(125, 91, 47, 0.22);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme='light'] .btn.primary .download-button-meta {
    color: rgba(255, 255, 255, 0.78);
}

html[data-theme='dark'] .btn.primary .download-button-meta {
    color: rgba(255, 255, 255, 0.78);
}

html[data-theme='light'] .btn.secondary .download-button-meta,
html[data-theme='dark'] .btn.secondary .download-button-meta {
    color: inherit;
}

.intro {
    padding-top: 10px;
    padding-bottom: 20px;
}

.intro-grid,
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.intro-card,
.privacy-card,
.feature-card,
.screenshot-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.intro-card,
.privacy-card {
    padding: 24px;
}

.privacy-section {
    max-width: 960px;
    /* Ограничиваем общую ширину секции, чтобы карточки не растягивались на весь экран */
    margin: 0 auto;
    /* Центрируем всю секцию на странице */
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Центрируем карточки по горизонтали */
    gap: 20px;
}

.privacy-policy-card {
    width: 100%;
    /* Карточки занимают всю доступную ширину контейнера (до 920px) */
    max-width: 940px;
    /* Делаем их аккуратной фиксированной ширины, как блоки на главной */
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.intro-card h2,
.features h2,
.workflow h2,
.screenshots h2,
.privacy h2,
.faq h2,
.support h2,
.feedback h2,
.legal h2 {
    text-align: center;
}

.feedback-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.feedback-actions .btn {
    display: inline-flex;
    align-items: center;
}

.featuresFor {
    text-align: center;
    font-size: 1rem;
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    padding: 24px;
}

.feature-card h3,
.privacy-card h3 {
    margin-top: 0;
}

.workflow {
    padding-top: 18px;
    padding-bottom: 18px;
}

.workflow-list,
.faq-list {
    margin: 28px auto 0;
    max-width: 920px;
    padding: 0;
}

.workflow-list {
    counter-reset: step;
}

.workflow-list li {
    list-style: none;
    position: relative;
    padding: 18px 0 18px 72px;
    border-top: 1px solid var(--border);
}

.workflow-list li:first-child {
    border-top: 0;
}

.workflow-list li::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 18px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(154, 119, 67, 0.14);
    color: var(--primary-strong);
    font-weight: 800;
}

.workflow-list h3,
.faq-list dt {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.workflow-list p,
.faq-list dd {
    margin: 0;
    color: var(--muted);
}

.faq-list>div {
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.faq-list>div:first-child {
    border-top: 0;
}

.faq-list dt {
    font-weight: 700;
}

.faq-list dd {
    margin-left: 0;
}

.faq-list dd+dt {
    margin-top: 0;
}

.thumbnail {
    width: 180px;
    border-radius: 10px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: 0.2s;
}

.thumbnail:hover {
    transform: translateY(-2px);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.screenshot-card {
    overflow: hidden;
}

.screenshot-card img {
    width: 100%;
    display: block;
    border-bottom: 1px solid var(--border);
}

.screenshot-card h3,
.screenshot-card p {
    margin-left: 22px;
    margin-right: 22px;
}

.screenshot-card h3 {
    margin-top: 18px;
    color: var(--primary);
    font-weight: 650;
    font-size: 1rem;
}

.screenshot-card p {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 0.92rem;
}

.azplayer {
    padding-top: 24px;
    padding-bottom: 8px;
}

.azplayer-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.azplayer-logo {
    width: min(260px, 80%);
    margin: 0 auto 10px;
    display: block;
}

.azplayer-card h2 {
    margin-top: 8px;
    margin-bottom: 10px;
}

.azplayer-card p {
    margin: 0 auto;
    max-width: 760px;
    color: var(--muted);
}

.azplayer-card p.azplayer-note {
    margin-top: 20px;
    font-size: 0.93rem;
    opacity: 0.88;
}

.azplayer-card .download-buttons {
    margin-top: 22px;
}

.privacy,
.faq,
.support,
.feedback,
.legal {
    padding-top: 24px;
    padding-bottom: 24px;
}

.support p,
.feedback p,
.legal p {
    text-align: center;
    color: var(--muted);
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}

.legal-contact span {
    font-weight: 700;
    color: var(--text);
}

.feedback-address {
    margin-top: 18px;
}

.feedback-address span {
    font-weight: 700;
    color: var(--text);
    word-break: break-word;
}

.feedback-note {
    margin-top: 10px;
    font-size: 0.92rem;
    opacity: 0.82;
}

.features,
.azplayer,
.privacy,
.faq,
.feedback,
.support,
.legal {
    margin-top: 12px;
}

.lightbox {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.85);

    z-index: 1000;

    justify-content: center;
    align-items: center;

    padding: 40px;
}

.lightbox.open {
    display: flex;
}

.lightbox-image {
    max-width: 95%;
    max-height: 95%;

    border-radius: 12px;

    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;

    top: 20px;
    right: 30px;

    font-size: 3rem;
    color: white;

    cursor: pointer;

    user-select: none;
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
}

footer a {
    color: var(--primary-strong);
    text-decoration: none;
    margin: 0 10px;
    /* Добавляет отступ между ссылками */
}

footer a:hover {
    text-decoration: underline;
}

.theme-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 250, 243, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    margin-top: 20px;
}

.theme-switcher-button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.theme-switcher-button.active {
    color: var(--text);
    background: rgba(154, 119, 67, 0.50);
}

@media (prefers-color-scheme: dark) {
    .theme-switcher {
        background: rgba(28, 23, 18, 0.88);
    }

    .theme-switcher-button.active {
        background: rgba(255, 255, 255, 0.50);
    }
}

html[data-theme='light'] .theme-switcher {
    background: rgba(255, 250, 243, 0.92);
}

html[data-theme='dark'] .theme-switcher {
    background: rgba(28, 23, 18, 0.88);
}

footer a {
    color: var(--primary-strong);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .hero {
        padding-top: 28px;
    }

    .hero-content {
        padding: 24px 18px 20px;
        border-radius: 22px;
    }

    .download-buttons,
    .support-buttons {
        gap: 12px;
    }

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

    .theme-switcher {
        width: 100%;
        flex-wrap: wrap;
    }
}