/* Зелено-салатово-белая цветовая схема */
:root {
    --primary: #2ecc71;  /* Салатовый */
    --primary-dark: #27ae60;  /* Темно-зеленый */
    --primary-light: #58e68a;  /* Светло-салатовый */
    --secondary: #3498db;  /* Синий для акцентов */
    --background: #ffffff;  /* Белый фон */
    --card-bg: #f9f9f9;  /* Светло-серый фон карточек */
    --text: #2c3e50;  /* Темно-синий текст */
    --text-light: #7f8c8d;  /* Серый текст */
    --border: #e0e0e0;  /* Границы */
    --success: #2ecc71;  /* Салатовый для успеха */
    --warning: #f39c12;  /* Оранжевый для предупреждений */
    --error: #e74c3c;  /* Красный для ошибок */
    --shadow: 0 2px 10px rgba(46, 204, 113, 0.1);  /* Зеленая тень */
}

/* Базовые стили */
body {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary);
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Шапка */
header {
    background-color: var(--background);
    box-shadow: 0 2px 15px rgba(46, 204, 113, 0.1);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo img {
    height: 40px;
    margin-right: 12px;
}

/* Навигация */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 25px;
    position: relative;
}

nav ul li a {
    color: var(--text);
    font-weight: 500;
    padding: 5px 0;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Карточка обменника */
.exchange-card {
    background: var(--background);
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Таймер */
.timer {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* Форма обмена */
.exchange-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 25px;
}

@media (max-width: 768px) {
    .exchange-form {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: var(--background);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.min-amount-notice {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-accent {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(46, 204, 113, 0.1);
}

/* Секция оплаты */
.payment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 25px;
}

@media (max-width: 768px) {
    .payment-content {
        grid-template-columns: 1fr;
    }
}

.qr-container {
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-code {
    width: 220px;
    height: 220px;
    background: var(--background);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.qr-code img {
    max-width: 100%;
    max-height: 100%;
}

.payment-notice {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 10px;
}

.payment-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-block {
    margin-bottom: 20px;
}

.info-block label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
    font-size: 14px;
}

.copy-box {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--border);
}

.copy-box span {
    flex: 1;
    word-break: break-all;
    color: var(--text);
}

.copy-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: rgba(46, 204, 113, 0.1);
}

/* Инструкция */
.payment-instructions {
    background: var(--card-bg);
    padding: 20px 25px;
    border-top: 1px solid var(--border);
}

.payment-instructions h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
}

.payment-instructions h3 i {
    margin-right: 10px;
    color: var(--primary);
}

.payment-instructions ol {
    padding-left: 20px;
    margin-bottom: 15px;
    color: var(--text);
}

.payment-instructions li {
    margin-bottom: 8px;
}

.warning-box {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 6px;
    color: var(--warning);
    font-size: 14px;
}

.warning-box i {
    margin-right: 10px;
    font-size: 18px;
}

/* Инфо-карточки */
.info-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .info-section {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: var(--background);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.2);
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.info-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--text);
}

.info-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 14px;
}

/* Футер */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ecf0f1;
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: white;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-column p {
    color: #bdc3c7;
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bdc3c7;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: var(--primary-light);
}

.contact-info {
    margin-top: 20px;
}

.contact-info p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    color: #bdc3c7;
    font-size: 14px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.app-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.app-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.app-link:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.app-link i {
    margin-right: 8px;
    font-size: 18px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: #bdc3c7;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-light);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #7f8c8d;
    font-size: 14px;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.exchange-card, .info-card {
    animation: fadeIn 0.5s ease-out;
}