/* Импорт шрифта Inter для современного вида */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

/* Базовые стили */

/* Цвета страницы в одном месте. Тёмная тема включается сама по теме системы
   и переключается в моменте: media-запрос браузер перечитывает каждый раз. */
:root {
    --bg: #f4f7f6;
    --card: #ffffff;
    --text: #333333;
    --text-soft: #555555;
    --heading: #1a1a2e;
    --accent: #4a90e2;
    --accent-bright: #00b3ff;
    --border: #e9ecef;
    --panel: #1a1a2e;
    --panel-text: #e0e0e0;
    --muted: #888888;
    --team-bg: #f9f9f9;
    --cta-bg: #4a90e2;
    --cta-text: #ffffff;
    --cta-btn-bg: #ffffff;
    --cta-btn-text: #1a1a2e;
    --tip-bg: #333333;
    --tip-text: #ffffff;
    --list-text: #2c5282;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14141a;
        --card: #1d1d25;
        --text: #e2e2e8;
        --text-soft: #b4b4c0;
        --heading: #e8e8ee;
        --accent: #4a8fc4;
        --accent-bright: #3d8fbf;
        --border: #2b2b35;
        --panel: #1d1d25;
        --panel-text: #d7d7de;
        --muted: #8c8c98;
        --team-bg: #21212a;
        --cta-bg: #33587d;
        --cta-text: #ececf2;
        --cta-btn-bg: #e6e6ec;
        --cta-btn-text: #16161c;
        --tip-bg: #2a2a33;
        --tip-text: #e6e6ea;
        --list-text: #8ec2e8;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    background-color: var(--bg);
    color: var(--text);
}

.info-icon {
    background: #2ac7fdb5; color: white; border-radius: 50%; 
width: 19px; height: 19px; 
display: flex; align-items: center; justify-content: center; 
font-size: 13px; font-weight: bold; cursor: help; transition: all 0.2s;
margin-top: -2px;
}

.func-with-tooltip {
    display: flex;
   color: var(--text);
   margin: 0 0 0px 0;
   font-size: 18px;
}

.tooltip-container:hover .function-info-tooltip {
    display: block!important;
}

.function-info-tooltip {
   position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--tip-bg); color: var(--tip-text); padding: 12px 16px; border-radius: 6px; font-size: 13px; width: 300px; max-width: 300px; z-index: 1000; display: none; box-shadow: 0 4px 15px rgba(0,0,0,0.3); text-align: left; line-height: 1.5; white-space: normal; word-wrap: break-word; margin-bottom: 8px;
}

.info-tooltip-bottom {
   style="position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid #333;
}

.func {
display: flex; justify-content: space-between; align-items: center; 
padding: 20px 20px 18px 20px; border: 1px solid var(--border); 
border-radius: 8px; background: var(--card); position: relative; 
border-left: 4px solid var(--accent-bright); margin-bottom: 20px
}

.func h3 {
   color: var(--heading);
   margin: 0 0 0px 0;
   font-size: 18px;
}

.func p {
padding-left: 3em;padding-top: 1em;font-size: 0.9em;
}

/* Контейнер для центрирования контента */
.container {
    max-width: 960px;
    margin: 0 auto;
    #padding: 20px;
}

/* --- Шапка (Hero) --- */
.hero {
    text-align: center;
    padding: 40px 50px;
    background-color: var(--panel); /* Тёмная плашка */
    color: var(--panel-text);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 2.3	rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--panel-text);
}

.hero .intro {
    font-size: 1.15rem;
    color: var(--panel-text);
    max-width: 700px;
    margin: 0 auto 0px auto;
}

.hero-video {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 3px solid #333;
}

/* --- Секции контента --- */
.content-section {
    background-color: var(--card);
    margin-bottom: 25px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--heading); /* Заголовок */
    margin-bottom: 20px;
    border-bottom: 3px solid var(--accent); /* Акцент */
    padding-bottom: 10px;
}

.content-section p {
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.content-section strong {
    color: var(--heading);
    font-weight: 700;
}

/* Полоса логотипов ОС: картинка прозрачная, в тёмной теме чёрные логотипы пропадают с тёмной карточки - под ними светлая плашка */
.os-logos {
    display: block;
}

@media (prefers-color-scheme: dark) {
    .os-logos {
        background-color: #c9ced6;
        border-radius: 8px;
        padding: 14px;
    }
}

/* Стили для списков */
.content-section ul {
    margin: 15px 0 20px 20px;
    padding-left: 15px;
}

.content-section li {
    font-size: 1.05rem;
    margin-bottom: 10px;
    padding-left: 5px;
}

/* Список преимуществ с "галочками" */
.advantages-list {
    list-style-type: none;
    padding-left: 0;
}

.advantages-list li {
    position: relative;
    padding-left: 35px; /* Место для галочки */
    #font-size: 1.1rem;
    #font-weight: 700;
    color: var(--list-text); /* Текст списка преимуществ */
}

.advantages-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.1rem;
}

/* Секция "Команда" */
.team-member {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--team-bg);
    border-radius: 8px;
}

.team-photo {
    border-radius: 50%;
    width: 185px;
    height: 185px;
    object-fit: cover;
    border: 4px solid #2ac7fd;/*#4a90e2;*/
}

.team-member div {
    flex: 1;
}

/* Секция "Заключение" */
.conclusion-section {
    background-color: var(--panel);
    color: var(--panel-text);
    text-align: center;
}

.conclusion-section p {
    font-size: 1.2rem;
    #font-weight: 700;
}

.conclusion-section strong {
    color: white;
}

/* --- Секция "Призыв к действию" (CTA) --- */
.cta-section {
    background-color: var(--cta-bg); /* Акцентная плашка */
    color: var(--cta-text);
    text-align: center;
    padding: 40px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.cta-section h2 {
    color: var(--cta-text);
    border-bottom: none;
    font-size: 2rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    background-color: var(--cta-btn-bg);
    color: var(--cta-btn-text);
    padding: 15px 35px;
    margin: 0px 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* --- Футер --- */
.footer {
    text-align: center;
    padding: 10px 20px;
    background-color: var(--panel);
    color: var(--panel-text);
    #margin-top: 30px;
    border-radius: 12px 12px 0 0;
}

.footer h2 {
    color: var(--panel-text);
    margin-bottom: 20px;
}

.footer p {
    #margin-bottom: 15px;
    line-height: 1.8;
}

.footer a {
    color: var(--accent); /* Акцент */
    text-decoration: none;
    font-weight: 700;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .copyright {
    #margin-top: 30px;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Тёмная тема: цвета, заданные в разметке страницы, перебиваются по признаку в атрибуте style. */
@media (prefers-color-scheme: dark) {
    [style*="background: #fff"],
    [style*="background:#fff"],
    [style*="background-color: #fff"],
    [style*="background: white"],
    [style*="background-color: white"] {
        background-color: var(--card) !important;
    }
    [style*="background: #f9f9f9"],
    [style*="background: #f4f7f6"],
    [style*="background: #f0f0f0"] {
        background-color: var(--team-bg) !important;
    }
    [style*="color: #333"],
    [style*="color:#333"],
    [style*="color: #1a1a2e"] {
        color: var(--text) !important;
    }
    [style*="color: #666"],
    [style*="color:#666"],
    [style*="color: #555"],
    [style*="color: #888"] {
        color: var(--text-soft) !important;
    }
    [style*="border: 1px solid #e9ecef"],
    [style*="border-bottom: 3px solid #4a90e2"] {
        border-color: var(--border) !important;
    }
}

/* --- Адаптивность --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }

    .team-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-photo {
        width: 120px;
        height: 120px;
    }

    .container {
        padding: 10px;
    }

    .content-section {
        padding: 20px;
    }
}

/* --- Переключатель языка в шапке страницы --- */
.langbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 4px 0 12px 0;
    font-size: 0.85rem;
}

.langbar a {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: border-color 0.2s, color 0.2s;
}

.langbar a:hover {
    border-color: var(--accent);
    color: var(--text);
}

.langbar a.current {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

/* --- Ссылки в подвале --- */
.footer-links a {
    margin: 0 8px;
    #font-size: 0.9rem;
}

/* --- Страницы политик (privacy, cookie) в каркасе сайта --- */
.policy h1 {
    font-size: 2rem;
    color: var(--heading);
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
}

.policy h2 {
    font-size: 1.35rem;
    color: var(--heading);
    margin: 28px 0 12px;
    padding-bottom: 0;
    border-bottom: none;
}

.policy p {
    margin-bottom: 12px;
}

.policy ul,
.policy ol {
    margin: 10px 0 16px 24px;
}

.policy li {
    font-size: 1rem;
    margin-bottom: 8px;
}

.policy table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 20px;
    font-size: 0.95rem;
}

.policy th,
.policy td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.policy th {
    background-color: var(--team-bg);
    color: var(--heading);
    font-weight: 700;
}

.policy a {
    color: var(--accent);
}

@media (max-width: 768px) {
    .policy table,
    .policy th,
    .policy td {
        font-size: 0.85rem;
        padding: 6px 8px;
    }
}

/* --- Плашка согласия на cookie --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--panel);
    color: var(--panel-text);
    padding: 20px 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    font-size: 14px;
    line-height: 1.6;
    border-top: 2px solid var(--accent);
}

.cookie-banner .banner-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.cookie-banner .banner-text {
    flex: 1;
    min-width: 260px;
    font-size: 13px;
}

.cookie-banner .banner-text a {
    color: var(--accent);
}

.cookie-banner .banner-btn {
    flex-shrink: 0;
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.cookie-banner .banner-btn:hover {
    background: #3a7bc8;
}
