/* 3d-modelling.ru — Абрис. Tokens + foundation. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --ink: #000000;
  --band: #000000;
  --band-ink: #ffffff;
  --accent: #4f5f9a;
  --accent-ink: #ffffff;
  --link-soft: #a8add0;
  --table-head: #e8f0f8;
  --muted: #333333;
  --max: 1120px;
  --wide: 1400px;
  --font: "Onest", "Manrope", "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --header-h: 92px;
  --radius-btn: 0;
  --radius-pill: 999px;
  --gap: 1.25rem;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 21px;
  line-height: 1.48;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10000;
}

.skip:focus {
  left: 0;
}

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

.wrap--wide {
  margin-inline: auto;
  width: min(100% - 2rem, var(--wide));
}

/* Typography */
.page-title {
  margin: 1.5rem auto 1rem;
  text-align: center;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0.75rem 0 0.5rem;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 1.5rem;
}

.prose {
  max-width: 52rem;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.05rem;
}

.prose p {
  margin: 0 0 1rem;
}

.band-dark {
  background: var(--band);
  color: var(--band-ink);
}

.band-light {
  background: var(--bg);
  color: var(--ink);
}

.section {
  padding: 2.5rem 0;
}

.section--tight {
  padding: 1.5rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none !important;
  font-family: inherit;
  line-height: 1.2;
  transition: filter 0.15s ease, background 0.15s ease;
}

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

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  filter: brightness(0.92);
  text-decoration: none;
}

.link-more {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.35rem;
  color: var(--link-soft);
  font-size: 0.95rem;
}

.band-light .link-more {
  color: var(--accent);
}

.pill {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none !important;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Header */
.site-header {
  background: var(--band);
  color: var(--band-ink);
  position: relative;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  width: min(100% - 1.5rem, 1600px);
  margin-inline: auto;
  padding: 0.5rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  text-decoration: none !important;
  color: #fff;
}

.logo img,
.logo svg {
  width: 48px;
  height: 48px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo__tag {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  max-width: 11rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 1.1rem;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav > li {
  position: relative;
}

.nav a {
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.35rem 0;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav__caret::after {
  content: "";
  display: inline-block;
  margin-left: 0.35rem;
  border: 4px solid transparent;
  border-top-color: currentColor;
  vertical-align: -2px;
}

.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14rem;
  background: #111;
  border: 1px solid #333;
  list-style: none;
  padding: 0.5rem 0;
  z-index: 60;
}

.nav > li:hover > .nav__dropdown,
.nav > li:focus-within > .nav__dropdown {
  display: block;
}

.nav__dropdown a {
  display: block;
  padding: 0.45rem 1rem;
  white-space: normal;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.header-contacts a {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.header-contacts a:hover {
  text-decoration: underline;
}

.icon-link {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 2px;
  font-size: 0.7rem;
}

.icon-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.mobile-nav {
  background: #0a0a0a;
  border-top: 1px solid #222;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav a {
  display: block;
  color: #fff;
  padding: 0.55rem 0;
  border-bottom: 1px solid #222;
  text-decoration: none;
}

.mobile-nav .sub {
  padding-left: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 1100px) {
  .nav,
  .header-contacts {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .site-header__inner {
    min-height: 72px;
  }
}

/* Hero slider */
.slider {
  position: relative;
  background: #000;
  color: #fff;
  overflow: hidden;
  min-height: 560px;
}

.slider__track {
  position: relative;
  min-height: 560px;
}

.slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.slider__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.slider__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.slider__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 560px;
  padding: 2rem 1rem;
  gap: 0.85rem;
}

.slider__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.slider__title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  font-weight: 700;
  max-width: 18ch;
  line-height: 1.15;
}

.slider__nav {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.slider__btn {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  opacity: 0.8;
}

.slider__btn:hover,
.slider__btn:focus-visible {
  opacity: 1;
}

.slider__btn--prev {
  left: 0.5rem;
}

.slider__btn--next {
  right: 0.5rem;
}

.slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.slider__dot.is-active {
  background: #fff;
}

@media (max-width: 640px) {
  .slider,
  .slider__track,
  .slider__copy {
    min-height: 420px;
  }
}

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.25rem;
  padding: 1rem 0 2rem;
}

.card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card__img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: #111;
}

.card h3 {
  color: #fff;
  margin-top: 1rem;
}

.card__eyebrow {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0 0 0.5rem;
}

.card__text {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0 0 1rem;
  max-width: 28ch;
  opacity: 0.92;
}

.card .btn {
  margin-top: auto;
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Offers + industries */
.offer-grid,
.offer-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.offer-grid span {
  display: block;
  width: 100%;
  text-align: center;
}

.industry-grid {
  display: grid;
  gap: 1.75rem 1.25rem;
  list-style: none;
  text-align: center;
}

.offer-grid {
  grid-template-columns: repeat(3, 1fr);
  padding: 1rem 0 2rem;
}

.industry-grid {
  grid-template-columns: repeat(4, 1fr);
  padding: 0.5rem 0 2rem;
}

.offer-grid svg,
.industry-grid .ind-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.75rem;
}

.industry-grid .ind-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 1px solid #000;
  border-radius: 50%;
  margin-inline: auto;
  margin-bottom: 0.65rem;
}

.industry-grid .ind-icon svg {
  width: 40px;
  height: 40px;
}

.offer-grid span,
.industry-grid span {
  font-size: 1rem;
  font-weight: 500;
}

@media (max-width: 960px) {
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 480px) {
  .offer-grid,
  .industry-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1.5rem auto;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #111;
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  border: 1px solid #ddd;
  padding: 0.65rem 0.85rem;
  text-align: left;
}

th {
  background: var(--table-head);
  font-weight: 600;
}

table.is-striped tbody tr:nth-child(even) {
  background: #f7f7f7;
}

.terms {
  max-width: 40rem;
  margin: 1.5rem auto;
  padding-left: 1.25rem;
  font-size: 1rem;
}

.terms li {
  margin-bottom: 0.5rem;
}

.contact-closer {
  max-width: 40rem;
  margin: 2rem auto;
  text-align: center;
  font-size: 1rem;
}

.contact-closer a {
  color: var(--accent);
}

.make-list {
  columns: 2;
  max-width: 40rem;
  margin: 1rem auto 2rem;
  padding-left: 1.25rem;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .make-list {
    columns: 1;
  }
}

/* Footer */
.site-footer {
  background: var(--band);
  color: var(--band-ink);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 2rem;
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.footer-grid p {
  margin: 0 0 1rem;
  line-height: 1.45;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.45rem;
}

.footer-grid a {
  color: #fff;
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-bar {
  background: #fff;
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.footer-bar a {
  color: #000;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Forms */
.form {
  max-width: 32rem;
  margin: 1.5rem auto;
  display: grid;
  gap: 0.85rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.form input,
.form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ccc;
}

.form input:focus-visible,
.form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.placeholder-block {
  border: 1px dashed #666;
  padding: 1rem;
  margin: 0.5rem 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

.anim-fade {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Motion — match reference hierarchy: slider fade, light hover, soft reveals */
.card {
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
  display: block;
  padding-top: 0;
  padding-bottom: 0;
}

.mobile-nav.is-open {
  max-height: 80vh;
  opacity: 1;
  padding: 1rem 1.25rem 1.5rem;
  overflow: auto;
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mobile-nav {
    transition: none;
  }
}
