:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666;
  --red: #d10000;
  --accent: #ff6a00;
  --black: #000;
  --border: #e8e8e8;
  --shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
  padding-top: var(--header-h, 64px);
}

img,
video,
canvas {
  max-width: 100%;
  height: auto
}

:where(*) {
  min-width: 0
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #ff6a00 0%, #ff8c33 100%);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15)
}

.bar {
  --header-h: 64px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  min-height: var(--header-h)
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0
}

.logo-image {
  display: block;
  max-width: 180px;
  max-height: calc(var(--header-h, 64px) - 20px);
  width: auto;
  height: auto;
  object-fit: contain
}

.logo-mark {
  width: 28px;
  height: 28px;
  border: 2px solid var(--red);
  border-radius: 4px;
  position: relative
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--red)
}

.logo-text {
  font-weight: 800;
  letter-spacing: .5px
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  position: relative;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  will-change: transform;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.9);
  transform: scaleX(0);
  transform-origin: left;
  opacity: .85;
  transition: transform .35s cubic-bezier(.2, .9, .2, 1), opacity .35s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15)
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1)
}

.nav a:active {
  transform: translateY(-1px) scale(.985)
}

.nav a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(209, 0, 0, .22), 0 0 0 6px rgba(255, 106, 0, .15)
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px
}

.nav-toggle:focus-visible {
  outline: 2px solid #ddd
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  margin: 4px 0
}

@media (max-width:760px) {
  .nav-toggle {
    display: block
  }

  .logo-image {
    max-width: 140px
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0 8px;
    background: rgba(255, 106, 0, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
    max-height: 80vh;
    overflow: auto
  }

  .nav.open {
    display: flex
  }

  .nav a {
    padding: 12px;
    border-radius: 8px;
    color: #ffffff;
  }
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px
}

.section {
  padding: 96px 0;
  scroll-margin-top: 96px
}

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

.section.alt {
  background: #fafafa;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border)
}

.title {
  font-size: 46px;
  margin: 0 0 14px;
  line-height: 1.06;
  letter-spacing: -.5px
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 780px
}

.cta {
  display: flex;
  gap: 12px;
  margin-top: 22px
}

.h2 {
  font-size: 28px;
  margin: 0 0 16px
}

.text p {
  margin: 0 0 12px;
  color: #222
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr))
}

.cols {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .08)
}

.btn {
  display: inline-block;
  position: relative;
  background: linear-gradient(90deg, var(--red), var(--accent));
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font-weight: 800;
  letter-spacing: .2px;
  transition: transform .2s ease, box-shadow .25s ease, filter .3s;
  box-shadow: 0 10px 22px rgba(209, 0, 0, .18), 0 2px 0 rgba(0, 0, 0, .05) inset;
  transform-style: preserve-3d;
  will-change: transform
}

.btn::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  height: 60%;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .18), transparent 70%);
  filter: blur(6px);
  opacity: .7;
  transition: opacity .25s ease, transform .25s ease;
  transform: translateZ(-1px)
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .25) 0%, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 65%, rgba(255, 255, 255, .22) 100%);
  opacity: 0;
  pointer-events: none
}

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

.btn:hover::before {
  opacity: .9;
  transform: translateZ(-1px) translateY(2px)
}

.btn:hover::after {
  animation: sheen 1.1s ease
}

.btn:active {
  transform: translateY(-1px) scale(.985);
  box-shadow: 0 6px 16px rgba(209, 0, 0, .18), 0 1px 0 rgba(0, 0, 0, .06) inset
}

.btn.ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .06)
}

.btn.ghost::before {
  background: radial-gradient(closest-side, rgba(0, 0, 0, .12), transparent 70%)
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(209, 0, 0, .22), 0 0 0 6px rgba(255, 106, 0, .15)
}

@keyframes sheen {
  0% {
    opacity: 0;
    transform: translateX(-120%) translateY(-30%) rotate(18deg)
  }

  20% {
    opacity: .8
  }

  60% {
    opacity: .6
  }

  100% {
    opacity: 0;
    transform: translateX(120%) translateY(20%) rotate(18deg)
  }
}

/* Form */
.form {
  display: grid;
  gap: 12px;
  max-width: 820px
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px
}

input {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px
}

input:focus {
  outline: none;
  border-color: #ddd;
  box-shadow: 0 0 0 3px rgba(209, 0, 0, .1)
}

.form label {
  position: relative;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 8px;
  transition: border-color .25s ease, box-shadow .25s ease
}

.form label:focus-within {
  border-color: rgba(209, 0, 0, .22);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .05)
}

.form label input {
  background: #fff
}

.form .row {
  align-items: flex-end
}

/* Hero */
.hero {
  position: relative;
  --mx: 50%;
  --my: 30%;
  background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 30% at var(--mx) var(--my), rgba(209, 0, 0, 0.08), transparent 60%),
    radial-gradient(30% 22% at calc(var(--mx) + 20%) calc(var(--my) + 20%), rgba(255, 106, 0, 0.06), transparent 60%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.02), transparent 50%);
  pointer-events: none;
  transition: background-position .2s;
}

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

.hero-copy {
  padding-right: 10px
}

.video-wrap {
  display: flex
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: var(--shadow)
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    conic-gradient(from 0deg at 50% 50%, rgba(209, 0, 0, 0.06), rgba(255, 106, 0, 0.06), transparent 30% 100%);
  animation: spin 16s linear infinite;
  pointer-events: none
}

.video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .2), rgba(0, 0, 0, .35));
  cursor: pointer;
  transition: background .3s ease;
}

.video-placeholder:hover {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .3), rgba(0, 0, 0, .45));
}

.video-placeholder.hidden {
  display: none;
}

.video-placeholder .play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--red), var(--accent));
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(209, 0, 0, .25);
  transition: transform .3s ease, box-shadow .3s ease;
}

.video-placeholder:hover .play {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(209, 0, 0, .35);
}

.video-placeholder .play::after {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 6px
}

.video-placeholder .caption {
  opacity: .9
}

/* Animations (минималистичные) */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease
}

.in-view {
  opacity: 1;
  transform: none
}

.stagger .reveal:nth-child(1) {
  transition-delay: .02s
}

.stagger .reveal:nth-child(2) {
  transition-delay: .08s
}

.stagger .reveal:nth-child(3) {
  transition-delay: .14s
}

.stagger .reveal:nth-child(4) {
  transition-delay: .2s
}

.stagger .reveal:nth-child(5) {
  transition-delay: .26s
}

/* Footer */
.footer {
  padding: 20px 0;
  color: #333;
  border-top: 1px solid var(--border);
  background: #fff
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.domain {
  font-weight: 700;
  color: var(--red)
}

/* Catalog */
.catalog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start
}

.catalog-preview {
  position: sticky;
  top: calc(var(--header-h, 64px) + 20px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .3s ease
}

.catalog-preview.active {
  box-shadow: 0 12px 36px rgba(0, 0, 0, .1)
}

.catalog-preview-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f5f5f5 0%, #eee 100%);
  overflow: hidden
}

.catalog-preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #bbb;
  font-size: 14px
}

.catalog-preview-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .35s ease
}

.catalog-preview-info {
  padding: 16px 18px
}

.catalog-preview-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3
}

.catalog-preview-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5
}

/* Active summary state */
.catalog summary.selected {
  font-weight: 800;
  color: var(--red);
  background: linear-gradient(90deg, rgba(209, 0, 0, .06), rgba(255, 106, 0, .04));
  box-shadow: inset 3px 0 0 var(--red)
}

@media (max-width:760px) {
  .catalog-layout {
    grid-template-columns: 1fr
  }

  .catalog-preview {
    position: static;
    margin-top: 16px
  }
}

.catalog-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 14px
}

.catalog-search {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px
}

.catalog-actions {
  display: flex;
  gap: 8px
}

.catalog {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  box-shadow: var(--shadow)
}

.catalog details {
  padding: 6px 8px;
  border-radius: 10px
}

.catalog details[open]>summary {
  background: #fafafa
}

.catalog summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  position: relative
}

.catalog summary::-webkit-details-marker {
  display: none
}

.catalog summary::before {
  content: "▸";
  margin-right: 8px;
  display: inline-block;
  transform: rotate(0deg);
  transition: transform .2s ease
}

.catalog details[open]>summary::before {
  transform: rotate(90deg)
}

.catalog ul {
  margin: 8px 0 8px 24px;
  padding-left: 0
}

.catalog li {
  margin: 4px 0
}

.catalog .match {
  background: linear-gradient(90deg, rgba(209, 0, 0, .08), rgba(255, 106, 0, .08));
  border-radius: 6px;
  padding: 1px 3px
}

/* Map widget */
.map-wrap {
  margin-top: 24px
}

.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #f0f0f0
}

.map-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .04)
}

.map-caption a {
  font-weight: 600
}

@media (max-width:760px) {
  .map-frame {
    aspect-ratio: 4 / 3
  }
}

/* Headings underline accent */
.h2 {
  position: relative;
  display: inline-block
}

.h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 56%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--accent));
  border-radius: 2px;
  transition: width .3s ease
}

.h2:hover::after {
  width: 92%
}

/* Keyframes */
@keyframes spin {
  from {
    transform: rotate(0deg)
  }

  to {
    transform: rotate(360deg)
  }
}

@keyframes pulse {
  from {
    opacity: .6
  }

  to {
    opacity: 1
  }
}


/* Responsive tweaks */
@media (max-width:960px) {
  .hero-grid {
    grid-template-columns: 1fr
  }

  .hero-copy {
    padding-right: 0
  }
}

/* Links (unified) */
main a:not(.btn) {
  color: var(--red);
  text-decoration: none;
  position: relative;
  border-radius: 4px;
  background-image: linear-gradient(90deg, var(--red), var(--accent));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color .2s ease, background-size .35s cubic-bezier(.2, .9, .2, 1), transform .15s ease;
}

main a:not(.btn):hover {
  color: #b30000;
  background-size: 100% 2px
}

main a:not(.btn):active {
  transform: scale(.98)
}

/* Contacts layout polish */
#contacts .grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: start
}

#contacts .card h3 {
  margin-bottom: 8px
}

#contacts .card p {
  margin: 6px 0;
  color: #222
}