/*
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.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =====================================================================
   1. Переменные и базовые стили
   ===================================================================== */
:root {
    --crypto-color-bg: #ffffff;
    --crypto-color-bg-alt: #f5f7fa;
    --crypto-color-text: #111827;
    --crypto-color-text-light: #ffffff;
    --crypto-color-accent: #1a56db;
    --crypto-color-accent-hover: #2563eb;
    --crypto-color-header-footer: #1f2041;
    --crypto-color-section-purple: #4b3f72;
    --crypto-color-section-orange: #ff6200;
    --crypto-section-y: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--crypto-color-text);
    background-color: var(--crypto-color-bg);
    line-height: 1.6;
}

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

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

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

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

/* =====================================================================
   2. Хедер
   ===================================================================== */
.header {
    background-color: var(--crypto-color-header-footer);
    color: var(--crypto-color-text-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 15px;
    padding-bottom: 15px;
}

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--crypto-color-text-light);
}

.header__nav {
    margin-left: auto;
}

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

.header__menu a {
    color: var(--crypto-color-text-light);
    font-weight: 500;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.header__menu a:hover {
    color: var(--crypto-color-section-orange);
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
}

.header__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--crypto-color-text-light);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* =====================================================================
   3. Мобильное меню
   ===================================================================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-start;
    background-color: var(--crypto-color-header-footer);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu__container {
    width: 100%;
    padding-top: 25px;
    padding-bottom: 40px;
}

.mobile-menu__close {
    position: relative;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 30px;
    margin-left: auto;
    display: block;
}

.mobile-menu__close-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--crypto-color-text-light);
    border-radius: 2px;
}

.mobile-menu__close-line:first-child {
    transform: rotate(45deg);
}

.mobile-menu__close-line:last-child {
    transform: rotate(-45deg);
}

.mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-menu__list a {
    color: var(--crypto-color-text-light);
    font-size: 22px;
    font-weight: 600;
}

.mobile-menu__list a:hover {
    color: var(--crypto-color-section-orange);
}

/* =====================================================================
   4. Кнопки
   ===================================================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn--primary {
    background-color: var(--crypto-color-accent);
    color: var(--crypto-color-text-light);
}

.btn--primary:hover {
    background-color: var(--crypto-color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 86, 219, 0.35);
    color: var(--crypto-color-text-light);
}

.btn--white {
    background-color: var(--crypto-color-text-light);
    color: var(--crypto-color-section-orange) !important;
}

.btn--white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: var(--crypto-color-section-orange);
}

/* =====================================================================
   5. Секции
   ===================================================================== */
.section {
    padding: calc(var(--crypto-section-y) * 2) 0;
}

.section--alt {
    background-color: var(--crypto-color-bg-alt);
}

.section--purple {
    background-color: var(--crypto-color-section-purple);
    color: var(--crypto-color-text-light);
}

.section--purple a {
    color: var(--crypto-color-text-light);
    text-decoration: underline;
}

.section--orange {
    background-color: var(--crypto-color-section-orange);
    color: var(--crypto-color-text-light);
}

.section--orange a {
    color: var(--crypto-color-text-light);
}

.section__title {
    font-size: 32px;
    margin-bottom: 20px;
}

.section h2 {
    font-size: 24px;
    margin: 30px 0 12px;
}

.section h2:first-child,
.section .section__title + h2 {
    margin-top: 0;
}

.section h3 {
    font-size: 18px;
    margin: 20px 0 10px;
}

.section ul {
    padding-left: 22px;
    margin: 0 0 15px;
}

.section li {
    margin-bottom: 6px;
}

.section__row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.section__col {
    flex: 1;
    min-width: 0;
}

.section__img {
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(17, 24, 39, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.section__img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.25);
}

.section__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================================
   6. Виджет обменника
   ===================================================================== */
.widget {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.widget__frame {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(17, 24, 39, 0.2);
    max-width: 100%;
}

/* =====================================================================
   7. Карточки
   ===================================================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--crypto-section-y);
    margin-top: 30px;
}

.card {
    background-color: var(--crypto-color-bg);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(17, 24, 39, 0.15);
}

.card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background-color: var(--crypto-color-bg-alt);
    color: var(--crypto-color-accent);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.card:hover .card__icon {
    transform: scale(1.1);
    background-color: var(--crypto-color-accent);
    color: var(--crypto-color-text-light);
}

.card__title {
    font-size: 18px;
    margin: 0 0 10px;
}

.card__text {
    margin: 0;
    font-size: 15px;
}

/* =====================================================================
   8. Карточки маршрутов
   ===================================================================== */
.routes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--crypto-section-y);
    margin-top: 30px;
}

.route-card {
    display: block;
    background-color: var(--crypto-color-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.route-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(17, 24, 39, 0.15);
}

.route-card__img {
    overflow: hidden;
}

.route-card__img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.route-card:hover .route-card__img img {
    transform: scale(1.08);
}

.route-card__body {
    padding: 20px;
}

.route-card__title {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--crypto-color-text);
}

.route-card__text {
    margin: 0;
    font-size: 14px;
    color: var(--crypto-color-text);
}

/* =====================================================================
   7.1 Иконки заголовков
   ===================================================================== */
.icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--crypto-color-accent);
    color: var(--crypto-color-text-light);
    font-size: 22px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.section--purple .icon-badge,
.section--orange .icon-badge {
    background-color: rgba(255, 255, 255, 0.15);
}

.reveal.is-visible .icon-badge {
    transform: scale(1.05);
}

/* Разделитель секций внутри блока */
.divider {
    border: none;
    border-top: 1px solid var(--crypto-color-border, #e5e7eb);
    margin: 24px 0;
}

/* =====================================================================
   8.1 Таблицы
   ===================================================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: var(--crypto-color-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
}

.table th,
.table td {
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid var(--crypto-color-bg-alt);
    font-size: 15px;
}

.table th {
    background-color: var(--crypto-color-accent);
    color: var(--crypto-color-text-light);
    font-weight: 600;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: var(--crypto-color-bg-alt);
}

/* =====================================================================
   9. Отзывы
   ===================================================================== */
.reviews {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--crypto-section-y);
    margin-top: 30px;
}

.review-card {
    display: flex;
    flex-direction: column;
    background-color: var(--crypto-color-bg);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(17, 24, 39, 0.15);
}

.review-card__quote {
    margin: 0 0 15px;
    font-size: 16px;
    font-style: italic;
}

.review-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.review-card__author {
    font-weight: 600;
    font-size: 14px;
    color: var(--crypto-color-text);
}

.review-card__rating {
    font-size: 13px;
    color: var(--crypto-color-accent);
    font-weight: 600;
}

/* =====================================================================
   10. FAQ
   ===================================================================== */
.faq {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq__item {
    background-color: var(--crypto-color-bg);
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.faq__item:hover {
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
    transform: translateY(-3px);
}

.faq__question {
    margin: 0 0 8px;
    font-size: 17px;
    color: var(--crypto-color-accent);
}

.faq__answer {
    margin: 0;
    font-size: 15px;
}

/* =====================================================================
   11. CTA
   ===================================================================== */
.cta {
    text-align: center;
}

.cta__title {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta__text {
    margin-bottom: 25px;
}

/* =====================================================================
   12. Scroll-анимации
   ===================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================================
   13. Футер
   ===================================================================== */
.footer {
    background-color: var(--crypto-color-header-footer);
    color: var(--crypto-color-text-light);
    padding: 50px 0 0;
    margin-top: 40px;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 30px;
}

.footer__title {
    font-size: 16px;
    margin: 0 0 15px;
    color: var(--crypto-color-text-light);
}

.footer__text {
    font-size: 14px;
    opacity: 0.8;
    margin: 0 0 10px;
}

.footer__text a {
    color: var(--crypto-color-text-light);
}

.footer__text a:hover {
    color: var(--crypto-color-section-orange);
}

.footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__list a {
    color: var(--crypto-color-text-light);
    opacity: 0.8;
    font-size: 14px;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer__list a:hover {
    opacity: 1;
    color: var(--crypto-color-section-orange);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer__copyright {
    margin: 0;
    font-size: 13px;
    opacity: 0.7;
    text-align: center;
}

/* =====================================================================
   14. Адаптив
   ===================================================================== */
@media (max-width: 768px) {
    .header__nav {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .section__row {
        flex-direction: column;
    }

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

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

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

    .footer__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .section__title,
    .cta__title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: var(--crypto-section-y) 0;
    }

    .footer__container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .widget__frame iframe {
        width: 100%;
        height: 400px;
    }
}
