/* Переменные и основные стили */
:root {
    --primary-color: #3d3d3d;
    --accent-color: #f7931a;  /* Bitcoin orange */
    --dark-color: #252525;
    --light-color: #f4f4f4;
    --gray-color: #888;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--primary-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: #e78b17;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(231, 139, 23, 0.2);
}

.text-center {
    text-align: center;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Шапка */
header {
    background-color: var(--dark-color);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: var(--box-shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Hero секция */
.hero {
    background: linear-gradient(rgba(37, 37, 37, 0.85), rgba(37, 37, 37, 0.85)), url('images/bg-crypto.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 180px 0 100px;
    margin-top: -20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Проблема и решение */
.problem-solution {
    background-color: white;
}

.problem-solution-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.problem-solution-text {
    max-width: 500px;
}

/* Галерея продукта */
.product-gallery {
    background-color: var(--light-color);
    padding: 60px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    height: 250px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.gallery-featured {
    grid-column: span 3;
    height: 400px;
}

/* Преимущества */
.features {
    background-color: white;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Как это работает */
.how-it-works {
    background-color: white;
}

.steps {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Технические характеристики */
.specs {
    background-color: var(--light-color);
}

.specs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.specs-list {
    list-style: none;
}

.specs-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.specs-list li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.5rem;
    margin-right: 10px;
    line-height: 1;
}

.spec-label {
    font-weight: 600;
    min-width: auto;
    margin-right: 5px;
}

.spec-value {
    flex: 1;
}
.specs-image img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevent inline image spacing issues */
}

/* FAQ */
.faq {
    background-color: white;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    background-color: var(--light-color);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

/* Форма заказа */
.order {
    background-color: var(--light-color);
}

.order-form {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* Дополнительные стили для формы заказа */
.form-hint {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 5px;
    margin-bottom: 0;
}

.order-success {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 25px;
    border-left: 4px solid var(--accent-color);
}

.btc-address {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.btc-address code {
    font-family: monospace;
    font-size: 1rem;
    word-break: break-all;
    margin-right: 10px;
}

.btn-small {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-small:hover {
    background-color: #e78b17;
}

.payment-info {
    margin-top: 20px;
}

.payment-info h4 {
    margin-bottom: 10px;
}

.payment-info ul {
    padding-left: 20px;
}

.payment-info li {
    margin-bottom: 10px;
}

/* Футер */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
}

.footer-info h3 {
    color: var(--accent-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-icon {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Отзывчивый дизайн */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .problem-solution-container,
    .specs-container,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-featured {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-featured {
        grid-column: span 1;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
}

/* Стили для мобильного меню-гамбургера */
.hamburger-menu {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    margin-right: 20px;
    z-index: 200;
}

.hamburger-menu span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-menu span:nth-child(1) {
    top: 0px;
}

.hamburger-menu span:nth-child(2) {
    top: 8px;
}

.hamburger-menu span:nth-child(3) {
    top: 16px;
}

.hamburger-menu.active span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-menu.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Блокировка прокрутки при открытом меню */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }
    
    .header-container {
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(37, 37, 37, 0.95);
        z-index: 100;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .menu-items {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .menu-items li {
        margin: 15px 0;
    }
    
    .menu-items a {
        font-size: 1.5rem;
    }
    
    .menu-items.active + nav,
    nav:has(.menu-items.active) {
        transform: translateX(0);
    }
    
    .menu-items.active {
        display: flex;
    }
}
/* Стили для секции "Где купить" */
.where-to-buy {
    background-color: #f7f7f7;
    padding: 60px 0;
}

.intro-text {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.buying-options-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.buying-option {
    display: flex;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.buying-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.buying-option-image {
    flex: 0 0 300px;
    max-width: 300px;
    overflow: hidden;
}

.buying-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.buying-option:hover .buying-option-image img {
    transform: scale(1.05);
}

.buying-option-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.buying-option-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.buying-option-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 1rem;
}

.advantages {
    margin: 15px 0;
    flex-grow: 1;
}

.advantage {
    color: #28a745;
    font-weight: 500;
    margin: 8px 0;
}

.buying-option .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Адаптивность для планшетов */
@media (max-width: 992px) {
    .buying-option-image {
        flex: 0 0 250px;
        max-width: 250px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .buying-option {
        flex-direction: column;
    }
    
    .buying-option-image {
        flex: none;
        max-width: 100%;
        height: 200px;
    }
    
    .buying-option-content {
        padding: 20px;
    }
    
    .buying-option .btn {
        align-self: center;
        width: 100%;
    }
}

/* Дополнительная оптимизация для очень маленьких экранов */
@media (max-width: 480px) {
    .where-to-buy {
        padding: 40px 0;
    }
    
    .intro-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .buying-option-content h3 {
        font-size: 1.2rem;
    }
}