:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #334e68;
  --teal: #0f766e;
  --teal-dark: #0b5f59;
  --teal-soft: #e6f4f1;
  --green: #16a34a;
  --orange: #f97316;
  --border: #d9e2ec;
  --shadow: 0 18px 44px rgba(31, 41, 51, 0.08);
  --radius: 8px;
  --hero-height: clamp(260px, 33vh, 360px);
  font-family: Manrope, Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

main {
  flex: 1 0 auto;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--teal);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand-text strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}

.brand-text small {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.main-nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: var(--teal-soft);
  color: var(--teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

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

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-secondary {
  background: #fff;
  border-color: var(--teal);
  color: var(--teal);
}

.btn-outline {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.btn-disabled {
  background: #eef3f7;
  color: #697b8c;
  cursor: default;
}

.hero {
  position: relative;
  display: block;
  height: var(--hero-height);
  min-height: var(--hero-height);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}

.hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(58vw, 980px);
  pointer-events: none;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--surface) 0%, rgba(246, 248, 250, 0.96) 16%, rgba(246, 248, 250, 0.55) 34%, rgba(246, 248, 250, 0.08) 58%, rgba(246, 248, 250, 0) 100%);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
  padding: clamp(22px, 3.2vw, 36px) clamp(20px, 5vw, 72px);
  max-width: min(760px, 48vw);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  font-weight: 850;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.hero-lead,
.page-hero p,
.section-heading p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

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

.strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.strip-item {
  display: grid;
  gap: 9px;
  min-height: 150px;
  padding: 24px 18px;
  border-right: 1px solid var(--border);
  align-content: start;
}

.strip-item:last-child {
  border-right: 0;
}

.strip-item strong {
  font-size: 15px;
  line-height: 1.25;
}

.strip-item span,
.service-card p,
.service-detail p,
.download-card p,
.contact-card p,
.prose p {
  color: var(--muted);
}

.icon {
  width: 34px;
  height: 34px;
  color: var(--teal);
}

.section,
.page-hero {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.page-hero {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.visual-hero {
  position: relative;
  display: grid;
  align-items: center;
  height: var(--hero-height);
  min-height: var(--hero-height);
  padding: clamp(22px, 3.2vw, 36px) clamp(20px, 5vw, 72px);
  overflow: hidden;
}

.visual-hero-copy {
  position: relative;
  z-index: 1;
  max-width: min(760px, 52vw);
}

.visual-hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(58vw, 980px);
  height: 100%;
  pointer-events: none;
}

.visual-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.96) 18%, rgba(255, 255, 255, 0.54) 42%, rgba(255, 255, 255, 0) 100%);
}

.visual-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.contact-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(240px, 30vh, 340px);
  overflow: hidden;
}

.contact-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.contact-hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(55vw, 900px);
  pointer-events: none;
}

.contact-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.96) 18%, rgba(255, 255, 255, 0.52) 42%, rgba(255, 255, 255, 0) 100%);
}

.contact-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.muted {
  background: var(--teal-soft);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

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

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

.service-card,
.service-detail,
.download-card,
.contact-card,
.contact-form,
.admin-card,
.info-panel,
.task-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.service-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 22px;
}

.home-services .service-card {
  gap: 10px;
  min-height: 0;
  padding: 16px 18px;
  align-content: start;
}

.home-services .icon {
  width: 30px;
  height: 30px;
}

.home-services .service-card h3 {
  font-size: 16px;
}

.home-services .service-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.service-card-cta {
  background: linear-gradient(135deg, #fff 0%, var(--teal-soft) 100%);
  border-color: rgba(15, 118, 110, 0.28);
}

.service-card-cta .btn {
  justify-self: start;
  min-height: 40px;
  margin-top: auto;
  padding: 10px 14px;
}

.service-detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-detail {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
}

.service-detail-head {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
}

.service-detail .two-cols {
  grid-template-columns: 1fr;
  gap: 18px;
}

.service-detail h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

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

ul {
  padding-left: 20px;
  margin: 12px 0 0;
}

li + li {
  margin-top: 6px;
}

.audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.audience-list span {
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 800;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 5vw, 38px);
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0 0;
}

.download-meta div {
  min-width: 130px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.download-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.download-meta dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.about-copy {
  align-items: start;
}

.info-panel ul {
  margin-top: 0;
}

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

.task-grid article {
  padding: 18px;
  font-weight: 800;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.contact-card,
.contact-form,
.admin-card,
.info-panel {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.compact-form {
  gap: 12px;
  padding: clamp(20px, 3vw, 28px);
}

.form-note {
  margin: -4px 0 4px;
  color: var(--muted);
}

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

.form-consent {
  color: var(--muted);
  font-size: 14px;
}

.contact-card a {
  color: var(--teal);
  font-weight: 900;
}

.messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.messengers a {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-weight: 900;
}

.messengers a.is-disabled {
  color: #7b8b99;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

.time-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.checkbox,
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox input,
.toggle-row input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 auto;
}

.form-consent a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.flash {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.flash.success {
  background: #e8f7ee;
  color: #0f6b34;
}

.flash.error {
  background: #fff0ec;
  color: #a43f16;
}

.notice {
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
}

.prose {
  max-width: 860px;
}

.site-footer {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 8px clamp(18px, 5vw, 72px);
  overflow-x: auto;
  background: var(--teal-dark);
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.site-footer div {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-contacts {
  justify-content: flex-end;
  gap: 16px;
}

.admin-body {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 40px 18px;
}

.admin-shell {
  width: min(760px, 100%);
}

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

.toggle-row {
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.toggle-row:last-of-type {
  border-bottom: 0;
}

@media (max-width: 1100px) {
  .hero {
    min-height: var(--hero-height);
  }

  .hero-media {
    width: 56vw;
    opacity: 0.58;
  }

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

  .visual-hero-media,
  .contact-hero-media {
    width: 58vw;
    opacity: 0.76;
  }

  .visual-hero-copy {
    max-width: 620px;
  }

  .strip,
  .service-grid,
  .service-grid.compact,
  .service-detail-list,
  .steps,
  .task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .main-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 14px;
  }

  .header-cabinet {
    margin-left: auto;
  }

  .hero-content,
  .visual-hero,
  .section,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-media {
    width: 72vw;
    opacity: 0.22;
  }

  .visual-hero-media,
  .contact-hero-media {
    width: 76vw;
    opacity: 0.18;
  }

  .hero-content,
  .visual-hero-copy {
    max-width: none;
  }

  h1 {
    font-size: 34px;
  }

  .hero-lead,
  .page-hero p,
  .section-heading p {
    font-size: 16px;
  }

  .strip,
  .service-grid,
  .service-grid.compact,
  .service-detail-list,
  .steps,
  .task-grid,
  .two-cols,
  .contact-layout,
  .time-row {
    grid-template-columns: 1fr;
  }

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

  .strip-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .download-card {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-contacts {
    justify-content: flex-start;
  }
}
