@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-052F, U+20B4, U+2116;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+20AC, U+2122;
}

:root {
  --milk: #f8f4e9;
  --paper: #fffdf8;
  --forest: #073b2d;
  --forest-deep: #052d21;
  --ink: #0a3026;
  --muted: #49665d;
  --lime: #c9ed47;
  --lime-soft: #eaf7ad;
  --line: rgba(7, 59, 45, 0.16);
  --line-light: rgba(248, 244, 233, 0.23);
  --shadow: 0 24px 60px rgba(7, 59, 45, 0.12);
  --shadow-deep: 0 28px 70px rgba(2, 31, 23, 0.28);
  --radius: 1.35rem;
  --font: "Golos Text", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--milk);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body > main { min-height: 55vh; }

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

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; }

button, input, textarea { font: inherit; }

button { cursor: pointer; }

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

h1, h2, h3 {
  color: var(--forest);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 { max-width: 14ch; margin-bottom: 1.25rem; font-size: clamp(2.6rem, 6.2vw, 5.7rem); }
h2 { max-width: 18ch; margin-bottom: 1rem; font-size: clamp(2rem, 3.7vw, 3.55rem); }
h3 { margin-bottom: 0.55rem; font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -0.035em; }

p { margin-bottom: 1rem; }

::selection { background: var(--lime); color: var(--forest-deep); }

:focus-visible {
  outline: 3px solid #a1cc12;
  outline-offset: 4px;
}

.site-container,
.container {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.container.narrow,
.narrow { width: min(100% - 2rem, 800px); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -4rem;
  left: 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.6rem;
  background: var(--lime);
  color: var(--forest-deep);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(7, 59, 45, 0.1);
  background: rgba(248, 244, 233, 0.93);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 4.85rem;
  align-items: center;
  gap: 1.25rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: var(--forest);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand__logo {
  width: 2.5rem;
  height: 2.56rem;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0.35rem 0.63rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link.is-active { color: var(--forest-deep); background: rgba(201, 237, 71, 0.27); }

.inline-form { margin: 0; }
.button-reset { appearance: none; }

.count-pill {
  display: inline-grid;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--milk);
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  width: 2.65rem;
  height: 2.65rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--paper);
  color: var(--forest);
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.08rem;
  height: 2px;
  margin: auto;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before { position: absolute; top: -0.34rem; }
.nav-toggle__icon::after { position: absolute; top: 0.34rem; }

.eyebrow,
.kicker {
  margin-bottom: 0.7rem;
  color: #477022;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow--lime { color: var(--lime); }

.btn {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.12rem;
  border: 1px solid transparent;
  border-radius: 0.78rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-small, .btn-sm { min-height: 2.45rem; padding: 0.55rem 0.8rem; font-size: 0.84rem; }

.btn-primary,
.btn-lime {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--forest-deep);
}

.btn-primary:hover,
.btn-lime:hover { border-color: var(--forest); background: var(--forest); color: var(--paper); }

.btn-secondary {
  border-color: var(--forest);
  background: transparent;
  color: var(--forest);
}

.btn-secondary:hover { background: var(--forest); color: var(--paper); }

.btn-outline-light,
.btn-light-brand {
  border-color: var(--line-light);
  background: transparent;
  color: var(--paper);
}

.btn-outline-light:hover,
.btn-light-brand:hover { border-color: var(--paper); background: var(--paper); color: var(--forest); }

.btn-brand { border-color: var(--forest); background: var(--forest); color: var(--paper); }
.btn-brand:hover { border-color: var(--forest-deep); background: var(--forest-deep); color: var(--paper); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--forest); }
.btn-quiet-danger { border-color: #9e2f2d; background: transparent; color: #9e2f2d; }

.hero { padding: clamp(3.2rem, 7vw, 6.5rem) 0 clamp(4rem, 7vw, 7.5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6.2rem);
}

.hero__content { padding-block: 0.8rem; }
.hero__content h1 { max-width: 11.7ch; }

.hero__lead {
  max-width: 39rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.55vw, 1.26rem);
  line-height: 1.58;
}

.hero__actions,
.contact-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.hero__note {
  margin: 1.05rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-portrait {
  position: relative;
  margin: 0;
  border: 1px solid rgba(7, 59, 45, 0.11);
  border-radius: 1.7rem 1.7rem 1.7rem 0.32rem;
  background: var(--forest);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-portrait::after {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid rgba(248, 244, 233, 0.52);
  border-radius: 0.7rem;
  content: "";
  pointer-events: none;
}

.hero-portrait img { width: 100%; height: auto; }

.section { padding: clamp(4.5rem, 8vw, 8.4rem) 0; }

.section--forest { background: var(--forest); color: var(--paper); }
.section--forest h2 { color: var(--paper); }
.section--about { background: #e9efdd; }
.section--portfolio { padding-top: 2.6rem; }
.section--faq { border-top: 1px solid var(--line); }

.section-heading { max-width: 50rem; margin-bottom: clamp(2rem, 4vw, 3.8rem); }

.section-heading--split,
.section-heading--light {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.62fr);
  max-width: none;
  gap: 2rem 4rem;
  align-items: end;
}

.section-heading--split > p,
.section-heading--light > p { max-width: 28rem; margin: 0 0 0.25rem; color: var(--muted); }
.section-heading--light > p { color: rgba(248, 244, 233, 0.76); }
.section-heading--light h2 { max-width: 15ch; }

.service-list { border-top: 1px solid var(--line); }

.service-item {
  display: grid;
  grid-template-columns: minmax(3.5rem, 0.18fr) minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.service-item__number {
  color: #679514;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service-item h3 { margin-bottom: 0.35rem; }
.service-item p { max-width: 42rem; margin: 0; color: var(--muted); }

.featured-case {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(15rem, 0.78fr);
  align-items: stretch;
  gap: clamp(1.4rem, 3vw, 3.8rem);
  padding: clamp(0.85rem, 1.5vw, 1.2rem);
  border: 1px solid rgba(248, 244, 233, 0.2);
  border-radius: var(--radius);
  color: var(--paper);
  text-decoration: none;
}

.featured-case__media,
.portfolio-card__media,
.case-card__visual {
  position: relative;
  display: block;
  border-radius: calc(var(--radius) - 0.35rem);
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 260ms ease, box-shadow 260ms ease;
  will-change: transform;
}

.featured-case__media { align-self: center; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26); }
.featured-case__media img,
.portfolio-card__media img { width: 100%; height: auto; }

.case-card__shine {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(circle 24rem at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.24), transparent 39%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.case-card__visual.is-tilting .case-card__shine { opacity: 1; }

.featured-case__body,
.portfolio-card__body { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1rem, 2.3vw, 2.05rem) clamp(0.25rem, 1.8vw, 1.2rem); }

.case-label {
  margin-bottom: 1rem;
  color: var(--lime);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.featured-case__title,
.portfolio-card__title {
  margin-bottom: 0.7rem;
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.featured-case__text,
.portfolio-card__text { max-width: 30rem; color: rgba(248, 244, 233, 0.8); line-height: 1.55; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
  padding: 0;
  list-style: none;
}

.tag-list span,
.tag-list li {
  display: inline-flex;
  padding: 0.31rem 0.58rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}

.case-link,
.text-link {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1.7rem;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.case-link span,
.text-link span { transition: transform 160ms ease; }
.featured-case:hover .case-link span,
.portfolio-card__link:hover .case-link span,
.text-link:hover span { transform: translate(0.18rem, -0.18rem); }

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 8vw, 9rem);
}

.about-layout h2 { max-width: 10.5ch; }
.about-layout__copy { max-width: 34rem; }
.about-layout__lead { color: var(--forest); font-size: 1.25rem; line-height: 1.55; }
.about-layout__copy > p:not(.about-layout__lead) { color: var(--muted); }
.about-layout .text-link { margin-top: 0.55rem; color: var(--forest); }

.workflow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.workflow-item { min-width: 0; padding: 1.4rem 1.25rem 0 0; }
.workflow-item + .workflow-item { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.workflow-item > span { display: block; margin-bottom: 2.4rem; color: #679514; font-size: 0.82rem; font-weight: 700; }
.workflow-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.faq-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 0.62fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 10rem);
}

.faq-layout h2 { max-width: 9ch; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; gap: 1rem; justify-content: space-between; padding: 1.1rem 0; color: var(--forest); font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { flex: 0 0 auto; color: #679514; font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform 180ms ease; }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p { max-width: 39rem; margin: 0; padding: 0 2rem 1.25rem 0; color: var(--muted); }

.contact-band { padding: clamp(3.5rem, 7vw, 6.5rem) 0; background: var(--forest-deep); color: var(--paper); }
.contact-band h2 { max-width: 13ch; color: var(--paper); }
.contact-band p:not(.eyebrow) { max-width: 35rem; margin-bottom: 0; color: rgba(248, 244, 233, 0.78); }
.contact-band__inner { display: flex; gap: 2rem 4rem; align-items: end; justify-content: space-between; }
.contact-band__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; flex: 0 0 auto; }

.page-heading,
.page-head {
  padding: clamp(3.6rem, 7vw, 6.7rem) 0 clamp(2.8rem, 5vw, 4.8rem);
  border-bottom: 1px solid var(--line);
}

.page-heading__inner { max-width: 48rem; }
.page-heading h1 { max-width: 13ch; }
.page-heading p:not(.eyebrow) { max-width: 39rem; margin-bottom: 0; color: var(--muted); font-size: 1.18rem; }

.portfolio-grid { display: grid; gap: 2rem; }

.portfolio-card { width: min(100%, 940px); }

.portfolio-card__link {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(18rem, 0.84fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--forest);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.portfolio-card__link:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.portfolio-card__media { align-self: stretch; border-radius: 0; }
.portfolio-card__media img { min-height: 100%; object-fit: cover; }
.portfolio-card__body { padding: clamp(1.2rem, 3vw, 2.35rem); }
.portfolio-card .case-label { color: #679514; }
.portfolio-card__text { color: var(--muted); }
.portfolio-card .tag-list { color: var(--forest); }

.coming-soon {
  display: flex;
  width: min(100%, 940px);
  gap: 1.2rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.coming-soon > span { color: #679514; font-size: 1.5rem; line-height: 1.1; }
.coming-soon h2 { margin-bottom: 0.3rem; font-size: 1.2rem; }
.coming-soon p { margin: 0; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin-bottom: clamp(1.8rem, 4vw, 3.5rem);
  color: var(--muted);
  font-size: 0.83rem;
}

.breadcrumbs a { color: var(--forest); }

.case-hero { padding: clamp(3rem, 6vw, 5.5rem) 0 2.7rem; }
.case-hero__inner { width: min(100% - 2rem, 880px); margin: auto; }
.case-hero h1 { max-width: 12ch; }
.case-hero__lead { max-width: 44rem; margin-bottom: 0; color: var(--muted); font-size: clamp(1.12rem, 1.6vw, 1.32rem); }
.tag-list--dark { margin-top: 1.4rem; color: var(--forest); }
.case-hero .hero__actions { margin-top: 1.55rem; }

.case-cover-wrap { margin-bottom: clamp(4rem, 8vw, 7rem); }
.case-cover { display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.case-cover img { width: 100%; height: auto; }

.case-content { width: min(100% - 2rem, 800px); margin: auto; }
.case-content__section { padding: 0 0 clamp(2.6rem, 5vw, 4.5rem); }
.case-content__section h2 { max-width: 15ch; }
.case-content__section > p { max-width: 44rem; color: var(--muted); }
.case-content__intro > p:last-child { color: var(--forest); font-size: 1.21rem; }

.case-principles { padding: clamp(1.8rem, 4vw, 3.1rem); border-radius: var(--radius); background: #e9efdd; }
.case-principles ul { display: grid; gap: 0.8rem; max-width: 45rem; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.case-principles li { position: relative; padding-left: 1.5rem; color: var(--forest); }
.case-principles li::before { position: absolute; top: 0.7em; left: 0; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #85ad11; content: ""; }

.case-confirmation { padding: clamp(1.8rem, 4vw, 3.1rem); border: 1px solid var(--line); border-radius: var(--radius); }
.case-confirmation p:last-child { margin-bottom: 0; }

.case-cta {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  margin: 0 0 clamp(4rem, 8vw, 7.5rem);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--paper);
}

.case-cta h2 { max-width: 14ch; color: var(--paper); font-size: clamp(1.8rem, 3vw, 2.7rem); }
.case-cta p:not(.eyebrow) { max-width: 31rem; margin-bottom: 0; color: rgba(248, 244, 233, 0.78); }

.contact-heading { min-height: 68vh; padding-top: clamp(3.6rem, 6vw, 6rem); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(20rem, 0.9fr); gap: clamp(2.2rem, 7vw, 8rem); align-items: start; }
.contact-intro h1 { max-width: 9ch; }
.contact-intro > p:not(.eyebrow) { max-width: 32rem; color: var(--muted); font-size: 1.15rem; }
.contact-intro .text-link { margin-top: 0; padding-top: 0.8rem; color: var(--forest); }

.contact-list { display: grid; gap: 0.4rem; margin: 2.25rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.contact-list li { display: flex; gap: 1rem; justify-content: space-between; color: var(--forest); }
.contact-list span { color: var(--muted); font-size: 0.88rem; }
.contact-list a { font-weight: 700; text-align: right; }

.contact-form,
.form-card {
  padding: clamp(1.25rem, 3.2vw, 2.55rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(7, 59, 45, 0.06);
}

.contact-form__heading { margin-bottom: 1.65rem; }
.contact-form__heading h2 { margin-bottom: 0.45rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.contact-form__heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 0.92rem; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin-bottom: 1.5rem; }
.field--full { grid-column: 1 / -1; }
.field label, .form-label { display: block; margin-bottom: 0.45rem; color: var(--forest); font-size: 0.9rem; font-weight: 700; }
.field label span { color: #689113; }

.form-control {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.68rem 0.78rem;
  border: 1px solid rgba(7, 59, 45, 0.28);
  border-radius: 0.55rem;
  background: #fffefa;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.45;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea.form-control { min-height: 9.4rem; resize: vertical; }
.form-control::placeholder { color: #7c938c; }
.form-control:focus { border-color: #679514; outline: 0; box-shadow: 0 0 0 3px rgba(201, 237, 71, 0.33); }
.form-control.is-invalid { border-color: #a73431; }
.field-hint, .field-error { margin: 0.38rem 0 0; font-size: 0.78rem; line-height: 1.35; }
.field-hint { color: var(--muted); }
.field-error, .invalid-feedback { color: #a73431; }
.form-alert { margin: 0 0 1rem; padding: 0.75rem 0.85rem; border-left: 3px solid #a73431; background: #fff0ee; color: #7e2523; font-size: 0.9rem; }

.flash-wrap { padding-top: 1rem; }
.flash-message { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; padding: 0.8rem 0.95rem; border-left: 3px solid var(--forest); background: var(--paper); box-shadow: 0 6px 18px rgba(7, 59, 45, 0.07); }
.flash-message p { margin: 0; }
.flash-message--danger { border-color: #a73431; background: #fff0ee; }
.flash-message--warning { border-color: #ba8017; background: #fff8e8; }
.flash-message--success,
.flash-message--contact-success { border-color: #679514; background: #f0fad7; }
.flash-message__close { width: 1.8rem; height: 1.8rem; padding: 0; border: 0; border-radius: 0.35rem; background: transparent; color: var(--forest); font-size: 1.3rem; line-height: 1; }

.site-footer { padding: 3.7rem 0 0; background: var(--forest-deep); color: rgba(248, 244, 233, 0.82); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(10rem, 0.55fr)); gap: 2rem clamp(2rem, 6vw, 6rem); }
.footer-brand { color: var(--paper); }
.footer-brand__mark { display: inline-grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 0.55rem; background: var(--milk); }
.footer-brand__mark img { width: 1.72rem; height: 1.76rem; object-fit: contain; }
.footer-intro { max-width: 24rem; margin: 1rem 0 0; font-size: 0.92rem; line-height: 1.5; }
.footer-links { display: grid; align-content: start; gap: 0.45rem; }
.footer-links p { margin: 0 0 0.25rem; color: var(--lime); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.footer-links a { font-size: 0.9rem; text-decoration-color: rgba(248, 244, 233, 0.34); }
.footer-admin-link { margin-top: 0.55rem; opacity: 0.72; }
.footer-bottom { margin-top: 3rem; padding: 1.2rem 0; border-top: 1px solid var(--line-light); color: rgba(248, 244, 233, 0.55); font-size: 0.78rem; }

/* Админ-панель и служебные страницы сохраняют функции без зависимости от Bootstrap. */
.page-head-compact { padding-bottom: 1.8rem; }
.section-tight { padding-top: 2.7rem; }
.section-head { display: flex; gap: 1rem; align-items: end; justify-content: space-between; }
.section-head h1 { margin-bottom: 0; }
.unread-line { margin: 0; color: var(--muted); }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--paper); }
.table { width: 100%; min-width: 790px; border-collapse: collapse; font-size: 0.88rem; }
.table th, .table td { padding: 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.table th { color: var(--forest); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .is-unread td { background: #f2f9d8; }
.request-text { margin: 0.4rem 0 0; color: var(--muted); white-space: pre-wrap; }
.status { display: inline-flex; padding: 0.25rem 0.47rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.status-new { background: #e8f6ad; color: var(--forest-deep); }
.status-read { background: #e5ece8; color: var(--muted); }
.request-actions { display: grid; gap: 0.45rem; }
.request-actions form { margin: 0; }
.empty-state { max-width: 37rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.empty-state h2 { font-size: 1.7rem; }
.login-card { max-width: 32rem; margin: auto; }
.login-card .form-control { margin-bottom: 0.9rem; }
.login-note { color: var(--muted); font-size: 0.92rem; }

.article { padding: 4rem 0; }
.crumbs { display: flex; gap: 0.5rem; margin-bottom: 1.4rem; color: var(--muted); font-size: 0.85rem; }
.article-cover { width: 100%; margin: 2rem 0; border-radius: var(--radius); }
.article-body { color: var(--muted); }
.article-body h2 { margin-top: 2.8rem; }
.deliverables { padding-left: 1.2rem; }
.note { padding: 1rem; border-left: 3px solid var(--lime); background: #edf3de; color: var(--forest); }
.article-cta { margin-top: 2rem; padding: 1.6rem; border-radius: var(--radius); background: var(--forest); color: var(--paper); }
.article-cta p { margin-bottom: 0.8rem; }
.case-switch { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr); gap: 2.5rem; }
  .workflow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-item:nth-child(3) { border-left: 0; }
  .workflow-item:nth-child(n + 3) { padding-top: 2rem; border-top: 1px solid var(--line); }
  .contact-band__inner { display: grid; align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 850px) {
  .header-inner { position: relative; flex-wrap: wrap; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { width: 100%; flex-basis: 100%; align-items: stretch; gap: 0.25rem; padding: 0 0 1rem; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav__link { padding: 0.65rem 0.4rem; }
  .nav-cta { width: 100%; margin: 0.55rem 0 0; }
  .section-heading--split, .section-heading--light, .about-layout, .faq-layout, .contact-layout { grid-template-columns: 1fr; }
  .section-heading--split, .section-heading--light { gap: 0.8rem; }
  .section-heading--split > p, .section-heading--light > p { margin: 0; }
  .featured-case, .portfolio-card__link { grid-template-columns: 1fr; }
  .featured-case__body { padding: 0.8rem 0.4rem 0.6rem; }
  .portfolio-card__media img { min-height: auto; }
  .contact-form { margin-top: 0.5rem; }
  .case-cta { display: grid; align-items: start; }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  .site-container, .container { width: min(100% - 1.5rem, 1180px); }
  h1 { font-size: clamp(2.45rem, 12.4vw, 3.65rem); }
  h2 { font-size: clamp(1.9rem, 8.7vw, 2.65rem); }
  .brand__name { font-size: 0.94rem; }
  .brand__logo { width: 2.2rem; height: 2.26rem; }
  .hero { padding-top: 2.6rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__content { padding: 0; }
  .hero-portrait { width: min(100%, 33rem); }
  .hero__actions .btn { flex: 1 1 13rem; }
  .section { padding: 4.2rem 0; }
  .service-item { grid-template-columns: 2.55rem minmax(0, 1fr); padding: 1.3rem 0; }
  .workflow-list { grid-template-columns: 1fr; }
  .workflow-item, .workflow-item + .workflow-item, .workflow-item:nth-child(3) { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; padding: 1.25rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .workflow-item:first-child { border-top: 0; }
  .workflow-item > span { margin: 0; }
  .workflow-item h3 { margin-bottom: 0.25rem; }
  .faq-item p { padding-right: 0; }
  .contact-band__actions { display: grid; }
  .contact-band__actions .btn { width: 100%; }
  .page-heading { padding-top: 3.2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .contact-list li { display: grid; gap: 0.1rem; }
  .contact-list a { text-align: left; }
  .case-hero { padding-top: 2.8rem; }
  .case-cover-wrap { width: 100%; margin-bottom: 3.4rem; }
  .case-cover { border-radius: 0; }
  .case-content { width: min(100% - 1.5rem, 800px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { margin-top: 2rem; }
  .section-head { align-items: start; flex-direction: column; }
}

@media (max-width: 520px) {
  .btn { width: 100%; }
  .hero__actions, .contact-intro__actions { display: grid; }
  .hero__actions .btn { width: 100%; }
  .featured-case { padding: 0.65rem; }
  .featured-case__body { padding: 1.15rem 0.55rem 0.7rem; }
  .featured-case__title, .portfolio-card__title { font-size: 1.85rem; }
  .portfolio-card__body { padding: 1.3rem; }
  .case-cta { margin-inline: -0.75rem; border-radius: 0; }
  .case-switch { display: grid; }
}

@media (max-width: 700px) {
  .admin-table-wrap { border: 0; overflow: visible; background: transparent; }
  .table { min-width: 0; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--paper); overflow: hidden; }
  .admin-table td { display: grid; grid-template-columns: 7.1rem minmax(0, 1fr); gap: 0.7rem; padding: 0.75rem; border-bottom: 1px solid var(--line); }
  .admin-table td::before { color: var(--muted); font-size: 0.75rem; font-weight: 700; content: attr(data-label); }
  .admin-table .is-unread td { background: #f2f9d8; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .case-card__visual { transform: none !important; }
}
