/*
Theme Name: Visaver
Theme URI: https://visaver.com/
Author: Visaver Team
Author URI: https://visaver.com/
Description: Кастомная тема Visaver с современным дизайном, адаптированная для блога и корпоративного сайта.
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: visaver
Tags: custom-logo, custom-menu, featured-images, blog, portfolio
*/

@font-face {
    font-family: 'PT Root UI';
    src: url('./assets/fonts/PT-Root-UI/pt-root-ui_light.woff2') format('woff2'),
    url('./assets/fonts/PT-Root-UI/pt-root-ui_light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Root UI';
    src: url('./assets/fonts/PT-Root-UI/pt-root-ui_regular.woff2') format('woff2'),
    url('./assets/fonts/PT-Root-UI/pt-root-ui_regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Root UI';
    src: url('./assets/fonts/PT-Root-UI/pt-root-ui_medium.woff2') format('woff2'),
    url('./assets/fonts/PT-Root-UI/pt-root-ui_medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Root UI';
    src: url('./assets/fonts/PT-Root-UI/pt-root-ui_bold.woff2') format('woff2'),
    url('./assets/fonts/PT-Root-UI/pt-root-ui_bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body a.customize-unpreviewable {
    cursor: pointer !important;
}

/* Базовые стили */
:root {
    --text-color: #ffffff;
    --border-color: #6F6F85;
}

* {
    margin: 0;
    border: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: PT Root UI, sans-serif;
    margin: 0;
    padding: 0;
    background: radial-gradient(98.8% 98.8% at 50% 1.2%, #09090A 0%, #15151A 100%);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 0;
    color: var(--text-color);
}

h1 {
    margin: 32px 0
}

ol > li > ol {
    list-style: none;
    padding-left: 0;
}

ol > li > ul {
    padding-left: 0;
}

ol, ul, ol li, ul li, p {
    margin-top: 12px;
}

header li {
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 95%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0;
}

/* Основной контент - стили хедера перенесены в header-styles.css */

/* Основной контент */
.site-main {
    overflow: hidden;
}

.site-content {
    background: radial-gradient(98.8% 98.8% at 50% 1.2%, #09090A 0%, #15151A 100%);
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-title {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
}

/* Футер */
.site-footer {
    position: relative;
    z-index: 1;
    margin: 80px auto 40px;
    max-width: 1136px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-widget {
    background-color: #09090A;
    padding: 40px 80px 40px 40px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.footer-widget-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
}

.hero-cta-wrapper_footer {
    margin: 0 !important;
}

.footer-widget-info-title {
    color: #F5F5FA;
    font-weight: 700;
    font-size: 36px;
    line-height: 105%;
}

.footer-widget-links-wrapper {
    display: flex;
    gap: 80px;
    max-width: max-content;
    margin-top: 31px;
}

.footer-widget-links {
    list-style: none;
    cursor: pointer;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    white-space: nowrap;

    li {
        margin-top: 0;

        a {
            color: #EBEBF5;
            font-weight: 500;
            font-size: 16px;
            line-height: 140%;

            &:hover {
                opacity: 0.7;
            }
        }
    }
}


.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 40px;
}

.footer-bottom-text, .footer-bottom-links li a {
    color: #EBEBF5;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    vertical-align: middle;
}

.footer-bottom-links {
    display: flex;
    gap: 4px;
    align-items: center;
    padding-left: 0;

    li {
        margin-top: 0;
        list-style: none;
    }
}

.footer-bottom-icons {
    display: flex;
    gap: 12px;
    align-items: center;

    a {
        width: 24px;
        height: 24px;
    }
}

.footer-bottom-links_mobile {
    display: none;
}

.hr-bottom {
    display: none;
    margin: 2px 0;
    background-color: #6F6F85;
    height: 1px;
    opacity: 0.5;
}


/* mask: pixels */
.pixel-mask-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.pixel-mask-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 10%, transparent 10%);
    background-size: 6px 6px; /* Размер пикселей */
    background-repeat: repeat;
    opacity: 0.3; /* Прозрачность узора */
    z-index: 0; /* Под содержимым блока */
}

@keyframes flyInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-60px);
    }
    60% {
        opacity: 1;
        transform: translateY(8px); /* Лёгкий "перелёт" */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Финальное положение */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 1024px) {
    .footer-bottom-links {
        display: none;
    }

    .footer-bottom-links_mobile {
        display: block;
    }

    .footer-widget-links-wrapper {
        flex-direction: column;
        gap: 10px;
    }
}

@media screen and (max-width: 862px) {
    .site-footer {
        margin: 162px 0 16px;
    }

    .footer-widget {
        width: 100% !important;
        margin: 0;
        flex-direction: column;
        padding: 40px 16px 40px 16px;
        gap: 60px;
    }

    .footer-bottom-links_mobile {
        display: block;
    }

    .footer-widget-info {
        gap: 32px;
    }

    .footer-widget-links-wrapper {
        margin-top: 0;
    }

    .footer-widget-links {
        gap: 2px;

        li {
            padding-left: 16px;
        }
    }

    .footer-widget-info-title {
        font-size: 32px;
    }

    .footer-bottom-text {
        font-size: 12px;
    }

    .footer-bottom {
        padding: 0 16px;
    }
}

@media screen and (max-width: 526px) {
    .site-footer {
        margin: 100px 0 16px;
    }

    .hr-bottom {
        display: block;
    }

    .footer-widget-links-wrapper {
        min-width: 100%;
    }
}