/* =========================================================
   ARTYOM
   ========================================================= */

:root {
  --bg:    #000;
  --fg:    #fff;
  --dim:   #8a8a8a;
  --dimmer:#5a5a5a;
  --line:  #1c1c1c;
  --line2: #2e2e2e;

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }

p { margin: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- brand / logo (top middle, scrolls with the page) ---------- */

.brand {
  padding: 44px 0 0;
  text-align: center;
}

.brand .logo {
  height: 30px;
  width: auto;
  margin: 0 auto;
}

/* ---------- shared type ---------- */

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.lede {
  color: var(--dim);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 60ch;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid var(--fg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn:hover { background: var(--fg); color: var(--bg); }

.btn[disabled] { opacity: 0.4; cursor: default; }
.btn[disabled]:hover { background: transparent; color: var(--fg); }

.btn-quiet {
  border-color: var(--line2);
  color: var(--dim);
}

.btn-quiet:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* ---------- hero ---------- */

.hero {
  padding: 130px 0 120px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  line-height: 1.03;
  max-width: 16ch;
}

.hero .lede { margin-top: 28px; }

/* ---------- section frame ---------- */

.section { padding: 90px 0; border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 44px;
}

/* ---------- products ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product {
  display: block;
  background: var(--bg);
  padding: 34px 34px 30px;
  transition: background 0.2s ease;
}

.product:hover { background: #070707; }

.product .media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  margin-bottom: 32px;
}

.product .media svg { height: 100%; width: auto; }

.product h3 {
  font-size: 1.75rem;
  letter-spacing: 0.02em;
}

.product .kind { margin-top: 6px; }

.product p {
  margin-top: 14px;
  color: var(--dim);
  max-width: 52ch;
}

.product .more {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line2);
  padding-bottom: 4px;
}

.product:hover .more { border-color: var(--fg); }

/* ---------- product page ---------- */

.p-hero { padding: 90px 0 40px; }

.p-hero h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: 14px;
}

.p-hero .lede { margin-top: 24px; }

.p-hero .actions { margin-top: 38px; }

.p-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 80px;
}

.p-media svg { width: min(100%, 860px); height: auto; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat { background: var(--bg); padding: 28px 24px; }

.stat .num {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat .num small { font-size: 0.9rem; color: var(--dim); margin-left: 2px; }

.stat .lab { margin-top: 10px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  font-weight: 400;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  color: var(--dim);
  width: 40%;
  padding-right: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spec-note { margin-top: 22px; color: var(--dimmer); font-size: 0.8125rem; }

/* ---------- form ---------- */

.form-wrap { max-width: 720px; }

.field { margin-bottom: 22px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

label {
  display: block;
  margin-bottom: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  background: #060606;
  border: 1px solid var(--line2);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.9375rem;
  border-radius: 0;
  transition: border-color 0.16s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--fg);
}

input::placeholder, textarea::placeholder { color: #4a4a4a; }

textarea { min-height: 150px; resize: vertical; line-height: 1.55; }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%),
                    linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

select option { background: #060606; color: var(--fg); }

.form-foot {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.form-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dimmer);
}

.form-status.ok  { color: var(--fg); }
.form-status.err { color: #d05a4a; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 70px 0 44px;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}

.foot-mail {
  display: inline-block;
  margin-top: 12px;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line2);
  padding-bottom: 6px;
}

.foot-mail:hover { border-color: var(--fg); }

.foot-bot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 64px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dimmer);
}

/* ---------- entrance ---------- */

.fade {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.fade.d1 { animation-delay: 0.05s; }
.fade.d2 { animation-delay: 0.15s; }
.fade.d3 { animation-delay: 0.25s; }

@keyframes fade-up {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fade { animation: none; opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 90px 0 80px; }
  .section { padding: 70px 0; }
  .product .media { height: 230px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .brand { padding-top: 32px; }
  .brand .logo { height: 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .section-head { flex-direction: column; gap: 8px; }
  .foot-bot { flex-direction: column; gap: 8px; }
}
