/* ========== БАЗОВЫЕ НАСТРОЙКИ ========== */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0d131c;
  color: #fff;
}
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid #12ccaa;
  outline-offset: 2px;
}

/* ========== ШАПКА ========== */
header {
  background: #111;
  border-bottom: 1px solid #222;
  padding: 12px 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.logo {
  width: 100px;
  height: auto;
}

.main-nav {
  min-width: 0;
  overflow: hidden;
}
.menu {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
nav a {
  color: #ccc;
  font-weight: 500;
  transition: color .25s ease;
}
nav a:hover {
  color: #fc2800;
}
.header-actions {
  justify-self: end;
  display: flex;
  gap: 10px;
  white-space: nowrap;
}
.btn, .btn:link, .btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}
.button_1 { background: #fc2800; color: #fff; }
.button_2 { background: #12ccaa; color: #000; }
.glowing {
  -webkit-box-shadow: 0 0 14px #fc2800;
  box-shadow: 0 0 14px #fc2800;
  transition: transform .2s ease, box-shadow .2s ease;
}
.glowing:hover {
  transform: translateY(-1px);
  -webkit-box-shadow: 0 6px 22px rgba(252,40,0,.35);
  box-shadow: 0 6px 22px rgba(252,40,0,.35);
}

/* ========== HERO ========== */
.hero {
  padding: clamp(18px, 3.5vw, 44px) 0;
}
.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 0 20px;
}
.hero-title {
  font-weight: 800;
  line-height: 1.15;
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: .2px;
  margin: 0;
}
.hero-sub {
  color: #cfd7e3;
  font-size: clamp(14px, 2vw, 18px);
  margin: 0 0 6px;
}
.photo {
  width: 100%;
  max-width: 1000px;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  animation: heroFade .6s ease both;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ========== ПАРТНЕРЫ И ОСОБЕННОСТИ ========== */
.partners-section {
  padding: 10px 0;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 0 18px;
}
.partner-logo {
  list-style: disc;
}

/* Таблицы */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  background: #0f1520;
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  padding: 12px;
  border: 1px solid #2a3442;
}
th {
  background: #1a2230;
  color: #e9eef6;
  text-align: left;
  font-weight: 700;
}

/* ========== FOOTER ========== */
.footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #222;
  background: #111;
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 0;
  margin: 10px 0 0;
}
.footer-links a {
  color: #9fb0c5;
}
.footer-links a:hover {
  color: #12ccaa;
}

/* ========== POPUP ========== */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  justify-content: center;
  align-items: center;
}
.popup.show { display: flex; }
.popup_block {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  min-width: 280px;
  max-width: 92vw;
}
.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* ========== SEO ТЕКСТ ========== */
.seo-text {
  margin-top: 40px;
  padding: 20px;
  line-height: 1.65;
  color: #ddd;
  font-size: 15px;
}
.seo-text h2 {
  color: #fff;
  margin-bottom: 12px;
}
.seo-text a {
  color: #12ccaa;
  text-decoration: none;
}
.seo-text a:hover {
  text-decoration: underline;
}

/* ========== АДАПТИВ ========== */
@media (max-width: 1024px) {
  .logo { height: 48px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .logo { height: 44px; }
  .header-actions .btn { padding: 9px 12px; font-size: 14px; border-radius: 9px; }
  .hero { padding: 16px 0; }
  .hero-content { gap: 10px; }
  .hero-title { font-size: clamp(22px, 6vw, 30px); }
  .hero-sub { font-size: clamp(13px, 3.6vw, 16px); }
  .photo { max-width: 92vw; max-height: 320px; object-fit: cover; border-radius: 12px; }
  .buttons .btn { padding: 10px 14px; font-size: 14px; }
}
@media (max-width: 420px) {
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 8px 10px; font-size: 13px; border-radius: 8px; }
  .photo { max-height: 260px; border-radius: 10px; }
}

/* чтобы hidden всегда побеждал, пока не снимаем его из JS */
.popup[hidden]{display:none !important;}

.popup{
  position:fixed; inset:0; display:flex; justify-content:center; align-items:center;
  background:rgba(0,0,0,.8);
  opacity:0; pointer-events:none; transition:opacity .3s ease;
}
.popup.show{ opacity:1; pointer-events:auto; }

.popup_block{
  background:#111; border:1px solid #222; border-radius:16px; padding:24px 22px;
  min-width:280px; max-width:92vw; outline:none;
}
