﻿a[href='#pricing'] {
    display: none;
}

/* --- РљРќРћРџРљР --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 10px 30px -26px rgba(15, 23, 42, 0.55);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary,
.btn-primary-small,
.btn-primary-large {
    background: var(--primary);
    color: #fff;
    border-color: rgba(37, 99, 235, 0.22);
}

.btn-primary:hover,
.btn-primary-small:hover,
.btn-primary-large:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.82);
    color: var(--dark);
    border-color: rgba(148, 163, 184, 0.18);
}

.btn-secondary:hover {
    background: rgba(241, 245, 249, 0.92);
}

.btn-ghost {
    background: var(--primary-ghost);
    color: var(--primary-dark);
    border-color: rgba(37, 99, 235, 0.12);
}

.btn-ghost:hover {
    background: rgba(37, 99, 235, 0.14);
}

.btn-danger {
    background: rgba(254, 226, 226, 0.9);
    color: #7f1d1d;
    border-color: rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
    background: rgba(254, 202, 202, 0.96);
}

.btn-sm {
    padding: 9px 14px;
    font-size: 13px;
}

.btn-primary-small {
    padding: 11px 18px;
}

.btn-primary-large {
    padding: 16px 28px;
    font-size: 15px;
}

.btn-outline {
    width: 100%;
    margin-top: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-weight: 600;
}

.btn-text { 
    background: none; 
    border: none; 
    color: var(--primary); 
    cursor: pointer; 
    margin-top: 10px; 
    font-size: 14px;
    font-weight: 600;
}

/* --- РњР•РўРћР”РћР›РћР“РР --- */
.section-methods { 
    padding: 100px 0; 
    border-bottom: 1px solid var(--border); 
}

.section-header { 
    text-align: center; 
    margin-bottom: 60px; 
}

.section-header h2 { 
    font-size: 36px; 
    margin-top: 10px; 
}

.methods-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    justify-content: center; 
    max-width: 800px; 
    margin: 0 auto; 
}

.card { 
    display: block; 
    text-decoration: none; 
    color: inherit; 
    padding: 40px; 
    background: var(--surface-soft); 
    border: 1px solid rgba(37, 99, 235, 0.12); 
    border-radius: var(--radius-md); 
    transition: 0.3s ease; 
    box-shadow: 0 16px 40px -30px rgba(15, 23, 42, 0.32);
}

.card:hover { 
    border-color: var(--primary); 
    transform: translateY(-6px); 
    box-shadow: var(--shadow-xl); 
}

.card-icon { 
    font-size: 40px; 
    margin-bottom: 20px; 
}

.card h3 { 
    font-size: 24px; 
    margin-bottom: 12px; 
}

/* --- Р”Р•РўРђР›Р¬РќР«Р• РЎР•РљР¦РР --- */
.detail-section { 
    padding: 100px 0; 
    overflow: hidden; 
}

.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    align-items: center; 
}

.bg-light { 
    background: var(--light); 
}

.badge { 
    background: rgba(37, 99, 235, 0.1); 
    color: var(--primary-dark); 
    padding: 6px 14px; 
    border-radius: 30px; 
    font-size: 13px; 
    font-weight: 700; 
    text-transform: uppercase; 
    display: inline-block; 
    margin-bottom: 20px; 
}

.info-text h2 { 
    font-size: 40px; 
    line-height: 1.2; 
    margin-bottom: 24px; 
}

.info-text p { 
    font-size: 18px; 
    color: var(--text); 
    margin-bottom: 30px; 
}

.check-list { 
    list-style: none; 
}

.check-list li { 
    margin-bottom: 16px; 
    padding-left: 32px; 
    position: relative; 
    font-size: 16px; 
}

.check-list li::before { 
    content: '•'; 
    position: absolute; 
    left: 0; 
    color: var(--primary); 
    font-weight: 900; 
    font-size: 24px; 
    line-height: 1; 
}

.side-img { 
    width: 100%; 
    border-radius: 24px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}

/* --- РўРђР РР¤Р« --- */
#pricing {
    background: linear-gradient(180deg, var(--white) 0%, var(--accent-light) 100%);
    box-shadow: inset 0 10px 15px -3px rgba(0, 0, 0, 0.02); 
    position: relative;
    z-index: 1; 
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(4, 1fr);    
    gap: 20px; 
    padding: 20px 0;
}

.pricing-card {
    background: var(--surface-soft);
    padding: 40px 25px; 
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.pricing-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-lg); 
    border-color: var(--primary); 
}

.pricing-card.highlighted { 
    border: 2px solid var(--primary); 
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1), 0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

.pricing-card h3 { 
    font-size: 20px; 
    font-weight: 700;
    margin-bottom: 20px; 
    color: var(--dark);
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    min-height: 65px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card .price { 
    font-size: 32px; 
    font-weight: 800; 
    margin-bottom: 30px; 
    color: var(--primary);
    letter-spacing: -1px;
}

.pricing-card .price span { 
    font-size: 14px; 
    color: var(--text); 
    font-weight: 500; 
}

.pricing-features { 
    list-style: none; 
    text-align: left; 
    margin-bottom: 30px; 
    flex-grow: 1; 
    border-top: 1px solid var(--border); 
    padding-top: 20px;
}

.pricing-features li { 
    margin-bottom: 12px; 
    color: var(--text); 
    display: flex; 
    align-items: center; 
    font-size: 14px;
}

.pricing-features li::before {
    content: 'вњ“';
    color: var(--primary);
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
}

.pricing-card button { 
    width: 100%; 
    margin-top: auto; 
    padding: 12px; 
    font-size: 15px;
}

/* --- Р¤РЈРўР•Р  --- */
.footer { 
    padding: 60px 0; 
    border-top: 1px solid var(--border); 
}

.footer-wrap { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    color: var(--text); 
}

/* --- РњРћР”РђР›Р¬РќРћР• РћРљРќРћ --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex !important;
    opacity: 1;
}

.modal-content {
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 24%),
        radial-gradient(circle at left center, rgba(37, 99, 235, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    padding: 32px;
    border-radius: 26px;
    width: 100%;
    max-width: 540px;
    position: relative;
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 32px 70px -38px rgba(15, 23, 42, 0.55);
    transform: translateY(12px) scale(0.97);
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-align: left;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 30px -24px rgba(15, 23, 42, 0.55);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--text);
    font-family: inherit;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.close-modal:hover {
    color: var(--dark);
    background: rgba(241, 245, 249, 0.96);
    border-color: rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

.modal-content h2 {
    margin: 0 44px 10px 0;
    font-size: clamp(26px, 3vw, 32px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--dark);
}

.modal-content > p {
    margin: 0 0 18px;
    color: var(--text);
}

.modal-content-sm {
    max-width: 420px;
}

.modal-action {
    width: 100%;
}

.modal-content .btn,
.modal-content button[type="submit"] {
    width: 100%;
}

.modal-content .user-info {
    margin: 22px 0;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 20px 36px -32px rgba(15, 23, 42, 0.4);
}

.modal-content .user-info p {
    margin: 8px 0;
    color: var(--text);
}

@media (max-width: 640px) {
    .modal-content {
        margin: 16px;
        padding: 24px 20px;
        border-radius: 22px;
    }

    .close-modal {
        top: 14px;
        right: 14px;
    }
}

/* --- Р¤РћР РњР« --- */
.auth-form {
    display: block;
    width: 100%;
}

.auth-view {
  display: block;
  animation: fadeIn 0.3s ease;
}

.auth-view.hidden {
    display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

input {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-form-btn {
  width: 100%;
  margin-bottom: 10px;
}

.forgot-password-link {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-top: 10px;
}

.forgot-password-link:hover {
  color: var(--primary);
}

.forgot-instructions {
  font-size: 14px;
  margin-bottom: 15px;
  color: var(--text);
}

.toggle-auth-wrap {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.toggle-auth-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.toggle-auth-link:hover {
  text-decoration: underline;
}

/* --- РђРќРРњРђР¦РР Р РђР”РђРџРўРР’ --- */
.animate-block { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: 0.8s ease-out; 
}

.animate-block.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

@media (max-width: 968px) {
    .grid-2 { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .info-text { order: 1; }
    .info-visual { order: 2; }
    .check-list li { text-align: left; }
    .navbar .nav-menu { display: none; }
    .hero h1 { font-size: 42px; }
}

@media (max-width: 1100px) {
    .pricing-table {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 600px) {
    .pricing-table {
        grid-template-columns: 1fr; 
    }
}

/* --- OAUTH РљРќРћРџРљР --- */
.oauth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: var(--text);
  font-size: 13px;
}

.oauth-divider::before,
.oauth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.oauth-divider span {
  padding: 0 10px;
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--dark);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.oauth-btn:hover {
  background: var(--light);
  border-color: var(--primary);
}

.oauth-btn.yandex:hover {
  background: #fc3f1d;
  color: #fff;
  border-color: #fc3f1d;
}

.oauth-btn.google:hover {
  background: #4285f4;
  color: #fff;
  border-color: #4285f4;
}

.oauth-btn svg {
  flex-shrink: 0;
}

/* === AUTH ERROR STYLES === */
.auth-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 10px;
    color: #dc2626;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

.auth-error.shake {
    animation: shake 0.4s ease-in-out;
}

.auth-error .error-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.auth-error .error-message {
    flex: 1;
}

/* === SHAKE ANIMATION === */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === MODAL CONTENT SHAKE === */
.modal-content.shake {
    animation: shake 0.4s ease-in-out;
}

/* === INPUT ERROR STATE === */
.form-group.error input {
    border-color: var(--error);
    background: #fef2f2;
}

.form-group.error label {
    color: var(--error);
}

/* === РџРћР›РЇ Р’Р’РћР”Рђ === */
.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--dark);
    background: rgba(255, 255, 255, 0.88);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text);
    opacity: 0.6;
}

.auth-form button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.auth-form button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.auth-form button[type="submit"]:active {
    transform: translateY(0);
}

/* === РџРћР”Р’РђР› Р¤РћР РњР« === */
.auth-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-footer span {
    color: var(--text);
    font-size: 14px;
    margin: 0 8px;
}

/* === Р—РђР“РћР›РћР’РћРљ Р¤РћР РњР« === */
.auth-form h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
    text-align: center;
}

.oauth-section {
    display: none !important;  /* скрыть */
}

