﻿:root {
  --surface: #ffffff;
  --surface-2: #f7fbff;
  --text: #102843;
  --line: rgba(16, 40, 67, 0.18);
  --primary: #f5ad2f;
  --primary-dark: #dc9419;
  --shadow: 0 14px 36px rgba(14, 33, 54, 0.28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 10%, #f2f6fc 0%, #e7eef7 45%, #dce6f2 100%);
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid rgba(16, 40, 67, 0.18);
  background: rgba(240, 246, 253, 0.95);
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 92px;
  height: auto;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(19, 62, 112, 0.16);
  border-radius: 10px;
  padding: 4px;
}

.brand-kicker {
  margin: 0 0 3px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
  color: #60799b;
}

h1 {
  margin: 0;
  color: #133e70;
  font-size: clamp(1.5rem, 4vw, 2.45rem);
  line-height: 1.05;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tars-avatar {
  width: 94px;
  height: auto;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #1a3f6d;
  background: linear-gradient(180deg, #ffd988, var(--primary));
  border: 1px solid #ecb953;
  box-shadow: 0 8px 16px rgba(245, 173, 47, 0.28);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.header-btn:hover { background: linear-gradient(180deg, #ffe09a, var(--primary-dark)); }

main {
  padding: 24px 0 44px;
  background: linear-gradient(180deg, #b8c6d6 0%, #c8d4e1 100%);
}

.intro {
  margin: 0 0 22px;
  color: #0f2f52;
  line-height: 1.66;
  font-size: clamp(1rem, 1.25vw, 1.08rem);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(5, 16, 30, 0.35);
  border-color: rgba(22, 62, 114, 0.34);
}

.card h2 {
  margin: 0 0 12px;
  color: #163e72;
  font-size: 1.04rem;
  text-transform: uppercase;
  letter-spacing: .01em;
  transition: color .24s ease, transform .24s ease;
}

.card:hover h2 {
  color: #133e70;
  transform: translateX(3px);
}

.thumb-link {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(22, 62, 114, 0.2);
  background: #d9e3f1;
}

.thumb-link img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform .28s ease;
}

.card:hover .thumb-link img {
  transform: scale(1.04);
}

.thumb-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 22, 40, 0.08), rgba(8, 22, 40, 0.24));
}

.thumb-link::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(16, 40, 67, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(7, 22, 40, 0.34);
  clip-path: polygon(39% 31%, 39% 69%, 72% 50%);
  transition: transform .24s ease, background .24s ease;
}

.card:hover .thumb-link::after {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(22, 54, 88, 0.95);
}

.card-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .03em;
  min-width: 170px;
}

.btn-youtube {
  color: #18273b;
  background: linear-gradient(180deg, #ffd988, var(--primary));
  border: 1px solid #ecb953;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}

.card:hover .btn-youtube {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ffe09a, var(--primary-dark));
  box-shadow: 0 10px 18px rgba(245, 173, 47, 0.35);
}

.footer-cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.back-btn {
  display: inline-flex;
  text-decoration: none;
  color: #eaf3ff;
  font-weight: 800;
  letter-spacing: .04em;
  background: linear-gradient(180deg, #123861, #0d2b49);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 11px 22px;
  box-shadow: 0 8px 18px rgba(8, 28, 51, 0.28);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(8, 28, 51, 0.36);
  background: linear-gradient(180deg, #164676, #0f3559);
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 22, 40, 0.74);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999;
}

.video-modal.active { display: flex; }

.video-box {
  width: min(980px, 100%);
  background: #071e3a;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 10px;
}

.video-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #f0f5fc;
  margin-bottom: 8px;
}

.video-title {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
}

.close-btn {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  cursor: pointer;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 10px;
}

@media (max-width: 760px) {
  .header-inner { align-items: flex-start; }
  .brand-logo { width: 70px; }
  h1 { font-size: clamp(1.1rem, 8vw, 1.9rem); }
  .cards-grid { grid-template-columns: 1fr; }
  .intro { max-width: 34ch; margin-left: auto; margin-right: auto; }
  .thumb-link::after { width: 62px; height: 62px; }
}

