/* TopLever — Vercel-inspired monochrome design */
/* Font: Inter from Google Fonts */

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

:root {
  --black: #000000;
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EAEAEA;
  --gray-400: #999999;
  --gray-500: #888888;
  --gray-600: #666666;
  --gray-700: #444444;
  --gray-800: #333333;
  --gray-900: #111111;
  --border: #EAEAEA;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --max-width: 1120px;
  --radius: 8px;
  --transition: 150ms ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--black);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  color: var(--gray-600);
  line-height: 1.7;
}

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

/* ========== NAVBAR ========== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar__logo {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  text-decoration: none;
}

.navbar__logo:hover {
  text-decoration: none;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__links a {
  font-size: 0.875rem;
  color: var(--gray-600);
  transition: color var(--transition);
  text-decoration: none;
}

.navbar__links a:hover {
  color: var(--black);
}

.navbar__links a.active {
  color: var(--black);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--black);
  transition: transform var(--transition), opacity var(--transition);
}

.burger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  padding: 32px 24px;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: 1.25rem;
  color: var(--gray-900);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover {
  text-decoration: none;
  color: var(--black);
}

/* ========== BUTTONS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--black);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--gray-800);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--outline {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--black);
  transform: translateY(-1px);
}

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

.hero {
  padding: 80px 0 96px;
  border-bottom: 1px solid var(--border);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__content {
  max-width: 520px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-600);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--black);
}

.hero h1 {
  margin-bottom: 20px;
}

.hero__text p {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hero__small {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Geometric art — right side of hero */
.hero__art {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.geo {
  position: absolute;
  border: 1.5px solid var(--gray-200);
}

.geo--circle-lg {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.geo--circle-sm {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  top: 20px;
  right: 30px;
  border-style: dashed;
}

.geo--square {
  width: 160px;
  height: 160px;
  bottom: 20px;
  left: 20px;
  border-radius: 4px;
  transform: rotate(12deg);
}

.geo--line-h {
  width: 200px;
  height: 0;
  border-top: 1.5px solid var(--gray-200);
  border-bottom: none;
  border-left: none;
  border-right: none;
  top: 50%;
  left: 10%;
}

.geo--line-v {
  width: 0;
  height: 180px;
  border-left: 1.5px solid var(--gray-200);
  border-top: none;
  border-bottom: none;
  border-right: none;
  top: 15%;
  left: 50%;
}

.geo--dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--black);
  border: none;
}

.geo--dot-1 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.geo--dot-2 {
  top: 20px;
  left: 60px;
}

.geo--dot-3 {
  bottom: 40px;
  right: 60px;
}

.geo--triangle {
  width: 0;
  height: 0;
  border: none;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid var(--gray-100);
  top: 60px;
  left: 40px;
}

/* ========== HERO SHORT (subpages) ========== */

.hero-short {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.hero-short h1 {
  font-size: 2.5rem;
}

.hero-short p {
  margin-top: 12px;
  font-size: 1.05rem;
  max-width: 520px;
}

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

section {
  padding: 80px 0;
}

section + section {
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1rem;
  max-width: 480px;
}

/* ========== PROCESS (cards in a row) ========== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.process-card__number {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.process-card h3 {
  margin-bottom: 10px;
}

.process-card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ========== SERVICES GRID ========== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.service-card:hover {
  border-color: var(--gray-400);
}

.service-card__icon {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--gray-700);
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ========== CASES ========== */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.case-card:hover {
  border-color: var(--gray-400);
}

.case-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.case-card h3 {
  margin-bottom: 8px;
}

.case-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.case-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric__value {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}

.metric__label {
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ========== CTA ========== */

.cta {
  padding: 80px 0;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta p {
  margin: 0 auto 32px;
  max-width: 400px;
  font-size: 1rem;
}

.cta__contacts {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  font-size: 0.875rem;
}

.cta__contacts a {
  color: var(--gray-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta__contacts a:hover {
  color: var(--black);
}

/* ========== FOOTER ========== */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
}

.footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
}

.footer__logo:hover {
  text-decoration: none;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.footer__city {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 10px;
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--black);
}

/* ========== ABOUT PAGE ========== */

.about-text {
  max-width: 640px;
}

.about-text p {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.team-card {
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.team-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-700);
  letter-spacing: -0.02em;
}

.team-card h3 {
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.team-card p {
  font-size: 0.875rem;
}

/* Why Us — numbered list */
.why-list {
  max-width: 640px;
}

.why-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
}

.why-item + .why-item {
  border-top: 1px solid var(--border);
}

.why-item__number {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gray-400);
  flex-shrink: 0;
  padding-top: 2px;
  letter-spacing: 0.04em;
}

.why-item h3 {
  margin-bottom: 4px;
}

.why-item p {
  font-size: 0.875rem;
}

/* Process steps — vertical timeline */
.steps {
  max-width: 560px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--border);
}

.step {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  position: relative;
}

.step__dot {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-500);
  z-index: 1;
}

.step__content h3 {
  margin-bottom: 4px;
}

.step__content p {
  font-size: 0.875rem;
}

/* ========== FAQ PAGE ========== */

.faq-list {
  max-width: 720px;
}

details {
  border-bottom: 1px solid var(--border);
}

details:first-child {
  border-top: 1px solid var(--border);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-900);
  list-style: none;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--gray-400);
  flex-shrink: 0;
  transition: transform var(--transition);
}

details[open] summary::after {
  content: '\2212';
}

details p {
  padding: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 600px;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero .container {
    gap: 40px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer .container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  section {
    padding: 56px 0;
  }

  .navbar__links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__art {
    height: 280px;
  }

  .geo--circle-lg {
    width: 200px;
    height: 200px;
  }

  .geo--square {
    width: 120px;
    height: 120px;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .footer .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .hero-short {
    padding: 48px 0 32px;
  }

  .hero-short h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  section {
    padding: 48px 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .hero__art {
    height: 220px;
  }

  .geo--circle-lg {
    width: 160px;
    height: 160px;
  }

  .geo--circle-sm {
    width: 80px;
    height: 80px;
  }

  .geo--square {
    width: 90px;
    height: 90px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .case-card__metrics {
    gap: 12px;
  }

  .cta h2 {
    font-size: 1.75rem;
  }

  .btn {
    width: 100%;
  }
}
