/* === 1. ИМПОРТ БАЗЫ И НАСТРОЙКИ === */

/* Импорт шрифтов уже в HTML, здесь переменные */

:root {
  /* Базовые цвета */
  --c-bg: #080808;
  --c-text: #ffffff;
  --c-glass: rgba(255, 255, 255, 0.03);
  --c-glass-border: rgba(255, 255, 255, 0.1);
  /* BRAND COLORS (из слайдов) */
  --c-accent-primary: #00d2ff;
  /* Неоновый голубой */
  --c-brand-dark: #27262a;
  /* Графитовый черный */
  --c-brand-grey: #b8bcc3;
  /* Серебристый */
  --c-brand-white: #eff5ff;
  /* Чистый белый */
  --c-brand-deep: #005378;
  /* Глубокий синий */
  --c-brand-cyan: #5aaccc;
  /* Техно циановый */
  /* FONTS */
  --font-main: "Montserrat", sans-serif;
  --font-display: "Unbounded", sans-serif;
  --font-mono: "Anonymous Pro", monospace;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-main);
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Утилиты текста */

.text-accent {
  color: var(--c-accent-primary);
}

.font-unbounded {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

.font-montserrat {
  font-family: var(--font-main);
}

.text-sm {
  font-size: 0.85rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

.p-4 {
  padding: 2rem;
}

/* === HEADER & NAV (Базовые стили из прошлого файла) === */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 5%;
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--c-glass-border);
  box-sizing: border-box;
}

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

.nav__menu {
  display: flex;
  gap: 2rem;
}

.nav__item {
  color: #888;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: 0.3s;
}

.nav__item:hover,
.nav__item--active {
  color: #fff;
}

.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

/* === HERO SECTION === */

.brand-hero {
  padding: 180px 0 80px;
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Фон "камня" через CSS шум/градиент, если нет картинки */

.brand-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(8, 8, 8, 0.2), var(--c-bg)),
    url("https://images.unsplash.com/photo-1616716705265-92264e2383e8?q=80&w=2000&auto=format&fit=crop");
  /* Пример текстуры */
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(120%);
  z-index: -1;
  opacity: 0.4;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* === SECTIONS GENERIC === */

.section {
  padding: 6rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.card-glass {
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  backdrop-filter: blur(12px);
  border-radius: 16px;
}

/* === COLOR PALETTE === */

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

.palette-card {
  height: 180px;
  border-radius: 20px;
  position: relative;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.palette-card:hover {
  transform: translateY(-5px);
}

.palette-info {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.palette-info code {
  font-weight: bold;
  opacity: 0.7;
}

.dark-text {
  color: #111;
}

/* Цвета карточек */

.bg-dark-accent {
  background-color: var(--c-brand-dark);
}

.bg-grey {
  background-color: var(--c-brand-grey);
}

.bg-white {
  background-color: var(--c-brand-white);
}

.bg-deep-blue {
  background-color: var(--c-brand-deep);
}

.bg-cyan {
  background-color: var(--c-brand-cyan);
}

/* === TYPOGRAPHY === */

.typography-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.type-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--c-glass-border);
  padding-bottom: 2rem;
}

.type-name {
  font-size: 1.5rem;
  opacity: 0.8;
}

.type-desc p {
  margin-bottom: 1rem;
  color: #aaa;
}

.type-chars {
  font-size: 1.5rem;
  color: #fff;
  word-break: break-all;
}

/* === LOGO CONSTRUCTION === */

.logo-construction {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  background: #111;
}

.blueprint-grid {
  position: relative;
  width: 300px;
  height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  /* Сетка на фоне */
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Имитация лого FR текстом */

.logo-placeholder {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5rem;
  line-height: 1;
  letter-spacing: -5px;
  position: relative;
  z-index: 2;
}

.guide-line {
  position: absolute;
  background: var(--c-accent-primary);
  opacity: 0.5;
}

.v-center {
  width: 1px;
  height: 100%;
  top: 0;
  left: 50%;
}

.h-center {
  height: 1px;
  width: 100%;
  left: 0;
  top: 50%;
}

.safe-area-box {
  position: absolute;
  width: 120%;
  height: 140%;
  border: 1px dashed var(--c-brand-grey);
  opacity: 0.3;
}

/* Donts Grid */

.dont-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.dont-item {
  text-align: center;
}

.dont-visual {
  background: #222;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

/* Красный крестик через CSS */

.dont-visual::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      45deg,
      transparent 45%,
      rgba(255, 0, 0, 0.3) 45%,
      rgba(255, 0, 0, 0.3) 55%,
      transparent 55%
    ),
    linear-gradient(
      -45deg,
      transparent 45%,
      rgba(255, 0, 0, 0.3) 45%,
      rgba(255, 0, 0, 0.3) 55%,
      transparent 55%
    );
  pointer-events: none;
}

.skew-effect {
  transform: skewX(-20deg);
  opacity: 0.7;
}

.blur-effect {
  filter: blur(4px);
}

.stroke-effect {
  -webkit-text-stroke: 1px #fff;
  color: transparent;
}

.dont-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #ff4d4d;
  text-transform: uppercase;
}

/* === MOODBOARD === */

.moodboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  height: 400px;
}

.mood-card {
  background: #222;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

/* Псевдо-картинки (градиенты вместо фото) */

.texture-rock {
  background: url("https://images.unsplash.com/photo-14852304053bb-08c33f8481d3?q=80&w=800&auto=format&fit=crop");
  background-size: cover;
}

.texture-minimal {
  background: url("https://images.unsplash.com/photo-1506792006437-256b665541e2?q=80&w=800&auto=format&fit=crop");
  background-size: cover;
}

.texture-dark {
  background: url("https://images.unsplash.com/photo-1550684848-fac1c5b4e853?q=80&w=800&auto=format&fit=crop");
  background-size: cover;
}

.mood-card span {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* === MEDIA QUERIES === */

@media (max-width: 768px) {
  .grid-2,
  .type-row,
  .dont-grid,
  .moodboard-grid {
    grid-template-columns: 1fr;
  }
  .type-row {
    gap: 1rem;
  }
  .nav__menu {
    display: none;
  }
  .nav__burger {
    display: block;
  }
  .moodboard-grid {
    height: auto;
  }
  .mood-card {
    height: 200px;
  }
}

/* В секции === LOGO CONSTRUCTION === */

.blueprint-grid {
  position: relative;
  width: 100%;
  max-width: 400px;
  /* Чуть шире, так как логотип может быть длинным */
  height: 250px;
  /* Высота области сетки */
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  margin-bottom: 1.5rem;
  /* Отступ до текста снизу */
}

.logo-construction-img {
  position: relative;
  z-index: 2;
  max-width: 85%;
  /* Чтобы не касался краев сетки */
  max-height: 70%;
  /* Чтобы по высоте влезал */
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
  /* Легкая тень для контраста с сеткой */
}

/* Обновите safe-area-box, чтобы он подстраивался под размеры */

.safe-area-box {
  position: absolute;
  width: 90%;
  height: 80%;
  border: 1px dashed var(--c-brand-grey);
  opacity: 0.3;
  pointer-events: none;
}
