:root {
  color-scheme: light;
  --ink: #222;
  --muted: #4f5c67;
  --blue: #326594;
  --navy: #173652;
  --cream: #fcf4e9;
  --yellow: #ffd32b;
  --line: #dfd8ce;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.5; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #326594; outline-offset: 3px; }
button, input { font: inherit; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.header, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header { min-height: 82px; }
.brand { font-weight: 780; color: var(--blue); text-decoration: none; font-size: clamp(.85rem, 2.05vw, 1.1rem); }
.phone { display: grid; justify-items: end; white-space: nowrap; font-size: .83rem; }
.phone a { font-weight: 750; color: var(--blue); display: grid; align-items: center; min-height: 44px; text-decoration: none; }
.hero {
  background-color: var(--navy);
  background-image: linear-gradient(90deg, rgba(12, 30, 48, .89), rgba(12, 30, 48, .65) 48%, rgba(12, 30, 48, .2)), url("/assets/kazan-kremlin-panorama.webp");
  background-position: center;
  background-size: cover;
  color: white;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 88px); padding-block: clamp(32px, 5vw, 72px); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(2rem, 4.3vw, 3.25rem); letter-spacing: -.045em; max-width: 15ch; }
h2 { font-size: clamp(1.5rem, 3vw, 2.12rem); letter-spacing: -.027em; color: var(--blue); max-width: 31ch; }
.hero p { max-width: 46ch; margin-top: 14px; }
.hero-count { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; color: #ffdb62; }
.hero-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: 8px clamp(20px, 4vw, 44px);
  margin: 18px 0 0;
  padding-inline-start: 1.2em;
}
.hero-features li::marker { color: #ffdb62; }
.lead { background: #fff; border: 1px solid var(--line); padding: clamp(18px, 3vw, 36px); border-radius: 10px; color: var(--ink); }
.lead h2 { font-size: clamp(1.2rem, 2vw, 1.58rem); }
.lead > p { font-size: .94rem; }
.lead fieldset { border: 0; min-width: 0; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.lead label { font-size: .86rem; font-weight: 650; display: grid; gap: 4px; }
.lead input { min-height: 44px; width: 100%; border: 1px solid #b5c0c8; padding: 8px 10px; border-radius: 5px; background: #fafafa; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; color: #222; background: var(--yellow); border: 0; border-radius: 6px; font-weight: 750; text-align: center; }
.button:disabled { color: #413a28; background: #ffe389; cursor: default; }
.unavailable { margin-top: 9px; font-size: .85rem; color: var(--muted); }
.intro-strip { margin-top: 24px; padding: 15px 20px; background: var(--cream); font-size: .94rem; }
.intro-strip strong { color: var(--blue); margin-right: 5px; }
.section { padding-block: clamp(34px, 5vw, 66px); }
.intro { margin-top: 14px; max-width: 64ch; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.intro + .projects { margin-top: 26px; }
.project { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf9; }
.project-meta { font-size: .85rem; color: var(--muted); }
.project h3 { margin: 7px 0 10px; font-size: 1.25rem; color: var(--navy); }
.process { background: #fff; }
.catalog-help { padding-block: 30px; }
.split, .expert { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 5vw, 64px); align-items: center; }
.split p { margin-top: 10px; }
.split .button { margin-top: 12px; }
.expert { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.expert-list { margin: 15px 0 0; padding-left: 1.2em; }
.expert-list li + li { margin-top: 7px; }
.bio { padding: 22px; border-left: 3px solid var(--blue); background: var(--cream); }
.bio p { margin-top: 10px; }
.process h2 { max-width: none; }
.process-subtitle { margin-top: 8px; color: var(--navy); font-weight: 700; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style-type: decimal-leading-zero; margin: 22px 0 0; padding: 0; row-gap: 20px; }
.steps li { position: relative; margin-inline-start: 2em; padding-inline-end: 1.25em; }
.steps li::marker { font-weight: 800; color: var(--blue); }
.steps h3 { color: var(--navy); font-size: 1.08rem; }
.steps p { margin-top: 6px; }
.steps li + li::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -2em;
  border-inline-start: 1px solid #c7bba8;
}
.footer { background: #f5f7f8; padding-block: 22px; font-size: .87rem; }
.footer-inner { align-items: flex-start; }
.footer-inner p, .footer-inner > div > a + a { margin-top: 6px; }
.footer-inner div > a { display: block; }
@media (max-width: 870px) {
  .wrap { width: calc(100% - 44px); }
  .projects, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(odd)::before { content: none; }
}
@media (max-width: 650px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .header { min-height: 64px; }
  .phone a { min-height: 27px; }
  .hero-inner, .split, .expert, .projects, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding-inline-end: 0; }
  .steps li + li::before { content: none; }
  .projects { gap: 12px; margin-top: 12px; }
  .project { padding: 15px; }
  .footer-inner { display: grid; gap: 12px; }
}

.project h3 a { text-decoration: none; }
.project h3 a:hover { text-decoration: underline; }
.project-link { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; margin-top: 6px; font-weight: 750; color: var(--blue); }
.project .project-price { margin-top: 10px; font-weight: 750; color: var(--navy); }
.price-date { margin-top: 14px; color: var(--muted); font-size: .85rem; }

@media (max-width: 650px) {
  .hero { background-image: none; }
  .hero::before {
    content: "";
    display: block;
    aspect-ratio: 2.25;
    background: url("/assets/kazan-kremlin-panorama.webp") center / cover no-repeat;
  }
}
.catalog-project-photo { display: block; overflow: hidden; border-radius: 6px; margin-bottom: 10px; }
.catalog-project-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
