:root {
  --bg: #040409;
  --text: #f1f2ec;
  --muted: #b4bbb8;
  --line: #dddfd1;
  --lime-1: #b7ff2a;
  --lime-2: #e3ff67;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-width: 320px; min-height: 100%; background: var(--bg); }

body { color: var(--text); font-family: Inter, Arial, sans-serif; }

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.page {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

.hero-art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-vector { position: absolute; inset: 10.33% 0 auto; width: 100%; min-height: 89.67%; }
.hero-image {
  position: absolute;
  top: -14.7%;
  left: -.63%;
  width: 111.12%;
  min-width: 1440px;
  height: 117.3%;
  object-fit: cover;
  object-position: bottom;
  filter: blur(17px);
  transform: scale(1.03);
}

.header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 9.16%);
  margin: 29px auto 0;
}

.header-left, .contacts { display: flex; align-items: center; gap: 25px; }
.logo { display: block; width: 171px; height: auto; }
.plain-button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 14px; }
.plain-button:hover, .plain-button:focus-visible { color: #fff; }
.contacts { justify-content: flex-end; }
.contact-item { display: flex; flex-direction: column; gap: 8px; }
.contact-item span { color: var(--muted); font-size: 10px; font-weight: 500; }
.contact-item a { color: #fff; font-size: 15px; font-weight: 700; }
.contact-item a:hover { color: var(--lime-2); }
.max-link { display: flex; border-radius: 50%; }
.max-link:focus-visible { outline: 2px solid var(--lime-1); outline-offset: 3px; }
.max-icon { width: 40px; height: 40px; }

.content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 9.16%);
  max-width: 1310px;
  margin: 106px auto 0;
}

.intro { align-self: flex-start; width: 597px; padding-top: 43px; }
.kicker { margin: 0 0 22px; color: var(--muted); font-size: 14px; font-weight: 400; }
h1 { margin: 0 0 17px; color: var(--text); font-size: 50px; font-weight: 600; line-height: 1.22; letter-spacing: -.7px; }
.intro:focus-within .kicker, .intro:focus-within h1 { display: none; }
.intro:focus-within .catalog-search { transform: translateY(-35px); }

.catalog-search { position: relative; width: 488px; }
.search-tabs { display: flex; align-items: center; gap: 15px; }
.search-tab { border: 0; padding: 7px 0; background: transparent; color: var(--muted); font-size: 14px; white-space: nowrap; }
.search-tab.active { padding-inline: 16px; border-radius: 4px 4px 0 0; background: #fff; color: #000; }
.search-input { width: 100%; height: 52px; padding: 16px; border: 1px solid var(--line); border-radius: 0 4px 4px 4px; outline: 0; background: rgba(4,4,9,.18); color: #fff; font-size: 14px; }
.search-input::placeholder { color: #6f7774; opacity: 1; }
.search-input::-webkit-search-cancel-button { opacity: 1; filter: invert(1) brightness(2); cursor: pointer; }
.search-input:focus { border-color: var(--lime-1); box-shadow: 0 0 0 1px var(--lime-1); }
.search-results { position: absolute; top: 88px; left: 17px; z-index: 4; width: min(460px, calc(100% - 17px)); max-height: 360px; overflow-y: auto; padding: 18px 10px 18px 0; color: #f2f2f2; scrollbar-width: thin; scrollbar-color: #f2f2f2 transparent; }
.search-results::-webkit-scrollbar { width: 6px; }
.search-results::-webkit-scrollbar-track { background: transparent; }
.search-results::-webkit-scrollbar-thumb { border-radius: 999px; background: #f2f2f2; }
.result-item { display: block; width: 100%; border: 0; padding: 5px 0; overflow: hidden; background: transparent; color: inherit; text-align: left; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 20px; }
.result-item:hover, .result-item:focus-visible { color: var(--lime-2); outline: none; }
.result-stock { margin-left: 7px; color: var(--lime-2); font-size: 12px; }
.result-empty { margin: 0; padding: 5px 0; color: var(--muted); font-size: 14px; }

.lead-card { width: 476px; min-height: 428px; padding: 30px 24px; border-radius: 6px; background: #fff; color: #000; backdrop-filter: blur(75px); }
.lead-card h2 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.18; letter-spacing: -.25px; }
.lead-subtitle { margin: 14px 0 21px; font-size: 14px; }
#lead-form { display: flex; flex-direction: column; gap: 13px; }
#lead-form input:not([type="hidden"]):not(.honeypot) { width: 100%; height: 52px; padding: 16px; border: 1px solid var(--line); border-radius: 4px; outline: 0; background: #fff; color: #000; font-size: 14px; }
#lead-form input:focus { border-color: #8dbd2e; box-shadow: 0 0 0 1px #8dbd2e; }
.submit-button, .copy-all { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 53px; padding: 12px 16px; border: 0; border-radius: 4px; background: linear-gradient(90deg, var(--lime-1), var(--lime-2)); color: #0a0c0c; font-size: 14px; font-weight: 700; }
.submit-button:hover, .copy-all:hover { filter: brightness(1.08); }
.submit-button:disabled { cursor: wait; filter: grayscale(.5); }
.submit-button img { width: 29px; height: 29px; }
.consent-control { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: start; color: #626262; font-size: 11px; line-height: 1.35; }
.consent-box { position: relative; display: block; width: 20px !important; height: 20px !important; margin: 0; padding: 0 !important; border: 1px solid #9ca09d !important; border-radius: 3px !important; background: #fff; appearance: none; -webkit-appearance: none; cursor: pointer; }
.consent-box:focus-visible { outline: 2px solid #8dbd2e; outline-offset: 2px; }
.consent-box:checked { border-color: #8dbd2e !important; background: var(--lime-1); }
.consent-box:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #10120e; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.consent-control.invalid .consent-box { border-color: #b00020; box-shadow: 0 0 0 1px #b00020; }
.legal-trigger { padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; line-height: inherit; text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.legal-trigger:hover, .legal-trigger:focus-visible { color: #466a00; outline: none; }
.form-status { min-height: 0; margin: -4px 0 -2px; color: #a00000; font-size: 12px; }
.form-status.success { color: #407000; }
.honeypot { position: absolute !important; left: -10000px !important; opacity: 0 !important; }

.requisites-dialog, .legal-dialog { width: min(660px, calc(100% - 32px)); padding: 0; border: 1px solid rgba(183,255,42,.35); border-radius: 8px; background: #0c0d10; color: #f1f2ec; box-shadow: 0 30px 100px rgba(0,0,0,.8); }
.legal-dialog { width: min(780px, calc(100% - 32px)); max-height: min(86svh, 840px); }
.requisites-dialog::backdrop, .legal-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 28px 28px 22px; border-bottom: 1px solid #2a2d2c; }
.modal-kicker { margin: 0 0 7px; color: var(--lime-1); font-size: 11px; font-weight: 600; }
.modal-head h2 { margin: 0; font-size: 28px; }
.close-button { width: 36px; height: 36px; border: 1px solid #3e4241; border-radius: 50%; background: transparent; color: #fff; font-size: 27px; line-height: 28px; }
.requisite-list { padding: 4px 28px; }
.requisite-row { display: flex; align-items: center; gap: 20px; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid #2a2d2c; }
.requisite-row div { display: flex; flex-direction: column; gap: 6px; }
.requisite-row span { color: var(--muted); font-size: 10px; font-weight: 500; }
.requisite-row strong { font-size: 15px; line-height: 1.4; }
.copy-button { flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid #525755; border-radius: 4px; background: transparent; position: relative; }
.copy-button::before, .copy-button::after { content: ""; position: absolute; width: 12px; height: 14px; border: 1.5px solid #fff; border-radius: 2px; }
.copy-button::before { left: 9px; top: 8px; }
.copy-button::after { left: 13px; top: 12px; background: #0c0d10; }
.copy-button.copied { border-color: var(--lime-1); }
.copy-button.copied::before, .copy-button.copied::after { border-color: var(--lime-1); }
.copy-all { width: calc(100% - 56px); margin: 20px 28px 28px; justify-content: center; }

.legal-tabs { display: flex; gap: 8px; padding: 18px 28px 0; }
.legal-tab { padding: 10px 14px; border: 1px solid #363b39; border-radius: 4px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 600; }
.legal-tab.active { border-color: var(--lime-1); background: var(--lime-1); color: #10120e; }
.legal-scroll { max-height: calc(min(86svh, 840px) - 154px); overflow-y: auto; padding: 22px 28px 30px; scrollbar-width: thin; scrollbar-color: var(--text) transparent; }
.legal-scroll::-webkit-scrollbar { width: 6px; }
.legal-scroll::-webkit-scrollbar-track { background: transparent; }
.legal-scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--text); }
.legal-document h3 { margin: 0 0 20px; color: var(--lime-1); font-size: 22px; }
.legal-document p { margin: 0 0 14px; color: #d9ddda; font-size: 13px; line-height: 1.62; }
.legal-document strong { color: #fff; }
.legal-document a { color: var(--lime-2); text-decoration: underline; text-underline-offset: 3px; }

.cookie-banner { position: fixed; right: 24px; bottom: 24px; z-index: 20; width: min(520px, calc(100% - 32px)); padding: 20px; border: 1px solid rgba(183,255,42,.45); border-radius: 8px; background: rgba(12,13,16,.97); color: var(--text); box-shadow: 0 20px 70px rgba(0,0,0,.72); backdrop-filter: blur(18px); }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { margin: 0 0 9px; color: var(--lime-1); font-size: 12px; letter-spacing: .04em; }
.cookie-banner p { margin: 0; color: #d2d7d4; font-size: 12px; line-height: 1.5; }
.cookie-banner .legal-trigger { color: var(--lime-2); }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.cookie-primary, .cookie-secondary { min-height: 40px; padding: 10px 14px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.cookie-primary { border: 0; background: var(--lime-1); color: #10120e; }
.cookie-secondary { border: 1px solid #555c58; background: transparent; color: #fff; }
.cookie-primary:hover, .cookie-secondary:hover { filter: brightness(1.12); }

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

@media (max-width: 1050px) {
  .page { min-height: 100svh; overflow-y: auto; }
  .header, .content { width: calc(100% - 48px); }
  .contact-item:first-child { display: none; }
  .content { gap: 32px; margin-top: 70px; }
  .intro { width: 52%; }
  h1 { font-size: clamp(36px, 5vw, 50px); }
  .catalog-search { width: 100%; }
  .lead-card { width: 44%; }
}

@media (max-width: 760px) {
  .page { padding-bottom: 28px; }
  .hero-image { top: 0; left: -100%; width: 260%; min-width: 0; height: 100%; opacity: .72; }
  .header { flex-wrap: wrap; width: calc(100% - 32px); margin-top: 18px; }
  .logo { width: 126px; }
  .header-left { gap: 14px; }
  .plain-button { font-size: 11px; }
  .contacts { width: 100%; margin-top: 16px; gap: 8px; justify-content: space-between; }
  .contact-item, .contact-item:first-child { display: flex; gap: 5px; }
  .contact-item span { font-size: 8px; }
  .contact-item a { font-size: clamp(11px, 3.25vw, 13px); }
  .max-icon { width: 32px; height: 32px; }
  .content { flex-direction: column; align-items: stretch; width: calc(100% - 32px); margin-top: 32px; }
  .intro { width: 100%; padding-top: 0; }
  .kicker { margin-bottom: 14px; font-size: 12px; }
  h1 { margin-bottom: 20px; font-size: clamp(32px, 10.2vw, 46px); line-height: 1.08; }
  h1 br { display: none; }
  .search-tabs { gap: 10px; }
  .search-tab { font-size: 12px; }
  .search-tab.active { padding-inline: 11px; }
  .search-input { font-size: 16px; }
  .intro:focus-within .catalog-search { transform: translateY(-25px); }
  .search-results { position: relative; top: auto; left: 12px; max-height: 260px; padding: 10px 10px 10px 0; }
  .lead-card { width: 100%; min-height: 0; margin-top: 26px; padding: 24px 20px; }
  .lead-card h2 { font-size: 24px; }
  .address-row { align-items: flex-start; }
  .modal-head { padding: 22px 20px 18px; }
  .modal-head h2 { font-size: 22px; }
  .legal-tabs { padding: 14px 20px 0; }
  .legal-scroll { padding: 18px 20px 24px; }
  .cookie-banner { right: 16px; bottom: 16px; }
  .cookie-actions { flex-direction: column-reverse; }
  .cookie-primary, .cookie-secondary { width: 100%; }
}

@media (max-height: 700px) and (min-width: 761px) {
  .header { margin-top: 18px; }
  .content { margin-top: 50px; }
  .intro { padding-top: 20px; }
  h1 { font-size: 44px; }
}
