/* ============================================================
   SEO Platform — Main Stylesheet
   ============================================================ */

:root {
  --color-primary: #4f46e5;
  --color-primary-dark: #3730a3;
  --color-accent: #f59e0b;
  --color-text: #1e293b;
  --color-muted: #64748b;
  --color-bg: #f8fafc;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(0,0,0,.07);
  --container: 1200px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--color-text); background: var(--color-bg); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Container */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: all .2s; text-decoration: none; }
.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); text-decoration: none; }
.btn-outline  { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; text-decoration: none; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* Section title */
.section-title { font-size: 1.7rem; font-weight: 700; text-align: center; margin-bottom: 40px; color: var(--color-text); }

/* ── HEADER ──────────────────────────────────────────────── */
.site-header { background: #fff; border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-size: 1.25rem; font-weight: 800; color: var(--color-primary); flex-shrink: 0; }
.main-nav { display: flex; gap: 20px; flex: 1; }
.main-nav a { color: var(--color-muted); font-size: .9rem; font-weight: 500; }
.main-nav a:hover { color: var(--color-primary); text-decoration: none; }
.header-phone { font-weight: 600; color: var(--color-text); white-space: nowrap; }
.header-cta { padding: 8px 20px; font-size: .88rem; }

/* ── HERO ────────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, #eef2ff 0%, #f0fdf4 100%); padding: 72px 0 64px; }
.hero__content { max-width: 720px; }
.hero h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero__subtitle { font-size: 1.1rem; color: var(--color-muted); margin-bottom: 24px; }
.hero__benefits { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hero__benefits li { background: #fff; border: 1px solid var(--color-border); border-radius: 20px; padding: 6px 16px; font-size: .9rem; font-weight: 500; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── ORDER FORM ──────────────────────────────────────────── */
.order-form-section { background: var(--color-primary); padding: 64px 0; }
.order-form__wrap { background: #fff; border-radius: 16px; padding: 40px; max-width: 700px; margin: 0 auto; box-shadow: var(--shadow); }
.order-form__wrap h2 { font-size: 1.5rem; margin-bottom: 8px; }
.order-form__sub { color: var(--color-muted); margin-bottom: 28px; }
.order-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.order-form__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.order-form__field label { font-size: .85rem; font-weight: 600; color: var(--color-muted); }
.order-form__field input,
.order-form__field select,
.order-form__field textarea { padding: 10px 14px; border: 1.5px solid var(--color-border); border-radius: 8px; font-size: .95rem; font-family: inherit; outline: none; transition: border-color .2s; }
.order-form__field input:focus,
.order-form__field select:focus,
.order-form__field textarea:focus { border-color: var(--color-primary); }
.order-form__submit { width: 100%; margin-top: 4px; }
.order-form__privacy { font-size: .78rem; color: var(--color-muted); text-align: center; margin-top: 10px; }

/* ── SERVICES ────────────────────────────────────────────── */
.services { padding: 64px 0; }
.services__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.service-card { background: #fff; border: 1.5px solid var(--color-border); border-radius: var(--radius); padding: 20px; transition: all .2s; }
.service-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow); text-decoration: none; }
.service-card h3 { font-size: 1rem; margin-bottom: 10px; color: var(--color-text); }
.service-card__meta { display: flex; gap: 10px; flex-wrap: wrap; }
.service-card__meta span { font-size: .82rem; color: var(--color-muted); background: var(--color-bg); padding: 2px 8px; border-radius: 4px; }

/* ── ADVANTAGES ──────────────────────────────────────────── */
.advantages { background: #fff; padding: 64px 0; }
.advantages__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.adv-card { padding: 24px; border-radius: var(--radius); background: var(--color-bg); }
.adv-card__icon { font-size: 2rem; margin-bottom: 12px; }
.adv-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.adv-card p { font-size: .9rem; color: var(--color-muted); }

/* ── HOW IT WORKS ────────────────────────────────────────── */
.how-it-works { padding: 64px 0; }
.steps-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.step { position: relative; padding: 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.step__num { width: 36px; height: 36px; background: var(--color-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; margin-bottom: 14px; }
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: .88rem; color: var(--color-muted); }

/* ── UNIVERSITIES ────────────────────────────────────────── */
.universities { padding: 48px 0; background: #fff; }
.universities__list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.uni-chip { padding: 8px 18px; border: 1.5px solid var(--color-border); border-radius: 20px; font-size: .88rem; color: var(--color-text); transition: all .2s; }
.uni-chip:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }

/* ── ORDERS FEED ─────────────────────────────────────────── */
.orders-feed, .completed-feed { padding: 64px 0; }
.orders-feed__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.order-card { background: #fff; border: 1.5px solid var(--color-border); border-radius: var(--radius); padding: 18px; }
.order-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; font-size: .8rem; color: var(--color-muted); }
.order-card__type { font-weight: 600; color: var(--color-primary); }
.order-card__topic { font-size: .95rem; margin-bottom: 10px; }
.order-card__footer { display: flex; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--color-muted); }
.order-card__status { padding: 2px 8px; border-radius: 4px; font-size: .78rem; font-weight: 600; background: #fef3c7; color: #92400e; }
.order-card__status--done { background: #d1fae5; color: #065f46; }

/* ── REVIEWS ─────────────────────────────────────────────── */
.reviews { background: #fff; padding: 64px 0; }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.review-card { background: var(--color-bg); border-radius: var(--radius); padding: 20px; }
.review-card__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.review-card__avatar { width: 42px; height: 42px; min-width: 42px; background: var(--color-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; }
.review-card__name { font-weight: 600; font-size: .95rem; display: block; }
.review-card__uni { font-size: .78rem; color: var(--color-muted); display: block; }
.review-card__stars { margin-left: auto; color: var(--color-accent); font-size: .9rem; white-space: nowrap; }
.review-card__text { font-size: .9rem; color: var(--color-muted); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { padding: 64px 0; }
.faq__list { max-width: 800px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; background: none; border: none; font-size: 1rem; font-weight: 600; cursor: pointer; text-align: left; gap: 12px; }
.faq__icon { font-size: 1.4rem; line-height: 1; color: var(--color-primary); transition: transform .2s; flex-shrink: 0; }
.faq__item.open .faq__icon { transform: rotate(45deg); }
.faq__answer { padding: 0 0 16px; font-size: .95rem; color: var(--color-muted); }

/* ── SEO TEXT ────────────────────────────────────────────── */
.seo-text { padding: 48px 0; background: #fff; }
.seo-text__body { max-width: 860px; margin: 0 auto; font-size: .95rem; line-height: 1.8; color: var(--color-muted); }
.seo-text__body h2 { font-size: 1.3rem; color: var(--color-text); margin: 28px 0 12px; }
.seo-text__body h3 { font-size: 1.1rem; color: var(--color-text); margin: 20px 0 8px; }

/* ── INTERNAL LINKS ──────────────────────────────────────── */
.internal-links { padding: 48px 0; }
.internal-links .container { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px; }
.internal-links__group h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.internal-links__group ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.internal-links__group a { font-size: .88rem; color: var(--color-muted); }
.internal-links__group a:hover { color: var(--color-primary); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer { background: #1e293b; color: #94a3b8; padding: 48px 0 24px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-cols strong { display: block; color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-cols p, .footer-cols a { display: block; font-size: .85rem; color: #94a3b8; margin-bottom: 6px; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 20px; font-size: .82rem; display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ── ADMIN ───────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: #1e293b; color: #cbd5e1; flex-shrink: 0; }
.admin-sidebar .logo { display: block; padding: 20px 24px; font-size: 1.1rem; font-weight: 800; color: #fff; border-bottom: 1px solid #334155; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 11px 24px; color: #94a3b8; font-size: .9rem; transition: all .15s; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: #334155; color: #fff; text-decoration: none; }
.admin-main { flex: 1; overflow: auto; background: #f8fafc; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--color-border); padding: 0 32px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar h1 { font-size: 1.1rem; font-weight: 700; }
.admin-content { padding: 32px; }
.admin-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--color-border); padding: 24px; margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { background: var(--color-bg); padding: 10px 14px; text-align: left; font-size: .8rem; font-weight: 700; color: var(--color-muted); border-bottom: 1px solid var(--color-border); }
.admin-table td { padding: 10px 14px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.admin-table tr:hover td { background: #f8fafc; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: .75rem; font-weight: 600; }
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-gray   { background: #f1f5f9; color: #475569; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px; }
.stat-card__val { font-size: 2rem; font-weight: 800; color: var(--color-primary); line-height: 1; margin-bottom: 6px; }
.stat-card__label { font-size: .82rem; color: var(--color-muted); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.form-control { width: 100%; padding: 9px 13px; border: 1.5px solid var(--color-border); border-radius: 8px; font-size: .92rem; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--color-primary); }
.btn-sm { padding: 6px 14px; font-size: .82rem; }
.btn-danger { background: #ef4444; color: #fff; border-color: #ef4444; }
.btn-danger:hover { background: #dc2626; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: .9rem; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error   { background: #fee2e2; color: #991b1b; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.7rem; }
  .main-nav { display: none; }
  .order-form__row { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .section-title { font-size: 1.4rem; }
}
