/*
Theme Name: Crypto
Theme URI: https://wordpress.org
Author: Orkhan Chichitov
Author URI: https://wordpress.org
Description: A simple and clean WordPress theme for cryptocurrency-related websites. It features a modern design, responsive layout, and customizable options to create a unique online presence for your crypto business or blog.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.6.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Визуальный референс итерации: Kraken — тёмный фон, холодные акценты, чёткие границы карточек. */

:root {
    --crypto-bg: #0b0e11;
    --crypto-surface: #13161c;
    --crypto-surface-2: #1a1f28;
    --crypto-border: #2b3340;
    --crypto-text: #e8ecf1;
    --crypto-muted: #9aa4b2;
    --crypto-accent: #5b7cfa;
    --crypto-accent-hover: #7c96ff;
    --crypto-green: #26a17b;
    --crypto-radius: 10px;
    --crypto-font: "DM Sans", system-ui, sans-serif;
    --crypto-mono: "JetBrains Mono", ui-monospace, monospace;
    --crypto-container: 1160px;
    --crypto-header-h: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--crypto-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--crypto-text);
    background: var(--crypto-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.site-nav-open {
    overflow: hidden;
}

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

a {
    color: var(--crypto-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--crypto-accent-hover);
}

.container {
    width: 100%;
    max-width: var(--crypto-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Шапка */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 14, 17, 0.92);
    border-bottom: 1px solid var(--crypto-border);
    backdrop-filter: blur(10px);
}

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

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--crypto-header-h);
    gap: 16px;
}

.site-header__brand {
    flex-shrink: 0;
}

.site-header__logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--crypto-text);
    font-weight: 700;
    font-size: 1.125rem;
}

.site-header__logo-link:hover {
    color: var(--crypto-text);
}

.site-header__logo-img {
    border-radius: 8px;
    border: 1px solid var(--crypto-border);
}

.site-header .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.site-header .custom-logo {
    max-height: 44px;
    width: auto;
}

.site-header__title {
    letter-spacing: -0.02em;
}

.site-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--crypto-border);
    border-radius: 8px;
    background: var(--crypto-surface);
    cursor: pointer;
}

.site-header__burger-line {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--crypto-text);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header--nav-open .site-header__burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.site-header--nav-open .site-header__burger-line:nth-child(2) {
    opacity: 0;
}

.site-header--nav-open .site-header__burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.site-header__nav {
    display: flex;
    align-items: center;
}

.site-header__menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__menu a {
    color: var(--crypto-muted);
    font-weight: 500;
    font-size: 0.9375rem;
}

.site-header__menu a:hover,
.site-header__menu .current-menu-item>a {
    color: var(--crypto-text);
}

@media (max-width: 991px) {
    .site-header__burger {
        display: inline-flex;
    }

    .site-header__nav {
        position: fixed;
        inset: 0;
        top: var(--crypto-header-h);
        background: rgba(11, 14, 17, 0.98);
        padding: 24px 20px 40px;
        flex-direction: column;
        align-items: stretch;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        border-top: 1px solid var(--crypto-border);
        height: fit-content;
    }

    .admin-bar .site-header__nav {
        top: calc(var(--crypto-header-h) + 46px);
    }

    .site-header--nav-open .site-header__nav {
        transform: translateX(0);
    }

    .site-header__menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .site-header__menu li {
        width: 100%;
        border-bottom: 1px solid var(--crypto-border);
    }

    .site-header__menu a {
        display: block;
        padding: 14px 0;
        font-size: 1.05rem;
    }
}

/* Основной контент */
.site-main {
    min-height: 40vh;
}

/* Кнопки (адаптация паттернов custom-btn / btn-mini из work-layout) */
.crypto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    font-family: var(--crypto-font);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.crypto-btn--primary {
    background: linear-gradient(180deg, #5f7fff 0%, #4b6af5 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 14px rgba(75, 106, 245, 0.35);
}

.crypto-btn--primary:hover {
    color: #fff;
    filter: brightness(1.06);
}

.crypto-btn--ghost {
    background: transparent;
    color: var(--crypto-text);
    border-color: var(--crypto-border);
}

.crypto-btn--ghost:hover {
    border-color: var(--crypto-accent);
    color: var(--crypto-accent-hover);
}

.crypto-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

/* Hero / фоновые блоки (паттерн first_block-container из work-layout) */
.page-hero {
    position: relative;
    padding: 72px 0 80px;
    border-radius: var(--crypto-radius);
    overflow: hidden;
    background-color: var(--crypto-surface);
    background-size: cover;
    background-position: center;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 14, 17, 0.92) 0%, rgba(19, 22, 28, 0.85) 50%, rgba(11, 14, 17, 0.75) 100%);
    pointer-events: none;
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.page-hero__title {
    margin: 0 0 20px;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.page-hero__lead {
    margin: 0;
    color: var(--crypto-muted);
    font-size: 1.0625rem;
    line-height: 1.65;
}

.page-hero__partner {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9375rem;
    color: var(--crypto-muted);
}

.page-hero__partner strong {
    color: var(--crypto-text);
    font-weight: 600;
}

.page-hero__partner a {
    color: var(--crypto-accent);
}

/* Секции страницы */
.page-section {
    padding: 64px 0;
}

.page-section--alt {
    background: var(--crypto-surface);
    border-top: 1px solid var(--crypto-border);
    border-bottom: 1px solid var(--crypto-border);
}

.page-section__title {
    margin: 0 0 16px;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-section__subtitle {
    margin: 0 0 24px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--crypto-text);
}

.page-section__text {
    margin: 0 0 16px;
    color: var(--crypto-muted);
    max-width: 900px;
}

.page-section__text:last-child {
    margin-bottom: 0;
}

.page-section__list {
    margin: 16px 0 0;
    padding-left: 1.2em;
    color: var(--crypto-muted);
}

.page-section__list li+li {
    margin-top: 8px;
}

/* Двухколоночный блок (паттерн about-company-1 из work-layout) */
.split-section {
    padding: 56px 0;
}

.split-section__surface {
    background: var(--crypto-surface-2);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    padding: 32px 28px;
}

.split-section__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.split-section__row--reverse {
    flex-direction: row-reverse;
}

.split-section__img {
    flex: 1 1 320px;
    max-width: 520px;
}

.split-section__img img {
    border-radius: 12px;
    border: 1px solid var(--crypto-border);
    width: 100%;
}

/* Широкие фото из макета («в ширину»): альбомная подача в колонке */
.split-section__img--wide {
    max-width: 560px;
}

.split-section__img--wide img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    height: auto;
}

.split-section__content {
    flex: 1 1 300px;
    max-width: 560px;
}

.split-section__content h2 {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.split-section__content p {
    margin: 0 0 12px;
    color: var(--crypto-muted);
    font-size: 0.975rem;
}

/* Карточки возможностей */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.feature-card {
    padding: 22px;
    background: var(--crypto-surface-2);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
}

.feature-card__title {
    margin: 0 0 10px;
    font-size: 1.0625rem;
    font-weight: 600;
}

.feature-card__text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--crypto-muted);
    line-height: 1.55;
}

/* CTA / форма (паттерн need-consalt из work-layout, перекрашен под Kraken) */
.cta-panel {
    margin-top: 40px;
    padding: 36px 28px 42px;
    background: linear-gradient(145deg, #1e2a4a 0%, #152036 100%);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.cta-panel__intro {
    margin: 0 0 8px;
    text-align: center;
    font-size: 1rem;
    color: var(--crypto-muted);
}

.cta-panel__title {
    margin: 0 0 24px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
}

.crypto-form {
    display: grid;
    gap: 14px;
    max-width: 520px;
    margin: 0 auto;
}

.crypto-form__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.crypto-form label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--crypto-muted);
}

.crypto-form input,
.crypto-form select,
.crypto-form textarea {
    width: 100%;
    padding: 14px 14px;
    border-radius: 10px;
    border: 1px solid #d5deec33;
    background: #0b0e11;
    color: var(--crypto-text);
    font-family: var(--crypto-font);
    font-size: 0.9375rem;
    outline: none;
}

.crypto-form input:focus,
.crypto-form select:focus,
.crypto-form textarea:focus {
    border-color: var(--crypto-accent);
    box-shadow: 0 0 0 1px rgba(91, 124, 250, 0.35);
}

.crypto-form textarea {
    min-height: 120px;
    resize: vertical;
}

.crypto-form .crypto-btn {
    width: 100%;
    margin-top: 8px;
}

.crypto-form__note {
    margin: 12px 0 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--crypto-muted);
    line-height: 1.5;
}

/* FAQ */
.faq-list {
    margin-top: 24px;
    border-top: 1px solid var(--crypto-border);
}

.faq-item {
    border-bottom: 1px solid var(--crypto-border);
    padding: 18px 0;
}

.faq-item__q {
    margin: 0 0 8px;
    font-size: 1.0625rem;
    font-weight: 600;
}

.faq-item__a {
    margin: 0;
    color: var(--crypto-muted);
    font-size: 0.9375rem;
}

/* Код и документация */
.code-block {
    margin: 16px 0;
    padding: 18px 20px;
    background: #07090c;
    border: 1px solid var(--crypto-border);
    border-radius: 8px;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: var(--crypto-mono);
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #c8d2e0;
    white-space: pre-wrap;
    word-break: break-word;
}

.flow-line {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--crypto-surface-2);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--crypto-muted);
    border: 1px dashed var(--crypto-border);
}

/* Юридические и простые страницы */
.page-simple {
    padding: 48px 0 72px;
}

/* Документ Legal: подпись и акцент в духе тёмных крипто-терминалов (Kraken-like) */
.legal-page {
    max-width: 820px;
}

.legal-page__kicker {
    margin: 0 0 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--crypto-muted);
}

.legal-page .page-simple__title {
    padding-bottom: 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--crypto-border);
}

.legal-page .page-simple__content>h2:first-child {
    margin-top: 0;
}

.page-simple__title {
    margin: 0 0 24px;
    font-size: 2rem;
    font-weight: 700;
}

.page-simple__content h2 {
    margin: 32px 0 12px;
    font-size: 1.25rem;
    font-weight: 600;
}

.page-simple__content p,
.page-simple__content li {
    color: var(--crypto-muted);
}

.page-simple__content ul {
    padding-left: 1.2em;
}

.page-simple__content li+li {
    margin-top: 8px;
}

.entry-content a {
    color: var(--crypto-accent);
}

.entry-content p {
    color: var(--crypto-muted);
}

/* Футер */
.site-footer {
    background: var(--crypto-surface);
    border-top: 1px solid var(--crypto-border);
    padding-top: 48px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-bottom: 40px;
}

@media (max-width: 900px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

.site-footer__heading {
    margin: 0 0 16px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--crypto-muted);
}

.site-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__menu li+li {
    margin-top: 10px;
}

.site-footer__menu a {
    color: var(--crypto-text);
    font-size: 0.9375rem;
}

.site-footer__menu a:hover {
    color: var(--crypto-accent);
}

.site-footer__bottom {
    border-top: 1px solid var(--crypto-border);
    padding: 20px 0;
}

.site-footer__copy {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--crypto-muted);
    text-align: center;
}

.block-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 768px) {

    .split-section__row,
    .split-section__row--reverse {
        flex-direction: column;
    }

    .split-section__img {
        max-width: none;
    }
}