/* ────────────────────────────────────────────────────────────
 * timvera.ru — temporary single-page styles
 * Цвета взяты из OG-меты оригинального сайта (bg #1a1c26, accent #b6a3ff).
 * ──────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Open Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/open-sans-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Open Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/open-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/open-sans-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Open Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/open-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #1a1c26;
  --bg-2: #20232f;
  --bg-card: #252836;
  --fg: #e8e6ef;
  --fg-dim: #9b98ad;
  --accent: #b6a3ff;
  --border: rgba(182, 163, 255, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; margin: 0.6em 0; }
li { margin: 0.3em 0; }

.tv-root {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Header ─── */
.tv-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
  margin-bottom: 0.5rem;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
  backdrop-filter: blur(4px);
}
.tv-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  font-weight: 600;
}
.tv-brand:hover { text-decoration: none; }
.tv-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 18px;
}
.tv-brand-name { font-size: 1.05rem; letter-spacing: 0.02em; }
.tv-nav { display: flex; gap: 1.4rem; }
.tv-nav a { color: var(--fg-dim); font-size: 0.92rem; }
.tv-nav a:hover { color: var(--fg); text-decoration: none; }

/* ─── Hero ─── */
.tv-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0 3.5rem;
}
.tv-eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
}
.tv-hero-title {
  margin: 0 0 1.2rem;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tv-hero-lead {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--fg);
  max-width: 56ch;
}
.tv-hero-img img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  box-shadow: 0 16px 48px -24px rgba(0,0,0,0.6);
}

/* ─── Sections ─── */
.tv-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.tv-h {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tv-lede {
  margin: 0;
  font-size: 1.05rem;
  max-width: 72ch;
  color: var(--fg);
}

/* ─── Services grid ─── */
.tv-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.tv-service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.4rem 1.6rem;
}
.tv-service-h {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}
.tv-service-card ul { padding-left: 1.1em; }
.tv-service-card li { font-size: 0.95rem; }

/* ─── R&D / Technology ─── */
.tv-rnd-lede {
  margin: 0 0 1.4rem;
  color: var(--fg-dim);
}
.tv-rnd-desc {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: var(--fg);
}
.tv-rnd-card ul { margin: 0; }
.tv-rnd-card li { font-size: 0.92rem; color: var(--fg-dim); }

/* ─── Projects ─── */
.tv-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.tv-project {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tv-project.is-featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.tv-project-img {
  background: var(--bg-2);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.tv-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.tv-project:hover .tv-project-img img { transform: scale(1.03); }
.tv-project-body {
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
}
.tv-project-h {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}
.tv-project-year {
  font-weight: 400;
  color: var(--fg-dim);
  font-size: 0.92rem;
}
.tv-project-desc {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--fg);
}
.tv-project.is-featured .tv-project-img {
  flex: 1.1;
  aspect-ratio: auto;
  min-height: 320px;
}
.tv-project.is-featured .tv-project-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.6rem 1.8rem;
}
.tv-project.is-featured .tv-project-h { font-size: 1.4rem; }
.tv-project.is-featured .tv-project-desc { font-size: 1rem; max-width: 50ch; }
@media (max-width: 760px) {
  .tv-project.is-featured { flex-direction: column; }
  .tv-project.is-featured .tv-project-img { min-height: auto; aspect-ratio: 4 / 3; }
}

/* ─── Contact ─── */
.tv-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.tv-contact-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.tv-contact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  margin-bottom: 0.2rem;
}
.tv-contact-list a {
  font-size: 1.05rem;
  font-weight: 600;
}

/* ─── Footer ─── */
.tv-footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: 0.88rem;
}

/* ─── Mobile ─── */
@media (max-width: 760px) {
  .tv-hero { grid-template-columns: 1fr; padding: 1.5rem 0 2rem; }
  .tv-nav { display: none; }
  .tv-section { padding: 1.6rem 0; }
}

/* Language switcher
   ─────────────────────────────────────────────────────────── */
.tv-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.tv-lang button {
  background: none;
  border: 0;
  padding: 0.2rem 0.4rem;
  color: inherit;
  opacity: 0.55;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  transition: opacity 120ms ease;
}

.tv-lang button:hover {
  opacity: 0.9;
}

.tv-lang button.is-active {
  opacity: 1;
  font-weight: 600;
}

.tv-lang-sep {
  opacity: 0.35;
}
