:root {
  --ink: #191512;
  --graphite: #2a241f;
  --muted: #766d63;
  --paper: #fff9f0;
  --ivory: #f6eee2;
  --sand: #e5d2bc;
  --line: rgba(42, 36, 31, .14);
  --terracotta: #b85f3c;
  --terracotta-dark: #8f432b;
  --copper: #d9854d;
  --sage: #6f8d72;
  --olive: #3f5f50;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(55, 39, 28, .14);
  --radius: 28px;
  --radius-small: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: Inter, Manrope, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(1180px, calc(100% - 40px));
  margin: 16px auto 0;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: rgba(255, 249, 240, .88);
  box-shadow: 0 12px 40px rgba(42, 36, 31, .09);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 150px;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #5d554d;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--terracotta-dark);
  background: rgba(184, 95, 60, .1);
}

.header-cta,
.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--terracotta);
  box-shadow: 0 16px 34px rgba(184, 95, 60, .26);
  font-weight: 900;
  cursor: pointer;
}

.btn.secondary {
  color: var(--ink);
  background: var(--sand);
  box-shadow: none;
}

.home,
.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 42px;
  align-items: center;
  min-height: 720px;
  padding: 90px 0 64px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--terracotta-dark);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(36px, 4.4vw, 62px);
  line-height: .96;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.15;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 30px;
  color: #4d453e;
  font-size: 22px;
}

.messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.msg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.msg.telegram {
  background: #229ed9;
  box-shadow: 0 16px 34px rgba(34, 158, 217, .22);
}

.msg.telegram:hover {
  transform: translateY(-2px);
  background: #1f93cb;
  box-shadow: 0 22px 44px rgba(34, 158, 217, .3);
}

.msg.telegram svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.hero-panel {
  position: relative;
  min-height: 520px;
  border-radius: 44px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-photo {
  min-height: 0;
  aspect-ratio: 1.08;
  padding: 22px;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  object-position: center;
  border-radius: 32px;
  filter: saturate(.88) contrast(1.02);
}

.hero-panel:before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(42, 36, 31, .12);
  border-radius: 34px;
  pointer-events: none;
}

.hero-note {
  position: absolute;
  right: 32px;
  bottom: 32px;
  width: 220px;
  padding: 24px;
  border-radius: 24px;
  color: var(--ink);
  background: rgba(255, 249, 240, .94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
  backdrop-filter: blur(10px);
}

.hero-note strong {
  display: block;
  font-size: 44px;
  line-height: 1;
}

.hero-note span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .55fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: start;
}

.strategy-card,
.service-card,
.story-grid article,
.review-grid article,
.article-link,
.lead-form,
.admin-form,
.article-page,
.admin-hero {
  border: 1px solid rgba(42, 36, 31, .12);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 50px rgba(42, 36, 31, .07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}

.strategy-card:hover,
.service-card:hover,
.story-grid article:hover,
.review-grid article:hover,
.article-link:hover,
.lead-form:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 95, 60, .24);
  box-shadow: 0 26px 70px rgba(42, 36, 31, .12);
}

.strategy-card {
  padding: 34px;
  color: #4c443d;
  font-size: 19px;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage);
}

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

.reason-grid article {
  min-height: 278px;
  padding: 24px;
  border-radius: 24px;
  color: var(--white);
  background: var(--graphite);
}

.reason-grid article:nth-child(2),
.reason-grid article:nth-child(5) {
  background: var(--terracotta-dark);
}

.reason-grid article:nth-child(3) {
  background: var(--olive);
}

.reason-grid span {
  display: inline-flex;
  margin-bottom: 44px;
  color: rgba(255, 255, 255, .58);
  font-weight: 950;
}

.reason-grid p {
  color: rgba(255, 255, 255, .77);
  font-size: 15px;
}

.stats {
  padding: 72px 48px;
  border: 0;
  border-radius: 44px;
  color: var(--white);
  background: linear-gradient(135deg, var(--graphite), #4b2d22 52%, var(--olive));
}

.stats .eyebrow,
.stats h2 {
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 12px;
}

.stats-grid article {
  min-height: 170px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 24px;
  background: rgba(255, 255, 255, .1);
}

.stats-grid strong {
  display: block;
  margin-bottom: 18px;
  font-size: 54px;
  line-height: 1;
}

.stats-grid span {
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.timeline-item {
  display: flex;
  min-height: 174px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 249, 240, .72);
}

.timeline-item span {
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 950;
}

.timeline-item p {
  margin: 0;
  font-weight: 900;
  line-height: 1.2;
}

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

.service-card {
  min-height: 230px;
  padding: 28px;
}

.service-card h3 {
  max-width: 330px;
}

.service-card p,
.story-grid p,
.review-grid p,
.article-link p {
  color: var(--muted);
}

.include-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.include-list span {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 850;
}

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

.story-grid article,
.review-grid article {
  padding: 28px;
}

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

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

.section-actions {
  margin-top: 22px;
  display: flex;
}

.article-link {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.article-link span {
  color: var(--terracotta-dark);
  font-size: 13px;
  font-weight: 950;
}

.article-link strong {
  font-size: 21px;
  line-height: 1.12;
}

.article-link p,
.article-link em {
  margin: 0;
}

.article-link em {
  color: var(--terracotta-dark);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.articles-page {
  padding-top: 110px;
}

.article-archive-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.article-archive-head h1 {
  margin-bottom: 16px;
}

.article-archive-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.5;
}

.articles.archive {
  padding-top: 0;
}

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

details {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

summary {
  padding: 22px 24px;
  font-size: 19px;
  font-weight: 950;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 18px;
}

details a {
  color: var(--terracotta-dark);
  font-weight: 900;
}

.lead {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(420px, .75fr);
  gap: 38px;
  align-items: start;
  padding-bottom: 110px;
}

.lead-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 20px;
}

.compact {
  margin-top: 38px;
}

.lead-form,
.admin-form {
  display: grid;
  gap: 16px;
  padding: 30px;
}

label {
  display: grid;
  gap: 8px;
  color: #4e453d;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(42, 36, 31, .18);
  border-radius: 16px;
  padding: 13px 15px;
  color: var(--ink);
  background: var(--white);
  outline: 0;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(184, 95, 60, .13);
}

.consent {
  display: flex;
  flex-direction: row;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.consent input {
  width: 18px;
  min-height: 20px;
  flex: 0 0 18px;
  margin: 0;
}

.consent span {
  display: inline;
  min-width: 0;
}

.consent a {
  color: var(--terracotta-dark);
  font-weight: 900;
}

.form-success,
.notice {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--olive);
  background: rgba(111, 141, 114, .14);
  font-weight: 850;
}

.notice.error {
  color: #8d2a1b;
  background: rgba(184, 95, 60, .16);
}

.notice.success {
  color: var(--olive);
}

.site-footer {
  margin-top: 40px;
  padding: 62px 0 28px;
  color: rgba(255, 255, 255, .82);
  background: var(--graphite);
}

.footer-inner,
.footer-bottom {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) repeat(3, minmax(160px, .42fr));
  gap: 36px;
}

.footer-logo img {
  width: 168px;
  margin-bottom: 20px;
  filter: brightness(1.18);
}

.footer-main p {
  max-width: 410px;
  color: rgba(255, 255, 255, .7);
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 17px;
}

.footer-col a:hover {
  color: var(--copper);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .56);
  font-size: 14px;
}

.narrow-page {
  width: min(920px, calc(100% - 40px));
  padding: 92px 0;
}

.article-page {
  padding: clamp(28px, 6vw, 64px);
}

.article-page h1 {
  font-size: clamp(34px, 4vw, 52px);
}

.article-lead {
  color: var(--muted);
  font-size: 22px;
}

.article-content {
  color: #403832;
  font-size: 20px;
}

.article-content h2 {
  margin: 38px 0 14px;
  font-size: clamp(26px, 3vw, 36px);
}

.article-content h3 {
  margin: 28px 0 10px;
}

.article-content p,
.article-content li {
  margin-bottom: 16px;
}

.article-content ul {
  margin: 0 0 22px;
  padding-left: 24px;
}

.article-content a {
  color: var(--terracotta-dark);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.related-articles {
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.related-articles h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

.related-articles div {
  display: grid;
  gap: 10px;
}

.related-articles a {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 249, 240, .72);
  font-weight: 900;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.related-articles a:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 95, 60, .24);
  box-shadow: 0 14px 34px rgba(42, 36, 31, .1);
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px;
  border: 1px solid rgba(42, 36, 31, .14);
  border-radius: 24px;
  background: rgba(255, 249, 240, .96);
  box-shadow: 0 22px 70px rgba(42, 36, 31, .18);
  backdrop-filter: blur(14px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

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

.doc-page {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.doc-page h1 {
  font-size: clamp(38px, 5vw, 62px);
}

.doc-page h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: 26px;
}

.doc-page p {
  color: #403832;
  font-size: 18px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--terracotta-dark);
  font-weight: 900;
}

.admin-page {
  padding: 78px 0;
}

.admin-hero {
  margin-bottom: 22px;
  padding: 34px;
}

.admin-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
}

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

.full {
  grid-column: 1 / -1;
}

.admin-hint {
  margin: 0;
  color: var(--muted);
}

.admin-section {
  margin-top: 34px;
}

.admin-section h2 {
  margin-bottom: 18px;
  font-size: 34px;
}

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

.admin-list article {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.admin-list a {
  color: var(--terracotta-dark);
  font-weight: 850;
}

.logout-form {
  margin-top: 28px;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 150px 1fr;
  }

  .site-nav {
    display: none;
  }

  .header-cta {
    justify-self: end;
  }

  .hero,
  .split,
  .lead,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .reason-grid,
  .stats-grid,
  .timeline,
  .service-grid,
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid article:first-child {
    grid-column: 1 / -1;
  }

  .article-link {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  .home,
  .page-shell,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    top: 8px;
    gap: 10px;
    padding-left: 12px;
  }

  .brand img {
    width: 126px;
  }

  .header-cta {
    min-height: 44px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero {
    padding-top: 56px;
    gap: 28px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-text,
  .lead-copy p:not(.eyebrow),
  .article-content,
  .article-lead {
    font-size: 18px;
  }

  .hero-panel {
    border-radius: 30px;
  }

  .hero-photo {
    aspect-ratio: 1;
    padding: 12px;
  }

  .hero-photo img {
    min-height: 360px;
    border-radius: 22px;
  }

  .hero-note {
    right: 18px;
    bottom: 18px;
    width: 190px;
  }

  .section {
    padding: 58px 0;
  }

  .stats {
    padding: 42px 20px;
    border-radius: 30px;
  }

  .reason-grid,
  .stats-grid,
  .timeline,
  .service-grid,
  .story-grid,
  .review-grid,
  .form-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .lead {
    padding-bottom: 64px;
  }

  .lead-form,
  .admin-form,
  .strategy-card,
  .article-page {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 16px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-actions .btn {
    min-height: 46px;
    padding: 0 14px;
  }
}
