:root {
  --bg: #eef1f3;
  --bg-strong: #10151b;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-dark: rgba(16, 21, 27, 0.88);
  --line: rgba(16, 21, 27, 0.1);
  --text: #10151b;
  --muted: #53606d;
  --accent: #d56b2d;
  --accent-soft: rgba(213, 107, 45, 0.14);
  --white: #f8f8f7;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 30px 80px rgba(15, 21, 27, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(213, 107, 45, 0.18), transparent 26%),
    radial-gradient(circle at bottom right, rgba(16, 21, 27, 0.08), transparent 30%),
    linear-gradient(180deg, #f4f6f8 0%, #e7ebef 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 21, 27, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 21, 27, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: -1;
}

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

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

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

.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(238, 241, 243, 0.78);
  border-bottom: 1px solid rgba(16, 21, 27, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
}

.site-header__inner > *,
.hero__grid > *,
.page-hero__grid > *,
.about-snapshot__grid > *,
.contact-layout > *,
.request-block > * {
  min-width: 0;
}

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

.brand img {
  width: 60px;
  height: 60px;
}

.brand strong,
.section-heading h2,
.hero h1,
.page-hero h1,
.request-block h2,
.site-footer h2,
.service-card h2,
.service-card h3,
.project-card h3,
.gallery-card h3,
.advantage-card h3,
.faq-item summary,
.timeline__item h3,
.matrix-card__row strong,
.fact-card__item strong,
.contact-card strong,
.contact-card a,
.legal-sheet h2 {
  font-family: "Space Grotesk", sans-serif;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
}

.brand span {
  display: grid;
  min-width: 0;
}

.brand small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.site-nav > a:not(.button) {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 999px;
  white-space: nowrap;
  transition: 0.2s ease;
}

.site-nav > a:not(.button):hover,
.site-nav > a.is-active {
  color: var(--text);
  background: rgba(16, 21, 27, 0.06);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(16, 21, 27, 0.08);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

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

.button--ghost {
  border-color: rgba(16, 21, 27, 0.12);
  background: rgba(255, 255, 255, 0.45);
}

.button--wide {
  width: 100%;
}

.hero,
.page-hero {
  padding: 64px 0 28px;
}

.hero__grid,
.page-hero__grid,
.about-snapshot__grid,
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero__text,
.page-hero p,
.copy-stack p,
.request-block__copy p,
.contact-aside p,
.legal-sheet p,
.service-card p,
.advantage-card p,
.timeline__item p,
.matrix-card__row span,
.gallery-card span,
.project-card span,
.fact-card__item span,
.footer-text {
  color: var(--muted);
  line-height: 1.65;
}

.hero__actions,
.section-actions,
.centered-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

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

.metric-strip li,
.hero-card,
.service-card,
.advantage-card,
.project-card,
.gallery-card,
.matrix-card,
.fact-card,
.contact-card,
.contact-aside,
.request-block,
.legal-sheet,
.timeline__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-strip li {
  padding: 18px;
}

.metric-strip strong {
  font-size: 2rem;
}

.metric-strip span {
  font-size: 0.95rem;
  margin-left: 6px;
}

.metric-strip small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

.hero__visual {
  display: grid;
  gap: 18px;
}

.hero-card {
  padding: 24px;
}

.hero-card--primary {
  background: linear-gradient(135deg, rgba(16, 21, 27, 0.97), rgba(36, 46, 58, 0.95));
  color: var(--white);
}

.hero-card--primary span,
.hero-card--accent p {
  color: rgba(248, 248, 247, 0.74);
}

.hero-card--accent {
  background: linear-gradient(135deg, rgba(213, 107, 45, 0.94), rgba(166, 80, 27, 0.9));
  color: var(--white);
}

.hero-card--image {
  padding: 0;
  overflow: hidden;
  min-height: 340px;
}

.hero-card--image img,
.gallery-card img,
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 38px 0 44px;
}

.section--dark {
  background: linear-gradient(180deg, rgba(16, 21, 27, 0.98), rgba(19, 26, 35, 0.98));
  color: var(--white);
}

.section--dark .service-card,
.section--dark .advantage-card,
.section--dark .timeline__item,
.section--dark .request-block,
.section--dark .matrix-card,
.section--dark .faq-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.section--dark .hero__text,
.section--dark .section-heading p,
.section--dark .advantage-card p,
.section--dark .timeline__item p,
.section--dark .faq-item p,
.section--dark .request-block__copy p,
.section--dark .form-note {
  color: rgba(248, 248, 247, 0.72);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-kicker,
.service-card__eyebrow,
.footer-label,
.project-card p,
.gallery-card p {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

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

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

.service-card,
.advantage-card,
.project-card,
.gallery-card,
.request-block,
.contact-card,
.contact-aside,
.matrix-card,
.fact-card,
.legal-sheet {
  padding: 24px;
}

.service-card ul,
.contact-aside ul,
.footer-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  padding: 22px;
}

.timeline__item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
}

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

.project-card,
.gallery-card {
  overflow: hidden;
  padding: 0;
}

.project-card img,
.gallery-card img {
  aspect-ratio: 1.15 / 1;
}

.project-card__body,
.gallery-card__body {
  padding: 20px;
}

.fact-card,
.contact-card,
.matrix-card {
  display: grid;
  gap: 14px;
}

.fact-card__item,
.matrix-card__row,
.contact-card > div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.fact-card__item:last-child,
.matrix-card__row:last-child,
.contact-card > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.map-embed {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius-lg);
}

.faq-grid {
  display: grid;
  gap: 20px;
}

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

.faq-item {
  padding: 20px 22px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 12px 0 0;
}

.request-block {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 24px;
}

.request-block--dark {
  background: rgba(16, 21, 27, 0.92);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.08);
}

.request-form {
  display: grid;
  gap: 14px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span,
.consent span,
.form-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(16, 21, 27, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.field input::placeholder,
.field textarea::placeholder {
  font-size: 0.94rem;
}

.page-contacts .request-block {
  grid-template-columns: 1fr;
}

.page-contacts .request-block__copy {
  max-width: 560px;
}

.request-block--dark .field input,
.request-block--dark .field textarea,
.request-block--dark .field select {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.1);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

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

.filter-chip {
  padding: 10px 14px;
  border: 1px solid rgba(16, 21, 27, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.filter-chip.is-active {
  background: var(--accent);
  color: var(--white);
  border-color: transparent;
}

.portfolio-grid {
  display: grid;
  gap: 18px;
}

.gallery-card.is-hidden {
  display: none;
}

.legal-sheet {
  max-width: 900px;
}

.legal-sheet h2 {
  margin-top: 28px;
  margin-bottom: 8px;
}

.site-footer {
  padding: 44px 0 56px;
  background: #0f141a;
  color: var(--white);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 0.8fr;
  gap: 24px;
}

.site-footer .footer-text,
.site-footer .footer-list {
  color: rgba(248, 248, 247, 0.72);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(16, 21, 27, 0.94);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.centered {
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero__grid,
  .page-hero__grid,
  .about-snapshot__grid,
  .contact-layout,
  .request-block,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .site-header__inner {
    min-height: 74px;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 24px;
    background: rgba(244, 246, 248, 0.98);
    border: 1px solid rgba(16, 21, 27, 0.08);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .metric-strip,
  .field-grid,
  .service-grid,
  .advantage-grid,
  .featured-projects,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

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

  .timeline__item > span {
    width: 62px;
    height: 62px;
  }

  .hero,
.page-hero {
    padding-top: 36px;
  }
}

@media (max-width: 580px) {
  .shell {
    padding-inline: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .brand strong {
    font-size: 1.1rem;
  }

  .brand small {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.05rem, 10vw, 2.75rem);
    letter-spacing: -0.04em;
  }

  .hero__actions > .button,
  .section-actions > .button,
  .centered-actions > .button {
    width: 100%;
  }

  .metric-strip li,
  .hero-card,
  .service-card,
  .advantage-card,
  .project-card,
  .gallery-card,
  .matrix-card,
  .fact-card,
  .contact-card,
  .contact-aside,
  .request-block,
  .legal-sheet,
  .timeline__item,
  .article-card {
    padding-inline: 18px;
  }
}

.article-layout {
  max-width: 920px;
}

.article-card {
  padding: 32px;
  border-radius: 32px;
  background: rgba(244, 246, 248, 0.96);
  border: 1px solid rgba(16, 21, 27, 0.08);
  box-shadow: var(--shadow);
}

.article-cover {
  display: block;
  width: 100%;
  margin: 0 0 24px;
  border-radius: 24px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.article-card p {
  margin: 0 0 18px;
}

.article-card p:last-child {
  margin-bottom: 0;
}

.article-meta {
  color: var(--color-muted);
  font-size: 0.95rem;
}
