:root {
  --bg: #f4f1ec;
  --bg-2: #e8e4dc;
  --white: #ffffff;
  --text: #1d2329;
  --graphite: #2d333a;
  --muted: #6d747c;
  --line: #d6d0c6;
  --red: #b3261e;
  --red-dark: #7f1d18;
  --bronze: #a67c3d;
  --bronze-dark: #6f522c;
  --steel: #87919b;
  --dark: #17212b;
  --shadow: 0 18px 45px rgba(23, 33, 43, 0.08);
  --radius: 8px;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(29, 35, 41, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 35, 41, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.container {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 26px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  color: var(--red);
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.desktop-nav a,
.mobile-nav a {
  position: relative;
  padding: 10px 12px;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  color: var(--graphite);
  font-weight: 800;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--red);
}

.button.primary:hover {
  background: var(--red-dark);
}

.button.secondary {
  color: var(--red);
  background: transparent;
  border-color: var(--red);
}

.button.secondary:hover {
  background: #f5e7e5;
}

.button.small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--graphite);
}

.mobile-nav {
  display: none;
}

.hero,
.page-hero {
  padding: 88px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 56px;
  align-items: center;
}

.kicker {
  margin: 0 0 16px;
  color: var(--bronze-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 850;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 820;
}

h3 {
  font-size: 22px;
  font-weight: 800;
}

.hero-lead,
.page-hero p,
.section-intro p {
  max-width: 720px;
  color: #4d555e;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.hero-facts span {
  padding: 14px 16px;
  border-left: 3px solid var(--bronze);
  background: rgba(255, 255, 255, 0.72);
  color: var(--graphite);
  font-weight: 800;
}

.hero-media {
  position: relative;
  margin: 0;
  min-height: 560px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  z-index: 2;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06);
}

.hero-media figcaption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  width: min(360px, calc(100% - 48px));
  padding: 20px;
  background: rgba(23, 33, 43, 0.9);
  color: var(--white);
}

.hero-media figcaption strong {
  display: block;
  color: var(--white);
  font-size: 20px;
}

.hero-media figcaption span {
  color: #e8e4dc;
  font-size: 14px;
}

.page-hero {
  background: var(--dark);
  color: var(--white);
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  color: var(--white);
}

.page-hero p:not(.kicker) {
  color: #dfe4e8;
}

.page-hero .kicker {
  color: #d4a55d;
}

.section {
  padding: 96px 0;
}

.section-intro {
  margin-bottom: 42px;
}

.section-intro h2 {
  max-width: 860px;
}

.section-intro p {
  margin: 18px 0 0;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.principle-list,
.partner-grid,
.process-grid,
.service-grid,
.portfolio-grid,
.stats-grid,
.badge-grid {
  display: grid;
  gap: 20px;
}

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

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

.principle-list article,
.partner-grid article,
.process-grid article,
.document-card,
.contact-card,
.stat-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.principle-list article::before,
.partner-grid article::before,
.service-card::before,
.document-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 62px;
  height: 3px;
  background: var(--red);
}

.principle-list span,
.partner-grid span,
.process-grid span,
.timeline span {
  display: block;
  margin-bottom: 18px;
  color: var(--bronze);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.principle-list p,
.partner-grid p,
.process-grid p,
.document-card p,
.contact-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

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

.service-card,
.portfolio-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23, 33, 43, 0.04);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover,
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  aspect-ratio: 1.28 / 1;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05);
}

.card-body {
  padding: 28px;
}

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

.card-body ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.card-body li {
  position: relative;
  margin-top: 10px;
  padding-left: 18px;
  color: var(--graphite);
}

.card-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 2px;
  background: var(--red);
}

.card-meta {
  margin: 0 0 14px;
  color: var(--bronze-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--red);
  font-weight: 900;
}

.text-link::after {
  content: "→";
}

.stats-section {
  background: var(--dark);
}

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

.stat-card {
  min-height: 180px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
}

.stat-card strong {
  display: block;
  color: var(--white);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 16px;
  color: #d5dbe0;
  font-weight: 700;
}

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

.portfolio-photo {
  position: relative;
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
  background: var(--dark);
}

.portfolio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04) brightness(0.86);
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-photo img {
  transform: scale(1.04);
}

.portfolio-photo span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 10px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.process-section {
  background: rgba(232, 228, 220, 0.64);
}

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

.detail-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.detail-row:last-child {
  border-bottom: 1px solid var(--line);
}

.detail-media img,
.framed-photo img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

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

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

.check-grid span {
  padding: 14px 16px;
  border-left: 3px solid var(--bronze);
  background: rgba(255, 255, 255, 0.8);
  font-weight: 750;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

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

.timeline article {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.timeline article:last-child {
  border-right: 0;
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-bar button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--graphite);
  cursor: pointer;
  font-weight: 800;
}

.filter-bar button.active,
.filter-bar button:hover {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.document-card {
  background: var(--dark);
  color: var(--white);
}

.document-card.light {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.document-card span {
  color: var(--bronze);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.document-card h3 {
  margin-top: 18px;
  color: var(--white);
}

.document-card:not(.light) p {
  color: #d5dbe0;
}

.document-card.light h3 {
  color: var(--text);
}

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

.director-section {
  background: var(--dark);
  color: var(--white);
}

.director-card {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.director-card h2,
.director-card blockquote {
  color: var(--white);
}

.director-card p {
  color: #d5dbe0;
}

blockquote {
  margin: 0;
  padding: 32px;
  border-left: 4px solid var(--bronze);
  background: rgba(255, 255, 255, 0.06);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 800;
}

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

.badge-grid span {
  min-height: 70px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--graphite);
  font-weight: 850;
  text-align: center;
}

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

.cta-section {
  background: var(--dark);
  color: var(--white);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.74fr);
  gap: 56px;
  align-items: start;
}

.cta-grid h2,
.cta-grid .kicker {
  color: var(--white);
}

.cta-grid .kicker {
  color: #d4a55d;
}

.cta-grid p {
  color: #d5dbe0;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.contact-line a {
  color: var(--white);
  font-weight: 850;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.contact-form label {
  color: #dfe4e8;
  font-size: 13px;
  font-weight: 800;
}

.contact-form label input:not([type="checkbox"]),
.contact-form label select,
.contact-form label textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cfc8bd;
  border-radius: 4px;
  background: var(--white);
  color: var(--text);
  outline: none;
}

.contact-form label input:not([type="checkbox"]),
.contact-form label select {
  height: 50px;
  padding: 0 14px;
}

.contact-form label textarea {
  min-height: 126px;
  padding: 12px 14px;
  resize: vertical;
}

.contact-form label input:not([type="checkbox"]):focus,
.contact-form label select:focus,
.contact-form label textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

.contact-form .wide {
  grid-column: 1 / -1;
}

.contact-page-grid .contact-form {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.contact-page-grid .contact-form label,
.contact-page-grid .policy {
  color: var(--graphite);
}

.contact-page-grid .form-status {
  color: var(--bronze-dark);
}

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

.policy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  flex: 0 0 18px;
}

.form-status {
  margin: 0;
  color: #d4a55d;
  font-weight: 800;
}

.form-status.is-error {
  color: #b54747;
}

.contact-form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.captcha-wrap {
  min-height: 102px;
}

.captcha-wrap .smart-captcha {
  max-width: 100%;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 32px;
}

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

.contact-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--bronze-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card a {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 22px;
  font-weight: 850;
}

.map-card {
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(23, 33, 43, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 43, 0.12) 1px, transparent 1px),
    #ddd8cf;
  background-size: 42px 42px;
}

.map-card div {
  width: 100%;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.map-card span {
  color: var(--bronze-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-card strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.08;
}

.site-footer {
  padding: 64px 0 28px;
  background: #101820;
  color: #d5dbe0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr 1.2fr;
  gap: 42px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 16px;
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 9px 0;
  color: #d5dbe0;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #a9b2bb;
}

@media (max-width: 1120px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

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

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 82px;
    display: grid;
    gap: 4px;
    padding: 20px 32px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    transform: translateY(-120%);
    transition: transform 0.22s ease;
  }

  .menu-open .mobile-nav {
    transform: translateY(0);
  }

  .mobile-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .mobile-phone {
    color: var(--red) !important;
    font-weight: 900;
  }

  .hero-grid,
  .split-grid,
  .cta-grid,
  .contact-page-grid,
  .director-card {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-media img {
    min-height: 460px;
  }

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

  .principle-list.wide,
  .stats-grid,
  .process-grid,
  .partner-grid,
  .badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline,
  .timeline.compact {
    grid-template-columns: 1fr;
  }

  .timeline article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline article:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 40px, var(--container));
  }

  .header-inner {
    min-height: 74px;
  }

  .brand small {
    display: none;
  }

  .mobile-nav {
    top: 74px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero,
  .page-hero {
    padding: 58px 0 52px;
  }

  .section {
    padding: 68px 0;
  }

  .hero-facts,
  .service-grid,
  .portfolio-grid,
  .principle-list,
  .principle-list.wide,
  .stats-grid,
  .process-grid,
  .partner-grid,
  .badge-grid,
  .check-grid,
  .contact-form,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-media img {
    min-height: 360px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cta-grid,
  .contact-page-grid {
    gap: 28px;
  }

  .requisites dl {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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