/* Vitart VTV — стили на базе noscroll/website */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  /* Один цвет «холста»: шапка, body и полосы секций совпадают */
  --bg-canvas: #040404;
  --bg-primary: var(--bg-canvas);
  --bg-secondary: var(--bg-canvas);
  --bg-card: #1e1e1e;
  --text-primary: #ededed;
  --text-secondary: #bababa;
  --text-muted: #6b6b6b;
  --accent-start: #14b8a6;
  --accent-end: #11699c;
  --border: #2d2d2d;
  --hairline: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --danger: #f87171;
  --success: #34d399;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  /* Закрываем щель внизу экрана, где UA рисует «чистый» #000 под 100vh */
  min-height: 100%;
  min-height: 100dvh;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100%;
  min-height: 100dvh;
  /* Подвал всегда у нижнего края окна, если контента мало */
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin: 0;
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: transparent;
  flex-shrink: 0;
}

.nav-burger:hover {
  background: rgba(255, 255, 255, 0.04);
}

.nav-burger-line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 1px;
}

@media (max-width: 767px) {
  header .header-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px 16px;
  }

  .header-bar .logo {
    justify-self: start;
  }

  .nav-burger {
    display: flex;
    justify-self: end;
    grid-column: 2;
    grid-row: 1;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 16px 0 8px;
    margin-top: 4px;
    border-top: 1px solid var(--hairline);
  }

  .nav-toggle-input:checked ~ .site-nav {
    display: flex;
  }

  .nav-toggle-input:focus-visible + .nav-burger {
    outline: 2px solid var(--accent-start);
    outline-offset: 2px;
  }
}

@media (min-width: 768px) {
  .nav-burger {
    display: none !important;
  }

  .site-nav {
    display: flex !important;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* display задаётся в @media: на мобильных по умолчанию скрыто, на широких — flex */
.site-nav {
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--accent-start);
}

main {
  min-height: 0;
  padding: 0 0 64px;
  background-color: var(--bg-canvas);
}

.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--bg-canvas);
  /* vh → dvh: меньше рассинхрона с реальной высотой окна и полосы «чужого» чёрного */
  min-height: calc(100vh - 200px);
  min-height: calc(100dvh - 200px);
  text-align: center;
  padding: 56px 0 40px;
}

.landing h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
}

.landing .tagline {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 520px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: box-shadow 0.2s ease;
  box-shadow: none;
}

.btn-primary:hover {
  box-shadow: 0 10px 32px rgba(20, 184, 166, 0.38);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent-start);
  outline-offset: 3px;
}

.btn-primary:focus:not(:focus-visible) {
  outline: none;
}

.section {
  padding: 72px 0;
  scroll-margin-top: 88px;
  background-color: var(--bg-canvas);
}

.section--muted {
  background-color: var(--bg-canvas);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section .lead {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 640px;
}

.mission-emphasis strong {
  color: var(--text-primary);
  font-weight: 600;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
}

.principles {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }
}

.principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}

.principle-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.principle-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Блок «Проекты» без фотографий */
.project-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 8px 0 14px;
}

.project-kicker--spaced {
  margin-top: 40px;
}

.project-store-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-start);
  text-decoration: none;
  transition: color 0.2s;
}

.project-store-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.project-grid {
  display: grid;
  align-items: stretch;
  gap: 18px;
  margin-top: 0;
  margin-bottom: 0;
}

@media (min-width: 720px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  overflow: hidden;
}

.project-accent {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
}

.project-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  padding-top: 4px;
}

.project-card > p {
  flex: 1 1 auto;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 14px;
  min-height: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-tags li {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.contact-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 32px;
  margin-top: 8px;
}

.contact-form .form-row {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.contact-form input[type='text'],
.contact-form input[type='email'],
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-start);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.consent-row input {
  margin-top: 4px;
  flex-shrink: 0;
}

.consent-row label {
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

.consent-row a {
  color: var(--accent-start);
  text-decoration: none;
}

.consent-row a:hover {
  text-decoration: underline;
}

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

.alert {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert--success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--success);
}

.alert--error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--danger);
}

.alert--warning {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}

.alert--warning a {
  color: var(--accent-start);
}

.alert--warning code {
  font-size: 0.9em;
  color: var(--text-secondary);
}

.alert ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.document {
  padding: 24px 0;
}

.document h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
}

.document .last-updated {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 48px;
}

.document h2 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.document p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.document ul {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--text-secondary);
}

.document li {
  margin-bottom: 8px;
}

.document a {
  color: var(--accent-start);
  text-decoration: none;
}

.document a:hover {
  text-decoration: underline;
}

footer {
  background-color: var(--bg-canvas);
  border-top: 1px solid var(--hairline);
  padding: 24px 0;
}

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

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-start);
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-email:hover {
  color: var(--accent-start);
}

.footer-email svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.footer-company {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0;
  line-height: 1.5;
  max-width: 70%;
}

.copyright {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  footer .container {
    gap: 20px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .footer-company {
    max-width: 100%;
  }

  .copyright {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .document h1 {
    font-size: 28px;
  }

  .document h2 {
    font-size: 20px;
  }
}
