@font-face {
  font-family: "RS Semibold";
  src: url("../fonts/RS-semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zebrum Logo";
  src: url("../fonts/logo/EDUCATIONALGOTHIC-REGULAR.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F9F9F9;
  --text: #1A1A1A;
  --text-strong: #000000;
  --subhead: #444444;
  --accent: #3d0000;
  --border: #E0E0E0;
  --section-soft: #F7F1F2;
  --section-muted: #F3F3F3;
  --container: 1200px;
  --gap: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: 'Inter Tight', 'Inter';
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.page {
  min-height: 100%;
}

.preloader-logo {
  animation: preloaderPulse 1s ease-in-out infinite;
}

.preloader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 40;
  transition: opacity 260ms ease;
}

.preloader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-logo {
  font-family: "Zebrum Logo", 'Inter Tight', 'Inter';
  font-size: 40px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-strong);
}

@keyframes preloaderPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.app {
  opacity: 0;
  transition: opacity 260ms ease;
}

.app.is-ready {
  opacity: 1;
}

h1,
h2 {
  font-family: "RS Semibold", 'Inter Tight', 'Inter';
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

h3,
h4 {
  font-weight: 500;
  letter-spacing: -0.03em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.col-span-12 {
  grid-column: span 12;
}

/* Responsive column spans */
@media (min-width: 768px) {
  .md\:col-span-3 {
    grid-column: span 3;
  }

  .md\:col-span-4 {
    grid-column: span 4;
  }

  .md\:col-span-6 {
    grid-column: span 6;
  }

  .md\:col-span-8 {
    grid-column: span 8;
  }

  .md\:col-span-9 {
    grid-column: span 9;
  }

  .md\:col-span-10 {
    grid-column: span 10;
  }
}

/* Header */
.site-header {
  padding: 28px 0;
}

.brand {
  font-family: "Zebrum Logo", 'Inter Tight', 'Inter';
  font-weight: 400;
  font-size: 35px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  align-items: center;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  transition: color 160ms ease;
}

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

.hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.headline {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 12px;
  text-align: left;
  color: var(--text-strong);
  background-image: linear-gradient(115deg, #000000, #492f2f, #504b4b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subheadline {
  max-width: 56ch;
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 300;
  color: var(--subhead);
}

.hero-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}

@media (min-width: 1024px) {
  .hero-main {
    max-width: 680px;
  }
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.1) brightness(1.05);
  opacity: 1;
}

@media (max-width: 768px) {
  .hero-video-media {
    width: 100%;
    height: 100%;
    /* Увеличиваем видео на мобильных, чтобы скрыть возможные полосы от экспорта */
    transform: scale(1.2); 
    object-fit: cover;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(249, 249, 249, 0.4),
      rgba(249, 249, 249, 0.8));
  z-index: 1;
}

.hero-main {
  position: relative;
  z-index: 2;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  background: var(--accent);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: filter 160ms ease, transform 160ms ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.hero-cta {
  align-self: flex-start;
}

/* Philosophy */
.philosophy {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.philo-item {
  min-height: 160px;
  position: relative;
  padding-bottom: 20px;
}

.philo-number {
  font-size: 11px;
  font-weight: 500;
  color: var(--subhead);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.philo-number::after {
  content: '';
}

.philo-item h3 {
  letter-spacing: -0.01em;
  margin: 4px 0 8px;
}

.philo-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: rgba(74, 14, 14, 0.4);
}

/* Services */
.services {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  background: var(--section-muted);
}

.services .container {
  position: relative;
}

/* 
.services .container::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.06);
} 
*/

.section-title h2 {
  font-weight: 600;
  letter-spacing: -0.045em;
  margin: 0;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subhead);
  margin-bottom: 8px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.service-list li {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.service-list span {
  transition: color 160ms ease;
}

.service-price {
  font-size: 14px;
  color: var(--subhead);
  letter-spacing: 0;
}

.service-list li:hover span {
  color: var(--accent);
}

/* Portfolio */
.portfolio {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  background: var(--section-soft);
}

.project {
  margin: 0;
}

/* Solutions (Pain & Gain) */
.solutions {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  background: var(--section-soft);
}

.solution-card {
  background: #fff;
  border: 1px solid rgba(74, 14, 14, 0.2);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.solution-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.solution-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-icon.is-success {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.solution-header h4 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--subhead);
}

.solution-pain {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--subhead);
}

.solution-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
  opacity: 0.5;
}

.solution-gain {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text-strong);
}

/* Process */
.process {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(74, 14, 14, 0.16);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(74, 14, 14, 0.5);
  background: #f9f9f9;
  margin-top: 6px;
}

.step.is-active .step-dot {
  background: var(--accent);
}

.step-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.step-content h4 {
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.step-content p {
  margin: 0;
}

/* Contact */
.contact {
  padding: 56px 0 72px;
  border-top: 1px solid var(--border);
  background: var(--section-soft);
}

.contact-methods {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-actions {
  display: flex;
  gap: 16px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(61, 0, 0, 0.08);
  transition: all 200ms ease;
  border: 1px solid rgba(74, 14, 14, 0.15);
}

.btn-icon svg {
  width: 28px;
  height: 28px;
}

.btn-icon:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(61, 0, 0, 0.15);
}

.contact-details {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label-text {
  font-family: 'Inter Tight', 'Inter';
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subhead);
  font-weight: 500;
  opacity: 0.8;
}

.contact-link {
  font-family: "RS Semibold", 'Inter Tight', 'Inter';
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
  text-decoration: none;
  transition: color 160ms ease;
  display: inline-block;
  letter-spacing: -0.01em;
}

.contact-link:hover {
  color: var(--accent);
}

/* Footer */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  opacity: 0.7;
}

/* Reveal on scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px 0;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(100%);
  transition: transform 300ms ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-content p {
  margin: 0;
  font-size: 14px;
  color: var(--subhead);
}

@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .cookie-content .btn-primary {
    width: 100%;
  }
}