/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ffffff;
}

.preload * {
    transition: none !important;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, li,
figure, figcaption, blockquote,
dl, dd {
    margin: 0;
    padding: 0;
}


/* Mobile-first */
.container {
        max-width: 100%;
    }
.title,
.data {
    flex: 0 0 100%;
    max-width: 100%;
}
.title,
.data {
    padding-bottom: 28px;
}
.link-ps,
.link-dw {
    opacity: 1;
}
.lampa {
    display: none;
}

/* === Layout === */
.container {
    padding: 48px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}
.row {
    padding-bottom: 28px;
}
.line {
    display: flex;
    height: 28px;
    align-items: center;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
}
.mobile-header {
    display: flex;
    justify-content: space-between;
}

/* === Typography === */
@font-face {
    font-family: 'Manrope';
    src: url('/fonts/ManropeV5VF.woff2') format('woff2-variations');
    font-weight: 200 800;
    font-display: swap;
}
.text {
    font-size: 16px;
    line-height: 28px;
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    font-style: normal;
    color: #000000;
}

/* === Links === */
.link {
    display: flex;
    font-size: 16px;
    line-height: 28px;
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    font-style: normal;
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.sublink {
    display: flex;
    font-size: 16px;
    line-height: 28px;
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    font-style: normal;
    color: #000000;
    text-decoration: underline dotted;
    text-underline-offset: 4px;
}
.link-ps {
    background-color: currentColor;
    -webkit-mask: url('/img/arrow.svg') no-repeat center / contain;
    mask: url('/img/arrow.svg') no-repeat center / contain;
    width: 16px;
    height: 28px;
    display: inline-block;
}
.link-dw {
    background-color: currentColor;
    -webkit-mask: url('/img/download.svg') no-repeat center / contain;
    mask: url('/img/download.svg') no-repeat center / contain;
    width: 16px;
    height: 28px;
    display: inline-block;
}
.link:hover .link-ps,
.link:hover .link-dw {
    opacity: 1;
}
.link-lampa {
    text-decoration: none;
    position: relative;
    z-index: 3;
}
.link-img {
    background-color: currentColor;
    -webkit-mask: url('/img/logo_lampa.svg') no-repeat center / contain;
    mask: url('/img/logo_lampa.svg') no-repeat center / contain;
    width: 85px;
    height: 20px;
    display: inline-block;
    line-height: 0;
    transition: opacity 0.3s ease;
}

/* ==== Button ==== */
.js-switch {
    cursor: pointer;
    position: relative;
    padding: 0;
}

.switch {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(10, 10, 10, 0.2);
    border-radius: 100px;
    background: transparent;
    isolation: isolate;
    overflow: visible;
    transition: opacity 0.6s ease, border-color 0.6s ease;
}

.switch::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 100px;
    background: #00FFD1;
    filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

/* ВЫКЛ (слежение отключено): зелёное свечение, серый круг убираем */
.switch.off {
    border-color: transparent;   /* убираем серую обводку */
}
.switch.off::before {
    opacity: 1;                  /* показываем зелёный блюр */
}

/* === Cursor Follow === */
.follow-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -999;
    opacity: 0;
    pointer-events: none;
    filter: blur(70px);
    transition: opacity 1s ease-in-out;
}

/* === Animations === */
@keyframes bg-animation {
    0%   { width: 10%; }
    100% { width: 100%; }
}

/* === Color transition === */
body,
.text,
.link,
.sublink {
    transition: background-color 0.6s ease, color 0.6s ease;
}

.link-img {
    transition: filter 0.6s ease;
}

.link-ps,
.link-dw {
    /* и цвет (filter), и появление стрелки в одном свойстве */
    transition: filter 0.3s ease, opacity 0.2s ease;
}

/* === Responsive === */
@media (max-width: 575px) {
    .container {
        padding: 28px;
    }
}

@media (min-width: 576px) and (max-width: 959px) {
    .container {
        padding-top: 48px;
        padding-bottom: 48px;
        max-width: 640px;
        margin: 0 auto;
    }
}

@media (min-width: 960px) {
    .container {
        max-width: 2000px;
        margin: 0 auto;
    }
    .title {
        flex: 0 0 25%;
        max-width: 25%;
        padding-right: 80px;
        padding-bottom: 0;
    }
    .data {
        flex: 1 1 0;
        max-width: 50%;
        padding-right: 80px;
        padding-bottom: 0;
    }
    .lampa {
        display: block;
        flex: 1 1 0;
        max-width: 25%;
        padding-bottom: 0;
    }
    .right {
        justify-content: flex-end;
    }
    .link-ps,
    .link-dw {
        opacity: 0;
    }
    .mob {
        display: none;
    }
}