/* Auto Style — mockup design */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --accent: #e91d8f;
  --accent-red: #ff224d;
  --accent-hover: #f02da6;
  --accent-glow: rgba(233, 29, 143, 0.35);
  --text: #ffffff;
  --text-secondary: #b0b0b8;
  --text-muted: #6a6a75;
  --border: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(233, 29, 143, 0.45);
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --header-h: 80px;
  --font: "Manrope", system-ui, sans-serif;
  --font-hero: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Russo One", sans-serif;
  --hero-title: #fafafa;
  --transition: 0.25s ease;
  --container: 1280px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; }

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding: 4.5rem 0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.8vw, 1.875rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-header { margin-bottom: 2.5rem; }
.section-header--center { text-align: center; }
.section-header__line {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin-top: 0.875rem;
  border-radius: 2px;
}
.section-header--center .section-header__line { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8125rem 1.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent) 100%);
  color: #fff;
  border: none;
}
.btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}
.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text);
  background: transparent;
}
.btn--sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid var(--border);
}
.header.is-scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: var(--shadow);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 2rem;
}
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header__logo img {
  height: 22px;
  width: auto;
  max-width: min(200px, 40vw);
  object-fit: contain;
}
.header__nav { flex: 1; display: flex; justify-content: center; }
.header__menu {
  display: flex;
  gap: 2.25rem;
}
.header__menu a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.header__menu a:hover { color: var(--accent); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.header__social { display: flex; gap: 0.5rem; }
.header__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.header__social a:hover { color: var(--accent); }
.header__social svg { width: 18px; height: 18px; fill: currentColor; }
.header__cta { display: none; }

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.header__burger span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}
.header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero — performance: one bg layer, no zoom animation */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-height: 900px;
  contain: layout style paint;
  isolation: isolate;
}
.hero__viewport {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: none;
  pointer-events: none;
}
.hero__bg.is-active {
  display: block;
  z-index: 1;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.15) 70%,
    transparent 100%
  );
}
.hero__panel {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  /* левый край = как у логотипа в шапке (граница container) */
  padding:
    var(--header-h)
    2rem
    3rem
    max(1.25rem, calc((100vw - min(100vw - 2.5rem, var(--container))) / 2));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.hero__panel.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  max-width: min(640px, 52vw);
  margin: 0;
  flex-shrink: 0;
}
.hero__eyebrow {
  font-family: var(--font-hero);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.125rem;
}
.hero__title {
  font-family: var(--font-hero);
  font-size: clamp(1.625rem, 2.5vw + 0.5rem, 2.25rem);
  font-weight: 900;
  font-style: normal;
  line-height: 1.1667;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--hero-title);
  margin: 0 0 1.5rem;
}
.hero__text {
  font-family: var(--font-hero);
  font-size: clamp(1rem, 1.1vw + 0.5rem, 1.25rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(250, 250, 250, 0.88);
  margin: 0 0 2.25rem;
  max-width: 560px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.hero__arrow--prev { left: 1.5rem; }
.hero__arrow--next { right: 1.5rem; }
.hero__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.hero__arrow svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}
.hero__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  padding: 0;
  transition: var(--transition);
}
.hero__dots button[aria-selected="true"] {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* About — sidebar layout */
.about {
  background: var(--bg);
  padding-top: 3rem;
}
.about__layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: 3rem;
  align-items: start;
}
.about__sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.about__nav-link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
  transition: var(--transition);
}
.about__nav-link:hover {
  color: var(--accent);
  padding-left: 0.25rem;
}
.about__nav-link svg {
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 0.15rem;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  opacity: 0;
  transition: opacity var(--transition);
}
.about__nav-link:hover svg { opacity: 1; }

.about__main { min-width: 0; }
.headlines {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.headlines__item {
  flex: 1 1 0;
  min-width: min(100%, 200px);
  margin: 0;
  padding: 0 1.25rem;
  font-family: var(--font-hero);
  font-size: clamp(0.8125rem, 1.35vw, 1.0625rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--hero-title);
  text-align: center;
}
.headlines__item:first-child {
  padding-left: 0;
  text-align: left;
  color: var(--accent);
}
.headlines__item:last-child {
  padding-right: 0;
  text-align: right;
}
.headlines__sep {
  width: 1px;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 2.5rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--border) 20%,
    var(--border) 80%,
    transparent 100%
  );
}

.about__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.about__text {
  color: var(--text-secondary);
  margin: 0 0 2rem;
  font-size: 0.9375rem;
  max-width: 720px;
}
/* Services — 5×2 grid */
.services {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card__image-wrap {
  aspect-ratio: 1;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.service-card__image {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.service-card:hover .service-card__image { transform: scale(1.06); }
.service-card__body {
  padding: 1rem 1.125rem 1.25rem;
  flex: 1;
}
.service-card__title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
  line-height: 1.3;
}
.service-card__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

/* Portfolio */
.portfolio { background: var(--bg); }
.portfolio__strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.portfolio__thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
}
.portfolio__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio__thumb:hover img { transform: scale(1.05); }
.portfolio__widget .elfsight-app { min-height: 120px; }

/* Newsletter */
.newsletter {
  position: relative;
  background: var(--bg-elevated);
  overflow: hidden;
  border-block: 1px solid var(--border);
}
.newsletter__visual {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-elevated) 0%, rgba(17, 17, 17, 0.85) 50%, rgba(17, 17, 17, 0.5) 100%);
  pointer-events: none;
}
.newsletter__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 0;
}
.newsletter__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.625rem;
  max-width: 480px;
}
.newsletter__text {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.9375rem;
  max-width: 420px;
}
.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  min-width: min(100%, 380px);
}
.newsletter__form input {
  flex: 1;
  min-width: 200px;
  padding: 0.875rem 1.125rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
}
.newsletter__form input:focus {
  border-color: var(--accent);
}
.newsletter__form input::placeholder { color: var(--text-muted); }
.newsletter__msg {
  width: 100%;
  font-size: 0.8125rem;
  margin: 0;
}
.newsletter__msg--success { color: #4ade80; }
.newsletter__msg--error { color: #f87171; }

/* Reviews */
.reviews {
  background: var(--bg);
  padding-top: 3rem;
}
.reviews__widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.reviews__widget .elfsight-app { min-height: 200px; }

/* Contacts */
.contacts { background: var(--bg-elevated); }
.contacts__header {
  text-align: center;
  margin-bottom: 3rem;
}
.contacts__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.contacts__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.contacts__intro {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.9375rem;
}
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.contact-card {
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}
.contact-card:hover {
  border-color: var(--border-accent);
}
.contact-card__icon {
  width: 52px; height: 52px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-red), var(--accent));
  border-radius: 50%;
}
.contact-card__icon svg { width: 22px; height: 22px; fill: #fff; }
.contact-card__title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.contact-card__value {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.contact-card__value a:hover { color: var(--accent); }

.contacts__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 360px;
}
.contacts__map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  filter: grayscale(25%) contrast(1.05) brightness(0.9);
}

/* Footer */
.footer {
  padding: 1.25rem 0;
  background: #050505;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer__phone { display: none; }

/* Responsive */
@media (max-width: 1200px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio__strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .about__layout { grid-template-columns: 1fr; }
  .about__sidebar { position: static; }
  .about__nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1rem;
  }
  .newsletter__inner { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  .header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .header__menu {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }
  .header__menu a { display: block; padding: 0.875rem; }
  .header__burger { display: flex; }

  .section { padding: 3rem 0; }
  .hero__arrow { display: none; }
  .hero__panel {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .hero__content { max-width: 100%; }
  .hero__title {
    font-size: 1.625rem;
    line-height: 1.2;
  }
  .hero__text {
    font-size: 1.0625rem;
  }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio__strip { grid-template-columns: repeat(2, 1fr); }
  .headlines {
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
  }
  .headlines__sep { display: none; }
  .headlines__item {
    padding: 0;
    text-align: left !important;
    min-width: 100%;
  }
  .about__nav ul { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
  .portfolio__strip { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

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