:root {
  color-scheme: dark;
  --bg: #070806;
  --bg-soft: #0d100c;
  --panel: #10140f;
  --panel-2: #151a14;
  --line: #2c352b;
  --line-bright: #8c6a35;
  --text: #f6f0e4;
  --muted: #b9b9ad;
  --soft: #d8d1c2;
  --accent: #d7a64f;
  --accent-2: #67c7a0;
  --plum: #3a2038;
  --danger: #ff8878;
  --shadow: rgba(0, 0, 0, .48);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 12%, rgba(103, 199, 160, .12), transparent 32rem),
    radial-gradient(circle at 4% 48%, rgba(215, 166, 79, .10), transparent 26rem),
    linear-gradient(180deg, #070806 0%, #0a0b09 46%, #080706 100%);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .014) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 78%);
  z-index: -1;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  max-width: 100vw;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 3vw, 52px);
  background: rgba(7, 8, 6, .86);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #150d06;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset;
}

.brand strong,
.footer-brand strong {
  display: block;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .02em;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
}

nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.language-switch {
  display: grid;
  grid-template-columns: repeat(2, 34px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
}

.lang-button,
.nav-login,
.button,
.dialog-close {
  border-radius: 0;
}

.lang-button {
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--text);
  color: #11140e;
}

.nav-login {
  min-height: 36px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.nav-login:hover {
  border-color: rgba(215, 166, 79, .58);
}

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% 50%;
  filter: saturate(1.02) contrast(1.04);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 5, .98) 0%, rgba(5, 6, 5, .9) 26%, rgba(5, 6, 5, .42) 54%, rgba(5, 6, 5, .08) 100%),
    linear-gradient(180deg, rgba(5, 6, 5, .12), rgba(5, 6, 5, .76));
}

.hero-copy {
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(22px, 5vw, 76px);
  padding: 78px 0 104px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #c5d8cf;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 7.6em;
  font-size: clamp(64px, 7.4vw, 126px);
  line-height: .88;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 78px);
  line-height: .94;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.lede {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--soft);
  font-size: clamp(20px, 1.75vw, 28px);
  line-height: 1.34;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  padding: 0 20px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #130d06;
}

.button.ghost {
  background: rgba(8, 11, 8, .56);
}

.button.small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.button:hover,
.nav-login:hover {
  transform: translateY(-1px);
}

.hero-note {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 28px;
  max-width: min(360px, calc(100% - 36px));
  border: 1px solid rgba(215, 166, 79, .38);
  background: rgba(10, 13, 10, .74);
  padding: 12px 16px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  backdrop-filter: blur(12px);
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  background: #0a0d0a;
}

.metric-band div {
  min-height: 92px;
  padding: 22px clamp(18px, 3vw, 42px);
  border-right: 1px solid rgba(255, 255, 255, .10);
}

.metric-band div:last-child {
  border-right: 0;
}

.metric-band strong {
  display: block;
  color: var(--text);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.metric-band span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.section,
.content-band {
  padding: clamp(74px, 8vw, 132px) clamp(18px, 4vw, 72px);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
  gap: clamp(34px, 5vw, 90px);
  align-items: start;
}

.two-column p,
.band-heading p,
.form-copy p,
.company-copy > p {
  max-width: 700px;
  color: var(--muted);
  font-size: 17px;
}

.cards,
.tech-grid,
.use-grid,
.process-grid,
.document-grid,
.company-pillars {
  display: grid;
  gap: 14px;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.use-grid article,
.tech-grid article,
.process-grid article,
.document-grid article,
.admin-card {
  border: 1px solid var(--line);
  background: rgba(18, 22, 17, .84);
}

.card {
  min-height: 206px;
  padding: 24px;
}

.model-card {
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.model-card:hover,
.model-card:focus {
  border-color: rgba(215, 166, 79, .72);
  background: rgba(27, 30, 22, .95);
  outline: 0;
  transform: translateY(-2px);
}

.card-code {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
}

.card p,
.use-grid p,
.tech-grid p,
.process-grid p,
.document-grid p,
.service-list p,
.faq-list p {
  color: var(--muted);
  font-size: 14px;
}

.card-link {
  display: inline-block;
  margin-top: 18px;
  color: #f2d796;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.content-band {
  background: rgba(255, 255, 255, .015);
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.band-muted {
  background:
    radial-gradient(circle at 86% 16%, rgba(58, 32, 56, .36), transparent 26rem),
    rgba(13, 16, 12, .9);
}

.band-heading {
  max-width: 940px;
  margin-bottom: 42px;
}

.use-grid,
.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.use-grid article,
.process-grid article,
.tech-grid article,
.document-grid article {
  min-height: 198px;
  padding: 24px;
}

.use-grid span,
.process-grid span,
.document-grid span,
.company-pillars span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--accent);
  font-weight: 950;
}

.configurator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: clamp(32px, 5vw, 76px);
  align-items: end;
}

.config-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: 12px;
  margin-top: 28px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0c0f0c;
  color: var(--text);
  padding: 13px 14px;
  outline: 0;
}

select {
  min-height: 48px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(215, 166, 79, .72);
}

.config-result {
  border: 1px solid rgba(215, 166, 79, .48);
  background:
    linear-gradient(135deg, rgba(215, 166, 79, .13), rgba(103, 199, 160, .06)),
    rgba(13, 17, 12, .92);
  padding: 30px;
  box-shadow: 0 24px 90px var(--shadow);
}

.config-result strong {
  display: block;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.config-result p {
  color: var(--muted);
}

.tech-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 42px;
}

.service-layout,
.company-layout,
.catalog-section,
.contact-section,
.admin-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
}

.service-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.service-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.service-list strong {
  color: var(--accent);
}

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

.company-mark {
  min-height: 360px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-bright);
  background:
    radial-gradient(circle at center, rgba(215, 166, 79, .24), transparent 17rem),
    linear-gradient(135deg, rgba(58, 32, 56, .34), rgba(10, 13, 10, .98));
}

.company-mark strong {
  font-size: clamp(38px, 5vw, 72px);
  letter-spacing: -.02em;
}

.company-pillars {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.company-pillars article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

details {
  border: 1px solid var(--line);
  background: rgba(14, 18, 13, .82);
  padding: 22px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.catalog-section {
  align-items: start;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
}

.request-form label:has(textarea),
.request-form button,
.form-status {
  grid-column: 1 / -1;
}

textarea {
  min-height: 126px;
  resize: vertical;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent-2);
  font-size: 14px;
}

.admin-card {
  padding: 24px;
}

.logged-in {
  display: none;
}

body[data-authenticated="true"] .logged-in {
  display: block;
}

body[data-authenticated="true"] .logged-out {
  display: none;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

address {
  border: 1px solid var(--line);
  background: rgba(14, 18, 13, .82);
  padding: 22px;
  font-style: normal;
}

address span,
address a {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(150px, .7fr));
  gap: 24px;
  padding: 42px clamp(18px, 4vw, 72px) 26px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  background: #070806;
}

.footer-brand p,
.footer-column a,
.footer-column address,
.footer-bottom {
  color: var(--muted);
  font-size: 13px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column a,
.footer-column button {
  justify-self: start;
}

.footer-column button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.footer-legal {
  display: flex;
  gap: 18px;
}

dialog {
  max-width: min(980px, calc(100vw - 28px));
  border: 1px solid var(--line-bright);
  background: #090b08;
  color: var(--text);
  padding: 0;
  box-shadow: 0 28px 120px rgba(0, 0, 0, .72);
}

dialog::backdrop {
  background: rgba(0, 0, 0, .74);
  backdrop-filter: blur(8px);
}

.model-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr);
  gap: 28px;
  padding: 28px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  cursor: pointer;
  z-index: 2;
}

.model-visual {
  min-height: 440px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 54%, rgba(215, 166, 79, .20), transparent 13rem),
    linear-gradient(160deg, rgba(58, 32, 56, .38), rgba(11, 15, 10, .98));
}

.model-visual::before,
.model-visual::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 14%;
  height: 18px;
  background: linear-gradient(90deg, #1c120c, #a87538 36%, #3a2112);
  border-radius: 999px;
  transform: rotate(-17deg);
  top: 45%;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .35);
}

.model-visual::after {
  left: 10%;
  right: 62%;
  top: 52%;
  height: 58px;
  background:
    repeating-linear-gradient(92deg, #2b170c 0 8px, #6b3e21 8px 12px, #100b07 12px 16px);
  clip-path: polygon(0 12%, 100% 0, 90% 100%, 0 78%);
}

.visual-ring {
  position: absolute;
  left: 38%;
  top: 40%;
  width: 96px;
  height: 42px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  transform: rotate(-17deg);
}

.visual-core,
.visual-base {
  position: absolute;
  border-radius: 50%;
}

.visual-core {
  left: 49%;
  top: 36%;
  width: 16px;
  height: 16px;
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent);
}

.visual-base {
  left: 38%;
  bottom: 18%;
  width: 148px;
  height: 28px;
  border: 1px solid rgba(215, 166, 79, .62);
  transform: perspective(190px) rotateX(60deg);
  background: rgba(215, 166, 79, .06);
}

.model-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}

.model-specs div {
  border: 1px solid var(--line);
  padding: 12px;
}

.model-specs dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.model-specs dd {
  margin: 5px 0 0;
  font-weight: 900;
}

.model-price {
  border-left: 2px solid var(--accent);
  margin: 18px 0;
  padding-left: 16px;
}

.model-price span,
.model-price small {
  display: block;
  color: var(--muted);
}

.model-price strong {
  display: block;
  font-size: 30px;
}

.login-panel {
  width: min(440px, calc(100vw - 28px));
  position: relative;
  display: grid;
  gap: 16px;
  padding: 32px;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .two-column,
  .configurator,
  .service-layout,
  .company-layout,
  .catalog-section,
  .contact-section,
  .admin-section {
    grid-template-columns: 1fr;
  }

  .cards,
  .tech-grid,
  .use-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: clamp(60px, 10vw, 108px);
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 60px;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 18px;
  }

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-login {
    min-height: 34px;
    max-width: 100%;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero {
    min-height: 760px;
    align-items: end;
    width: 100%;
    max-width: 100vw;
  }

  .hero-image img {
    object-position: 60% 36%;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 6, 5, .14) 0%, rgba(5, 6, 5, .72) 42%, rgba(5, 6, 5, .96) 100%),
      linear-gradient(90deg, rgba(5, 6, 5, .88), rgba(5, 6, 5, .16));
  }

  .hero-copy {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 300px 18px 96px;
  }

  h1 {
    max-width: calc(100vw - 36px);
    font-size: clamp(44px, 13vw, 64px);
    line-height: .92;
  }

  .lede {
    width: min(34rem, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
    font-size: 18px;
  }

  .hero-note {
    right: 18px;
    left: 18px;
    bottom: 16px;
  }

  .metric-band,
  .cards,
  .tech-grid,
  .use-grid,
  .process-grid,
  .document-grid,
  .company-pillars,
  .faq-list,
  .contact-offices,
  .site-footer,
  .request-form,
  .config-controls {
    grid-template-columns: 1fr;
  }

  .metric-band div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
  }

  .section,
  .content-band {
    padding: 62px 18px;
  }

  .model-panel {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .model-visual {
    min-height: 280px;
  }

  .model-specs {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 520px) {
  .hero-copy {
    max-width: 390px;
  }

  h1 {
    font-size: clamp(42px, 11.5vw, 56px);
  }

  .lede {
    width: 100%;
    max-width: 330px;
    font-size: 17px;
  }

  .hero-actions {
    max-width: 330px;
  }
}
