/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf2 100%);
    color: #1a2b3e;
    line-height: 1.5;
    min-height: 100vh;
    padding: 16px 0;
}

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

/* ===== ЛОГОТИП ===== */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-main {
    font-weight: 800;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.logo-main .hash {
    color: #2b5797;
}

.logo-main .save {
    color: #c73b2b;
    background: linear-gradient(135deg, #c73b2b, #a32c1f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-main .name {
    color: #1f4e6f;
}

.logo-sub {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #5a6f88;
    letter-spacing: 3px;
    margin-top: 6px;
    background: rgba(255,255,255,0.5);
    display: inline-block;
    padding: 4px 16px;
    border-radius: 40px;
    backdrop-filter: blur(5px);
}

/* ===== ГЛАВНАЯ КАРТОЧКА ===== */
.main-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    box-shadow: 0 20px 40px -20px rgba(0, 30, 60, 0.3);
    padding: 30px 20px;
    margin: 10px 0 30px;
    border: 1px solid rgba(255,255,255,0.5);
}

/* ===== ЗАГОЛОВОК ===== */
.hero {
    text-align: center;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #13294b, #1f5e8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero .diagnosis {
    display: inline-block;
    background: #ffebe8;
    color: #b13e32;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 1.1rem;
    border: 1px solid #ffc9c0;
    box-shadow: 0 4px 10px rgba(177,62,50,0.1);
}

/* ===== ОБРАЩЕНИЕ ОТЦА ===== */
.father-letter {
    background: linear-gradient(145deg, #f0f9ff, #e6f2fa);
    border-radius: 28px;
    padding: 25px 20px;
    margin: 25px 0 30px;
    border-left: 6px solid #2b7c9c;
    box-shadow: 0 10px 20px -10px rgba(0,80,120,0.15);
    position: relative;
}

.father-letter::before {
    content: "“";
    font-size: 80px;
    color: rgba(43,124,156,0.1);
    position: absolute;
    left: 10px;
    top: -15px;
    font-family: serif;
}

.father-letter h2 {
    font-size: 1.6rem;
    color: #104c66;
    margin-bottom: 20px;
    font-weight: 700;
    padding-left: 20px;
}

.father-letter p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #1d4860;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
    z-index: 1;
}

.father-signature {
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 25px;
    color: #004466;
    text-align: right;
    border-top: 2px dashed #9ac2d9;
    padding-top: 20px;
}

/* ===== ГАЛЕРЕЯ ДОКУМЕНТОВ ===== */
.docs-section {
    margin: 30px 0 25px;
}

.docs-section h3 {
    font-size: 1.6rem;
    color: #1f4e6f;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.docs-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.doc-item {
    background: white;
    border-radius: 24px;
    padding: 15px;
    border: 2px solid #d4e2f0;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    width: 100%;
}

.doc-item a {
    display: block;
    text-decoration: none;
}

.doc-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 12px;
    border: 2px solid #d4e2f0;
    transition: 0.2s;
    background: #edf4fa;
}

.doc-thumb:hover {
    transform: scale(1.02);
    border-color: #2b7c9c;
    box-shadow: 0 8px 20px rgba(43,124,156,0.2);
}

.doc-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f4970;
}

.doc-desc {
    font-size: 0.9rem;
    color: #4f759b;
    margin-top: 5px;
}

/* ===== ЦИФРЫ ===== */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0;
}

.stat-block {
    background: white;
    border-radius: 24px;
    padding: 20px 15px;
    box-shadow: 0 8px 20px #d4dfeb;
    border: 1px solid #d2e2f0;
    text-align: center;
    width: 100%;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #c7412e;
    line-height: 1;
}

.stat-text {
    font-size: 1rem;
    color: #1f4460;
    margin-top: 8px;
    font-weight: 500;
}

.total-cost {
    background: linear-gradient(135deg, #1d3852, #133041);
    color: white;
    border-radius: 30px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 25px 0;
    box-shadow: 0 15px 25px rgba(0,30,50,0.2);
    text-align: center;
}

.total-cost span {
    font-size: 1.6rem;
    font-weight: 700;
    display: block;
}

.total-cost small {
    font-size: 0.9rem;
    opacity: 0.8;
    display: block;
}

/* ===== РЕКВИЗИТЫ ===== */
.payment-section {
    background: linear-gradient(145deg, #0e2637, #0a1f2c);
    border-radius: 28px;
    padding: 25px 20px;
    color: white;
    margin: 30px 0 25px;
    border: 1px solid #2e5775;
}

.payment-section h2 {
    color: #ffdb8e;
    font-size: 1.8rem;
    border-left: 6px solid #ffb347;
    padding-left: 15px;
    margin-bottom: 25px;
}

.card-block {
    background: #1f405b;
    border-radius: 24px;
    padding: 18px 20px;
    margin-bottom: 15px;
    border-left: 5px solid #ffb347;
    transition: 0.2s;
}

.card-block:hover {
    background: #234b68;
    transform: translateY(-2px);
}

.card-bank {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffdb8e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bank-icon {
    font-size: 1.4rem;
}

.card-number {
    background: #0f2f42;
    padding: 12px 15px;
    border-radius: 16px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: white;
    margin-bottom: 10px;
    border: 1px solid #3e6f94;
    display: flex;
    align-items: center;
    gap: 10px;
    word-break: break-word;
}

.card-icon {
    font-size: 1.3rem;
    color: #ffb347;
}

.card-currency {
    font-size: 1rem;
    color: #b0d4f0;
    margin-bottom: 6px;
    padding-left: 5px;
}

.card-note {
    font-size: 0.9rem;
    color: #9bc2db;
    font-style: italic;
    padding-left: 5px;
}

.info-block {
    background: #14384f;
    border-radius: 24px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #2e5775;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 0;
    border-bottom: 1px solid #2e5775;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #ffd78a;
    font-weight: 600;
    min-width: 130px;
    font-size: 1rem;
}

.info-value {
    color: white;
    font-size: 1rem;
    word-break: break-word;
}

.payment-note {
    margin-top: 20px;
    color: #b0d4f0;
    font-style: italic;
    padding: 15px;
    background: #14384f;
    border-radius: 24px;
    border-left: 4px solid #ffb347;
    font-size: 0.95rem;
}

/* ===== ПРИЗЫВ И БЛАГОДАРНОСТЬ ===== */
.appeal {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: #0d3a51;
    margin: 30px 0 20px;
}

.appeal span {
    background: #fdeece;
    padding: 8px 20px;
    border-radius: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: inline-block;
}

.thanks-block {
    background: linear-gradient(135deg, #c7e4f5, #daeefc);
    border-radius: 28px;
    padding: 25px 20px;
    text-align: center;
    margin: 25px 0;
}

.thanks-block p:first-child {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0f405b;
    margin-bottom: 10px;
}

.thanks-block p:last-child {
    color: #1e5a7a;
    font-size: 1rem;
}

footer {
    text-align: center;
    color: #5f7b99;
    margin: 30px 0;
    font-size: 0.85rem;
}

/* ===== СЧЁТЧИК МЕТРИКИ (внизу по центру) ===== */
.metrica-container {
    text-align: center;
    margin: 40px 0 10px;
    padding: 10px 0;
    clear: both;
}

/* ===== МЕДИА-ЗАПРОСЫ ===== */
@media (max-width: 480px) {
    .logo-main {
        font-size: 36px;
    }
}

@media (min-width: 600px) {
    .docs-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    .doc-item {
        flex: 1 1 calc(33.333% - 20px);
        padding: 20px;
    }
    .stats-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
    .stat-block {
        flex: 1 1 calc(33.333% - 15px);
        padding: 25px 15px;
    }
    .info-row {
        flex-direction: row;
        align-items: baseline;
        gap: 15px;
    }
}

@media (min-width: 768px) {
    .main-card {
        padding: 50px 45px;
        border-radius: 48px;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .father-letter {
        padding: 45px;
        border-radius: 40px;
        border-left-width: 10px;
    }
    .father-letter::before {
        font-size: 120px;
        left: 20px;
        top: -20px;
    }
    .father-letter h2 {
        font-size: 2.2rem;
        padding-left: 30px;
    }
    .father-letter p {
        font-size: 1.2rem;
        padding-left: 30px;
    }
    .stat-number {
        font-size: 2.8rem;
    }
    .total-cost {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 30px 40px;
        border-radius: 80px;
        text-align: left;
    }
    .total-cost span {
        font-size: 2rem;
        display: inline;
    }
    .total-cost small {
        font-size: 1rem;
        display: inline;
    }
    .payment-section {
        padding: 50px 45px;
        border-radius: 50px;
    }
    .payment-section h2 {
        font-size: 2.4rem;
        padding-left: 30px;
        margin-bottom: 40px;
    }
    .card-number {
        font-size: 1.3rem;
        padding: 15px 20px;
    }
    .card-bank {
        font-size: 1.3rem;
    }
    .appeal {
        font-size: 1.8rem;
        margin: 50px 0 30px;
    }
    .thanks-block {
        padding: 35px;
        border-radius: 60px;
    }
    .thanks-block p:first-child {
        font-size: 1.6rem;
    }
}