* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Montserrat', sans-serif;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 750px;
    width: 100%;
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    font-size: 5rem;
    color: #E60012;
    margin-bottom: 30px;
    letter-spacing: -3px;
    font-weight: 800;
    text-shadow: 3px 3px 0px rgba(230, 0, 18, 0.1);
}

/* === ДВЕ КНОПКИ В РЯД (YouTube + minidns+) === */
.social-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.social-section .btn {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.content-box {
    background-color: #fdfdfd;
    border-left: 6px solid #E60012;
    padding: 30px;
    border-radius: 0 20px 20px 0;
    margin-bottom: 40px;
    text-align: left;
}

.handwritten-text {
    font-family: 'Caveat', cursive;
    font-size: 1.9rem;
    line-height: 1.6;
    color: #2c3e50;
}

.actions-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 450px;
    padding: 18px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.btn-youtube {
    background-color: #FF0000;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}
.btn-youtube:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.4);
}

/* === НОВАЯ КНОПКА minidns+ === */
.btn-minidns {
    background: linear-gradient(45deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3);
    position: relative;
    overflow: hidden;
}
.btn-minidns::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}
.btn-minidns:hover::before {
    left: 100%;
}
.btn-minidns:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(30, 60, 114, 0.5);
}

.btn-product {
    background-color: #ffffff;
    color: #333;
    border: 2px solid #E60012;
}
.btn-product:hover {
    background-color: #E60012;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(230, 0, 18, 0.25);
}

.btn-donate {
    background: linear-gradient(45deg, #FF512F 0%, #DD2476 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(221, 36, 118, 0.3);
    margin-top: 10px;
}
.btn-donate:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(221, 36, 118, 0.4);
    filter: brightness(1.1);
}

.tooltip-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 450px;
    margin-top: 10px;
}

.btn-ad.disabled {
    background-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    border: 2px dashed #ced4da;
}

.tooltip-text {
    visibility: hidden;
    width: 180px;
    background-color: #2d3436;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 10px 0;
    position: absolute;
    z-index: 10;
    bottom: 130%;
    left: 50%;
    margin-left: -90px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 0.95rem;
    font-weight: 600;
    transform: translateY(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #2d3436 transparent transparent transparent;
}

.tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

footer {
    margin-top: 50px;
    font-size: 0.85rem;
    color: #95a5a6;
    font-weight: 600;
}

/* === МОДАЛЬНОЕ ОКНО === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background: white;
    padding: 40px 35px;
    border-radius: 25px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-window {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}
.modal-close:hover {
    color: #E60012;
    transform: rotate(90deg);
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.modal-title {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 800;
}

.modal-subtitle {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.modal-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    letter-spacing: 3px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 15px;
}

.modal-input:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 4px rgba(42, 82, 152, 0.15);
}

.btn-submit {
    background: linear-gradient(45deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    max-width: 100%;
    margin-bottom: 15px;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.3);
}

.modal-message {
    font-weight: 700;
    font-size: 1rem;
    min-height: 24px;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-message.show {
    opacity: 1;
}

.modal-message.success {
    color: #27ae60;
}

.modal-message.error {
    color: #E60012;
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@media (max-width: 600px) {
    .container { padding: 30px 20px; border-radius: 25px; }
    .logo { font-size: 3.5rem; }
    .handwritten-text { font-size: 1.6rem; }
    .btn { font-size: 1rem; padding: 16px 20px; }
}