:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #eef2f5;
  --ink: #111418;
  --muted: #5d6671;
  --line: #d8dee5;
  --accent: #0f62fe;
  --accent-strong: #063b9e;
  --sage: #50606f;
  --focus: #0f62fe;
  --shadow: 0 24px 70px rgba(18, 28, 40, 0.12);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f9fbfd 0%, var(--bg) 34%, #eef2f5 100%);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 246, 248, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  font-size: 1.25rem;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
}

.primary-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 0.9rem;
}

.primary-nav a,
.footer-nav a,
.header-phone,
.footer-contacts a,
.social-links a {
  text-decoration: none;
}

.primary-nav a:hover,
.footer-nav a:hover,
.header-phone:hover,
.footer-contacts a:hover,
.social-links a:hover {
  color: var(--accent);
}

.header-phone {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--accent-strong);
  font-weight: 760;
  white-space: nowrap;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  opacity: 0;
}

.nav-toggle-label {
  display: none;
}

.page-hero {
  min-height: min(760px, 100dvh);
  padding: 70px 0 54px;
  background:
    linear-gradient(135deg, rgba(15, 98, 254, 0.08) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero-with-visual .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero-content,
.hero-visual {
  min-width: 0;
}

.eyebrow,
.card-type,
.section-kicker {
  margin: 0 0 12px;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--accent);
}

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

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.45rem, 4.8vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 24px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 18px;
  font-size: 1.1rem;
  line-height: 1.28;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 720;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
  white-space: nowrap;
}

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

.button-secondary {
  background: transparent;
  color: var(--accent-strong);
}

.button:hover,
.related-card:hover,
.direction-card:hover {
  transform: translateY(-2px);
}

.button:active,
.related-card:active,
.direction-card:active {
  transform: translateY(1px);
}

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

.concept-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.concept-visual-hero img {
  aspect-ratio: 4 / 3;
  object-position: 34% 50%;
}

.concept-visual-framing-hub img,
.concept-visual-artwork-installation img,
.concept-visual-contact-support img {
  aspect-ratio: 2 / 1;
}

.concept-visual-framing-hub img {
  object-position: 50% 34%;
}

.concept-visual-artwork-installation img {
  object-position: 50% 62%;
}

.concept-visual-contact-support img {
  object-position: 50% 48%;
}

.visual-section {
  padding: 34px 0 0;
}

.visual-section + .section {
  padding-top: 48px;
}

.section {
  padding: 78px 0;
}

.section-lead {
  max-width: 760px;
  margin: -8px 0 30px;
  color: var(--muted);
  font-size: 1.06rem;
}

.intro-section {
  padding-bottom: 36px;
}

.intro-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: start;
}

.intro-block > p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.intro-block > p + p {
  margin-top: 14px;
}

.reading-note {
  grid-row: span 2;
  border-left: 4px solid var(--accent);
  padding: 20px 0 20px 22px;
  background: transparent;
}

.reading-note h2 {
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.reading-note p {
  margin: 0 0 12px;
  color: var(--muted);
}

.case-section:nth-of-type(odd) {
  background: #f9fbfd;
  border-block: 1px solid var(--line);
}

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

.case-card,
.faq-item,
.contact-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 24px;
}

.case-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.case-field dt {
  margin-bottom: 2px;
  color: var(--accent-strong);
  font-weight: 760;
}

.case-field dd {
  margin: 0;
  color: var(--muted);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.related-links a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--sage);
  font-size: 0.86rem;
  text-decoration: none;
}

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

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

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

.contact-card a {
  color: var(--accent-strong);
  font-weight: 760;
  text-decoration: none;
}

.text-flow {
  max-width: 820px;
}

.text-flow p {
  margin: 0 0 16px;
  color: var(--muted);
}

.feature-list,
.step-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 1.3rem;
  color: var(--muted);
}

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

.process-scheme {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.process-scheme__item {
  display: flex;
  min-width: 0;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 18px;
}

.process-scheme__number {
  display: inline-flex;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 760;
}

.process-scheme__content {
  min-width: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .process-scheme {
    grid-template-columns: 1fr;
  }
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  border: 1px solid var(--line);
  background: var(--line);
}

.direction-card {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  padding: 22px;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.direction-card span,
.direction-card small {
  display: block;
  color: var(--muted);
}

.direction-card span {
  margin-bottom: 8px;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.direction-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 1.06rem;
  line-height: 1.28;
}

.direction-card:hover {
  background: #f7faff;
}

.related-card {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 14px 16px;
  color: var(--accent-strong);
  font-weight: 720;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.related-card:hover {
  border-color: var(--accent);
  background: #f7faff;
}

.blog-article-index .article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.article-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 22px;
}

.article-card time,
.article-meta,
.breadcrumbs,
.tag-list {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.article-card h3 a {
  color: var(--accent-strong);
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--accent);
}

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

.article-hero {
  min-height: auto;
  padding: 54px 0 44px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--accent-strong);
  text-decoration: none;
}

.article-hero .hero-copy {
  max-width: 780px;
}

.article-meta {
  margin-top: 22px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 10px;
}

.editorial-note {
  max-width: 760px;
  margin-top: 22px;
  border-left: 4px solid var(--accent);
  padding: 14px 0 14px 18px;
  color: var(--muted);
}

.article-body {
  max-width: 840px;
}

.article-body h2,
.article-body h3 {
  margin-top: 38px;
}

.article-body p,
.article-body li {
  color: var(--muted);
}

.article-body a {
  color: var(--accent-strong);
  font-weight: 720;
}

.article-list {
  display: grid;
  gap: 12px;
  padding-left: 1.35rem;
}

.article-image {
  margin: 30px 0;
}

.article-image img {
  display: block;
  width: min(100%, 760px);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.faq-item h3 {
  margin-bottom: 8px;
}

.faq-item p,
.cta-block p,
.footer-text {
  margin: 0;
  color: var(--muted);
}

.cta-block {
  padding: 72px 0;
  background:
    linear-gradient(135deg, rgba(15, 98, 254, 0.16), rgba(15, 98, 254, 0)),
    #e9eef5;
}

.cta-block .container {
  max-width: 860px;
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: #111418;
  color: #f8fafc;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-text {
  max-width: 520px;
  color: #c5cbd3;
}

.footer-legal {
  margin: 14px 0 0;
  color: #9aa3af;
  font-size: 0.82rem;
}

.footer-side,
.footer-contacts,
.social-links {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.footer-contacts {
  font-style: normal;
  color: #c5cbd3;
}

.footer-contacts span {
  max-width: 300px;
  text-align: right;
}

.footer-nav {
  justify-content: flex-end;
}

.home-stats {
  display: grid;
  width: min(100%, 620px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--line);
}

.home-stats div {
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
}

.home-stats strong,
.home-stats span {
  display: block;
}

.home-stats strong {
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1;
}

.home-stats span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.home-process {
  background: #111418;
  color: #f8fafc;
}

.home-process h2 {
  max-width: 760px;
}

.home-process .section-lead,
.home-process .process-card p {
  color: #c5cbd3;
}

.process-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.18);
}

.process-card {
  min-height: 220px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(15, 98, 254, 0.16), rgba(15, 98, 254, 0)),
    #171b21;
}

.process-card h3 {
  color: #ffffff;
}

.process-card p {
  margin: 0;
}

.home-feature-panel .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: end;
  border-left: 6px solid var(--accent);
  padding-left: 28px;
}

.feature-panel-copy {
  max-width: 760px;
}

.feature-panel-copy p {
  margin: 0 0 14px;
  color: var(--muted);
}

.feature-panel-links {
  display: grid;
  gap: 10px;
}

.route-list {
  columns: 2;
  padding-left: 1.2rem;
}

.route-list li {
  margin-bottom: 8px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

@media (prefers-reduced-motion: no-preference) {
  .page-hero .hero-content,
  .page-hero .hero-visual,
  .direction-card,
  .process-card,
  .faq-item {
    animation: rise-in 520ms ease both;
  }

  .page-hero .hero-visual {
    animation-delay: 120ms;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(14px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 980px) {
  .direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 820px) {
  .footer-inner,
  .intro-block {
    display: block;
  }

  .header-inner {
    display: grid;
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
  }

  .brand {
    order: 1;
  }

  .nav-toggle-label {
    display: inline-flex;
    order: 2;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    cursor: pointer;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--ink);
  }

  .nav-toggle-label span {
    position: relative;
  }

  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .nav-toggle-label span::before {
    top: -6px;
  }

  .nav-toggle-label span::after {
    top: 6px;
  }

  .nav-toggle:focus-visible + .nav-toggle-label {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
  }

  .primary-nav {
    display: none;
    order: 4;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .primary-nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle:checked ~ .primary-nav {
    display: flex;
  }

  .header-phone {
    display: inline-flex;
    order: 3;
    margin-top: 0;
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .footer-nav,
  .footer-side {
    margin-top: 14px;
    justify-content: flex-start;
  }

  .footer-side,
  .footer-contacts,
  .social-links {
    justify-items: start;
  }

  .footer-contacts span {
    text-align: left;
  }

  .page-hero {
    min-height: auto;
    padding: 52px 0 40px;
  }

  .page-hero-with-visual .container {
    display: block;
  }

  .hero-visual {
    margin-top: 28px;
  }

  .visual-section {
    padding-top: 24px;
  }

  .visual-section + .section {
    padding-top: 36px;
  }

  .concept-visual img,
  .concept-visual-hero img {
    aspect-ratio: 4 / 3;
  }

  .concept-visual-framing-hub img,
  .concept-visual-artwork-installation img,
  .concept-visual-contact-support img {
    aspect-ratio: 16 / 9;
  }

  .section {
    padding: 44px 0;
  }

  .home-stats,
  .home-feature-panel .container {
    grid-template-columns: 1fr;
  }

  .home-feature-panel .container {
    gap: 22px;
  }

  .reading-note {
    margin-top: 22px;
  }

  .card-grid,
  .contact-grid,
  .related-grid,
  .direction-grid,
  .blog-article-index .article-grid {
    grid-template-columns: 1fr;
  }

  .route-list {
    columns: 1;
  }
}
