/* ═══════════════════════════════════════
   chats.4oficera.ru — Турнирный чат
   v1
═══════════════════════════════════════ */

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

:root {
  --orange: #F8A520;
  --red:    #D44028;
  --dark:   #1C1C1C;
  --light:  #FFF9F2;
  --white:  #FFFFFF;
  --text:   #333333;
  --radius: 14px;
  --gap:    20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: #F2F2F2;
  font-size: 16px;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ═══ HEADER ═══ */
.site-header {
  background: var(--white);
  padding: 12px 0;
  border-bottom: 3px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-school {
  font-size: 13px;
  color: var(--dark);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.header-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--dark);
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  padding: 64px 0 56px;
  border-bottom: 4px solid var(--orange);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 60px);
  pointer-events: none;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

@media (min-width: 640px) {
  .hero-title { font-size: 36px; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 44px; }
  .hero { padding: 80px 0 72px; }
}

.hero-sub {
  font-size: 15px;
  opacity: 0.88;
  margin-bottom: 36px;
  line-height: 1.65;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .hero-sub { font-size: 17px; }
}

/* ═══ CTA КНОПКИ ═══ */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }
.btn:hover { opacity: 0.88; }

.btn-sm {
  padding: 11px 20px;
  font-size: 14px;
}

.btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 5px;
  overflow: hidden;
}

.btn-sm .btn-icon { width: 18px; height: 18px; }

.btn-tg {
  background: #29A8EB;
  color: var(--white);
}

.btn-max {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* ═══ КАРТОЧКИ ═══ */
.cards-section {
  padding: 28px 0 8px;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.18s, box-shadow 0.18s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.11);
}

.card-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
}

.card-verb {
  color: var(--red);
}

.card-sub {
  font-size: 14px;
  color: #666;
  line-height: 1.55;
  margin-top: -4px;
}

/* ═══ ПРОМЕЖУТОЧНЫЙ CTA ═══ */
.mid-cta {
  background: var(--dark);
  margin: 28px 0;
  padding: 28px 0;
}

.mid-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.mid-cta-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  text-align: center;
}

.mid-cta .btn-max {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: none;
}

.mid-cta .btn-max:hover {
  background: rgba(255,255,255,0.22);
  opacity: 1;
}

/* ═══ О НАС ═══ */
.about-block {
  padding: 8px 0 28px;
}

.about-inner {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-left: 4px solid var(--orange);
}

.about-text {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .about-text { font-size: 16px; }
}

/* ═══ ФИНАЛЬНЫЙ CTA ═══ */
.final-cta {
  background: var(--orange);
  padding: 44px 0 48px;
}

.final-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.final-cta-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .final-cta-text { font-size: 22px; }
}

.final-cta .btn-tg {
  background: var(--dark);
  color: var(--white);
}

.final-cta .btn-max {
  background: var(--white);
  color: var(--dark);
}
