/* Reset и базовые стили */
* {
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    background-color: #f9f8f5;
}

@media (min-width: 576px) {
    body {
        font-size: 16px;
        line-height: 1.5;
    }
}

article, header, main, nav {
    display: block;
}

a {
    background-color: transparent;
    color: #428bca;
    text-decoration: none;
}

a:hover, a:focus, a:active {
    color: #e66212;
}

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

h1, h2 {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-weight: 700;
    line-height: 1.1;
    color: inherit;
}

h1 {
    margin: 0 0 10px;
    font-size: 1.4em;
}

@media (min-width: 768px) {
    h1 {
        font-size: 1.6em;
    }
}

@media (min-width: 992px) {
    h1 {
        font-size: 2em;
    }
}

h2 {
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    h2 {
        font-size: 1.4em;
    }
}

@media (min-width: 992px) {
    h2 {
        font-size: 1.5em;
    }
}

p {
    margin: 0 0 10px;
}

strong {
    font-weight: bolder;
}

/* Контейнер */
.container {
    margin: 0 auto;
}

@media (min-width: 992px) {
    .container {
        width: 975px;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}

/* Header */
.site-header {
    position: relative;
    background: #fff;
    box-shadow: 0 3px 5px rgba(0,0,0,.1);
}

.site-header:after,
.site-header:before {
    content: " ";
    display: table;
    line-height: 0;
}

.site-header:after {
    clear: both;
}

@media (min-width: 992px) {
    .site-header {
        min-height: 70px;
        border: none;
        box-shadow: none;
    }
}

.site-header-inner {
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: column;
}

.site-header-inner:after,
.site-header-inner:before {
    content: " ";
    display: table;
    line-height: 0;
}

.site-header-inner:after {
    clear: both;
}

@media (min-width: 992px) {
    .site-header-inner {
        padding-left: 40px;
        padding-right: 40px;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        background-color: #171923;
    }
}

.site-branding {
    float: left;
    padding: 20px 80px 20px 0;
    flex-grow: 1;
}

@media (min-width: 992px) {
    .site-branding {
        padding-right: 20px;
    }
}

.mob-hamburger {
    position: absolute;
    top: 26px;
    right: 20px;
    width: 38px;
    height: 28px;
    padding-top: 8px;
    border-top: 4px solid #5a80b1;
    border-bottom: 4px solid #5a80b1;
}

@media (min-width: 992px) {
    .mob-hamburger {
        display: none;
    }
}

.mob-hamburger span {
    display: block;
    height: 4px;
    background: #5a80b1;
}

.mob-search {
    display: none;
}

@media (max-width: 991px) {
    .mob-search {
        display: block;
        margin-bottom: 25px;
    }
}

.main-navigation {
    display: none;
    background: #5a80b1;
}

@media (min-width: 992px) {
    .main-navigation {
        display: block;
    }
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation ul li a,
.main-navigation ul li .removed-link {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.main-navigation ul:after {
    content: "";
    display: block;
    clear: both;
}

.header-separator {
    height: 1px;
    background: #ececec;
}

/* Поиск */
.search-form {
    position: relative;
}

.search-form__text {
    display: block;
    width: 100%;
    padding: 7px 15px;
    padding-right: 50px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-form__text:focus {
    border-color: #5a80b1;
    outline: 0;
}

.search-form__submit {
    position: absolute;
    display: block;
    top: 1px;
    right: 1px;
    width: 35px;
    bottom: 1px;
    background: 0 0;
    border: none;
    opacity: .5;
}

.search-form__submit:after {
    content: "\f002";
    font-family: FontAwesome;
    font-weight: normal;
    font-style: normal;
    font-size: 14px;
    line-height: 1;
    color: #000;
    display: block;
}

/* Контент */
.site-content {
    display: block;
    padding: 30px 0;
    background: #fff;
}

@media (min-width: 992px) {
    .site-content {
        margin-top: 0;
    }
}

.site-content:after {
    content: "";
    display: block;
    clear: both;
}

.content-area {
    display: block;
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 992px) {
    .content-area {
        float: left;
        width: 620px;
        padding-right: 0;
    }
}

@media (min-width: 1200px) {
    .content-area {
        width: 740px;
        padding-left: 40px;
    }
}

body.sidebar-none .content-area {
    float: none;
    width: auto;
    padding-right: 20px;
}

@media (min-width: 1200px) {
    body.sidebar-none .content-area {
        padding-right: 40px;
    }
}

/* Заголовки статей */
.entry-title {
    font-size: 18px;
    margin: 0 0 15px;
    font-weight: 700;
    line-height: 1.1;
}

@media (min-width: 576px) {
    .entry-title {
        font-size: 26px;
    }
}

@media (min-width: 768px) {
    .entry-title {
        font-size: 30px;
        margin-bottom: 20px;
    }
}

body.sidebar-none .entry-title {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Контент статьи */
.entry-content {
    padding-left: 0;
    word-wrap: break-word;
}

@media (min-width: 768px) {
    .entry-content {
        padding-left: 30px;
    }
}

.entry-content:after {
    content: "";
    display: block;
    clear: both;
}

body.sidebar-none .entry-content {
    padding-right: 0;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 576px) {
    body.sidebar-none .entry-content {
        padding-right: 30px;
    }
}

body.sidebar-none .entry-content,
body.sidebar-none .entry-title,
body.sidebar-none .entry-meta {
    max-width: 1090px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.entry-title,
.entry-title a {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.entry-content h2 {
    margin: 1.5em 0 .5em;
    word-wrap: break-word;
    text-align: center;
}

.entry-content p {
    margin-bottom: 25px;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.entry-content ul {
    margin: 1.7em 0 1.8em 1em;
    padding: 0;
    list-style: none;
}

.entry-content ul li {
    padding-left: 40px;
    margin: .7em 0;
}

.entry-content ul:not([class])>li:before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #5a80b1;
    margin: 0 22px 0 -30px;
}

.entry-content blockquote {
    border-color: #5a80b1;
}

.entry-content blockquote.check,
.entry-content blockquote.is-style-check {
    font-size: 100%;
    padding: 15px 20px 15px 65px;
    border-radius: 0 6px 6px 0;
    border-left: none !important;
    background: #def9e5;
    position: relative;
    margin: 20px 0;
}

@media (min-width: 768px) {
    .entry-content blockquote.check,
    .entry-content blockquote.is-style-check {
        padding: 20px 30px 20px 70px;
    }
}

.entry-content blockquote.check:before,
.entry-content blockquote.is-style-check:before {
    content: "\f058";
    font-family: FontAwesome;
    font-weight: normal;
    font-style: normal;
    font-size: 30px;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 20px;
    margin-top: -15px;
    color: #34bc58;
    display: block;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #5a80b1;
    color: #fff;
    text-decoration: none;
    touch-action: manipulation;
    transition: background-color 0.3s ease;
}

.btn:hover,
.btn:focus,
.btn:active {
    color: #fff !important;
    background-color: #4a7091;
}

.btn-box {
    text-align: center;
    margin-bottom: 15px;
}

.btn-box a {
    display: inline-block;
    white-space: normal;
}

.btn-size-big {
    padding: .5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: .3rem;
    background-image: linear-gradient(70deg,#31bc69 -8%,#089e4e 96%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.btn-size-big:hover,
.btn-size-big:focus,
.btn-size-big:active {
    color: #fff !important;
    opacity: 0.9;
    filter: brightness(0.9);
}

/* Основная кнопка шорткода */
a.partner-btn-sc {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    
    /* Добавьте эту строку: */
    overflow: hidden; 
    
    padding: .5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: .3rem;
    font-weight: normal; /* Убрали жирность */
    text-transform: none; /* Убрали заглавные буквы */
    letter-spacing: normal; /* Убрали расстояние между буквами */
    white-space: normal; 
    
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(120deg, #00a6ff, #18c8ff, #7a5cff, #16c784, #00a6ff);
    background-size: 300% 300%;
    box-shadow:
        0 8px 30px rgba(0, 166, 255, 0.35),
        0 0 24px rgba(22, 199, 132, 0.20);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, color 0.3s ease;
    animation: partnerGradient 5s ease infinite, partnerPulse 1.8s ease-in-out infinite;
    isolation: isolate;
    backface-visibility: hidden;
    will-change: transform;
}

/* Текст поверх эффектов */
a.partner-btn-sc span {
    position: relative;
    z-index: 2;
}

/* Бегущий блик */
a.partner-btn-sc::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -120%;
    width: 70%;
    height: 180%;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.18) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(18deg);
    animation: partnerShine 2.8s linear infinite;
    z-index: 1;
}

/* Внутренняя обводка (светлый край сверху) */
a.partner-btn-sc::after {
    content: "";
    position: absolute;
    inset: 2px;
    /* Скругление внутреннего слоя делаем чуть меньше, чтобы углы не выпирали (0.3rem минус inset 2px) */
    border-radius: calc(0.3rem - 2px); 
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
    z-index: 0;
}

/* Эффект при наведении */
a.partner-btn-sc:hover,
a.partner-btn-sc:focus {
    transform: translateY(-2px) scale(1.04);
    box-shadow:
        0 12px 38px rgba(0, 166, 255, 0.48),
        0 0 30px rgba(22, 199, 132, 0.30);
    filter: brightness(1.08);
    color: #fff !important;
}

a.partner-btn-sc:active {
    transform: scale(0.98);
}

/* Анимации (если вы их уже добавили ранее для старой кнопки, дублировать не нужно, они общие) */
@keyframes partnerGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes partnerShine {
    0%   { left: -120%; }
    100% { left: 160%; }
}

@keyframes partnerPulse {
    0%, 100% {
        box-shadow:
            0 8px 30px rgba(0, 166, 255, 0.35),
            0 0 24px rgba(22, 199, 132, 0.20);
    }
    50% {
        box-shadow:
            0 12px 36px rgba(0, 166, 255, 0.50),
            0 0 34px rgba(122, 92, 255, 0.28);
    }
}

/* Изображения */
.aligncenter {
    display: block;
    margin: 0 auto;
    clear: both;
}

/* Footer */
.site-footer {
    position: relative;
    background: #fff;
}

.site-footer:after,
.site-footer:before {
    content: " ";
    display: table;
    line-height: 0;
}

.site-footer:after {
    clear: both;
}

.site-footer-inner {
    position: relative;
    padding: 30px 20px 25px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: column;
}

.site-footer-inner:after,
.site-footer-inner:before {
    content: " ";
    display: table;
    line-height: 0;
}

.site-footer-inner:after {
    clear: both;
}

@media (min-width: 992px) {
    .site-footer-inner {
        padding-left: 40px;
        padding-right: 40px;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }
}

.footer-info {
    float: left;
    padding-right: 40px;
}

@media (min-width: 992px) {
    .footer-info {
        flex: 1 0 60%;
    }
}

/* Scroll to top */
.scrolltop {
    opacity: .7;
    position: fixed;
    display: none;
    width: 50px;
    height: 50px;
    bottom: 40px;
    right: 20px;
    border: none;
    background: rgba(0,0,0,.2);
    background-color: #cccccc;
    outline: 0;
    z-index: 500;
    border-radius: 4px;
    cursor: pointer;
}

.scrolltop:after {
    content: "\f102";
    font-family: FontAwesome;
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    display: block;
    text-align: center;
    line-height: 50px;
}

@media (min-width: 1600px) {
    .scrolltop {
        right: 100px;
    }
}

@media (min-width: 1900px) {
    .scrolltop {
        right: 200px;
    }
}

.scrolltop:hover {
    opacity: 1;
}

/* Screen reader */
.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* FontAwesome загружается через CDN в functions.php */

/* Скрытые элементы */
#masthead {
    display: none;
}

/* Дополнительные стили */
body.sidebar-none #primary #main {
    text-align: justify;
}

/* Стили из index.html - только используемые */
.site-navigation-fixed {
    position: fixed;
    display: none;
    top: 0;
    z-index: 9999;
}

.admin-bar .site-navigation-fixed {
    top: 32px;
}

body.sidebar-none .breadcrumb,
body.sidebar-none .entry-title,
body.sidebar-none .entry-meta,
body.sidebar-none .entry-content,
body.sidebar-none .b-subscribe {
    max-width: 1090px;
}

body.sidebar-none .comments-area {
    max-width: 1090px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .site-header {
        background-image: url("https://1win-bk-site.com/wp-content/uploads/2022/07/bggg.png");
        background-repeat: no-repeat;
        background-position: center center;
    }
    
    .site-header-inner {
        background: none;
    }
}
