/* =========================================
   itcoollook.ru — style.css
   ========================================= */

:root {
  --bg:        #0a0c0f;
  --bg2:       #0f1217;
  --bg3:       #141820;
  --border:    #1e2530;
  --border2:   #2a3340;
  --text:      #c8d0dc;
  --text-dim:  #5a6678;
  --text-muted:#3a4455;
  --accent:    #00e5a0;
  --accent2:   #00b87a;
  --yellow:    #f5c842;
  --red:       #ff5f57;
  --font-head: 'Unbounded', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius:    6px;
  --max-w:     1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- NOISE TEXTURE ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* ---- CONTAINER ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo__bracket { color: var(--accent); }
.logo__name    { color: #fff; }

.header__badge {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 10px;
  border-radius: 99px;
  opacity: 0.85;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  padding: 32px 0 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,229,160,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 40px;
  align-items: center;
}
.hero__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 28px;
}

.hero__text {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 520px;
}

.hero__tagline {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ---- TERMINAL ---- */
.terminal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,229,160,0.06), 0 24px 64px rgba(0,0,0,0.5);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.terminal__bar {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal__dot--red    { background: var(--red); }
.terminal__dot--yellow { background: var(--yellow); }
.terminal__dot--green  { background: var(--accent); }

.terminal__title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.terminal__body {
  padding: 20px 24px;
  font-size: 13px;
  line-height: 1.9;
}

.t-dim    { color: var(--text-dim); }
.t-cmd    { color: var(--accent); font-weight: 700; }
.t-arg    { color: #7eb8ff; }
.t-green  { color: var(--accent); }
.t-yellow { color: var(--yellow); }

.t-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ==========================================
   SUBSCRIBE
   ========================================== */
.subscribe {
  padding: 32px 0 60px;
}

.subscribe__box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 56px;
  display: flex;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.subscribe__box::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.subscribe__text { flex: 0 0 auto; }

.subscribe__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.subscribe__sub {
  color: var(--text-dim);
  font-size: 14px;
}

.subscribe__form { flex: 1; }

.subscribe__field {
  display: flex;
  gap: 0;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.subscribe__field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,160,0.12);
}

.subscribe__input {
  flex: 1;
  background: var(--bg3);
  border: none;
  outline: none;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #fff;
  min-width: 0;
}

.subscribe__input::placeholder { color: var(--text-muted); }

.subscribe__btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 14px 22px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, gap 0.2s;
  white-space: nowrap;
}

.subscribe__btn:hover {
  background: var(--accent2);
  gap: 12px;
}

.subscribe__btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.subscribe__msg {
  margin-top: 12px;
  font-size: 13px;
  min-height: 20px;
  color: var(--accent);
  transition: opacity 0.3s;
}

.subscribe__msg.error { color: var(--red); }

/* ==========================================
   NEWS
   ========================================== */
.news {
  padding: 60px 0 80px;
}

.news__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.news__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.news__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news__item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px 40px;
  align-items: start;
  transition: background 0.15s;
}

.news__item:first-child { border-top: 1px solid var(--border); }

.news__date {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding-top: 3px;
}

.news__head {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
  grid-column: 2;
  grid-row: 1;
}

.news__body {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.75;
  grid-column: 2;
  grid-row: 2;
}

/* Выровняем дату по первой строке заголовка */
.news__date { grid-row: 1 / 3; }

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 720px;
}

.footer__copy {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ==========================================
   ANIMATIONS — page load
   ========================================== */
.hero__label,
.hero__title,
.hero__text,
.hero__tagline,
.hero__terminal {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s forwards ease-out;
}
.hero__video {   /* ← добавить */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s forwards ease-out;
}

.hero__label    { animation-delay: 0.05s; }
.hero__title    { animation-delay: 0.15s; }
.hero__text     { animation-delay: 0.25s; }
.hero__tagline  { animation-delay: 0.35s; }
.hero__terminal { animation-delay: 0.45s; }

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__terminal { display: none; }

  .subscribe__box {
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
  }

  .news__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .news__head  { grid-column: 1; grid-row: 2; }
  .news__body  { grid-column: 1; grid-row: 3; }
  .news__date  { grid-row: 1; }
}

@media (max-width: 520px) {
  .subscribe__field {
    flex-direction: column;
  }
  .subscribe__btn {
    justify-content: center;
    border-radius: 0;
  }
}

.hero__video {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__video-player {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(79, 195, 247, 0.2);
  box-shadow: 0 0 40px rgba(79, 195, 247, 0.15);
}