/* СВ Строй — Sergey's site, refreshed (owner 03.11). The old identity — the logo, blue #0077d8 and yellow
   #ffd200, the portrait, the projects and tiles — set in one calm system: Golos Text, a white page, one main
   action in yellow, blue for links and states. */
@font-face { font-family: Golos; src: url('/fonts/GolosText.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }

:root {
  --ink: #182b3a; --muted: #5b6b78; --line: #e2e7ec; --soft: #f4f6f8; --white: #fff;
  --blue: #0077d8; --blue-ink: #075ea8; --yellow: #ffd200; --yellow-hover: #f2c500;
  --radius: 12px; --gutter: clamp(16px, 4vw, 40px); --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.55 Golos, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.6vw, 56px); }
h2 { font-size: clamp(28px, 3vw, 38px); }
h3 { font-size: 21px; letter-spacing: -.01em; }
p { text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(100%, 1200px); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: #33485a; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 200; padding: 10px 14px; background: var(--white); border-radius: 8px; transform: translateY(-160%); }
.skip:focus { transform: none; }

/* Buttons: yellow is the one main action; the rest is quiet. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 24px; border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn-main { background: var(--yellow); color: #14212b; }
.btn-main:hover { background: var(--yellow-hover); transform: translateY(-1px); }
.btn-ghost { background: var(--white); border-color: #c9d3dc; color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-ink); }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.link { padding: 0; border: 0; background: none; color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.link:hover { color: var(--blue); }
.more-link { color: var(--blue-ink); font-weight: 600; text-decoration: none; }
.more-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo img { width: 150px; height: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 16px; font-weight: 500; }
.nav a { padding: 10px 0; text-decoration: none; color: #2c4152; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blue-ink); }
.nav a[aria-current="page"] { color: var(--blue-ink); border-bottom-color: var(--blue); }
.phone-fog { white-space: nowrap; }
.phone-fog .fog { filter: blur(3.5px); cursor: pointer; user-select: none; transition: filter .35s var(--ease); }
.phone-fog.open .fog { filter: none; user-select: auto; }
.contact .phone-fog { color: inherit; text-decoration: none; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--white); align-items: center; justify-content: center; }

/* Sections */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.note { margin-top: 20px; font-size: 15px; color: var(--muted); }

/* Hero: the words and the action first, Sergey beside them. */
.hero { background: linear-gradient(180deg, #f6f9fc 0%, var(--white) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-text { padding-block: clamp(40px, 6vw, 80px); display: grid; gap: 22px; align-content: center; align-self: center; }
.kicker { font-size: 15px; font-weight: 600; color: var(--blue-ink); }
/* The first screen is a presentation (owner 03.11): the words a little larger, no buttons. */
.hero-lead .link { font: inherit; color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.hero-lead { display: grid; gap: 14px; max-width: 36em; font-size: clamp(18px, 1.75vw, 22px); line-height: 1.55; color: #33485a; }
/* Sergey on a site of the kind the company builds (portrait A, owner 03.11): a framed photo, not a cut-out. */
.hero-person { position: relative; justify-self: end; width: min(100%, 400px); margin-block: clamp(28px, 4vw, 48px); }
.hero-person img, .about-person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: 16px; box-shadow: 0 18px 40px -24px rgba(24, 43, 58, .45); }
.hero-person figcaption, .about-person figcaption { position: absolute; left: 16px; bottom: 16px; display: grid; gap: 2px; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 10px; font-size: 15px; }
.hero-person figcaption span, .about-person figcaption span { color: var(--muted); }
/* On the first screen the name sits under the photo, nothing over it (owner 03.11) */
.hero .hero-person figcaption { position: static; display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 14px; padding: 0; background: none; border: 0; border-radius: 0; font-size: 16px; }
.hero .hero-person figcaption span::before { content: "· "; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project:hover .project-img img { transform: scale(1.03); }
/* A house photo opens large: the whole picture is the button, no badge over it */
.zoomable { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.zoomable img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.zoomable:hover img { transform: scale(1.03); }
.zoomable:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.zoom { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 20, 30, .92); cursor: zoom-out; }
.zoom::backdrop { background: transparent; }
.zoom[open] { display: flex; align-items: center; justify-content: center; }
.zoom img { max-width: min(100vw - 32px, 1800px); max-height: calc(100dvh - 32px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 24px 64px rgba(0, 0, 0, .4); }
.zoom-close { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 16px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); }
.zoom-close svg { width: 22px; height: 22px; stroke-width: 2; }
.zoom-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); }
.zoom-nav svg { width: 24px; height: 24px; stroke-width: 2; }
.zoom-prev { left: 16px; } .zoom-next { right: 16px; }
.zoom-nav:hover { background: var(--white); }
.zoom-count { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 14px; }
/* The bath complex: one wide card under the three houses, its picture on the left */
.project-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.project-wide .project-img { aspect-ratio: auto; height: 100%; min-height: 320px; }
.project-wide .project-body { align-content: center; padding: 28px 32px; }
.project-wide .kicker { margin: 0; }
.project-wide .note { margin: 0; }
.project-body { display: grid; gap: 8px; padding: 20px 22px 24px; }
.project-body h2, .project-body h3 { font-size: 21px; }
.project-body h2 a, .project-body h3 a { text-decoration: none; }
.project-body h2 a:hover, .project-body h3 a:hover { color: var(--blue-ink); }
.project-body p { font-size: 16px; }
.price { font-weight: 650; font-size: 19px; color: var(--ink); }
.price-big { font-size: 28px; margin: 16px 0 4px; }

/* Service tiles: the familiar pictures, the name under them. */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { display: grid; gap: 12px; text-decoration: none; font-weight: 600; font-size: 18px; }
.tile img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: var(--radius); transition: transform .4s var(--ease); }
.tile:hover img { transform: translateY(-3px); }
.tile:hover span { color: var(--blue-ink); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-grid h2 { margin-bottom: 20px; }
.about-grid .lead { margin-bottom: 20px; }
.facts { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts strong { font-size: 19px; }
.facts span { color: var(--muted); }
.about-page { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-page .lead { margin-bottom: 18px; }
.about-page h2 { margin: 32px 0 16px; }
.about-person { position: relative; }

/* Reviews: small cards, four in a row; on the home page a rail that scrolls left and right */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.review { display: grid; gap: 14px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.review-who { display: flex; align-items: center; gap: 12px; }
.review-who img, .review-who .avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--blue); }
.review-who .avatar { display: grid; place-items: center; background: #e8f2fb; color: var(--blue-ink); font-weight: 700; font-size: 16px; }
.review-who > span { display: grid; gap: 1px; min-width: 0; }
.review-who strong { font-size: 16px; }
.review-who > span > span { color: var(--muted); font-size: 14px; line-height: 1.35; }
.review blockquote { padding-left: 14px; border-left: 3px solid var(--yellow); font-size: 16px; line-height: 1.55; }
.review blockquote.clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.review .more { justify-self: start; font-size: 14px; text-decoration: none; font-weight: 600; }
.group-title { margin: 0 0 18px; font-size: 22px; }
.reviews + .group-title { margin-top: 40px; }
.head-side { display: flex; align-items: center; gap: 20px; }
.rail-arrows { display: flex; gap: 8px; }
.rail-arrows[hidden] { display: none; }
.rail-arrows .icon-btn { width: 44px; height: 44px; border: 1px solid #c9d3dc; border-radius: 50%; background: var(--white); color: var(--ink); }
.rail-arrows .icon-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue-ink); }
.rail-arrows .icon-btn:disabled { opacity: .35; cursor: default; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; align-items: start; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > .review { scroll-snap-align: start; }
.rail:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: var(--radius); }

/* The closing call */
.cta-band { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 32px; align-items: center; padding: clamp(28px, 5vw, 56px); background: #0b3f73; color: var(--white); border-radius: 20px; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: #d5e3f0; max-width: 56ch; }
.cta-actions { display: grid; gap: 12px; justify-items: start; }
.cta-band .link { color: #cfe4ff; }
.section-cta { padding-block: clamp(32px, 4vw, 56px); }
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); }
.cta-urgent { margin-top: 14px; font-size: 15px; }
.cta-urgent .link { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cta-band .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: var(--white); }
.cta-band .btn-ghost:hover { border-color: var(--white); color: var(--white); }
.cta-band :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.cta-actions .btn { width: 100%; }

/* Inner pages */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 48px); background: linear-gradient(180deg, #f6f9fc 0%, var(--white) 100%); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin-top: 16px; max-width: 60ch; }
.crumbs { margin-bottom: 20px; font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--blue-ink); }
.service-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.service-grid h2 { margin: 0 0 16px; font-size: 26px; }
.service-grid > div > * + h2 { margin-top: 40px; }
.service-grid > div > p { margin-bottom: 18px; }
.service-img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.service-grid-solo { grid-template-columns: minmax(0, 760px); }
.project-page .service-img { max-width: 560px; aspect-ratio: 4 / 3; border-radius: var(--radius); }
.checks { list-style: none; padding: 0; display: grid; gap: 10px; margin-bottom: 24px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.list-title { margin: 56px 0 20px; font-size: 26px; }
.links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.links a { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.links a:hover { border-color: var(--blue); }
.links strong { font-weight: 600; }
.links span { color: var(--muted); font-size: 15px; }
.contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.contact { display: grid; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-align: left; text-decoration: none; }
.contact span { color: var(--muted); font-size: 15px; }
.contact strong { font-size: 20px; font-weight: 600; }
.contact:hover { border-color: var(--blue); }

/* Footer */
.foot { background: var(--soft); border-top: 1px solid var(--line); padding-top: 56px; font-size: 16px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid > div, .foot-grid > nav { display: grid; gap: 10px; align-content: start; justify-items: start; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--blue-ink); }
.foot-logo { width: 140px; }
.foot-title { font-weight: 650; margin-bottom: 4px; }
.foot-map { display: inline-flex; gap: 8px; align-items: flex-start; }
.foot-map svg { color: var(--blue); margin-top: 2px; }
.foot-map span { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.foot-map:hover span { text-decoration-color: currentColor; }
.foot-map-alt { color: var(--muted); font-size: 14px; margin-top: -4px; padding-left: 28px; }
.foot-map-alt a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 2px; }
.foot-urgent { display: grid; gap: 4px; margin-top: 6px; }
.foot-urgent span { color: var(--muted); font-size: 14px; }
.foot-bottom { margin-top: 40px; padding-block: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Small icon buttons; the consent and the hidden trap of the request in the assistant window */
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.icon-btn:hover { background: var(--soft); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: #33485a; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Phone and tablet */
@media (max-width: 1040px) {
  .rail { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(12, 32, 52, .08); }
  .nav:not(.open) { display: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .menu-toggle { display: inline-flex; margin-left: 0; }
  .top-cta { margin-left: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .rail { grid-auto-columns: 84%; gap: 14px; }
  .head-side { width: 100%; justify-content: space-between; }
  body { font-size: 16px; }
  .top-row { min-height: 64px; gap: 12px; }
  .logo img { width: 118px; }
  .nav { top: 64px; }
  .top-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { padding-block: 36px 8px; }
  .hero-person { justify-self: stretch; width: 100%; margin-block: 8px 32px; }
  .hero-person img { aspect-ratio: 1 / 1; object-position: 50% 18%; }
  .projects, .tiles, .reviews, .about-grid, .about-page, .service-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tile { font-size: 15px; gap: 8px; }
  .section-head { flex-direction: column; gap: 8px; margin-bottom: 24px; }
  .cta-band { grid-template-columns: 1fr; border-radius: 16px; }
  .cta-actions { justify-items: stretch; }
  .cta-actions .btn { width: 100%; }
  .about-person { width: min(80%, 320px); }
  .foot-grid { grid-template-columns: 1fr; }
  /* The form is a sheet from the bottom on a phone. */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* The office on the contacts page: the address and both map services, Yandex's map beside them */
.office { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.office h2 { margin: 0 0 12px; font-size: 26px; }
.office-text .lead { margin-bottom: 10px; }
.office-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.office-map { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.office-map img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 760px) { .office { grid-template-columns: 1fr; } .office-map img { aspect-ratio: 4 / 3; } .office-links .btn { flex: 1 1 auto; } }
@media (max-width: 760px) { .project-wide { grid-template-columns: 1fr; } .project-wide .project-img { aspect-ratio: 3 / 2; height: auto; min-height: 0; } .project-wide .project-body { padding: 20px 22px 24px; } .zoom-nav { width: 44px; height: 44px; } .zoom-prev { left: 8px; } .zoom-next { right: 8px; } }
/* Two ways to the team side by side: «Оставить заявку» and «Позвонить Сергею» */
.page-actions, .project-actions { display: flex; flex-wrap: wrap; gap: 12px; }
[data-call].shown { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .page-actions .btn { flex: 1 1 100%; } }
