/* ==========================================================================
   Chip-Tuning Yerevan — design tokens
   ========================================================================== */
:root {
  --bg: #0b0b0d;
  --bg-alt: #131316;
  --panel: #17171b;
  --panel-border: #26262b;
  --red: #e5232b;
  --red-dim: #7a1015;
  --red-glow: rgba(229, 35, 43, 0.35);
  --white: #f2f1ee;
  --grey: #9a9aa1;
  --grey-dim: #5c5c62;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --container: 1140px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  font-weight: 600;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
}

p {
  color: var(--grey);
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--panel-border);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
}

.brand__mark {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 15px;
  border: 1px solid var(--red-dim);
  padding: 3px 6px;
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  color: var(--white);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  position: relative;
}
.nav-toggle::before { margin-bottom: 5px; }
.nav-toggle::after { margin-top: 5px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-menu a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--grey);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.15s ease;
}

.nav-menu a:hover,
.nav-menu a.is-current {
  color: var(--white);
}

.nav-menu a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  gap: 2px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-switch__btn {
  background: transparent;
  border: none;
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 7px 10px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch__btn:hover {
  color: var(--white);
}

.lang-switch__btn.is-active {
  background: var(--red);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover {
  box-shadow: 0 0 0 3px var(--red-glow);
}

.btn--ghost {
  background: transparent;
  border-color: var(--panel-border);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--panel-border);
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, var(--red-glow), transparent 60%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  margin: 16px 0 20px;
}

.hero p {
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Dyno readout (signature element)
   ========================================================================== */
.dyno {
  padding: 88px 0;
  border-bottom: 1px solid var(--panel-border);
}

.dyno__head {
  max-width: 620px;
  margin-bottom: 48px;
}

.dyno__head h2 {
  margin: 14px 0 12px;
}

.dyno-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px clamp(16px, 4vw, 40px);
}

.dyno-row {
  display: grid;
  grid-template-columns: 90px 1fr 130px;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--panel-border);
}

.dyno-row:last-child {
  border-bottom: none;
}

.dyno-row__label {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dyno-row--stage .dyno-row__label {
  color: var(--white);
}

.dyno-row__track {
  height: 10px;
  background: var(--bg-alt);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
}

.dyno-row__fill {
  height: 100%;
  width: 0%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--red-dim), var(--red));
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.dyno-row--stock .dyno-row__fill {
  background: linear-gradient(90deg, #3a3a40, #57575f);
}

.dyno-row__value {
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: right;
  color: var(--white);
  white-space: nowrap;
}

/* ==========================================================================
   Why us
   ========================================================================== */
.why {
  padding: 88px 0;
  border-bottom: 1px solid var(--panel-border);
}

.why h2 {
  margin-bottom: 40px;
}

.why__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.why__item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
}

.why__item::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  background: var(--red);
  border-radius: 1px;
  transform: rotate(45deg);
}

.why__item p {
  color: var(--white);
  font-size: 15px;
}

/* ==========================================================================
   Services teaser / grid
   ========================================================================== */
.services-teaser {
  padding: 88px 0;
  border-bottom: 1px solid var(--panel-border);
}

.services-teaser__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
  flex-wrap: wrap;
}

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

.svc-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.svc-card:hover {
  border-color: var(--red-dim);
  transform: translateY(-3px);
}

.svc-card__index {
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 13px;
}

.svc-card h3 {
  font-size: 17px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--white);
}

.svc-card p {
  font-size: 14px;
  flex: 1;
}

.svc-card__price {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: 15px;
  border-top: 1px solid var(--panel-border);
  padding-top: 12px;
  margin-top: 4px;
}

/* Full services page cards (with description) */
.services-page .card-grid {
  grid-template-columns: repeat(2, 1fr);
}

.services-page .svc-card p {
  font-size: 15px;
}

.svc-disclaimer {
  margin-top: 32px;
  font-size: 13px;
  color: var(--grey-dim);
}

/* ==========================================================================
   About page
   ========================================================================== */
.about-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--panel-border);
}

.about-hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  max-width: 780px;
  margin-top: 14px;
}

.about-body {
  padding: 72px 0;
  border-bottom: 1px solid var(--panel-border);
}

.about-body__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
}

.about-body p {
  font-size: 16px;
  color: var(--grey);
  margin-bottom: 18px;
}

.equipment-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.equipment-list li {
  font-family: var(--font-body);
  font-size: 14px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--white);
  background: var(--panel);
  flex: 1 1 100%;
}

.approach {
  padding: 72px 0;
  border-bottom: 1px solid var(--panel-border);
}

.approach h2 {
  margin-bottom: 40px;
}

.approach__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.approach__steps li {
  counter-increment: step;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
}

.approach__steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 22px;
  display: block;
  margin-bottom: 10px;
}

.approach__steps p {
  font-size: 14px;
  color: var(--white);
}

/* ==========================================================================
   Contacts page
   ========================================================================== */
.contacts {
  padding: 72px 0 96px;
}

.contacts h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  margin-top: 14px;
}

.contacts__intro {
  max-width: 560px;
  margin-bottom: 48px;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-list li {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.contact-list__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.contact-list__value {
  font-size: 16px;
  color: var(--white);
  text-decoration: none;
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-form h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--red);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form__result {
  margin-top: 16px;
  font-size: 14px;
  color: var(--grey);
  display: none;
}

.contact-form__result.is-visible {
  display: block;
  color: var(--white);
}

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

.site-footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grey-dim);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .why__list {
    grid-template-columns: 1fr;
  }
  .card-grid,
  .services-page .card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-body__grid {
    grid-template-columns: 1fr;
  }
  .approach__steps {
    grid-template-columns: 1fr 1fr;
  }
  .contacts__grid {
    grid-template-columns: 1fr;
  }
  .dyno-row {
    grid-template-columns: 74px 1fr 100px;
    gap: 12px;
  }
}

@media (max-width: 680px) {
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--panel-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .nav-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .header-actions .btn--sm {
    display: none;
  }
  .card-grid,
  .services-page .card-grid {
    grid-template-columns: 1fr;
  }
  .approach__steps {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 64px 0 48px;
  }
}
