:root {
  --ink: #080808;
  --muted: #767676;
  --line: #d8d8d5;
  --soft: #f1f4fc;
  --paper: #fff;
  --serif: "Prata", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --radius: 20px;
  --shell: min(1460px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.page-shell { width: var(--shell); margin-inline: auto; }
.section { padding-top: 132px; scroll-margin-top: 88px; }

.header {
  position: sticky; top: 0; z-index: 50; width: 100%; min-height: 104px; padding: 16px max(24px, calc((100vw - 1460px) / 2));
  display: grid; grid-template-columns: 280px 1fr 196px; align-items: center; gap: 26px; background: rgba(255,255,255,.94); border-bottom: 1px solid transparent; backdrop-filter: blur(18px); transition: min-height .25s ease, border-color .25s ease;
}
.header.scrolled { min-height: 78px; border-color: #ececea; }
.brand { display: inline-flex; align-items: center; width: max-content; min-width: 228px; color: #050505; }
.brand-monogram { width: 61px; font: 37px/1 var(--serif); letter-spacing: -10px; transform: translateX(-4px); }
.brand-line { width: 1px; height: 62px; margin: 0 18px 0 8px; background: currentColor; }
.brand-name { font: 16px/1.03 var(--serif); }
.nav { justify-self: center; display: flex; align-items: center; gap: 3px; padding: 5px; border: 1px solid #dededb; border-radius: 13px; background: rgba(255,255,255,.92); }
.nav a { padding: 11px 18px; border-radius: 9px; font-size: 13px; white-space: nowrap; transition: background .2s ease; }
.nav a:hover, .nav a:focus-visible { background: #f0f0ee; outline: none; }
.header-cta, .hero-action button, .contact-button { justify-self: end; border: 0; border-radius: 12px; padding: 15px 22px; color: #fff; background: #050505; font-weight: 700; font-size: 13px; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.header-cta:hover, .hero-action button:hover, .contact-button:hover { transform: translateY(-2px); background: #292929; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid #ddd; border-radius: 50%; background: #fff; }
.menu-toggle span { display: block; width: 20px; height: 1px; margin: 5px auto; background: #000; }

.hero { position: relative; min-height: min(730px, calc(100vh - 130px)); border-radius: var(--radius); overflow: hidden; color: #fff; }
.hero-image, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center; }
.hero-overlay { background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.23) 52%, rgba(0,0,0,.18) 100%), linear-gradient(0deg, rgba(0,0,0,.35), transparent 45%); }
.hero h1 { position: absolute; z-index: 1; top: 62px; left: 48px; margin: 0; font-size: clamp(52px, 5.2vw, 84px); line-height: .99; letter-spacing: -.065em; }
.hero-action { position: absolute; z-index: 1; right: 48px; bottom: 42px; width: min(600px, 46%); }
.hero-action p { max-width: 560px; margin: 0 0 25px; font-size: clamp(16px, 1.3vw, 21px); line-height: 1.5; font-weight: 600; }
.hero-action button { justify-self: initial; background: #fff; color: #000; padding: 15px 24px; }
.hero-action button:hover { background: #ececea; }

.section-tag { width: max-content; margin: 0 auto 42px; padding: 7px 12px; border-radius: 8px; background: #050505; color: #fff; font: 15px/1 var(--serif); }
.about-intro { padding: 76px 7vw 68px; text-align: center; background: var(--soft); border-radius: var(--radius); }
.about-intro h2 { max-width: 820px; margin: 0 auto 42px; font-size: clamp(38px, 4.1vw, 64px); line-height: 1.06; letter-spacing: -.055em; }
.about-intro-copy { max-width: 760px; margin: auto; font-size: 16px; line-height: 1.55; }
.about-intro-copy p { margin: 0 0 25px; }
.about-intro-copy p:last-child { margin-bottom: 0; }
.about-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.founder-card { position: relative; min-height: 810px; margin: 0; overflow: hidden; border-radius: var(--radius); background: #eee; }
.founder-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.founder-card figcaption { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; gap: 15px; padding: 17px 20px; border-radius: 12px; color: #fff; background: rgba(0,0,0,.7); backdrop-filter: blur(9px); }
.founder-card figcaption strong { font-size: 15px; }
.founder-card figcaption span { color: #d7d7d7; font-size: 12px; }
.about-list { min-height: 810px; padding: 32px 30px 18px; border-radius: var(--radius); color: #fff; background: #050505; }
.about-list h3 { margin: 0 0 17px; font-size: clamp(30px, 2.5vw, 43px); line-height: 1.05; letter-spacing: -.05em; }
.about-list article { display: grid; grid-template-columns: 1fr 9px; gap: 25px; padding: 21px 0; border-bottom: 1px dashed #595959; }
.about-list h4 { margin: 0 0 10px; color: #a9a9a9; font-size: 20px; }
.about-list p { max-width: 440px; margin: 0; font-size: 15px; line-height: 1.45; }
.about-list article > span { align-self: start; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #858585; }

.projects-heading { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 50px; margin-bottom: 62px; }
.projects-heading h2 { margin: 0; line-height: .94; letter-spacing: -.055em; }
.projects-heading h2 span { display: block; font-size: clamp(48px, 5.4vw, 86px); }
.projects-heading h2 em { display: block; margin-top: 8px; font: italic clamp(54px, 6.5vw, 104px)/.95 var(--serif); letter-spacing: -.04em; }
.projects-heading p { max-width: 410px; margin: 0 0 8px auto; color: #606060; line-height: 1.55; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 44px; }
.project-card { display: block; min-width: 0; padding: 0; color: inherit; background: transparent; border: 0; text-align: left; cursor: pointer; }
.project-image { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 17px; overflow: hidden; background: #efefed; }
.project-image::after { content: "Открыть ↗"; position: absolute; right: 18px; bottom: 18px; padding: 10px 13px; border-radius: 9px; color: #fff; background: rgba(0,0,0,.76); font-size: 12px; opacity: 0; transform: translateY(7px); transition: opacity .25s ease, transform .25s ease; }
.project-card:hover .project-image::after, .project-card:focus-visible .project-image::after { opacity: 1; transform: none; }
.project-card:focus-visible { outline: 2px solid #000; outline-offset: 7px; border-radius: 18px; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.project-card:hover img { transform: scale(1.025); }
.project-info { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; min-height: 56px; padding: 10px 0 13px; border-bottom: 1px solid #9e9e9a; }
.project-info strong { font-size: clamp(19px, 1.55vw, 26px); line-height: 1.15; letter-spacing: -.04em; }
.project-info small { color: #222; font-size: 12px; text-align: right; }
.project-card-pending .project-image::after { content: "Фото скоро"; opacity: 1; transform: none; }

.center-heading { max-width: 920px; margin: 0 auto 68px; text-align: center; }
.center-heading h2 { margin: 0; font-size: clamp(42px, 4.2vw, 68px); line-height: 1; letter-spacing: -.06em; }
.center-heading p { max-width: 760px; margin: 25px auto 0; font-size: 16px; line-height: 1.55; }
.service-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.service-card { display: flex; flex-direction: column; min-height: 1090px; padding: 20px 16px 17px; border-radius: var(--radius); background: var(--soft); }
.service-icon { display: grid; place-items: center; width: 55px; height: 55px; margin: 0 auto 22px; border-radius: 14px; color: #fff; background: #050505; font-size: 28px; }
.service-card h3 { margin: 0 0 25px; text-align: center; font-size: clamp(25px, 2vw, 34px); letter-spacing: -.045em; }
.service-card dl { margin: 0; }
.service-card dl > div { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed #999; }
.service-card dt { color: #777; font-weight: 700; }
.service-card dd { margin: 0; font-weight: 700; line-height: 1.45; }
.service-card h4 { margin: 22px 0 8px; font-size: 19px; }
.service-card ul { margin: 0; padding: 0; list-style: none; }
.service-card li { position: relative; min-height: 60px; padding: 14px 0 14px 38px; border-bottom: 1px dashed #aaa; font-size: 14px; line-height: 1.45; }
.service-card li::before { content: "✓"; position: absolute; left: 0; top: 15px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; background: #050505; font-weight: 700; }
.service-card li b { display: block; margin-bottom: 2px; }
.service-bottom { display: flex; flex-direction: column; gap: 18px; margin-top: auto; padding-top: 25px; }
.service-bottom strong { text-align: center; font-size: 22px; }
.service-bottom strong small { font-size: 11px; font-weight: 500; }
.service-bottom button { width: 100%; min-height: 48px; border: 0; border-radius: 11px; color: #fff; background: #050505; font-weight: 700; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.service-bottom button:hover { background: #292929; transform: translateY(-2px); }

.review-viewport { overflow: hidden; border-radius: var(--radius); }
.review-track { display: flex; align-items: stretch; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.review-page { flex: 0 0 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.review { display: flex; flex-direction: column; min-height: 560px; padding: 22px; border-radius: var(--radius); text-align: center; background: var(--soft); }
.review-avatar { display: grid; place-items: center; width: 86px; height: 86px; margin: 0 auto 10px; border-radius: 50%; color: #fff; background: #111; font: 33px/1 var(--serif); }
.review h3 { margin: 0 0 5px; font-size: 20px; }
.review > span { color: #858585; font-size: 13px; }
.review blockquote { flex: 1; margin: 14px 0 0; padding: 22px; border-radius: 14px; text-align: left; background: #fff; font-size: 14px; line-height: 1.52; }
.review-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
.review-controls button { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 12px; color: #fff; background: #050505; font-size: 24px; cursor: pointer; }
.review-controls span { min-width: 58px; text-align: center; font-size: 12px; }

.contacts { padding-bottom: 130px; }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 430px; padding: 14px; border-radius: var(--radius); background: var(--soft); }
.contact-map { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border-radius: 14px; color: #1d1d1d; background: #e8e5de; isolation: isolate; }
.contact-map::before { content: ""; position: absolute; inset: 0; z-index: -3; opacity: .55; background: linear-gradient(35deg, transparent 0 24%, #fff 24% 27%, transparent 27% 60%, #fff 60% 63%, transparent 63%), linear-gradient(-22deg, transparent 0 38%, #fff 38% 41%, transparent 41% 72%, #fff 72% 74%, transparent 74%); }
.road { position: absolute; z-index: -1; height: 6px; width: 130%; border: 1px dashed #b9b5ac; border-left: 0; border-right: 0; background: rgba(255,255,255,.7); }
.road-a { transform: rotate(15deg); }
.road-b { transform: rotate(-40deg); }
.road-c { transform: rotate(68deg); }
.river { position: absolute; z-index: -2; width: 58px; height: 140%; border-radius: 50%; background: #cddfe2; transform: rotate(28deg) translateX(170px); }
.map-pin { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 12px; border-radius: 50% 50% 50% 6px; color: #fff; background: #050505; font: 23px/1 var(--serif); transform: rotate(-45deg); box-shadow: 0 12px 24px rgba(0,0,0,.18); }
.map-pin::first-letter { transform: rotate(45deg); }
.contact-map strong { font-size: 22px; }
.contact-map small { margin-top: 5px; color: #5b5b5b; }
.contact-data { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 25px; align-content: center; padding: 36px 30px; }
.contact-data > div { min-width: 0; }
.contact-data small { display: block; margin-bottom: 9px; color: #777; font-weight: 700; }
.contact-data a:not(.vk-link), .contact-data p { display: block; margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.contact-data a:hover { text-decoration: underline; }
.contact-wide { grid-column: 1 / -1; }
.vk-link { align-self: center; font-size: 13px; }
.vk-link b { display: inline-grid; place-items: center; width: 34px; height: 28px; margin-right: 10px; border-radius: 7px; color: #fff; background: #050505; }
.contact-button { justify-self: end; align-self: center; }

.footer { padding: 45px 0 28px; border-top: 1px solid #dcdcd8; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding-bottom: 34px; }
.footer-top nav { display: flex; gap: 24px; font-size: 13px; }
.footer-top nav a:hover { text-decoration: underline; }
.footer-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 28px; border-top: 1px solid #dcdcd8; font-size: 12px; }
.footer-bottom p { max-width: 630px; margin: 13px 0; color: #5f5f5f; line-height: 1.5; }
.footer-bottom > div > a { display: block; width: max-content; margin-top: 7px; }
.footer-legal { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }

.project-viewer, .contact-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s ease; }
.project-viewer.open, .contact-drawer.open { visibility: visible; opacity: 1; }
.viewer-backdrop, .drawer-shade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.72); cursor: pointer; }
.viewer-panel { position: absolute; inset: 3vh 3vw; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border-radius: 18px; background: #fff; transform: translateY(16px); transition: transform .3s ease; }
.project-viewer.open .viewer-panel { transform: none; }
.viewer-bar, .viewer-caption { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.viewer-bar { border-bottom: 1px solid #ddd; font-size: 12px; }
.viewer-bar button { border: 0; background: transparent; cursor: pointer; }
.viewer-panel figure { display: grid; place-items: center; min-height: 0; margin: 0; padding: 20px; background: #f1f1ef; }
.viewer-panel figure img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-caption small { color: #777; }
.viewer-caption h2 { margin: 4px 0 0; font-size: 28px; }

.drawer-panel { position: absolute; top: 0; right: 0; width: min(600px, 100%); height: 100%; overflow-y: auto; padding: 28px 36px; background: #fff; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.contact-drawer.open .drawer-panel { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid #ddd; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.drawer-top button { width: 42px; height: 42px; border: 1px solid #ddd; border-radius: 50%; background: transparent; font-size: 24px; cursor: pointer; }
.drawer-panel h2 { margin: 40px 0; font-size: clamp(36px, 4vw, 58px); line-height: 1.04; letter-spacing: -.055em; }
#contact-form { display: grid; gap: 22px; }
#contact-form label:not(.form-consent) { display: grid; gap: 8px; }
#contact-form label > span { font-size: 12px; }
#contact-form input, #contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid #aaa; padding: 12px 0; outline: none; background: transparent; font-size: 17px; }
#contact-form input:focus, #contact-form textarea:focus { border-color: #000; }
#contact-form textarea { min-height: 100px; resize: vertical; }
.form-consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: #555; }
.form-consent input { width: 16px !important; margin: 2px 0 0; }
.form-consent a { text-decoration: underline; }
#contact-form > button { display: flex; justify-content: space-between; width: 100%; padding: 17px; border: 0; border-radius: 10px; color: #fff; background: #050505; font-weight: 700; cursor: pointer; }
.form-success { display: none; margin: 0; padding: 12px; border-radius: 8px; background: #eef5ea; font-size: 13px; }
.form-success.show { display: block; }
.drawer-contact { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 18px; border-top: 1px solid #ddd; font-size: 13px; }

@media (max-width: 1180px) {
  .header { grid-template-columns: 240px 1fr 170px; gap: 12px; }
  .nav a { padding-inline: 10px; }
  .brand-line { margin-inline: 4px 12px; }
  .brand-monogram { width: 55px; }
  .service-cards { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-card ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .service-bottom { margin-top: 30px; }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 28px, 720px); --radius: 16px; }
  .section { padding-top: 92px; }
  .header { min-height: 76px; padding: 12px 14px; grid-template-columns: 1fr auto auto; }
  .header .brand { min-width: 0; transform: scale(.8); transform-origin: left center; }
  .header-cta { padding: 12px 15px; }
  .menu-toggle { display: block; }
  .nav { position: absolute; top: calc(100% - 1px); left: 14px; right: 14px; display: grid; gap: 0; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 18px 35px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .nav a { padding: 15px; }
  .header.menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .hero { min-height: 680px; }
  .hero h1 { top: 35px; left: 28px; }
  .hero-action { left: 28px; right: 28px; bottom: 28px; width: auto; }
  .hero-action p { max-width: 560px; }
  .about-intro { padding: 56px 28px; }
  .about-intro h2 br { display: none; }
  .about-details, .contact-card { grid-template-columns: 1fr; }
  .founder-card { min-height: 680px; }
  .about-list { min-height: 0; }
  .projects-heading { grid-template-columns: 1fr; gap: 22px; }
  .projects-heading p { margin-left: 0; }
  .project-grid, .review-page { grid-template-columns: 1fr; }
  .project-info { min-height: 52px; }
  .service-card ul { grid-template-columns: 1fr; }
  .review { min-height: auto; }
  .contact-map { min-height: 340px; }
  .footer-top { align-items: flex-start; }
  .footer-top nav { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100vw - 20px); }
  .header { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .hero { min-height: 620px; }
  .hero h1 { top: 26px; left: 20px; font-size: 49px; }
  .hero-action { left: 20px; right: 20px; bottom: 22px; }
  .hero-action p { font-size: 15px; }
  .about-intro { padding: 42px 18px; }
  .about-intro h2 { font-size: 34px; }
  .about-intro-copy { font-size: 14px; }
  .founder-card { min-height: 500px; }
  .founder-card figcaption { left: 12px; right: 12px; bottom: 12px; display: grid; }
  .about-list { padding: 27px 20px 10px; }
  .about-list h3 { font-size: 29px; }
  .about-list p { font-size: 13px; }
  .projects-heading { margin-bottom: 38px; }
  .projects-heading h2 span { font-size: 38px; }
  .projects-heading h2 em { font-size: 49px; }
  .project-grid { gap: 28px; }
  .project-info { align-items: flex-start; }
  .project-info strong { font-size: 18px; }
  .project-info small { max-width: 42%; }
  .center-heading { margin-bottom: 40px; }
  .center-heading h2 { font-size: 38px; }
  .center-heading p { font-size: 14px; }
  .service-card { padding: 18px 13px 14px; }
  .service-card dl > div { grid-template-columns: 1fr; gap: 7px; }
  .service-card li { font-size: 13px; }
  .review-page { gap: 14px; }
  .review { padding: 14px; }
  .review blockquote { padding: 17px; font-size: 13px; }
  .contact-data { grid-template-columns: 1fr; padding: 25px 18px; }
  .contact-wide { grid-column: auto; }
  .contact-button { justify-self: start; }
  .footer-top { display: grid; }
  .footer-top nav { grid-template-columns: 1fr; gap: 13px; }
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-legal { align-items: flex-start; }
  .footer-bottom > div > a { width: auto; }
  .drawer-panel { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
