/* Premium Dark Mode Design - Yandex Bible 2026 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --accent: #ffd700;
  --dark: #0a0e27;
  --dark-alt: #1a1f3a;
  --light: #ffffff;
  --gray: #6b7280;
  --success: #10b981;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo b {
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  gap: 30px;
  flex: 1;
}

nav a {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

.phone {
  font-size: 20px;
  font-weight: 700;
  color: var(--light);
  text-decoration: none;
  padding: 12px 24px;
  background: var(--primary);
  border-radius: 50px;
  transition: 0.3s;
}

.phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

/* Hero */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff10" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  opacity: 0.3;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.hero-grid div {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background: #fff;
  color: #667eea;
  border: none;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Section */
.section {
  padding: 80px 0;
}

.section.alt {
  background: var(--dark-alt);
}

.section h2 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 20px;
  text-align: center;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  transition: 0.3s;
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
}

.card.featured {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border: 2px solid rgba(102, 126, 234, 0.5);
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: var(--dark);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

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

.card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

.card ul {
  list-style: none;
  margin: 20px 0;
}

.card li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.price {
  font-size: 28px;
  font-weight: 900;
  margin-top: 20px;
  color: var(--accent);
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.cat-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
  text-align: center;
}

.cat-item.cat-link {
  text-decoration: none;
  color: var(--light);
  display: block;
  cursor: pointer;
}

.cat-item:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

.cat-item b {
  display: block;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 10px;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cat-item.highlight {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border: 2px solid rgba(102, 126, 234, 0.5);
}

/* Timeline */
.timeline {
  max-width: 800px;
  margin: 50px auto;
}

.step {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.num {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  flex-shrink: 0;
}

.step h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

/* FAQ */
.faq-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.faq {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  border-left: 4px solid;
  border-image: var(--primary) 1;
}

.faq h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--accent);
}

/* Order */
.order {
  background: var(--dark-alt);
}

.order-box {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 50px;
  text-align: center;
}

.order-box h2 {
  margin-bottom: 15px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

input,
select,
textarea {
  padding: 15px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--light);
  font-size: 16px;
}

button[type="submit"] {
  background: var(--primary);
  color: white;
  border: none;
  padding: 18px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

/* Contacts */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.contact {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
}

.contact h3 {
  margin-bottom: 20px;
  font-size: 24px;
}

.contact p {
  margin-bottom: 10px;
}

.contact a {
  color: var(--accent);
  text-decoration: none;
}

/* Footer */
footer {
  background: var(--dark-alt);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  color: var(--gray);
  margin: 5px 0;
}

/* Floating buttons */
.floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.floating a {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
  transition: 0.3s;
}

.floating a:hover {
  transform: scale(1.1);
}

/* TOC Navigation */
.toc-section {
  padding: 40px 0;
}

.toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.toc a {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
  text-align: center;
  font-weight: 600;
}

.toc a:hover {
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

/* Comparison Table (Яндекс обожает таблицы) */
.section-intro {
  text-align: center;
  color: var(--gray);
  margin-bottom: 30px;
  font-size: 18px;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
}

.comparison-table thead {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
}

.comparison-table th {
  padding: 20px;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  border-bottom: 2px solid rgba(102, 126, 234, 0.5);
}

.comparison-table td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table tr:hover {
  background: rgba(102, 126, 234, 0.1);
}

.comparison-table .highlight-row {
  background: rgba(255, 215, 0, 0.1);
  border-left: 4px solid var(--accent);
}

.comparison-table strong {
  color: var(--accent);
}

/* Video Section */
.video-section {
  padding: 60px 0;
}

.video-wrapper {
  max-width: 900px;
  margin: 40px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.video-wrapper iframe {
  display: block;
  border-radius: 15px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.gallery-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item p {
  padding: 20px;
  text-align: center;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.3);
}

/* Maps */
.map-section {
  margin-top: 50px;
}

.map-section h3 {
  margin-bottom: 20px;
  font-size: 24px;
  text-align: center;
}

.map-wrapper {
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid rgba(102, 126, 234, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.map-wrapper iframe {
  display: block;
}

/* Reviews */
.review-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  transition: 0.3s;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.stars {
  font-size: 20px;
  color: var(--accent);
}

.review-card p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}

.review-author {
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.review-author strong {
  font-size: 16px;
  color: var(--accent);
}

.review-date {
  font-size: 13px;
  color: var(--gray);
}

/* Payment Section */
.payment-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin: 40px 0;
  align-items: center;
  justify-items: center;
}

.payment-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
  width: 100%;
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-item:hover {
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

.payment-item img {
  max-width: 100%;
  height: auto;
  display: block;
}

.payment-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.payment-info .info-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.payment-info .info-item .icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.payment-info .info-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 900;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  color: var(--gray);
}

/* Certificates Grid */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.cert-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.cert-item h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

/* Team Photo */
.team-photo {
  margin: 40px 0;
  border-radius: 20px;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Refund Info */
.refund-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.refund-info h3 {
  font-size: 22px;
  margin-bottom: 20px;
  margin-top: 30px;
}

.refund-info h3:first-child {
  margin-top: 0;
}

.refund-info ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.refund-info ul li {
  padding: 10px 0;
  font-size: 16px;
}

.refund-info ol {
  margin: 20px 0 20px 30px;
}

.refund-info ol li {
  padding: 10px 0;
  font-size: 16px;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 126, 234, 0.5);
}

.blog-card.coming-soon {
  opacity: 0.6;
}

.blog-date {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 15px;
}

.blog-card h2 {
  font-size: 22px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.blog-card h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card h2 a:hover {
  color: var(--secondary);
}

.blog-card p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.badge {
  display: inline-block;
  padding: 5px 15px;
  background: rgba(102, 126, 234, 0.2);
  border-radius: 15px;
  font-size: 14px;
  margin-top: 10px;
}

/* Vacancy Cards */
.vacancy-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.vacancy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.vacancy-header h3 {
  font-size: 26px;
  margin: 0;
}

.vacancy-salary {
  font-size: 24px;
  font-weight: 700;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vacancy-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.vacancy-meta span {
  font-size: 15px;
  color: var(--gray);
}

.vacancy-description h4 {
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.vacancy-description ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px 0;
}

.vacancy-description ul li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.vacancy-description ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: 20px;
}

/* Delivery Table */
.delivery-table {
  margin-top: 40px;
  overflow-x: auto;
}

.delivery-table table {
  width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
  .header .container {
    flex-wrap: wrap;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section h2 {
    font-size: 32px;
  }

  .toc {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 14px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 10px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .video-wrapper iframe {
    height: 300px;
  }
}