:root {
    --color-bg: #0e1019;
    --color-bg-secondary: #11141f;
    --color-card: #181b22;
    --color-white: #fff;
    --color-black: #12263f;
    --color-border: #23273b;
    --color-border-footer: rgba(255, 255, 255, 0.08);

    --color-text: #b2b8c1;
    --color-text-main: #fff;
    --color-text-dark: #12263f;

    --color-accent: #50E3C2;
    --color-primary: #2563eb;
    --color-secondary: #f8f9fc;

    --footer-bg: var(--color-bg-secondary);
    --footer-nav-title: var(--color-white);

    --btn-bg: var(--color-primary);
    --btn-bg-hover: rgba(29, 78, 216, 1);

    --font-base: 'Inter', sans-serif;
    --color-bg-hover: #23242a;
    --color-icon: #bfc6d7;
    --btn-primary-text: #fff;
    --color-nav-text: #f8f9fc
}
.theme-light {
    --color-bg: #f5f6fa;
    --color-bg-secondary: #fff;
    --color-card: #fff;
    --color-white: #12263f;
    --color-black: #fff;
    --color-border: #e0e4ef;
    --color-border-footer: rgba(20, 26, 34, 0.09);

    --color-text: #313c53;
    --color-text-main: #12263f;
    --color-text-dark: #222e3a;

    --color-accent: #50E3C2;
    --color-primary: #2563eb;
    --color-secondary: #19202c;

    --footer-bg: #fff;
    --footer-nav-title: #222e3a;

    --btn-bg: #2563eb;
    --btn-bg-hover: #3b82f6;
    --color-bg-hover: #f5f8ff;
    --color-icon: #697083;
    --btn-primary-text: #fff;
    --color-nav-text: #19202c
}
.btn {
    display: flex;
    align-items: center;
    border-radius: .5rem;
    padding: .5rem 1rem;
    font-size: .875rem;
    line-height: 1.25rem;
    font-weight: 500;
}
a {
    text-decoration: none;
}
body {
    font-family: var(--font-base);
    font-size: 14px;
    color: var(--color-text-dark);
    background-color: var(--color-bg);
    text-rendering: optimizeLegibility;
    line-height: 1.5;
    margin: 0;
    overflow-y: scroll;
}

/* Header
--------------------------------------*/
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 2rem;
    background-color: var(--color-bg-secondary);
}
.header__container {
    max-width: 80rem;
    justify-content: space-between;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    height: 4rem;
}

/* Логотип */
.header__logo {
    display: flex;
    justify-content: flex-start;
}
.header__logo-link {
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}
.header__logo-link:hover {
    color: var(--color-accent);
}

/* Основная навигация */
.header__burger {
    display: none;
}
.header__nav {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.header__nav-item {
    position: relative;
    list-style: none;
}
.header__nav-link {
    color: var(--color-secondary);
    padding: 1.5rem;
    font-weight: normal;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: color 0.3s ease;
    display: block;
    cursor: pointer;
}
.header__nav-link:hover {
    color: var(--color-accent);
}

/* Правая часть навигации */
.header__nav-btn {
    display: flex;
    align-items: center;
    border-radius: .5rem;
    padding: .5rem 1rem;
    font-size: .875rem;
    line-height: 1.25rem;
    font-weight: 500;
}
.header__nav-btn--signup {
    color: var(--color-nav-text);
}
.header__nav-right {
    display: flex;
    justify-content: flex-end;
    gap: 0.20rem;
    white-space: nowrap;
}
.header__nav-btn--start {
    font-weight: 600;
    color: var(--color-white);
    border-radius: 0.5rem;
    background-color: var(--color-primary);
    margin-left: 0.75rem;
    transition: background-color 0.3s ease;
}
.header__nav-btn--start:hover {
    background-color: var(--btn-bg-hover);
}

/* Выпадающее меню (обновлено для клика) */
.header__nav-item--dropdown {
    position: relative;
}
.header__nav-link--dropdown {
    position: relative;
    padding-right: 1.5rem;
    background: none;
    border: none;
    font-family: inherit;
    text-align: left;
}
.header__dropdown-icon {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-color: var(--color-secondary) transparent transparent transparent;
    transition: transform 0.3s ease;
}
.header__dropdown-icon--active {
    transform: translateY(-50%) rotate(180deg);
}
.header__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 220px;
    background: var(--color-bg-secondary);
    border-radius: 0.5rem;
    z-index: 110;
    overflow: hidden;
    padding: 0.5rem 0;
}
.header__dropdown-menu--active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.header__dropdown-item {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--color-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.header__dropdown-item:hover {
    background: var(--color-border-footer);
    color: var(--color-accent);
    padding-left: 1.7rem;
}

.lang-switcher {
    position: relative;
    display: inline-block;
    z-index: 100;
}
.lang-switcher__btn {
    background: var(--color-card);
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: border 0.15s, background 0.15s;
}
.lang-switcher__btn:hover, .lang-switcher__btn.active {
    border-color: var(--color-primary);
}
.lang-switcher__dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    min-width: 170px;
    background: var(--color-card);
    border-radius: 10px;
    box-shadow: 0 7px 24px 0 rgba(20,28,45,0.14);
    padding: 6px 0;
    margin-top: 6px;
    animation: fadeIn 0.22s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0);}
}
.lang-switcher__option {
    padding: 9px 20px 9px 13px;
    font-size: 1.06rem;
    color: var(--color-white);
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 9px;
    transition: background .13s, color .13s;
}
.lang-switcher__option:hover, .lang-switcher__option.selected {
    background: var(--color-primary);
    color: var(--color-white);
}
.lang-switcher__flag {
    font-size: 1.22em;
}
@media (max-width:600px) {
    .lang-switcher__dropdown { min-width: 110px; font-size: .99rem;}
    .lang-switcher__option { padding: 9px 9px 9px 7px;}
}

.header__theme-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    padding: 0;
    margin-left: 8px;
    background: none;
    border: 1.5px solid var(--color-border, #dbe3f4);
    border-radius: 10px;
    cursor: pointer;
    transition: border 0.2s, background 0.2s;
}
.header__theme-switcher svg {
    width: 24px;
    height: 24px;
    display: block;
    color: var(--color-icon);
    stroke: var(--color-icon);
    fill: none;
    /* Убираем лишние SVG, чтобы осталась только активная */
}
.header__theme-switcher:hover, .header__theme-switcher:focus {
    border: 1.5px solid var(--color-primary, #3b82f6);
    background: var(--color-bg-hover);
}
.header__theme-switcher .size-6 {
    display: none;
}
.header__theme-switcher.theme-light .size-6.sun {
    display: block;
}
.header__theme-switcher.theme-dark .size-6.moon {
    display: block;
}
.header__theme-switcher .sun {
    display: none;
}
.header__theme-switcher .moon {
    display: inline-block;
}
body.theme-light .header__theme-switcher .sun {
    display: inline-block;
}
body.theme-light .header__theme-switcher .moon {
    display: none;
}

/* Hero
--------------------------------------*/
.hero {
    min-height: calc(100vh - 4rem);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    position: relative;
    max-width: 60rem;
    text-align: center;
}
.hero__content {
    max-width: 36rem;
}
.hero-bg {
    opacity: 0.25;
    will-change: auto;
    object-fit: cover;
    width: 100%;
    height: 600px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    position: absolute;
}
.hero-title {
    font-size: 3rem;
    color: var(--color-white);
}
.hero-desc {
    width: 650px;
    color: var(--color-secondary);
    font-size: 1.3rem;
    text-align: center;
}
.hero-request {
    width: auto;
    background-color: var(--color-primary);
    color: var(--btn-primary-text);
    padding: .7rem 1.25rem;
    font-size: 1rem;
    margin-top: 2rem;
}
.hero-request__icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: -0.5rem;
    margin-left: .5rem;
}
.hero-links {
    margin-top: 2rem;
}
.hero-links__google,
.hero-links__apple {
    margin: 0 15px;
}

/* Main
--------------------------------------*/
.main {}
.main__container {
    padding: 2.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 80rem;
}

/* Typography
--------------------------------------*/
.typography {
    color: var(--color-text);
}
.typography h1 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 5rem;
    color: var(--color-white);
}
.typography h2 {
    color: var(--color-white);
}
.typography h3 {
    font-size: 1.3em;
    margin-top: 20px;
    color: var(--color-white);
}
.typography p {
    margin: 10px 0;
    font-size: 16px;
}
.typography ul, ol {
    margin: 10px 0;
    padding-left: 30px;
}
.typography ul ul, ol ol {
    padding-left: 20px;
}
.typography li {
    margin-bottom: 10px;
}
.typography table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.typography th, td {
    border: 1px solid var(--color-border);
    padding: 10px;
    text-align: left;
}
.typography th {
    font-weight: bold;
}
.typography a {
    color: var(--color-primary);
    text-decoration: none;
}
.typography a:hover {
    text-decoration: underline;
}

/* Footer
--------------------------------------*/
.footer {
    background-color: var(--footer-bg);
    padding: 2rem 0 0;
    color: var(--color-text);
}
.footer__container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 2rem;
}
.footer__main {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
}
.footer__brand {
    flex: 0 0 300px;
}
.footer__logo {
    display: block;
    font-weight: 700;
    color: var(--color-white);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}
.footer__logo:hover {
    color: var(--color-accent);
}
.footer__tagline {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-top: 0.5rem;
    max-width: 300px;
}
.footer__nav {
    display: flex;
    gap: 3rem;
    margin-left: auto;
}
.footer__nav-column {
    min-width: 150px;
}
.footer__nav-title {
    color: var(--footer-nav-title);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1.25rem;
    position: relative;
}
.footer__nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer__nav-list li {
    margin-bottom: 0.75rem;
}
.footer__nav-link {
    color: var(--color-text);
    font-size: 0.875rem;
    transition: color 0.3s ease;
    display: inline-block;
}
.footer__nav-link:hover {
    color: var(--color-accent);
    transform: translateX(3px);
}

/* Остальные стили футера остаются без изменений */
.footer__contacts-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background: var(--color-accent);
}
.footer__contacts-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}
.footer__contacts-item {
    margin-bottom: 0.50rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #94a3b8;
}
.footer__contacts-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    stroke: var(--color-accent);
    margin-top: 0.25rem;
}

.footer__bottom {
    border-top: 1px solid var(--color-border-footer);
    padding: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}
.footer__copyright {
    color: var(--color-text);
    opacity: 0.7;
}
.footer__legal {
    display: flex;
    gap: 1.5rem;
}
.footer__legal-link {
    color: var(--color-text);
    transition: color 0.3s ease;
    font-size: 0.75rem;
}
.footer__legal-link:hover {
    color: var(--color-accent);
}