/* Relax Time - лендинг (макет «Relax Landing A Dark») */

:root {
  --bg: #121314;
  --bg-alt: #1a1b1d;
  --surface: #1f2022;
  --text: #ececec;
  --text-strong: #fff;
  --text-muted: #b9bbbd;
  --text-soft: #c9cbcd;
  --text-dim: #8f9295;
  --accent: #e3242b;
  --accent-hover: #c41c22;
  --accent-light: #ff4a4f;
  --accent-lighter: #ff7a7e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --line-button: rgba(255, 255, 255, 0.25);
  --container: 1240px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; }
a { color: var(--accent-light); }
a:hover { color: var(--accent-lighter); }
p { margin: 0; text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  box-sizing: content-box;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--accent); color: #fff; border: 0; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--line-button); }
.btn--outline:hover { border-color: #fff; color: #fff; }
.btn--light { background: #fff; color: var(--accent); border: 0; }
.btn--light:hover { background: var(--text-soft); color: var(--accent-hover); }
.btn--sm { font-size: 14px; padding: 12px 22px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 19, 20, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__bar {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo { display: block; flex: 0 0 auto; margin-right: auto; }
.logo img { width: 194px; height: 36px; }
.logo--sm img { width: 151px; height: 28px; }

.nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--accent-light); }

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 24px 24px;
  border-top: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 20px; }

@media (max-width: 859.98px) {
  .header__bar .nav,
  .header__bar .btn { display: none; }
  .menu-toggle { display: grid; }
}
@media (min-width: 860px) {
  .mobile-nav { display: none !important; }
}

/* ---------- Общие элементы секций ---------- */

.section--alt { background: var(--bg-alt); }

.section__inner {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-num { font-family: "Unbounded", system-ui, sans-serif; font-size: 14px; color: var(--accent-light); }

.h2 {
  margin: 0;
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(25px, 4.2vw, 48px);
  line-height: 1.08;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(24px, 5vw, 48px);
}

.stack { display: flex; flex-direction: column; gap: 16px; }

.text { font-size: 16px; line-height: 1.7; color: var(--text-muted); }
.lead {
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.5;
  color: var(--text);
}

/* ---------- Главный экран ---------- */

.hero { position: relative; overflow: hidden; }
.hero__glow {
  position: absolute;
  right: -12%;
  top: -30%;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 36, 43, 0.28) 0%, rgba(227, 36, 43, 0) 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
  padding-top: clamp(56px, 12vw, 160px);
  padding-bottom: clamp(48px, 8vw, 96px);
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 700;
}
.h1 {
  margin: 0;
  max-width: 1000px;
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 7.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- О компании ---------- */

.about__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* ---------- Бренды ---------- */

.section__stack {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 48px);
}
.brands__head { gap: 48px; }
.brands__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.brand-card {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  padding: 24px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.brand-card img { width: 84%; height: auto; max-width: 100%; }
.note {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ---------- Проекты ---------- */

.projects__title { max-width: 800px; }
.projects__list { list-style: none; margin: 0; padding: 0; }
.projects__list li {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 3vw, 24px);
  padding: clamp(16px, 2.4vw, 22px) 0;
  border-top: 1px solid var(--line-strong);
}
.projects__list li:last-child { border-bottom: 1px solid var(--line-strong); }
.projects__num {
  flex: 0 0 40px;
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 14px;
  color: var(--accent-light);
}
.projects__name {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(18px, 2vw, 26px);
}

/* ---------- Партнёрам ---------- */

.partners { padding: clamp(24px, 6vw, 80px) clamp(12px, 3vw, 24px); }
.partners__card {
  box-sizing: content-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  align-items: start;
  gap: 40px;
  max-width: 1192px;
  margin: 0 auto;
  padding: clamp(24px, 6vw, 80px);
  border-radius: clamp(20px, 3vw, 28px);
  background: var(--accent);
  color: #fff;
}
.partners__card .h2 { text-wrap: balance; }
.partners__text { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.7; }
.partners__mail { align-self: flex-start; margin-top: 8px; overflow-wrap: anywhere; }

/* ---------- Подвал ---------- */

.footer { border-top: 1px solid var(--line); }
.footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 13px;
  color: var(--text-dim);
}
