:root {
  --ink: #171b18;
  --muted: #59635e;
  --paper: #f5f7f2;
  --surface: #ffffff;
  --line: #d9dfd7;
  --forest: #0d5f4f;
  --steel: #32424a;
  --signal: #c9362c;
  --sun: #f2c14e;
  --shadow: 0 18px 50px rgba(23, 27, 24, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

p {
  color: var(--muted);
  line-height: 1.65;
}

.site-header {
  align-items: center;
  background: rgba(245, 247, 242, 0.92);
  border-bottom: 1px solid rgba(217, 223, 215, 0.8);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  padding: 14px 42px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand,
.studio-logo {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 6px;
  color: var(--surface);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 42px;
}

.site-nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.header-phone:hover,
.text-link:hover {
  color: var(--forest);
}

.header-phone {
  color: var(--ink);
  font-weight: 700;
}

.hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(13, 20, 16, 0.72), rgba(13, 20, 16, 0.22)),
    var(--hero-image) center / cover;
  color: var(--surface);
  display: grid;
  min-height: 760px;
  padding: 132px 42px 36px;
}

.hero-content {
  max-width: 880px;
}

.eyebrow {
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sun);
}

h1,
h2,
h3 {
  line-height: 1.06;
  margin: 0;
}

h1 {
  font-size: 4.8rem;
  max-width: 980px;
}

h2 {
  font-size: 2.35rem;
}

h3 {
  font-size: 1.35rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.24rem;
  max-width: 740px;
}

.hero-actions,
.messenger-row,
.row-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

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

.button-light {
  background: var(--surface);
  color: var(--ink);
}

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

.button-ghost {
  border-color: rgba(255, 255, 255, 0.48);
  color: var(--surface);
}

.button-soft {
  background: #e7ece5;
  color: var(--ink);
}

.hero-facts {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 70px;
  padding-top: 22px;
}

.hero-facts span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.section,
.site-footer {
  margin: 0 auto;
  max-width: 1280px;
  padding: 86px 42px;
}

.section-head {
  margin-bottom: 32px;
  max-width: 820px;
}

.row-head {
  justify-content: space-between;
  max-width: none;
}

.intro-band {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.1fr 1fr;
}

.stat-grid,
.workflow-grid,
.product-detail-grid,
.studio-stats,
.studio-grid {
  display: grid;
  gap: 18px;
}

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

.stat-grid div,
.workflow-grid li,
.studio-stats div,
.studio-panel,
.product-card,
.catalog-filter,
.login-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat-grid div {
  padding: 24px;
}

.stat-grid strong,
.workflow-grid strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.stat-grid span {
  color: var(--muted);
  line-height: 1.5;
}

.product-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  overflow: hidden;
}

.product-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.product-card-body {
  padding: 22px;
}

.product-card h2,
.product-card h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.category-label {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 900;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.product-meta span,
.messenger-row a,
.status-tabs a {
  background: #edf1ea;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 8px 12px;
}

.text-link {
  color: var(--forest);
  font-weight: 900;
}

.production,
.contact-section,
.product-hero {
  display: grid;
  gap: 40px;
  grid-template-columns: 0.9fr 1.1fr;
}

.production-list {
  display: grid;
  gap: 12px;
}

.production-list span {
  background: var(--ink);
  border-left: 6px solid var(--sun);
  border-radius: var(--radius);
  color: var(--surface);
  font-weight: 800;
  padding: 20px;
}

.workflow-grid {
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.workflow-grid li {
  padding: 24px;
}

.workflow-grid span {
  color: var(--signal);
  display: block;
  font-weight: 900;
  margin-bottom: 36px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

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

.lead-form,
.studio-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

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

label,
.studio-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

label span,
.studio-field label,
.detail-list dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.form-control,
.form-select,
input,
textarea,
select {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.messages {
  left: 50%;
  max-width: 640px;
  position: fixed;
  top: 82px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  z-index: 20;
}

.message {
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--surface);
  margin-bottom: 8px;
  padding: 12px 14px;
}

.page-hero {
  background: var(--ink);
  color: var(--surface);
  padding: 116px 42px 70px;
}

.page-hero > div {
  margin: 0 auto;
  max-width: 1280px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 760px;
}

.compact-hero h1 {
  font-size: 3rem;
}

.catalog-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 280px 1fr;
}

.catalog-filter {
  padding: 18px;
  position: sticky;
  top: 86px;
}

.catalog-filter nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.catalog-filter nav a {
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
  padding: 10px 12px;
}

.catalog-filter nav a.active,
.status-tabs a.active {
  background: var(--forest);
  color: var(--surface);
}

.product-hero {
  align-items: start;
  margin: 0 auto;
  max-width: 1280px;
  padding: 82px 42px 44px;
}

.product-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

.product-gallery img:first-child {
  grid-column: 1 / -1;
}

.product-gallery img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
}

.product-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 92px;
}

.price-line {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.price-line strong {
  color: var(--forest);
  font-size: 2rem;
}

.spec-grid {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.spec-grid div,
.check-list li {
  background: #edf1ea;
  border-radius: 6px;
  padding: 12px;
}

.spec-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 4px;
}

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

.check-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.site-footer {
  align-items: start;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: end;
}

.footer-contacts a {
  color: var(--forest);
  font-weight: 800;
}

.studio-body {
  background: #eef2ec;
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
}

.studio-sidebar {
  background: var(--ink);
  color: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 22px;
  position: sticky;
  top: 0;
}

.studio-logo {
  margin-bottom: 32px;
}

.studio-sidebar nav {
  display: grid;
  gap: 6px;
}

.studio-sidebar a {
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  padding: 10px 12px;
}

.studio-sidebar a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--surface);
}

.studio-sidebar-footer {
  display: grid;
  gap: 6px;
  margin-top: auto;
}

.studio-main {
  min-width: 0;
  padding: 34px;
}

.studio-head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.studio-head h1 {
  font-size: 2.25rem;
}

.studio-stats {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
}

.studio-stats div,
.studio-panel {
  padding: 20px;
}

.studio-stats span {
  color: var(--muted);
  display: block;
  font-weight: 800;
}

.studio-stats strong {
  display: block;
  font-size: 2rem;
  margin-top: 8px;
}

.studio-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.panel-head,
.studio-filter,
.status-tabs {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.panel-head {
  margin-bottom: 14px;
}

.panel-head h2,
.studio-panel h2 {
  font-size: 1.2rem;
}

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

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

td a,
.panel-head a {
  color: var(--forest);
  font-weight: 900;
}

.studio-list {
  display: grid;
  gap: 8px;
}

.studio-list a {
  background: #f4f7f2;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  padding: 12px;
}

.studio-list small {
  color: var(--muted);
}

.studio-filter {
  margin-bottom: 16px;
}

.wide-form {
  display: grid;
  gap: 4px 18px;
  grid-template-columns: repeat(2, 1fr);
}

.wide-form .studio-field:has(textarea),
.wide-form .studio-field:nth-last-child(-n + 9),
.wide-form .button {
  grid-column: 1 / -1;
}

.studio-field-check {
  align-items: center;
  display: flex;
  gap: 10px;
}

.form-check-input {
  min-height: auto;
  width: auto;
}

.compact-form {
  margin-top: 18px;
}

.detail-list {
  display: grid;
  gap: 10px;
  grid-template-columns: 140px 1fr;
}

.detail-list dd,
.detail-list dt {
  margin: 0;
}

.detail-list dd {
  overflow-wrap: anywhere;
}

.project-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 18px;
}

.project-copy p {
  margin-bottom: 0;
}

.app-list {
  display: grid;
  gap: 10px;
}

.app-list span,
.studio-bullets li {
  background: #f4f7f2;
  border-radius: 6px;
  color: var(--muted);
  line-height: 1.5;
  padding: 12px;
}

.app-list strong {
  color: var(--ink);
  display: inline-block;
  min-width: 82px;
}

.project-map-panel {
  margin-bottom: 18px;
  overflow: hidden;
}

.site-map {
  display: grid;
  gap: 24px;
  justify-items: center;
}

.map-node {
  background: #f4f7f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 86px;
  padding: 16px;
  position: relative;
  text-align: center;
  width: 100%;
}

.map-node strong,
.map-node span {
  display: block;
}

.map-node span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

.map-root {
  background: var(--ink);
  color: var(--surface);
  max-width: 260px;
}

.map-root span {
  color: rgba(255, 255, 255, 0.72);
}

.map-branches {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  width: 100%;
}

.map-branches::before {
  background: var(--line);
  content: "";
  height: 2px;
  left: 8%;
  position: absolute;
  right: 8%;
  top: -14px;
}

.studio-bullets {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.status-tabs {
  justify-content: start;
  margin-bottom: 16px;
}

.login-page {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 22px;
}

.login-panel {
  margin: 0 auto;
  max-width: 440px;
  padding: 28px;
  width: 100%;
}

.login-panel h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

@media (max-width: 980px) {
  .site-header,
  .site-footer,
  .studio-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    min-height: 680px;
  }

  .hero-facts,
  .intro-band,
  .stat-grid,
  .product-grid,
  .production,
  .workflow-grid,
  .contact-section,
  .catalog-layout,
  .product-hero,
  .product-detail-grid,
  .studio-stats,
  .studio-grid,
  .project-layout,
  .map-branches,
  .wide-form {
    grid-template-columns: 1fr;
  }

  .catalog-filter,
  .product-summary {
    position: static;
  }

  .studio-body {
    grid-template-columns: 1fr;
  }

  .studio-sidebar {
    min-height: auto;
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section,
  .site-footer,
  .product-hero,
  .page-hero,
  .studio-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    min-height: 620px;
    padding: 104px 18px 28px;
  }

  h1,
  .compact-hero h1 {
    font-size: 2.55rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .form-grid,
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .panel-head,
  .studio-filter,
  .status-tabs {
    align-items: stretch;
    flex-direction: column;
  }
}
