/* ============================================
   EDVANCE MEDIA — Servers Page Styles
   ============================================ */

/* --- Hero (Servers page) --- */
.srv-hero {
    position: relative; min-height: 100vh; display: flex;
    align-items: center; padding-top: 72px; overflow: hidden;
    background: var(--gradient-soft);
}
.srv-hero__canvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.5;
}
.srv-hero__content {
    position: relative; z-index: 2; padding: 80px 0;
    max-width: 640px;
}
.srv-hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border-radius: var(--radius-full);
    background: rgba(79,70,229,0.08); border: 1px solid rgba(79,70,229,0.15);
    font-size: 0.85rem; font-weight: 600; color: var(--primary);
    margin-bottom: 24px;
}
.srv-hero__badge::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--mkt-green); animation: srv-pulse-dot 2s ease-in-out infinite;
}
@keyframes srv-pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.srv-hero h1 { color: var(--text); margin-bottom: 24px; }
.srv-hero h1 .text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.srv-hero__subtitle {
    color: var(--text-secondary); font-size: 1.2rem; line-height: 1.7;
    max-width: 540px; margin-bottom: 40px;
}
.srv-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- What We Do (cards) --- */
.what-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.what-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px;
    transition: all var(--transition); position: relative; overflow: hidden;
}
.what-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--gradient); opacity: 0; transition: opacity var(--transition);
}
.what-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.what-card:hover::before { opacity: 1; }
.what-card__icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; font-size: 1.5rem;
}
.what-card__icon--vps { background: rgba(79,70,229,0.1); color: var(--primary); }
.what-card__icon--dedicated { background: rgba(124,58,237,0.1); color: var(--accent); }
.what-card__icon--admin { background: rgba(245,158,11,0.1); color: var(--mkt-orange); }
.what-card__icon--monitoring { background: rgba(16,185,129,0.1); color: var(--mkt-green); }
.what-card h3 { margin-bottom: 12px; }
.what-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 16px; }
.what-card__list { display: flex; flex-direction: column; gap: 8px; }
.what-card__list li {
    display: flex; align-items: baseline; gap: 10px;
    font-size: 0.9rem; color: var(--text-secondary);
}
.what-card__list li::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary-light); flex-shrink: 0; margin-top: 6px;
}

/* --- Pricing --- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-grid--4 { grid-template-columns: repeat(4, 1fr); }
.pricing-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px 32px;
    display: flex; flex-direction: column; transition: all var(--transition);
    position: relative;
}
.pricing-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card--popular {
    border-color: var(--primary); box-shadow: var(--shadow-lg);
    background: linear-gradient(180deg, rgba(79,70,229,0.03) 0%, var(--bg-card) 100%);
}
.pricing-card--popular::before {
    content: 'Популярный'; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
    background: var(--gradient); color: #fff; font-size: 0.75rem; font-weight: 700;
    padding: 4px 20px; border-radius: 0 0 10px 10px; text-transform: uppercase; letter-spacing: 0.05em;
}
.pricing-card__type {
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 8px;
}
.pricing-card__name { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.pricing-card__price {
    display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px;
}
.pricing-card__price-from { font-size: 0.9rem; color: var(--text-secondary); }
.pricing-card__price-value { font-size: 2.2rem; font-weight: 800; color: var(--text); }
.pricing-card__price-value--custom { font-size: 1.6rem; color: var(--primary); }
.pricing-card__price-currency { font-size: 1rem; color: var(--text-secondary); font-weight: 600; }
.pricing-card__note { font-size: 0.85rem; color: var(--text-light); margin-bottom: 28px; }
.pricing-card__divider { width: 100%; height: 1px; background: var(--border); margin-bottom: 24px; }
.pricing-card__label { font-size: 0.8rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.pricing-card__features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; flex: 1; }
.pricing-card__features li {
    display: flex; align-items: baseline; gap: 10px;
    font-size: 0.9rem; color: var(--text-secondary);
}
.pricing-card__features li::before {
    content: ''; width: 18px; height: 18px; flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='%234F46E5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.pricing-card .btn { width: 100%; }

/* --- Dedicated card (wide) --- */
.pricing-card--dedicated {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px;
    transition: all var(--transition); position: relative; overflow: hidden;
}
.pricing-card--dedicated::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--gradient);
}
.pricing-card--dedicated:hover { border-color: var(--primary-light); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card--dedicated__inner {
    display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 40px; align-items: center;
}
.pricing-card--dedicated__info .pricing-card__name { margin-bottom: 12px; }
.pricing-card--dedicated__info .pricing-card__note { margin-bottom: 0; }
.pricing-card__features--horizontal {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin-bottom: 0;
}
.pricing-card--dedicated__action { flex-shrink: 0; }
.pricing-card--dedicated__action .btn { white-space: nowrap; }

/* --- Process --- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step {
    text-align: center; padding: 32px 20px;
    position: relative; counter-increment: step;
}
.process-step::before {
    content: counter(step); display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient); color: #fff; font-weight: 800; font-size: 1.1rem;
    margin: 0 auto 20px;
}
.process-step::after {
    content: ''; position: absolute; top: 56px; left: calc(50% + 32px); right: calc(-50% + 32px);
    height: 2px; background: var(--border);
}
.process-step:last-child::after { display: none; }
.process-step h4 { margin-bottom: 8px; font-size: 1rem; }
.process-step p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }

/* --- CTA --- */
.cta-section {
    background: var(--gradient); padding: 80px 0; text-align: center; color: #fff;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 500px; margin: 0 auto 32px; }

/* --- Servers Responsive --- */
@media (max-width: 1200px) {
    .pricing-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .pricing-card--dedicated__inner { grid-template-columns: 1fr 1fr; }
    .pricing-card--dedicated__action { grid-column: 1 / -1; text-align: center; }
}
@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .pricing-grid--4 { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .what-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-step::after { display: none; }
    .pricing-card--dedicated__inner { grid-template-columns: 1fr; text-align: center; }
    .pricing-card__features--horizontal { grid-template-columns: 1fr; }
    .pricing-card--dedicated__action { grid-column: auto; }
}
@media (max-width: 768px) {
    .process-grid { grid-template-columns: 1fr; }
    .srv-hero__content { text-align: center; }
    .srv-hero__actions { justify-content: center; }
    .srv-hero__subtitle { margin-left: auto; margin-right: auto; }
}
