/* Цвета и локальный шрифт */
@font-face { font-family: Manrope; src: url('assets/Manrope.ttf') format('truetype'); font-weight: 200 800; font-display: swap; }
:root { --black:#0B0B0D; --white:#F5F5F5; --red:#E5222C; --muted:#646469; --line:#d7d7d7; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:30px; }
body { margin:0; color:var(--black); background:var(--white); font-family:Manrope,Arial,sans-serif; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
button { font:inherit; cursor:pointer; }
h1,h2,h3,p { margin:0; }
::selection { background:var(--red); color:white; }
:focus-visible { outline:2px solid var(--red); outline-offset:6px; }
.header,.hero,.section,footer { width:min(1160px,88%); margin:auto; }
.section { padding:85px 0; }
.eyebrow { font-size:10px; letter-spacing:1px; font-weight:600; }
.skip-link { position:fixed; top:-100px; background:white; padding:16px; z-index:20; }
.skip-link:focus { top:10px; left:10px; }
/* Навигация */
.header { min-height:100px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.logo { display:inline-flex; align-items:baseline; font-size:30px; font-weight:800; letter-spacing:-1.8px; }
.logo>span { color:var(--red); font-size:9px; margin-left:4px; }
.logo small { font-size:10px; letter-spacing:0; font-weight:500; margin-left:10px; }
nav { display:flex; gap:30px; align-items:center; font-size:13px; }
nav a { padding:12px 0; }
nav a:hover,.text-link:hover { color:var(--red); }
.nav-contact { margin-left:35px; }
.nav-contact span { margin-left:8px; color:var(--red); }
.menu-toggle { display:none; }
/* Первый экран */
.hero { padding:70px 0 80px; }
.hero-intro { font-size:14px; margin-bottom:30px; }
h1 { font-size:clamp(42px,5.9vw,79px); font-weight:500; line-height:1.12; letter-spacing:-.055em; }
h1 span { color:var(--red); }
.hero-bottom { margin-top:35px; display:flex; align-items:flex-end; justify-content:space-between; gap:25px; }
.hero-bottom p { font-size:14px; line-height:1.8; color:var(--muted); }
.text-link { display:inline-block; font-size:13px; border-bottom:1px solid currentColor; padding-bottom:7px; }
/* Работы. Разный размер и ритм, как в личной подборке. */
.work { border-top:1px solid var(--line); padding-top:30px; }
.section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:30px; margin-bottom:35px; }
.section-heading .eyebrow { margin-bottom:16px; color:var(--muted); }
h2 { font-size:36px; line-height:1.2; font-weight:500; letter-spacing:-1.4px; }
.section-note { font-size:12px; line-height:1.8; color:var(--muted); }
.projects { display:grid; grid-template-columns:1.15fr 1fr; gap:50px 45px; align-items:start; }
.project { border:0; padding:0; background:none; color:inherit; text-align:left; min-width:0; }
.project:nth-child(2) { margin-top:100px; }
.project:nth-child(4) { margin-top:75px; }
.project-caption { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; padding-top:16px; }
.project-caption strong { font-size:17px; font-weight:600; }
.project-caption small { display:block; font-size:12px; color:var(--muted); margin-top:5px; }
.tag { font-size:9px; color:var(--muted); padding-top:5px; white-space:nowrap; }
.work-disclaimer { margin-top:35px; font-size:12px; line-height:1.7; color:var(--muted); }
.project-image { position: relative; display: block; aspect-ratio: 1.3; overflow: hidden; padding: 30px; background: #202023; }
.project-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.project:hover img { transform: scale(1.04); }
.project-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0006, #0001 35%, #0007); pointer-events: none; }
.preview-top, .preview-bottom, .car-title, .interior-title, .travel-title { position: relative; z-index: 1; }
.preview-top { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 800; letter-spacing: -1px; }
.preview-top > span { font-size: 7px; letter-spacing: 1px; font-weight: 500; }
.preview-bottom { position: absolute; bottom: 30px; left: 30px; right: 30px; display: flex; justify-content: space-between; font-size: 8px; letter-spacing: 1px; }
.car img { object-position: 50% 65%; filter: brightness(.65); }
.car-title { display: block; margin-top: 25px; font-size: clamp(28px, 4.3vw, 66px); font-weight: 800; line-height: 1; letter-spacing: -3px; }
.car-title em { font-style: normal; color: #ee4a44; }
.interior img { filter: brightness(.75); }
.interior .preview-top { font-family: Georgia, serif; font-size: 26px; font-weight: 400; }
.interior-title { display: block; margin-top: 35px; font-size: clamp(30px, 3.7vw, 58px); line-height: 1.05; letter-spacing: -2px; }
.interior-title em, .travel-title em { font-family: Georgia, serif; }
.travel img { filter: brightness(.75); }
.travel-title { display: block; margin-top: 48px; font-size: clamp(30px, 4vw, 62px); line-height: 1.05; letter-spacing: -2px; }
.vpn { background: #dddeda; color: var(--black); }
.vpn::after { display: none; }
.vpn-title { position: absolute; top: 23%; left: 10%; font-size: clamp(65px, 9vw, 136px); font-weight: 800; line-height: .8; letter-spacing: -8px; z-index: 1; }
.vpn-dot { color: var(--red); }
.vpn-orbit { position: absolute; width: 67%; height: 80%; top: 10%; right: -15%; border: 1px solid #969893; border-radius: 50%; transform: rotate(-30deg); background: repeating-radial-gradient(ellipse at center, transparent 0 16px, #a6a8a3 17px 18px, transparent 19px 32px); }
.project-open { position: absolute; bottom: 18px; right: 18px; width: 42px; height: 42px; background: var(--white); color: var(--black); border-radius: 50%; display: grid; place-items: center; z-index: 2; font-size: 24px; transition: background .2s, color .2s; }
.project:hover .project-open { background: var(--red); color: white; }

.project-image { color:white; aspect-ratio:1.22; }
.project:nth-child(2) .project-image { aspect-ratio:.95; }
.project:nth-child(3) .project-image { aspect-ratio:1.35; }
.project:nth-child(4) .project-image { aspect-ratio:1.2; }
.project-open { width:32px; height:32px; font-size:20px; border-radius:0; }
.car-title { font-size:clamp(28px,3.5vw,48px); }
.travel-title,.interior-title { font-size:clamp(30px,3.6vw,48px); }
.vpn { background:#e7e5e1; color:var(--black); }
.vpn-title { top:36%; left:12%; font-size:90px; letter-spacing:-7px; font-weight:700; }
.vpn-title small { display:block; margin-top:25px; font-size:11px; letter-spacing:1px; font-weight:400; }
.vpn .preview-top { font-weight:500; font-size:12px; letter-spacing:0; }
/* Услуги */
.services { border-top:1px solid var(--line); }
.service-row { display:grid; grid-template-columns:30px 1fr 1.2fr 25px; gap:20px; align-items:center; padding:27px 0; border-top:1px solid var(--line); }
.service-row:last-of-type { border-bottom:1px solid var(--line); }
.service-row:hover h3 { color:var(--red); }
.row-number { font-size:11px; color:var(--muted); }
.service-row h3 { font-size:22px; font-weight:500; letter-spacing:-.5px; }
.service-row p { font-size:13px; line-height:1.8; color:var(--muted); }
.row-arrow { font-size:23px; }
.services-note { font-size:12px; color:var(--muted); margin-top:20px; }
/* Обо мне и рабочие этапы */
.about { border-top:1px solid var(--line); }
.about>.eyebrow { margin-bottom:30px; color:var(--muted); }
.about-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:60px; }
.about-grid h2 { font-size:52px; }
.about-copy .intro { font-size:20px; line-height:1.6; margin-bottom:20px; }
.about-copy>p:not(.intro) { color:var(--muted); font-size:14px; line-height:1.9; }
.about-copy .text-link { margin-top:25px; }
.process { padding-top:30px; }
.steps { display:grid; grid-template-columns:repeat(4,1fr); gap:30px; }
.steps article { border-top:1px solid var(--line); padding-top:20px; }
.steps article>span { font-size:12px; color:var(--red); }
.steps h3 { font-size:17px; font-weight:600; margin:20px 0 12px; }
.steps p { font-size:12px; color:var(--muted); line-height:1.9; }
/* Контакт */
.contact { border-top:2px solid var(--red); }
.contact-top { display:flex; justify-content:space-between; margin-bottom:30px; font-size:10px; }
.contact-top>span { color:var(--muted); }
.contact h2 { font-size:clamp(40px,5vw,65px); letter-spacing:-2px; }
.contact-bottom { display:flex; align-items:center; justify-content:space-between; gap:25px; margin-top:35px; }
.contact-bottom p { font-size:14px; line-height:1.8; color:var(--muted); }
.contact-handle { font-size:13px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:20px; padding:17px 23px; background:var(--red); color:white; font-size:13px; font-weight:600; transition:background .2s; }
.button:hover { background:#bd1620; }
footer { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:25px 0; border-top:1px solid var(--line); }
.footer-domain { margin-left:18px; }
footer p,footer>a:last-child { color:var(--muted); font-size:11px; }
.project-dialog { background: var(--white); color: var(--black); border: none; width: min(650px, calc(100% - 32px)); max-height: 85vh; padding: 50px; }
.project-dialog::backdrop { background: #000b; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 15px; top: 10px; background: none; border: none; font-size: 32px; padding: 3px 10px; }
.project-dialog h2 { margin: 24px 0; font-size: 42px; }
.project-dialog p:not(.eyebrow) { font-size: 14px; line-height: 1.8; }
.dialog-details { border-top: 1px solid #ccc; margin-top: 25px; padding-top: 25px; }
.dialog-details h3 { font-size: 16px; margin-bottom: 12px; }
.project-dialog .dialog-note { color: #616165; margin: 25px 0; }
body.dialog-open { overflow: hidden; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

@media(max-width:900px) {
  .header,.hero,.section,footer { width:90%; }
  nav { gap:18px; } .nav-contact { margin-left:8px; }
  .projects { gap:35px 25px; } .project-image { padding:23px; }
  .preview-top>span { font-size:6px; } .vpn-title { font-size:70px; }
  .about-grid { gap:35px; } .contact-handle { display:none; }
}
@media(max-width:700px) {
  .header { min-height:80px; flex-wrap:wrap; }
  .menu-toggle { display:flex; gap:10px; padding:12px 0 12px 12px; background:none; border:0; color:var(--black); font-size:13px; }
  nav { width:100%; flex-direction:column; align-items:stretch; gap:0; padding-bottom:20px; }
  .js nav:not(.is-open) { display:none; } .nav-contact { margin-left:0; }
  .hero { padding:45px 0 50px; } .hero-intro { font-size:12px; max-width:250px; line-height:1.7; margin-bottom:25px; }
  h1 { font-size:clamp(32px,7.8vw,54px); letter-spacing:-1.7px; line-height:1.18; }
  .hero-bottom { flex-direction:column; align-items:flex-start; gap:22px; margin-top:25px; }
  .hero-bottom p { font-size:12px; }
  .section { padding:50px 0; } .work { padding-top:25px; }
  h2 { font-size:28px; letter-spacing:-1px; }
  .section-heading { display:block; margin-bottom:25px; } .section-note { margin-top:15px; }
  .projects { grid-template-columns:1fr; gap:32px; }
  .project:nth-child(2),.project:nth-child(4) { margin-top:0; }
  .project:nth-child(n) .project-image { aspect-ratio:1.2; }
  .car-title,.travel-title,.interior-title { font-size:9vw; }
  .vpn-title { font-size:22vw; } .preview-top>span { font-size:7px; }
  .project-caption small { font-size:11px; }
  .service-row { grid-template-columns:20px 1fr 20px; gap:12px; padding:22px 0; }
  .service-row h3 { font-size:20px; } .service-row p { grid-column:2; grid-row:2; font-size:12px; }
  .service-row p br { display:none; } .row-arrow { grid-column:3; grid-row:1; }
  .about-grid { grid-template-columns:1fr; gap:25px; } .about-grid h2 { font-size:40px; }
  .about-copy .intro { font-size:17px; } .about-copy>p:not(.intro) { font-size:13px; }
  .steps { grid-template-columns:1fr 1fr; gap:25px; }
  .contact-bottom { flex-direction:column; align-items:flex-start; gap:25px; }
  .contact h2 { font-size:42px; } .contact-bottom p { font-size:13px; }
  footer { flex-wrap:wrap; } footer .logo { width:100%; }
  .project-dialog { padding:45px 25px 30px; } .project-dialog h2 { font-size:30px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { transition:none!important; animation:none!important; } .reveal { opacity:1; transform:none; } }
