:root {
  --bg: #f3f0e9;
  --paper: #fbfaf7;
  --ink: #0b0b0d;
  --muted: #6e6c67;
  --line: rgba(11, 11, 13, .18);
  --accent: #2c16ff;
  --accent-soft: #ddd8ff;
  --max: 1440px;
  --pad: clamp(20px, 4vw, 64px);
  --radius: 22px;
  --font-display: "Onest", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --section-title-size: clamp(58px, 6.4vw, 96px);
  --body-size: clamp(15px, 1.05vw, 17px);
  --small-size: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main section[id] { scroll-margin-top: 88px; }
body.menu-open {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { color: white; background: var(--accent); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 12px 16px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--accent);
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__mark {
  color: white;
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 130px);
  font-weight: 900;
  letter-spacing: .005em;
  animation: pulse 1s ease-in-out infinite alternate;
}
.preloader__mark .mark-dot { display: inline-block; margin-left: 1px; transform: translateY(-7px); opacity: .92; }
@keyframes pulse { to { transform: scale(.92); opacity: .65; } }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.site-header.is-scrolled {
  background: rgba(243, 240, 233, .86);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.brand__mark { display: inline-flex; align-items: center; justify-content: center; gap: 0; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; color: white; background: var(--accent); font-family: var(--font-display); font-size: 16px; font-weight: 800; letter-spacing: .008em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.brand__mark .mark-dot { font-size: 16px; line-height: 1; margin-left: 1px; transform: translateY(-3px); }
.main-nav { display: flex; gap: 30px; font-size: var(--small-size); font-weight: 500; }
.main-nav a { position: relative; padding: 9px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: currentColor; transition: right .25s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
.menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 1px; margin: 7px auto; background: currentColor; transition: transform .25s ease; }

.hero {
  min-height: auto;
  max-width: var(--max);
  margin: 0 auto;
  padding: 106px var(--pad) 32px;
  display: flex;
  flex-direction: column;
}
.hero__meta { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font-size: var(--small-size); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hero__title-wrap {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, .75fr);
  align-items: center;
  gap: clamp(34px, 5vw, 80px);
  min-height: auto;
  padding-top: clamp(32px, 3.5vw, 50px);
  margin-bottom: clamp(24px, 2.5vw, 36px);
}
.hero__title {
  position: relative;
  z-index: 2;
  margin: 0;
  width: 100%;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(66px, 8vw, 138px);
  font-weight: 900;
  line-height: .82;
  letter-spacing: .006em;
  text-transform: uppercase;
}
.hero__title span { display: block; }
.hero__title span:last-child { margin-top: 8px; text-align: left; color: var(--accent); }
.hero__bottom {
  display: grid;
  grid-template-columns: minmax(300px, 620px) auto;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.hero__bottom p {
  margin: 0;
  max-width: 620px;
  padding-top: 0;
  font-size: var(--body-size);
  line-height: 1.5;
}
.hero__art {
  position: relative;
  z-index: 1;
  width: min(100%, 455px);
  margin: 0;
  justify-self: end;
  align-self: center;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero__art img { border-radius: 28% 16% 32% 18%; }
.round-link { display: grid; place-items: center; justify-self: end; align-self: center; margin-top: 0; width: 66px; height: 66px; border: 1px solid var(--ink); border-radius: 50%; transition: color .25s ease, background .25s ease, transform .25s ease; }
.round-link:hover { color: white; background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.round-link svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.section { max-width: var(--max); margin: 0 auto; padding: clamp(100px, 13vw, 190px) var(--pad); border-top: 1px solid var(--line); }
.section-kicker { display: grid; grid-template-columns: 70px 1fr; padding-bottom: 16px; border-bottom: 1px solid var(--ink); font-size: var(--small-size); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.section h2 { margin: 0; font-family: var(--font-display); font-size: var(--section-title-size); font-weight: 700; line-height: .98; letter-spacing: .006em; word-spacing: -.05em; text-wrap: balance; }

.hero__title span,
.section h2,
.price-row h3,
.contact__mail {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.about__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 8vw, 120px); padding-top: clamp(48px, 8vw, 100px); align-items: start; }
.about__copy h2 { max-width: 17ch; }
.about__text { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 46px; margin-top: 70px; }
.about__text p { margin: 0; color: #29282a; font-size: var(--body-size); line-height: 1.6; }
.about__text p:last-child { grid-column: 2; }
.about__image { position: sticky; top: 110px; margin: 0; overflow: hidden; border-radius: var(--radius); background: white; box-shadow: 0 20px 70px rgba(23, 20, 15, .08); transform: rotate(1.5deg); }
.about__image img { transition: transform .7s ease; }
.about__image:hover img { transform: scale(1.025); }

.projects { background: var(--ink); color: white; max-width: none; padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); padding-right: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); }
.projects .section-kicker { border-color: rgba(255,255,255,.45); }
.projects__intro { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(230px, .55fr); gap: 60px; align-items: end; padding: clamp(50px, 8vw, 100px) 0; }
.projects__intro h2 { max-width: 17ch; }
.projects__intro p { margin: 0; color: rgba(255,255,255,.7); font-size: var(--body-size); line-height: 1.6; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.3vw, 36px); }
.project-card { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: #222; text-align: left; }
.project-card img { aspect-ratio: 1.414/1; object-fit: cover; object-position: center top; transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.project-card:hover img { transform: scale(1.035); filter: saturate(1.05); }
.project-card__meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 50px 22px 20px; color: white; background: linear-gradient(transparent, rgba(0,0,0,.72)); opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease; }
.project-card:hover .project-card__meta, .project-card:focus-visible .project-card__meta { opacity: 1; transform: none; }
.project-card__meta b { font-family: var(--font-display); font-size: 20px; }
.project-card__meta span { font-size: var(--small-size); text-transform: uppercase; letter-spacing: .1em; }
.project-card--wide { grid-column: span 2; }
.project-card--wide img { aspect-ratio: 2.15/1; }

.projects__more {
  display: flex;
  justify-content: flex-end;
  padding-top: clamp(34px, 5vw, 70px);
}
.portfolio-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-width: min(100%, 390px);
  min-height: 70px;
  padding: 0 26px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 600;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.portfolio-link svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform .25s ease;
}
.portfolio-link:hover,
.portfolio-link:focus-visible {
  color: var(--ink);
  background: white;
  transform: translateY(-2px);
}
.portfolio-link:hover svg,
.portfolio-link:focus-visible svg { transform: translateX(5px); }

.services__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); gap: clamp(32px, 5vw, 76px); align-items: end; padding: clamp(50px, 8vw, 100px) 0; }
.services__head h2 { max-width: 18ch; }
.services__head p { margin: 0; color: var(--muted); line-height: 1.65; }
.price-list { border-top: 1px solid var(--ink); }
.price-row { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; min-height: 104px; gap: 30px; border-bottom: 1px solid var(--line); transition: padding .25s ease, color .25s ease, background .25s ease; }
.price-row:hover { padding-left: 18px; padding-right: 18px; color: white; background: var(--accent); }
.price-row span { font-size: var(--small-size); letter-spacing: .1em; }
.price-row h3 { margin: 0; font-family: var(--font-display); font-size: clamp(24px, 2.7vw, 38px); font-weight: 500; letter-spacing: .012em; }
.price-row b { font-size: 14px; white-space: nowrap; }

.contact { min-height: 92svh; padding: clamp(90px, 12vw, 170px) var(--pad) 32px; color: white; background: var(--accent); display: flex; flex-direction: column; }
.contact__eyebrow { margin-bottom: clamp(18px, 2vw, 30px); font-size: var(--small-size); text-transform: uppercase; letter-spacing: .1em; }
.contact__mail { display: inline-block; align-self: flex-start; margin: 0 0 auto; font-family: var(--font-display); font-size: clamp(64px, 11.4vw, 170px); font-weight: 800; line-height: .88; letter-spacing: .01em; word-spacing: -.08em; padding-bottom: .08em; border-bottom: .045em solid currentColor; transition: opacity .25s ease; }
.contact__mail:hover { opacity: .65; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; padding: 30px 0; border-top: 1px solid rgba(255,255,255,.45); border-bottom: 1px solid rgba(255,255,255,.45); }
.contact__links a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1px solid rgba(255,255,255,.55); border-radius: 100px; font-size: 13px; transition: color .25s ease, background .25s ease; }
.contact__links a:hover { color: var(--accent); background: white; }
.contact__links svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; flex: 0 0 auto; }
.contact__links a:last-child svg { width: 18px; height: 18px; fill: currentColor; stroke: none; transform: scale(1.08); transform-origin: center; }
.contact-link--vk {
  width: 48px;
  min-width: 48px;
  padding: 0;
  justify-content: center;
  gap: 0;
}
.contact-link--vk .vk-icon-image {
  display: block;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("../images/vk-white.png") center / contain no-repeat;
  mask: url("../images/vk-white.png") center / contain no-repeat;
}
.contact-link--vk:hover,
.contact-link--vk:focus-visible {
  color: var(--accent);
  background: white;
  border-color: white;
}
.contact__footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; font-size: var(--small-size); text-transform: uppercase; letter-spacing: .1em; }

.lightbox { max-width: none; width: 100vw; height: 100vh; margin: 0; padding: 70px clamp(18px, 4vw, 60px) 30px; border: 0; background: rgba(8,8,10,.94); color: white; }
.lightbox::backdrop { background: rgba(8,8,10,.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(1400px, 94vw); max-height: 86vh; object-fit: contain; }
.lightbox__close { position: fixed; top: 20px; right: 24px; z-index: 2; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: white; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* Desktop zoom hardening */
@media (min-width: 901px) and (max-width: 1180px) {
  :root {
    --pad: clamp(24px, 3vw, 40px);
    --section-title-size: clamp(50px, 5.8vw, 70px);
    --body-size: 15px;
  }

  .site-header { min-height: 70px; }
  .main-nav { gap: 20px; }

  .hero {
    padding-top: 94px;
    padding-bottom: 26px;
  }
  .hero__title-wrap {
    grid-template-columns: minmax(0, 1.38fr) minmax(260px, .62fr);
    gap: clamp(24px, 3.4vw, 42px);
    padding-top: 28px;
    margin-bottom: 24px;
  }
  .hero__title {
    font-size: clamp(58px, 7.1vw, 86px);
    line-height: .86;
  }
  .hero__art { width: min(100%, 370px); }

  .section {
    padding-top: clamp(82px, 9vw, 112px);
    padding-bottom: clamp(82px, 9vw, 112px);
  }
  .about__grid {
    gap: clamp(34px, 5vw, 58px);
    padding-top: 56px;
  }
  .about__text { margin-top: 44px; }
  .projects__intro,
  .services__head {
    gap: 34px;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .projects__intro {
    grid-template-columns: minmax(0, 1.3fr) minmax(210px, .7fr);
  }
  .services__head {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 250px);
  }
  .contact__mail {
    font-size: clamp(62px, 9.2vw, 108px);
    line-height: .92;
  }
}

@media (max-width: 900px) {
  :root { --section-title-size: clamp(48px, 8vw, 76px); }
  .brand__text { display: none; }
  .brand { position: relative; z-index: 103; }
  .menu-toggle { display: block; position: relative; z-index: 103; }
  .menu-toggle[aria-expanded="true"] { color: white; }
  .menu-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 102;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: max(86px, env(safe-area-inset-top)) 24px max(40px, env(safe-area-inset-bottom));
    color: white;
    background: var(--accent);
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform .42s cubic-bezier(.2,.7,.2,1), visibility 0s linear .42s;
  }
  .main-nav.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }
  .main-nav a { font-family: var(--font-display); font-size: clamp(36px, 10vw, 70px); font-weight: 700; letter-spacing: -.05em; }
  body.menu-open .site-header {
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
  }
  .hero__title-wrap {
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
    gap: 28px;
    margin-bottom: 24px;
  }
  .hero__title { max-width: none; font-size: clamp(58px, 9vw, 104px); }
  .hero__bottom { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .hero__art { width: min(100%, 340px); }
  .about__grid { grid-template-columns: 1fr; }
  .about__image { position: relative; top: auto; max-width: 680px; }
  .projects__intro, .services__head { grid-template-columns: 1fr; }
  .projects__intro p, .services__head p { max-width: 550px; }
}

@media (max-width: 620px) {
  :root { --section-title-size: clamp(52px, 10.8vw, 68px); }
  :root { --radius: 14px; }
  .site-header { min-height: 66px; }
  .hero {
    padding-top: 82px;
    padding-bottom: 10px;
    min-height: auto;
  }
  .hero__meta {
    padding-bottom: 10px;
  }
  .hero__meta span:last-child { display: none; }
  .hero__title-wrap {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    align-items: start;
    padding-top: 18px;
    margin-bottom: 12px;
  }
  .hero__title {
    max-width: 100%;
    font-size: clamp(44px, 14vw, 72px);
    line-height: .92;
    letter-spacing: .003em;
  }
  .hero__title span:last-child {
    margin-top: 6px;
    text-align: left;
  }
  .hero__art {
    width: min(90vw, 440px);
    margin: 0 auto;
    justify-self: center;
  }
  .hero__bottom {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    border-top: 0;
    padding-top: 0;
  }
  .hero__bottom p {
    max-width: 100%;
    padding-top: 0;
    font-size: 15px;
    line-height: 1.45;
  }
  .round-link {
    width: 54px;
    height: 54px;
    justify-self: start;
    margin-top: 0;
  }
  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .section-kicker { grid-template-columns: 42px 1fr; }
  .about__grid {
    gap: 28px;
    grid-template-columns: 1fr;
    padding-top: 32px;
  }
  .about__copy h2,
  .projects__intro h2,
  .services__head h2 {
    max-width: 11ch;
  }
  .about__text {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
  }
  .about__text p:last-child { grid-column: auto; }
  .projects__intro,
  .services__head {
    gap: 18px;
    padding: 32px 0;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .project-card--wide { grid-column: auto; }
  .project-card--wide img,
  .project-card img { aspect-ratio: 1.414/1; }
  .project-card__meta {
    opacity: 1;
    transform: none;
    padding: 42px 14px 14px;
  }
  .price-row {
    grid-template-columns: 34px 1fr;
    min-height: 88px;
    gap: 12px;
    padding: 16px 0;
  }
  .price-row b { grid-column: 2; }
  .price-row:hover { padding-left: 10px; padding-right: 10px; }
  .contact {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 24px;
  }
  .contact__eyebrow {
    margin-bottom: 16px;
  }
  .contact__mail {
    font-size: clamp(56px, 17vw, 84px);
  }
  .contact__links {
    flex-direction: column;
    align-items: stretch;
  }
  .contact__links a { justify-content: center; }
  .contact-link--vk { width: 48px; align-self: center; }
}

@media (max-width: 620px) { .brand__mark { min-width: 36px; height: 36px; padding: 0 10px; font-size: 14px; } .brand__mark .mark-dot { font-size: 14px; transform: translateY(-2px); } }


/* Mobile overflow and layout hardening */
@media (max-width: 620px) {
  :root {
    --pad: 16px;
    --section-title-size: clamp(46px, 12vw, 60px);
    --body-size: 15px;
    --small-size: 11px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    overscroll-behavior-x: none;
  }

  body,
  main,
  .site-header,
  .hero,
  .section,
  .projects,
  .contact {
    min-width: 0;
    max-width: 100%;
  }

  main {
    width: 100%;
    overflow: hidden;
  }

  .site-header {
    width: 100%;
    padding-left: var(--pad);
    padding-right: var(--pad);
  }

  .hero,
  .section,
  .projects,
  .contact {
    width: 100%;
    padding-left: var(--pad);
    padding-right: var(--pad);
  }

  .projects {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__title-wrap,
  .hero__bottom,
  .about__grid,
  .about__copy,
  .about__text,
  .projects__intro,
  .project-grid,
  .services__head,
  .price-list,
  .price-row,
  .contact__links,
  .contact__footer {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .hero__title,
  .section h2,
  .price-row h3,
  .contact__mail,
  .hero__bottom p,
  .about__text p,
  .projects__intro p,
  .services__head p {
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(34px, 11.6vw, 58px);
    line-height: .94;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero__art {
    width: min(100%, 420px);
    max-width: 100%;
  }

  .section h2 {
    font-size: var(--section-title-size);
    line-height: 1;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }

  .about__copy h2,
  .projects__intro h2,
  .services__head h2 {
    max-width: 100%;
  }

  .about__image {
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .about__image img,
  .project-card,
  .project-card img {
    width: 100%;
    max-width: 100%;
  }

  .projects__intro,
  .services__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card__meta {
    gap: 10px;
  }

  .project-card__meta b,
  .project-card__meta span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .price-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .price-row h3 {
    min-width: 0;
    font-size: clamp(22px, 7.2vw, 30px);
    line-height: 1.1;
    overflow-wrap: normal;
    word-break: normal;
  }

  .price-row b {
    max-width: 100%;
    white-space: normal;
  }

  .contact__mail {
    width: fit-content;
    max-width: 100%;
    font-size: clamp(48px, 15vw, 70px);
    line-height: .94;
    overflow-wrap: normal;
    word-break: normal;
  }

  .contact__links {
    gap: 10px;
  }

  .contact__links a {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 12px;
  }

  .contact__links a span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .contact-link--vk {
    width: 48px !important;
    max-width: 48px !important;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
  }

  .contact__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .lightbox {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
}


/* Mobile menu lock and centered VK */
@media (max-width: 900px) {
  html:has(body.menu-open) {
    overflow: hidden;
    overscroll-behavior: none;
  }
  body.menu-open main {
    pointer-events: none;
  }
  body.menu-open .site-header,
  body.menu-open .main-nav,
  body.menu-open .menu-toggle,
  body.menu-open .brand {
    pointer-events: auto;
  }
}

@media (max-width: 620px) {
  .contact__links .contact-link--vk {
    align-self: center !important;
    margin-inline: auto !important;
  }
}


/* Desktop resolution stability: 1366px, Full HD, 2K and ultrawide */
@media (min-width: 901px) {
  .hero,
  .section {
    width: min(100%, var(--max));
  }

  .hero__title,
  .section h2,
  .contact__mail {
    max-width: 100%;
  }

  .hero__title span,
  .section h2,
  .contact__mail {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  .hero__top,
  .hero__bottom,
  .about__grid,
  .projects__intro,
  .services__head,
  .price-row {
    min-width: 0;
  }
}

/* Compact laptops and 1366×768-class displays */
@media (min-width: 901px) and (max-width: 1399px) {
  :root {
    --max: 1240px;
    --pad: clamp(24px, 3vw, 40px);
    --section-title-size: clamp(52px, 5.4vw, 72px);
  }

  .site-header {
    padding-inline: var(--pad);
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 30px;
  }

  .hero__title-wrap {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .75fr);
    gap: clamp(24px, 3vw, 44px);
    padding-top: clamp(24px, 3vw, 40px);
    margin-bottom: clamp(18px, 2vw, 30px);
  }

  .hero__title {
    font-size: clamp(68px, 8.1vw, 112px);
    line-height: .84;
  }

  .hero__art {
    width: min(100%, 390px);
  }

  .hero__bottom {
    grid-template-columns: minmax(0, 560px) auto;
    gap: 28px;
    padding-top: 22px;
  }

  .section {
    padding-top: clamp(86px, 9vw, 124px);
    padding-bottom: clamp(86px, 9vw, 124px);
  }

  .about__grid {
    gap: clamp(42px, 6vw, 78px);
  }

  .projects__intro,
  .services__head {
    gap: clamp(30px, 4vw, 54px);
  }

  .contact__mail {
    font-size: clamp(70px, 9.4vw, 132px);
  }
}

/* Standard Full HD and 2K displays */
@media (min-width: 1400px) and (max-width: 1919px) {
  :root {
    --max: 1440px;
    --section-title-size: clamp(64px, 5.4vw, 88px);
  }

  .hero__title {
    font-size: clamp(92px, 8.3vw, 150px);
  }

  .hero__art {
    width: min(100%, 460px);
  }

  .contact__mail {
    font-size: clamp(92px, 9vw, 156px);
  }
}

/* Large 2K/4K and ultrawide displays: prevent excessive stretching */
@media (min-width: 1920px) {
  :root {
    --max: 1580px;
    --pad: 52px;
    --section-title-size: 92px;
  }

  .site-header {
    max-width: 1680px;
    margin-inline: auto;
  }

  .hero {
    min-height: min(100svh, 980px);
    padding-top: 124px;
  }

  .hero__title {
    font-size: 154px;
  }

  .hero__art {
    width: 470px;
  }

  .section {
    padding-top: 170px;
    padding-bottom: 170px;
  }

  .contact__mail {
    font-size: 164px;
  }
}

/* Short desktop windows and browser zoom with reduced available height */
@media (min-width: 901px) and (max-height: 820px) {
  .hero {
    min-height: auto;
    padding-top: 88px;
    padding-bottom: 24px;
  }

  .hero__meta {
    padding-bottom: 10px;
  }

  .hero__title-wrap {
    padding-top: 20px;
    margin-bottom: 16px;
  }

  .hero__title {
    font-size: clamp(64px, 7.4vw, 112px);
  }

  .hero__art {
    width: min(100%, 350px);
  }

  .hero__bottom {
    padding-top: 18px;
  }
}


@media (max-width: 620px) {
  .projects__more { justify-content: stretch; padding-top: 30px; }
  .portfolio-link { width: 100%; min-width: 0; min-height: 62px; padding-inline: 20px; }
}
