:root {
  --primary: #00B074;
  --primary-hover: #009663;
  --primary-light: rgba(0, 176, 116, 0.1);
  --bg-dark: #0F172A;
  --bg-card: #1E293B;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
/* Основний контент тепер займатиме весь вільний простір, відштовхуючи футер донизу */
main {
  flex: 1;
}

/* Для футера змінюємо margin-top на auto */
footer {
  background: rgba(30, 41, 59, 0.5);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 2rem 2rem;
  margin-top: auto; /* Замість фіксованих 4rem футер завжди буде внизу */
}
/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo svg {
  width: 150px;
  height: 35px;
  display: block;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

/* Кнопка мобільного меню (бургер) за замовчуванням схована */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: all 0.3s ease;
}

/* Phone Dropdown Component */
.phone-dropdown {
  position: relative;
  display: inline-block;
}

.phone-main {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.phone-main:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.phone-icon {
  width: 18px;
  height: 18px;
  fill: var(--primary);
}

.arrow {
  font-size: 9px;
  opacity: 0.7;
  transition: transform 0.3s;
}

.phone-dropdown:hover .arrow {
  transform: rotate(180deg);
}

.phone-list {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 8px 0;
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  z-index: 100;
  min-width: 210px;
}

.phone-dropdown:hover .phone-list {
  display: block;
}

.phone-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.phone-list a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
}

.phone-list .operator {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(0, 176, 116, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-hero {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  padding: 180px 2rem 100px;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 176, 116, 0.2);
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}

/* Widget Box */
.check-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.check-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-input {
  width: 100%;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus {
  border-color: var(--primary);
}

/* Sections */
.section {
  padding: 80px 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
}

.grid-coverage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card-coverage {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.card-coverage:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.card-coverage h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-coverage p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: rgba(30, 41, 59, 0.5);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  margin-bottom: 0.5rem;
}

.footer-copyright {
  color: var(--text-muted);
}

.contacts-block h4 {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.phone-numbers {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

/* Modal Overlay & Card */
.modal-overlay {
  display: none; /* За замовчуванням сховано */
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal-overlay.active {
  display: flex; /* Показуємо при активації */
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.modal-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-submit-btn {
  width: 100%;
  padding: 0.9rem;
  margin-top: 0.5rem;
}
  
/* Сетка тарифов */
.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
  margin-top: 2rem;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 35px;
  backdrop-filter: blur(16px);
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bento-card.large {
  grid-column: span 2;
}

/* Карточка тарифа */
.tariff-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.tariff-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 25px 50px rgba(0, 176, 116, 0.15);
}

.tariff-card.popular {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 2px solid var(--primary);
  box-shadow: 0 20px 40px rgba(0, 176, 116, 0.2);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.tariff-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.tariff-speed {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 2rem;
}

.tariff-speed span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

.tariff-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.tariff-features li {
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tariff-footer {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tariff-price {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.tariff-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  text-align: center;
  width: 100%;
}

.btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}


/* ==========================================
   АДАПТИВНІСТЬ ТА МОБІЛЬНІ СТИЛІ (768px)
   ========================================== */
@media (max-width: 768px) {
  /* На мобільних кнопка бургера з'являється */
  .mobile-menu-toggle {
    display: flex !important;
  }

  /* Решта стилів мобільного меню... */
  .nav-links {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    gap: 1.2rem;
    text-align: center;
    box-shadow: 0 20px 30px rgba(0,0,0,0.5);
  }

  .nav-links.mobile-open {
    display: flex !important;
  }
}
  .logo svg {
    width: 130px;
    height: 30px;
  }

  /* Hero секція на мобільних */
  .hero {
    grid-template-columns: 1fr;
    padding: 130px 1rem 60px;
    gap: 2rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.3rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Сітки переводимо в один стовпчик */
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card.large {
    grid-column: span 1;
  }

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

  /* Загальні відступи секцій */
  .section {
    padding: 50px 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* Футер */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/plus-jakarta-sans/PlusJakartaSans-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/plus-jakarta-sans/PlusJakartaSans-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/plus-jakarta-sans/PlusJakartaSans-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/plus-jakarta-sans/PlusJakartaSans-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  src: url('/fonts/plus-jakarta-sans/PlusJakartaSans-ExtraBold.woff2') format('woff2');
}

  /* adminpanel */

/* --- Стилі для адмін-панелі та віджетів --- */
.admin-layout { max-width: 1200px; margin: 120px auto 60px; padding: 0 20px; }
.admin-header-flex {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 30px; background: var(--bg-card);
  border: 1px solid var(--glass-border); padding: 20px 30px; border-radius: 20px;
}
.admin-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-bottom: 30px; }
.admin-card { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 20px; padding: 30px; margin-bottom: 25px; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--glass-border); font-size: 0.9rem; }
.admin-table th { color: var(--text-muted); font-weight: 600; }

.alert-success { background: rgba(0, 176, 116, 0.1); border: 1px solid rgba(0, 176, 116, 0.3); color: var(--primary); padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; }
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #f87171; padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; }

/* Тексти та заголовки */
.admin-title-main { font-size: 1.5rem; color: #fff; }
.admin-title-accent { color: var(--primary); }
.admin-subtitle { color: var(--text-muted); font-size: 0.9rem; }
.card-title { color: #fff; font-size: 1.25rem; margin-bottom: 10px; }
.card-title-sm { color: #fff; font-size: 1.15rem; margin-bottom: 12px; }
.card-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.section-title { color: #fff; font-size: 0.95rem; margin-top: 25px; margin-bottom: 8px; }

/* Шапка та кнопки */
.header-actions { display: flex; gap: 10px; align-items: center; }
.btn-logout { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }

/* Статистичні бокси */
.stat-box { display: flex; align-items: center; gap: 15px; background: rgba(0, 176, 116, 0.05); border: 1px solid rgba(0, 176, 116, 0.2); padding: 15px 20px; border-radius: 16px; margin-bottom: 20px; }
.stat-icon { font-size: 1.6rem; background: rgba(0, 176, 116, 0.1); padding: 10px; border-radius: 10px; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: #fff; }

/* Графік */
.chart-container { position: relative; height: 180px; width: 100%; margin-top: 10px; }

/* Таблиця відвідувачів */
.visitor-ip { font-size: 0.75rem; color: var(--text-muted); }
.visitor-badge { background: var(--primary-light); color: var(--primary); padding: 3px 8px; border-radius: 6px; font-weight: 600; font-size: 0.85rem; }
.visitor-date { color: var(--text-muted); font-size: 0.85rem; }

/* Форми */
.form-field-group { margin-bottom: 12px; }
.form-label-sm { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }

/* Netflow стилі */
.netflow-table-wrapper { background: #0f172a; border-radius: 12px; overflow-x: auto; border: 1px solid #334155; margin-top: 15px; max-height: 500px; overflow-y: auto; }
.netflow-table { width: 100%; border-collapse: collapse; font-family: monospace; font-size: 12px; color: #38bdf8; white-space: nowrap; }
.netflow-table th { background: #1e293b; color: #94a3b8; padding: 10px 12px; text-align: left !important; border: 1px solid #334155; position: sticky; top: 0; z-index: 10; font-weight: 600; }
.netflow-table td { padding: 8px 12px; border: 1px solid rgba(51, 65, 85, 0.4); text-align: left !important; }
.netflow-table tr:hover { background: rgba(56, 189, 248, 0.05); }

.netflow-search-form { margin: 20px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.netflow-search-input { padding: 8px 12px; border-radius: 6px; border: 1px solid #475569; background: #0f172a; color: white; font-size: 14px; width: 220px; }
.netflow-search-btn { background: #10b981; color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.netflow-search-btn:hover { background: #059669; }
.netflow-reset-btn { background: #64748b; color: white; padding: 8px 16px; border-radius: 6px; text-decoration: none; display: inline-block; line-height: normal; font-size: 14px; }
.netflow-group { display: flex; gap: 5px; align-items: center; background: #111827; padding: 6px 10px; border-radius: 6px; border: 1px solid #334155; }
.netflow-group label { font-size: 12px; color: #94a3b8; }
.netflow-heading { color: #38bdf8; font-size: 1rem; margin-top: 15px; margin-bottom: 10px; }
.netflow-packets { text-align: right; color: #facc15; }
.netflow-bytes { text-align: right; color: #4ade80; font-weight: bold; }
.netflow-login { color: #10b981; font-weight: bold; }
.netflow-empty { text-align: center; color: #94a3b8; padding: 20px; }

@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }

.payment-instructions-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.payment-method-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--card-border, #334155);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s ease;
}

.payment-method-card:hover {
    border-color: rgba(0, 176, 116, 0.4);
}

.payment-method-title {
    color: #38bdf8;
    margin-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-steps-list {
    color: var(--text-muted, #94a3b8);
    padding-left: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.payment-steps-list li {
    margin-bottom: 8px;
}

.payment-img-wrapper {
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--card-border, #334155);
    background: rgba(15, 23, 42, 0.6);
    padding: 8px;
}

.payment-img-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}

/* Стилі для гарної кнопки перегляду інструкції */
.instruction-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(14, 165, 233, 0.15));
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.instruction-btn:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.25));
    border-color: rgba(56, 189, 248, 0.6);
    color: #7dd3fc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
}

.instruction-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Стилі для сторінки договору */
.contract-container {
  max-width: 900px;
  margin: 160px auto 80px auto;
  padding: 40px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contract-container h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  text-align: center;
}

.contract-container h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.contract-container p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #cbd5e1;
  text-align: justify;
}

.contract-container ul, .contract-container ol {
  margin-bottom: 15px;
  padding-left: 20px;
  color: #cbd5e1;
}

.contract-container li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.contract-requisites {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 25px;
  margin-top: 40px;
}

.contract-requisites h3 {
  color: #00B074;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.contract-requisites p {
  margin-bottom: 8px;
  color: #fff;
}

@media (max-width: 768px) {
  .contract-container {
    margin: 120px 15px 40px 15px;
    padding: 20px;
  }
  .contract-container h1 {
    font-size: 1.7rem;
  }
}
/* Надійна фіксація футера внизу сторінки через Flexbox */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
body {
  min-height: 100vh;
}
main {
  flex: 1; /* Розтягує контент, притискаючи футер до низу */
}

:root {
  --primary: #00B074;
  --primary-glow: rgba(0, 176, 116, 0.3);
  --bg-card: rgba(30, 41, 59, 0.5);
  --border-glass: rgba(255, 255, 255, 0.08);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 160px 20px 100px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-title span {
  background: linear-gradient(135deg, #fff 30%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  font-size: 1.2rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-glow {
  background: var(--primary);
  color: #0f172a;
  padding: 16px 36px;
  border-radius: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px var(--primary-glow);
  display: inline-block;
}
.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 176, 116, 0.5);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 16px 32px;
  border-radius: 16px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Bento Grid Section */
.section-container {
  max-width: 1200px;
  margin: 40px auto 80px auto;
  padding: 0 20px;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section-header p {
  color: #94a3b8;
  font-size: 1.1rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 35px;
  backdrop-filter: blur(16px);
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 176, 116, 0.4);
}
.bento-card.large {
  grid-column: span 2;
}
.bento-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.bento-card h3 {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
.bento-card p {
  color: #94a3b8;
  line-height: 1.6;
}

/* Стилі для модального вікна авторизації */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  background: #1e293b;
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-card {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #fff;
}
.modal-card h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.modal-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus {
  border-color: var(--primary);
}
.form-submit-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 14px;
  border-radius: 12px;
}

@media (max-width: 968px) {
  .hero { padding-top: 120px; }
  .hero-title { font-size: 2.8rem; }
  .hero-buttons { flex-direction: column; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.large { grid-column: span 1; }
}
/* Современные стили для карточек и полей */
.check-card {
  background: rgba(30, 41, 59, 0.4) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.check-card:hover {
  border-color: rgba(59, 130, 246, 0.3) !important;
}

/* Красивые инпуты */
input[type="text"], 
input[type="number"], 
select, 
textarea {
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  color: #fff !important;
  font-family: inherit;
  transition: all 0.2s ease;
}

input[type="text"]:focus, 
input[type="number"]:focus, 
select:focus, 
textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
  outline: none;
}

/* Кнопки с приятными градиентами и тенями */
.btn-modern {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
}

.btn-modern:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-modern:active {
  transform: translateY(1px);
}
/* Убираем стандартные стрелочки у input type="number" для Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Убираем стрелочки для Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}
