:root {
    --primary: #3a7bd5;
    --primary-dark: #2a5db0;
    --accent: #ff9a00;
    --accent-dark: #e68a00;
    --text: #333;
    --text-light: #666;
    --light: #f8f9fa;
    --dark: #212529;
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "unifont";
    src: url("unifont-12.0.01.woff2");
}

body {
    /*font-family: 'Ubuntu', sans-serif;*/
    font-family:  "unifont", sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    z-index: -2;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Секции теперь сами являются областями с фиксированным фоном */
.hero-section,
.features-section,
.distros-section,
.anonymous-section,
.resources-section,
.memes-section {
    position: relative;
    padding: 8rem 0 10rem 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    z-index: 1;
}

/* Специфичные фоны для секций */
.hero-section {
    background-image: url('/images/hero-bg1.jpeg');
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.4);
}

.features-section {
    background-image: url('/images/features-bg1.jpeg');
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.5);
}

.distros-section {
    background-image: url('/images/distros-bg1.jpeg');
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.4);
}

.anonymous-section {
    background-image: url('/images/anonymous-bg1.jpg');
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.4);
}

.memes-section {
    background-image: url('/images/memes-bg.jpeg');
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.5);
}

.resources-section {
    background-image: url('/images/resources-bg.jpeg');
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Шапка */
.header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 2rem 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.tux-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo-wrapper {
    text-align: center;
}

.logo {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
}

.logo span {
    color: var(--accent);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

/* язык */
.lang-switch {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
}

.lang-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.lang-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.lang-link.active {
    color: var(--accent, #ffd700);
    background: rgba(255,215,0,0.2);
    font-weight: 700;
}

.lang-divider {
    color: rgba(255,255,255,0.3);
    font-weight: 300;
}


/* Основной контент */
.hero-content {
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    font-size: 1.1rem;
}

.primary-btn {
    background-color: var(--accent);
    color: white;
    box-shadow: var(--shadow);
}

.primary-btn:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.outline-btn {
    border: 2px solid white;
    color: white;
    background-color: transparent;
}

.outline-btn:hover {
    background-color: white;
    color: var(--primary);
}

.nsa-btn {
    border: 2px solid red;
    color: red;
    background-color: transparent;
}

.nsa-btn:hover {
    background-color: red;
    color: var(--primary);
}

/* Секции */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* Карточки особенностей */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text);
}

/* Дистрибутивы */
.distros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.distro-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: 250px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.distro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.distro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.distro-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    height: 100%;
    display: block;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.distro-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.distro-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

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

.distro-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--accent);
    transition: var(--transition);
}

.distro-link:hover {
    color: var(--accent);
    border-bottom-color: white;
}

/* Фоны для дистрибутивов */
.ubuntu-card {
    background: url('/images/ubuntu-bg.jpeg') center/cover no-repeat;
}

.cachyos-card {
    background: url('/images/cachyos-bg.jpeg') center/cover no-repeat;
}

.mint-card {
    background: url('/images/mint-bg.jpeg') center/cover no-repeat;
}

.fedora-card {
    background: url('/images/fedora-bg.jpeg') center/cover no-repeat;
}

.arch-card {
    background: url('/images/arch-bg.jpeg') center/cover no-repeat;
}

.void-card {
    background: url('/images/void-bg.jpeg') center/cover no-repeat;
}

.gentoo-card {
    background: url('/images/gentoo-bg.png') center/cover no-repeat;
}

.nixos-card {
    background: url('/images/nixos-bg.jpeg') center/cover no-repeat;
}

.kali-card {
    background: url('/images/kali-bg.png') center/cover no-repeat;
}

.parrot-card {
    background: url('/images/parrot-bg.jpeg') center/cover no-repeat;
}

.blackarch-card {
    background: url('/images/blackarch-bg.jpeg') center/cover no-repeat;
}

.tails-card {
    background: url('/images/tails-bg.svg') center/cover no-repeat;
}

.qubes-card {
    background: url('/images/qubes-bg.png') center/cover no-repeat;
}

.kodachi-card {
    background: url('/images/kodachi-bg.jpeg') center/cover no-repeat;
}

/* Ресурсы */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.resource-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.resource-card h3 {
    margin: 0;
    color: var(--text);
}

/* Подвал */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo .logo {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-rights {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .tux-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .logo {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

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

    .section-title {
        font-size: 2rem;
    }
}

/* Windows activate notification */
.windows-activation-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 2px solid #0078D7;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    z-index: 9999;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.windows-activation-notice.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.windows-activation-notice:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.windows-activation-notice:active {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(0);
}

.notice-content {
    padding: 12px 15px;
}

.notice-title {
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
    line-height: 1.3;
}

.notice-description {
    color: #404040;
    line-height: 1.4;
    font-weight: 400;
}

.footer-contact {
  
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
    color: white;
}

.contact-label {
    opacity: 0.8;
}

.footer-label {
    font-size: 1rem;
    font-weight: 500;
}

.matrix-address {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 4px;
    padding: 4px 0px;
    transition: background 0.2s;
    color: white;

}

.matrix-address:hover {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.2);

}

/* Невидимый элемент задаёт ширину блока */
.addr-width-fix {
    visibility: hidden;
    white-space: nowrap;
    display: inline-block;
}

/* Основной и всплывающий адреса поверх */
.addr-main,
.addr-hover {
    position: absolute;
    top: 4px;
    left: 8px;
    white-space: nowrap;
    transition: opacity 0.2s;
    pointer-events: none; /* клик проходит сквозь на родителя */
}

.addr-main {
    opacity: 1;
}

.addr-hover {
    opacity: 0;
}

/* При наведении меняем прозрачность */
.matrix-address:hover .addr-main {
    opacity: 0;
}

.matrix-address:hover .addr-hover {
    opacity: 1;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .footer-contact {
        justify-content: center;
    }
}
