:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #eef3ef;
  --text: #17201c;
  --muted: #59655f;
  --line: #dbe2dd;
  --accent: #0c7c72;
  --accent-strong: #075e56;
  --warm: #b7791f;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(23, 32, 28, 0.08);
  --content-max: 1360px;
  --page-padding: 56px;
  --content-gutter: max(var(--page-padding), calc((100vw - var(--content-max)) / 2));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  padding: 0 var(--content-gutter);
  border-bottom: 1px solid rgba(219, 226, 221, 0.85);
  background: rgba(246, 247, 244, 0.94);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 76px;
  margin: 0 auto;
}

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

.brand__mark {
  display: inline-grid;
  width: 38px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--text);
  font-size: 0.82rem;
}

.brand__text {
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  margin-left: auto;
}

.main-nav a {
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 72px var(--content-gutter);
  background-image:
    linear-gradient(90deg, rgba(246, 247, 244, 0.96) 0%, rgba(246, 247, 244, 0.82) 42%, rgba(246, 247, 244, 0.22) 75%),
    url("/static/images/hero-crm-ai.png");
  background-position: center;
  background-size: cover;
}

.hero__content {
  width: 100%;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.content-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.content-breadcrumbs a {
  color: var(--accent-strong);
}

.content-breadcrumbs a:hover {
  color: var(--text);
}

.content-breadcrumbs a + a::before {
  content: "·";
  margin-right: 8px;
  color: var(--muted);
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: 4rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.15rem;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero__lead,
.page-hero p,
.article__header p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.17rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  cursor: pointer;
}

.button--primary {
  color: #ffffff;
  background: var(--accent);
}

.button--primary:hover {
  background: var(--accent-strong);
}

.button--secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.button--secondary:hover {
  border-color: var(--accent);
}

.section {
  padding: 76px var(--content-gutter);
}

.section--tight {
  padding-top: 58px;
}

.section--muted {
  background: var(--surface-2);
}

.section__header,
.split-layout,
.service-grid,
.case-list,
.work-list,
.contact-layout,
.article,
.page-hero {
  width: 100%;
  margin: 0 auto;
}

.section__header {
  margin-bottom: 30px;
}

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

.service-grid--wide {
  gap: 22px;
}

.service-card {
  min-height: 218px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 124, 114, 0.42);
}

.service-card span {
  display: block;
  margin-bottom: 16px;
  font-size: 1.28rem;
  font-weight: 850;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-card small {
  display: inline-flex;
  margin-top: 28px;
  color: var(--accent-strong);
  font-weight: 800;
}

.service-card--large {
  min-height: 260px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 56px;
  align-items: start;
}

.text-stack p {
  color: var(--muted);
  font-size: 1.08rem;
}

.text-stack p:last-child {
  margin-bottom: 0;
}

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

.case-row {
  display: grid;
  grid-template-columns: 150px minmax(220px, 0.7fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.case-row:hover {
  border-color: rgba(12, 124, 114, 0.42);
}

.case-row__tag {
  color: var(--warm);
  font-size: 0.88rem;
  font-weight: 850;
}

.case-row strong {
  font-size: 1.05rem;
}

.case-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.page-hero {
  padding: 82px var(--content-gutter) 38px;
}

.page-hero h1 {
  font-size: 3.2rem;
}

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

.work-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  min-height: 116px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.work-item span {
  color: var(--accent-strong);
  font-weight: 900;
}

.work-item p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.offer-block {
  width: 100%;
  padding: 30px;
  border: 1px solid rgba(12, 124, 114, 0.18);
  border-radius: var(--radius);
  background: #eaf4f1;
}

.offer-block + .offer-block {
  margin-top: 48px;
}

.offer-block__header {
  margin-bottom: 24px;
}

.offer-block__header h2 {
  margin-bottom: 0;
  font-size: 1.72rem;
}

.offer-grid--tariffs {
  gap: 20px;
}

.offer-card {
  display: grid;
  align-content: start;
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.offer-card--tariff {
  border-color: rgba(12, 124, 114, 0.28);
}

.offer-card span {
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-weight: 900;
}

.offer-card h3 {
  margin: 0 0 14px;
  font-size: 1.22rem;
  line-height: 1.25;
}

.offer-card p {
  color: var(--muted);
}

.offer-card strong {
  align-self: end;
  margin-top: 22px;
  color: var(--text);
  font-size: 1.18rem;
}

.article {
  padding: 78px var(--content-gutter);
}

.article__header {
  margin-bottom: 54px;
}

.article__image {
  display: block;
  width: 100%;
  max-height: 520px;
  margin-bottom: 54px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.article__body {
  width: min(760px, 100%);
}

.article__body h2 {
  margin-top: 38px;
  font-size: 1.5rem;
}

.article__body p {
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin: 0 auto;
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 124, 114, 0.42);
}

.article-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-card div {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.article-card strong {
  font-size: 1.1rem;
  line-height: 1.28;
}

.article-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.article-feedback {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  gap: 34px;
  align-items: start;
  margin-top: 64px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-feedback h2 {
  margin-bottom: 0;
  font-size: 1.55rem;
}

.article-feedback__form,
.embedded-crm-form {
  display: grid;
  gap: 16px;
}

.embedded-crm-form p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  gap: 34px;
  align-items: start;
}

.contact-aside,
.contact-form-shell {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-aside h2 {
  font-size: 1.35rem;
}

.contact-aside ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.form-status {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--accent-strong);
  background: #e7f5f1;
  font-weight: 750;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 750;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--text);
  background: #ffffff;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(12, 124, 114, 0.22);
  border-color: var(--accent);
}

.site-footer {
  padding: 34px var(--content-gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0 auto;
}

.site-footer__brand {
  display: grid;
  gap: 2px;
}

.site-footer strong {
  color: var(--text);
}

.site-footer a {
  color: var(--accent-strong);
  font-weight: 850;
}

.site-footer__contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #ffffff;
  white-space: nowrap;
}

.footer-contact:hover {
  border-color: rgba(12, 124, 114, 0.42);
}

.site-footer .footer-contact--telegram {
  color: #ffffff;
  border-color: #229ed9;
  background: #229ed9;
}

.site-footer .footer-contact--primary {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
}

@media (max-width: 920px) {
  :root {
    --page-padding: 24px;
  }

  .site-header {
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 560px;
    padding-top: 58px;
    padding-bottom: 58px;
    background-position: 58% center;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2,
  .page-hero h1 {
    font-size: 2rem;
  }

  .service-grid,
  .offer-grid,
  .article-grid,
  .work-list,
  .split-layout,
  .article-feedback,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .case-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .main-nav a {
    padding: 8px 9px;
  }

  .hero {
    min-height: 520px;
    background-image:
      linear-gradient(90deg, rgba(246, 247, 244, 0.98) 0%, rgba(246, 247, 244, 0.9) 62%, rgba(246, 247, 244, 0.72) 100%),
      url("/static/images/hero-crm-ai.png");
  }

  h1 {
    font-size: 2.15rem;
  }

  .hero__lead,
  .page-hero p,
  .article__header p {
    font-size: 1.02rem;
  }

  .button {
    width: 100%;
  }

  .service-card,
  .contact-aside,
  .contact-form-shell {
    padding: 20px;
  }

  .site-footer {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .site-footer__brand,
  .site-footer__contacts {
    width: 100%;
  }

  .site-footer__brand {
    gap: 0;
  }

  .site-footer__brand strong,
  .site-footer__brand span {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 1px solid var(--line);
  }

  .site-footer__contacts {
    display: grid;
    gap: 0;
    justify-content: stretch;
  }

  .footer-contact {
    justify-content: flex-start;
    min-height: 44px;
    width: 100%;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--accent-strong);
    background: transparent;
  }

  .footer-contact:hover {
    border-color: var(--line);
    color: var(--text);
  }

  .site-footer .footer-contact--telegram {
    color: var(--accent-strong);
    border-color: var(--line);
    background: transparent;
  }

  .site-footer .footer-contact--primary {
    justify-content: center;
    min-height: 46px;
    margin-top: 16px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: #ffffff;
    background: var(--accent);
  }
}
