/* --- КНОПКИ --- */
.btn-primary-small { 
    background: var(--primary); 
    color: #fff; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.2s; 
}

.btn-primary-small:hover { 
    background: var(--primary-dark); 
}

.btn-primary-large { 
    background: var(--primary); 
    color: #fff; 
    border: none; 
    padding: 18px 36px; 
    border-radius: 10px; 
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.2s; 
}

.btn-primary-large:hover { 
    background: var(--primary-dark); 
    transform: translateY(-2px); 
}

.btn-outline {
    width: 100%;
    margin-top: 10px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--primary);
    font-weight: 500;
}

.btn-text { 
    background: none; 
    border: none; 
    color: var(--primary); 
    cursor: pointer; 
    margin-top: 10px; 
    font-size: 14px; 
}

/* --- МЕТОДОЛОГИИ --- */
.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: #fff; 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    transition: 0.3s; 
}

.card:hover { 
    border-color: var(--primary); 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); 
}

.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: #dbeafe; 
    color: var(--primary); 
    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: 18px; 
}

.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(--white);
    padding: 40px 25px; 
    border: 1px solid var(--border);
    border-radius: 24px;
    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-md);
}

.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;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
}

.close-modal:hover {
  color: var(--dark);
}

/* --- ФОРМЫ --- */
.auth-view {
  display: block;
  animation: fadeIn 0.3s ease;
}

@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;
}