/* ==========================================
   Pozdravlenie page styles
   ========================================== */

.pozdravlenie-page {
    padding: 40px 0 80px;
    min-height: 60vh;
}

/* Hero */
.pozdravlenie-hero {
    text-align: center;
    margin-bottom: 40px;
}
.pozdravlenie-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #2a2a2a;
}
.pozdravlenie-hero .subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Form */
.pozdravlenie-form-section {
    max-width: 600px;
    margin: 0 auto 40px;
}
.pozdravlenie-form {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.form-row {
    margin-bottom: 20px;
}
.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
}
.form-row .required { color: #e74c5c; }
.form-row .optional {
    color: #999;
    font-weight: 400;
    font-size: 0.85rem;
}
.form-row input,
.form-row select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #e74c5c;
}

#generateBtn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #e74c5c 0%, #f4a261 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}
#generateBtn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(231, 76, 92, 0.3);
}
#generateBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.limit-info {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin: 16px 0 0;
}
.limit-info #remainingCount {
    font-weight: 700;
    color: #e74c5c;
}

/* Result */
.pozdravlenie-result {
    max-width: 700px;
    margin: 0 auto 40px;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pozdravlenie-result h2 {
    font-size: 1.4rem;
    margin: 0 0 16px;
    color: #2a2a2a;
}
.result-text {
    background: #fef5f6;
    padding: 24px;
    border-radius: 10px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    white-space: pre-wrap;
    margin-bottom: 28px;
    border-left: 4px solid #e74c5c;
}

.result-cta {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 24px;
}
.cta-headline {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 20px;
}
.cta-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-cta {
    flex: 1 1 220px;
    min-width: 220px;
    padding: 16px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.btn-cta .price {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 500;
}
.btn-cta-primary {
    background: linear-gradient(135deg, #e74c5c 0%, #f4a261 100%);
    color: #fff;
}
.btn-cta-secondary {
    background: #fff;
    color: #e74c5c;
    border: 2px solid #e74c5c;
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Error */
.pozdravlenie-error {
    max-width: 600px;
    margin: 0 auto 40px;
    background: #fff5f5;
    border: 1px solid #f5c2c7;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}
.error-text {
    color: #842029;
    margin: 0 0 16px;
}
#errorClose {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Info */
.pozdravlenie-info {
    max-width: 700px;
    margin: 60px auto 0;
    color: #444;
    line-height: 1.7;
}
.pozdravlenie-info h2 {
    font-size: 1.4rem;
    margin: 32px 0 12px;
    color: #2a2a2a;
}
.pozdravlenie-info ol {
    padding-left: 22px;
}
.pozdravlenie-info ol li {
    margin-bottom: 8px;
}
.pozdravlenie-info a {
    color: #e74c5c;
    text-decoration: none;
}
.pozdravlenie-info a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 600px) {
    .pozdravlenie-hero h1     { font-size: 1.7rem; }
    .pozdravlenie-hero .subtitle { font-size: 1rem; }
    .pozdravlenie-form        { padding: 22px; }
    .pozdravlenie-result      { padding: 22px; }
    .cta-buttons              { flex-direction: column; }
    .btn-cta                  { flex: 1 1 auto; }
}

/* ========== Кнопка "Скопировать" ========== */
.btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 24px;
    padding: 10px 22px;
    background: #fff;
    color: #e74c5c;
    border: 2px solid #e74c5c;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.btn-copy:hover {
    background: #fef5f6;
}

.btn-copy:active {
    transform: scale(0.97);
}

.btn-copy.is-copied {
    background: #e74c5c;
    color: #fff;
    border-color: #e74c5c;
}

.btn-copy.is-error {
    background: #fff5f5;
    color: #842029;
    border-color: #f5c2c7;
}

/* На мобильных делаем кнопку во всю ширину для удобства тапа */
@media (max-width: 600px) {
    .btn-copy {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
}
