:root {
  color: #17201d;
  background: #f6f1e8;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --accent: #0f6b57;
  --accent-dark: #0b493e;
  --gold: #c59b45;
  --ink: #17201d;
  --muted: #66736d;
  --line: #ded7c8;
  --surface: #ffffff;
  --surface-soft: #f3efe5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  background: rgb(18 52 45 / 90%);
  color: #ffffff;
  padding: 0 clamp(18px, 4vw, 56px);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
  padding: 4px;
}

.site-header nav {
  display: flex;
  gap: 18px;
  color: rgb(255 255 255 / 78%);
  font-size: 14px;
}

.site-header nav a:hover,
.site-footer a:hover {
  color: #ffffff;
}

.header-login,
.primary-link,
.secondary-link,
.primary-button,
.outline-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 760;
}

.header-login,
.secondary-link,
.outline-link {
  border: 1px solid rgb(255 255 255 / 38%);
  padding: 0 14px;
}

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  color: #ffffff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgb(10 38 32 / 74%), rgb(10 38 32 / 34) 48%, rgb(10 38 32 / 0) 78%),
    linear-gradient(0deg, rgb(10 38 32 / 28%), rgb(10 38 32 / 8));
}

.hero-content {
  position: relative;
  display: grid;
  width: min(760px, calc(100% - 36px));
  gap: 22px;
  padding: 112px 0 96px clamp(18px, 6vw, 88px);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.03;
}

.hero-subtitle {
  max-width: 620px;
  margin-bottom: 0;
  color: rgb(255 255 255 / 86%);
  font-size: 21px;
  line-height: 1.45;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
  gap: 10px;
}

.hero-metrics div {
  min-height: 82px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 8px;
  background: rgb(255 255 255 / 10%);
  padding: 14px;
}

.hero-metrics strong {
  display: block;
  font-size: 26px;
}

.hero-metrics span {
  color: rgb(255 255 255 / 74%);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-link,
.primary-button {
  border: 0;
  background: var(--accent);
  color: #ffffff;
  padding: 0 18px;
}

.primary-link:hover,
.primary-button:hover {
  background: var(--accent-dark);
}

.section,
.contact-section {
  padding: 78px clamp(18px, 5vw, 72px);
}

.band {
  background: #ffffff;
}

.section-heading {
  width: min(920px, 100%);
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.tile-grid,
.benefit-grid,
.case-grid,
.team-grid,
.pricing-grid {
  display: grid;
  gap: 14px;
}

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

.tile-grid article,
.benefit-grid article,
.case-grid article,
.team-grid article,
.pricing-grid article,
.contact-cards article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.tile-grid article:nth-child(2n),
.benefit-grid article:nth-child(2n),
.pricing-grid article:nth-child(2n) {
  border-color: rgb(197 155 69 / 38%);
}

.tile-grid span {
  font-size: 18px;
  font-weight: 790;
}

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

.benefit-grid strong,
.case-grid h3,
.team-grid strong,
.pricing-grid h3 {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.benefit-grid p,
.case-grid p,
.team-grid p,
.contact-section p {
  color: var(--muted);
  line-height: 1.55;
}

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

.process-list article {
  display: grid;
  min-height: 84px;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.process-list span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 840;
}

.process-list p,
.pricing-grid ul {
  margin: 0;
  color: var(--muted);
}

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

.case-grid small {
  color: var(--accent);
  font-weight: 850;
}

.case-grid strong {
  color: var(--accent-dark);
  font-size: 18px;
}

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

.team-photo {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #ffffff;
  margin-bottom: 14px;
  font-size: 42px;
  font-weight: 850;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-weight: 760;
}

.pricing-grid ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.pricing-grid strong {
  display: block;
  margin-top: 18px;
  color: var(--accent-dark);
  font-size: 20px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: start;
  background: #12342d;
  color: #ffffff;
}

.contact-section p {
  max-width: 680px;
  color: rgb(255 255 255 / 74%);
  font-size: 18px;
}

.contact-cards {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.contact-cards article {
  background: rgb(255 255 255 / 9%);
  border-color: rgb(255 255 255 / 14%);
}

.contact-cards span {
  display: block;
  color: rgb(255 255 255 / 62%);
  font-size: 13px;
}

.contact-cards strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.site-footer {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #101713;
  color: rgb(255 255 255 / 68%);
  padding: 0 clamp(18px, 5vw, 72px);
}

.requisites {
  display: flex;
  max-width: 780px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  color: rgb(255 255 255 / 58%);
  font-size: 12px;
}

.requisites article {
  padding: 0;
}

.lead-form {
  display: grid;
  gap: 12px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 8px;
  background: rgb(255 255 255 / 10%);
  padding: 18px;
}

.lead-form h3 {
  margin-bottom: 4px;
  font-size: 22px;
}

.lead-form label {
  color: rgb(255 255 255 / 76%);
}

.lead-form input {
  border-color: rgb(255 255 255 / 18%);
  background: rgb(255 255 255 / 94%);
}

.consent-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: rgb(255 255 255 / 74%);
  font-size: 13px;
  line-height: 1.35;
}

.consent-row input {
  width: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
}

.lead-form-status {
  min-height: 22px;
  margin: 0;
  color: var(--gold) !important;
  font-size: 14px !important;
}

.lead-popup {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(16 24 20 / 54%);
}

.lead-popup[hidden] {
  display: none;
}

.lead-popup-panel {
  position: relative;
  display: grid;
  width: min(560px, 100%);
  gap: 14px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  background: #12342d;
  color: #ffffff;
  padding: 24px;
  box-shadow: 0 28px 90px rgb(16 24 20 / 32%);
}

.lead-popup-panel h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.lead-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 8px;
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.maintenance-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: #12342d;
  color: #ffffff;
}

.maintenance-page section {
  width: min(620px, 100%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  background: rgb(255 255 255 / 8%);
  padding: clamp(24px, 6vw, 56px);
}

.maintenance-page p:last-child {
  color: rgb(255 255 255 / 74%);
  font-size: 18px;
  line-height: 1.55;
}

.admin-body {
  background: #eef2ef;
}

.admin-shell {
  padding: 28px;
}

.admin-login,
.admin-editor {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.admin-login {
  display: grid;
  max-width: 460px;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 18px 54px rgb(36 50 43 / 10%);
}

.admin-login-logo {
  order: -1;
  width: 78px;
  height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
  padding: 6px;
  box-shadow: 0 14px 34px rgb(36 50 43 / 10%);
}

label {
  display: grid;
  gap: 8px;
  color: #33413b;
  font-size: 14px;
  font-weight: 720;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  padding: 10px 12px;
}

input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
}

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

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

.admin-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-title img {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
  padding: 5px;
}

.admin-actions {
  display: flex;
  gap: 10px;
}

.outline-link {
  border-color: var(--line);
  background: #ffffff;
  color: var(--accent-dark);
}

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

.editor-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
}

.admin-image-preview {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 8px;
  object-fit: cover;
}

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

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.team-editor {
  display: grid;
  gap: 14px;
}

.team-editor-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.team-editor-photo {
  display: grid;
  width: 120px;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #ffffff;
  font-size: 34px;
  font-weight: 850;
}

.team-editor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-status {
  min-height: 24px;
  color: var(--muted);
  font-weight: 720;
}

.editor-status[data-type="success"] {
  color: var(--accent-dark);
}

.editor-status[data-type="error"] {
  color: #b42318;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 16px;
  }

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

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding: 72px 18px;
  }

  .hero-metrics,
  .tile-grid,
  .benefit-grid,
  .case-grid,
  .team-grid,
  .pricing-grid,
  .contact-section,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .hero-shade {
    background: rgb(10 38 32 / 64%);
  }
}
