Код Скопировать
<!-- MIT License. Copyright (c) 2026 Sergei Durgalian, learn.create-products.com/design. Free to use, copy and modify with this notice kept. -->
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Наклон — студия предметного дизайна</title>
<meta name="description" content="Наклон — студия айдентики, сайтов и 3D для брендов вещей.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Unbounded:wght@500;900&family=Inter:wght@400;500;600&display=swap">
<style>
:root {
--bone: #ebe5da; --paper: #f4f0e8; --ink: #151417; --mute: #6d6760; --line: #15141726;
--blue: #2f3cff; --orange: #ff5a1f; --pad: clamp(16px, 3vw, 44px);
--ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 400 16px/1.5 "Inter", system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.display { font-family: "Unbounded", sans-serif; text-transform: uppercase; letter-spacing: -.02em; line-height: .86; }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.wrap { padding: 0 var(--pad); }
/* Header */
.head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
padding: 14px var(--pad); background: color-mix(in srgb, var(--bone) 82%, transparent); backdrop-filter: blur(10px); }
.logo { font: 900 1.05rem "Unbounded", sans-serif; text-decoration: none; letter-spacing: -.03em; }
.logo i { display: inline-block; font-style: normal; transform: rotate(-12deg); color: var(--blue); }
.nav { display: flex; gap: 26px; font-weight: 500; font-size: .95rem; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--blue); }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer;
background: var(--ink); color: var(--paper); font: 600 .95rem "Inter", sans-serif; text-decoration: none; transition: background .25s; }
.btn:hover { background: var(--blue); }
/* Hero: giant HTML type behind a transparent three.js canvas */
.hero { position: relative; height: calc(100svh - 64px); min-height: 560px; overflow: hidden; }
.type { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 1vh;
pointer-events: none; user-select: none; }
.type span { display: block; white-space: nowrap; color: var(--blue); font-size: min(17.5vw, 27vh); letter-spacing: -.05em; will-change: transform; }
.type .l1 { padding-left: var(--pad); }
.type .l2 { align-self: flex-end; padding-right: var(--pad); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-top, .hero-bottom { position: absolute; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; gap: 20px; }
.hero-top { top: 10px; color: var(--mute); }
.hero-bottom { bottom: 26px; align-items: flex-end; }
.hero-bottom p { max-width: 30ch; margin: 0 0 14px; font-size: 1.05rem; font-weight: 500; }
.scroll-cue { color: var(--mute); }
/* Layered headline: the same word twice, the card sits between the copies */
.layer { position: relative; overflow-x: clip; padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 110px); }
.stack { position: relative; display: grid; place-items: center; }
.stack > * { grid-area: 1 / 1; }
.lw { font-size: 20vw; color: var(--ink); white-space: nowrap; }
.lw.front { clip-path: inset(-20% 37% -20% -5%); z-index: 3; pointer-events: none; }
.lcard { position: relative; z-index: 2; justify-self: end; margin-right: 18vw; width: min(26vw, 380px); text-decoration: none;
background: var(--paper); padding: 10px 10px 14px; border-radius: 6px; box-shadow: 0 30px 60px -25px #15141766;
rotate: -4deg; will-change: transform; transition: rotate .5s var(--ease); }
.lcard:hover { rotate: -1deg; }
.lcard .cover { aspect-ratio: 4 / 5; }
.lcard small { display: flex; justify-content: space-between; margin-top: 10px; font-weight: 600; font-size: .8rem; }
.manifest { max-width: 46ch; margin: clamp(40px, 6vw, 80px) 0 0 auto; padding: 0 var(--pad); font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.35; font-weight: 500; }
/* Procedural covers: pure CSS gradients, no images */
.cover { border-radius: 4px; overflow: hidden; background-color: #d8cfc1; }
.a1 { background: radial-gradient(circle at 64% 40%, var(--orange) 0 22%, #0000 22.5%), repeating-linear-gradient(0deg, var(--ink) 0 7px, #e6dfd2 7px 14px); }
.a2 { background: radial-gradient(circle at 32% 66%, var(--paper) 0 16%, #0000 16.5%), conic-gradient(from 40deg at 32% 66%, var(--blue), #9aa3ff, #1b22a8, var(--blue)); }
.a3 { background: radial-gradient(ellipse at 50% 55%, var(--orange) 0 26%, #0000 26.5%), repeating-conic-gradient(var(--ink) 0 25%, #d8cfc1 0 50%) 0 0 / 28px 28px; }
.a4 { background: radial-gradient(circle at 50% 100%, var(--ink) 0 26%, #c9b9a6 26.5% 42%, var(--ink) 42.5% 58%, #e9e1d4 58.5%); }
.a5 { background: radial-gradient(var(--blue) 32%, #0000 33%) 0 0 / 18px 18px, linear-gradient(160deg, #f2d9c4, #e8b79a); }
.a6 { background: linear-gradient(120deg, var(--ink) 0 44%, var(--orange) 44% 60%, #e6dfd2 60%); }
.a7 { background: radial-gradient(circle at 28% 30%, #9aa3ff, #0000 52%), radial-gradient(circle at 72% 72%, var(--orange), #0000 55%), var(--ink); }
.a8 { background: radial-gradient(circle at 50% 50%, var(--blue) 0 24%, #0000 24.5%),
linear-gradient(#0000 94%, #15141733 94%) 0 0 / 22px 22px, linear-gradient(90deg, #0000 94%, #15141733 94%) 0 0 / 22px 22px, var(--paper); }
/* Works: one DOM, two layouts. FLIP animates between them */
.works-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 28px; }
.works-head h2 { font-size: clamp(2.6rem, 7vw, 6rem); }
.works-head h2 sup { font: 600 .9rem "Inter", sans-serif; letter-spacing: 0; vertical-align: top; margin-left: 6px; }
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.toggle button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; cursor: pointer; font: 600 .9rem "Inter", sans-serif; color: var(--mute); }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.works { list-style: none; margin: 0; padding: 0; }
.work a { display: grid; text-decoration: none; }
.work .cover { width: 100%; aspect-ratio: 4 / 3; transform-origin: 0 0; }
.w-title { font: 500 1.35rem/1.15 "Unbounded", sans-serif; letter-spacing: -.03em; }
.w-meta { color: var(--mute); font-size: .9rem; }
.w-num { font-weight: 600; color: var(--mute); font-size: .85rem; }
.works.list .work { border-top: 1px solid var(--line); }
.works.list .work:last-child { border-bottom: 1px solid var(--line); }
.works.list .work a { grid-template-columns: 4ch 120px 1fr auto; align-items: center; gap: 24px; padding: 14px 0; }
.works.list .work a:hover .w-title { color: var(--blue); }
.works.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.works.grid .work a { grid-template-columns: auto 1fr; grid-template-areas: "c c" "n t" "n m"; gap: 4px 12px; }
.works.grid .cover { grid-area: c; margin-bottom: 12px; }
.works.grid .w-num { grid-area: n; padding-top: 4px; }
.works.grid .w-title { grid-area: t; }
.works.grid .w-meta { grid-area: m; }
.works.grid .work a:hover .cover { filter: saturate(1.25); }
/* Services: numbered rows, a picture follows the cursor */
.services { padding: clamp(90px, 12vw, 170px) var(--pad); }
.services h2 { font-size: clamp(2.6rem, 7vw, 6rem); margin-bottom: 30px; }
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.svc > li { border-bottom: 1px solid var(--ink); }
.svc-row { width: 100%; display: grid; grid-template-columns: 5ch 1fr auto 40px; align-items: center; gap: 18px; padding: 26px 0;
border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.svc-row .n { font-weight: 600; color: var(--mute); }
.svc-row .t { font: 500 clamp(1.4rem, 3.6vw, 3.2rem)/1.05 "Unbounded", sans-serif; letter-spacing: -.04em; transition: translate .4s var(--ease), color .3s; }
@media (hover: hover) { .svc-row:hover .t { translate: 12px 0; color: var(--blue); } }
.svc-row .d { color: var(--mute); font-size: .9rem; }
.plus { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; transition: rotate .4s var(--ease), background .3s; }
.plus::before { content: "+"; font-size: 1.3rem; line-height: 1; }
.svc-row[aria-expanded="true"] .plus { rotate: 45deg; background: var(--ink); color: var(--paper); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.svc-body > div { overflow: hidden; }
.svc li.open .svc-body { grid-template-rows: 1fr; }
.svc-inner { display: grid; grid-template-columns: 5ch 1.2fr 1fr; gap: 18px; padding: 0 0 30px; }
.svc-inner p { margin: 0; grid-column: 2; max-width: 52ch; }
.svc-inner ul { margin: 0; padding-left: 18px; color: var(--mute); }
.svc-inner .cover { display: none; }
.peek { position: fixed; left: 0; top: 0; z-index: 30; width: 240px; aspect-ratio: 4 / 3; pointer-events: none; border-radius: 6px;
opacity: 0; scale: .6; transition: opacity .25s, scale .35s var(--ease); box-shadow: 0 24px 50px -20px #15141788; }
.peek.on { opacity: 1; scale: 1; }
.peek .cover { width: 100%; height: 100%; }
/* Brief form */
.brief { background: var(--ink); color: var(--paper); padding: clamp(80px, 10vw, 140px) var(--pad) 40px; border-radius: 28px 28px 0 0; }
.brief-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 6vw, 90px); }
.brief h2 { font-size: clamp(2.6rem, 6.5vw, 5.6rem); }
.brief h2 em { font-style: normal; color: #9aa3ff; }
.brief-lead { color: #b9b3aa; max-width: 36ch; margin: 22px 0; }
.contacts { display: grid; gap: 6px; font-weight: 500; }
form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label.f { display: grid; gap: 6px; font-size: .85rem; color: #b9b3aa; }
input, select, textarea { width: 100%; font: 500 1rem "Inter", sans-serif; color: var(--paper); background: #ffffff0d;
border: 1px solid #ffffff2e; border-radius: 10px; padding: 13px 14px; }
select option { color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #9aa3ff; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-size: .85rem; color: #b9b3aa; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: block; padding: 9px 15px; border-radius: 999px; border: 1px solid #ffffff3a; font-weight: 500; font-size: .9rem; }
.chips input:checked + span { background: var(--paper); color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid #9aa3ff; outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: #b9b3aa; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: #9aa3ff; }
.err { min-height: 1.3em; margin: 0; color: #ffb199; font-size: .85rem; }
.brief .btn { background: var(--paper); color: var(--ink); justify-self: start; }
.brief .btn:hover { background: #9aa3ff; }
.done { padding: 30px; border-radius: 16px; background: #ffffff0d; }
.done h3 { font: 500 1.6rem "Unbounded", sans-serif; margin-bottom: 8px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 90px; padding-top: 20px; border-top: 1px solid #ffffff22; color: #8d877e; font-size: .85rem; }
.foot b { font: 900 clamp(3rem, 15vw, 13rem)/.8 "Unbounded", sans-serif; letter-spacing: -.06em; color: var(--paper); width: 100%; }
/* Reveal on scroll */
.rv { opacity: 0; translate: 0 30px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.rv.in { opacity: 1; translate: 0 0; }
@media (max-width: 860px) {
.nav { display: none; }
.works.grid { grid-template-columns: 1fr 1fr; }
.brief-grid { grid-template-columns: minmax(0, 1fr); }
.svc-inner { grid-template-columns: 1fr; }
.svc-inner p { grid-column: auto; }
}
@media (max-width: 560px) {
.head .btn { padding: 10px 14px; font-size: .85rem; }
.hero { height: calc(100svh - 60px); }
.type { gap: 26vh; }
.type span { font-size: 14.5vw; }
.hero-top .eyebrow:last-child { display: none; }
.hero-bottom .scroll-cue { display: none; }
.lw { font-size: 22vw; }
.lcard { width: 38vw; margin-right: 0; justify-self: center; }
.works.grid { grid-template-columns: 1fr; }
.works.list .work a { grid-template-columns: 88px 1fr; gap: 4px 14px; grid-template-areas: "c t" "c m"; }
.works.list .cover { grid-area: c; }
.works.list .w-title { grid-area: t; align-self: end; font-size: 1.05rem; }
.works.list .w-meta { grid-area: m; align-self: start; }
.works.list .w-num { display: none; }
.svc-row { grid-template-columns: 3ch 1fr 36px; gap: 12px; }
.svc-row .d { display: none; }
.plus { width: 36px; height: 36px; }
.row2 { grid-template-columns: 1fr; }
.brief h2 { font-size: 9.5vw; }
}
@media (hover: none) { .peek { display: none; } .svc-inner .cover { display: block; aspect-ratio: 16 / 9; } }
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.lcard, .svc-row .t, .plus, .svc-body, .peek, .btn { transition: none; }
.rv { opacity: 1; translate: none; }
}
</style>
</head>
<body>
<header class="head">
<a class="logo" href="#top">На<i>к</i>лон</a>
<nav class="nav" aria-label="Разделы">
<a href="#works">Работы</a><a href="#services">Услуги</a><a href="#brief">Бриф</a>
</nav>
<a class="btn" href="#brief">Обсудить проект</a>
</header>
<main>
<section class="hero" id="top" aria-labelledby="hero-title">
<h1 id="hero-title" class="type display"><span class="l1">Наклон</span><span class="l2">студия</span></h1>
<canvas id="gl" role="img" aria-label="Тёмная скульптура из каменных блоков медленно вращается поверх синего заголовка «Наклон студия»"></canvas>
<div class="hero-top"><span class="eyebrow">Айдентика · сайты · 3D</span><span class="eyebrow">Москва — онлайн · с 2019</span></div>
<div class="hero-bottom">
<div><p>Делаем бренды для вещей, которые хочется взять в руки.</p><a class="btn" href="#works">Смотреть работы →</a></div>
<span class="eyebrow scroll-cue">(01) Листайте</span>
</div>
</section>
<section class="layer" aria-labelledby="layer-title">
<div class="stack">
<h2 id="layer-title" class="lw display">Вещи</h2>
<a class="lcard" href="#works" id="lcard">
<div class="cover a7" role="img" aria-label="Обложка кейса: тёмный фон с синим и оранжевым свечением"></div>
<small><span>Кейс 07 · Полдень</span><span>2026</span></small>
</a>
<div class="lw front display" id="lfront" aria-hidden="true">Вещи</div>
</div>
<p class="manifest rv">Мы небольшая студия: три дизайнера и один 3D-художник. Придумываем имя, знак, упаковку и сайт так, чтобы предмет было видно ещё до того, как его потрогали.</p>
</section>
<section class="wrap" id="works" aria-labelledby="works-title">
<div class="works-head">
<h2 id="works-title" class="display">Работы<sup>(06)</sup></h2>
<div class="toggle" role="group" aria-label="Вид списка работ">
<button type="button" data-view="list" aria-pressed="true">Список</button>
<button type="button" data-view="grid" aria-pressed="false">Сетка</button>
</div>
</div>
<ul class="works list" id="works-list">
<li class="work"><a href="#brief"><span class="w-num">01</span><div class="cover a1" aria-hidden="true"></div><span class="w-title">Полдень — керамика</span><span class="w-meta">Айдентика, упаковка · 2026</span></a></li>
<li class="work"><a href="#brief"><span class="w-num">02</span><div class="cover a2" aria-hidden="true"></div><span class="w-title">Сквозняк — светильники</span><span class="w-meta">Сайт, 3D · 2026</span></a></li>
<li class="work"><a href="#brief"><span class="w-num">03</span><div class="cover a3" aria-hidden="true"></div><span class="w-title">Шахматный клуб «Ход»</span><span class="w-meta">Знак, мерч · 2025</span></a></li>
<li class="work"><a href="#brief"><span class="w-num">04</span><div class="cover a4" aria-hidden="true"></div><span class="w-title">Арка — мебель из дуба</span><span class="w-meta">Каталог, сайт · 2025</span></a></li>
<li class="work"><a href="#brief"><span class="w-num">05</span><div class="cover a5" aria-hidden="true"></div><span class="w-title">Точка — чайная лавка</span><span class="w-meta">Упаковка · 2024</span></a></li>
<li class="work"><a href="#brief"><span class="w-num">06</span><div class="cover a6" aria-hidden="true"></div><span class="w-title">Грань — ювелирная мастерская</span><span class="w-meta">Айдентика, 3D · 2024</span></a></li>
</ul>
</section>
<section class="services" id="services" aria-labelledby="svc-title">
<h2 id="svc-title" class="display rv">Услуги</h2>
<ol class="svc" id="svc">
<li data-art="a8">
<button class="svc-row" type="button" aria-expanded="false" aria-controls="s1"><span class="n">01</span><span class="t">Айдентика</span><span class="d">от 4 недель</span><span class="plus" aria-hidden="true"></span></button>
<div class="svc-body" id="s1" role="region" aria-label="Айдентика"><div><div class="svc-inner"><div class="cover a8" aria-hidden="true"></div><p>Имя, знак, шрифтовая пара и цвета. Собираем правила в короткий гайд, по которому подрядчики сделают всё остальное без нас.</p><ul><li>знак и логотип</li><li>палитра и шрифты</li><li>гайд на 20 страниц</li></ul></div></div></div>
</li>
<li data-art="a1">
<button class="svc-row" type="button" aria-expanded="false" aria-controls="s2"><span class="n">02</span><span class="t">Упаковка</span><span class="d">от 3 недель</span><span class="plus" aria-hidden="true"></span></button>
<div class="svc-body" id="s2" role="region" aria-label="Упаковка"><div><div class="svc-inner"><div class="cover a1" aria-hidden="true"></div><p>Коробки, бирки и этикетки, которые не стыдно оставить на полке. Готовим макеты к печати и сами общаемся с типографией.</p><ul><li>конструкция и развёртка</li><li>макеты к печати</li><li>контроль тиража</li></ul></div></div></div>
</li>
<li data-art="a2">
<button class="svc-row" type="button" aria-expanded="false" aria-controls="s3"><span class="n">03</span><span class="t">Сайт-витрина</span><span class="d">от 5 недель</span><span class="plus" aria-hidden="true"></span></button>
<div class="svc-body" id="s3" role="region" aria-label="Сайт-витрина"><div><div class="svc-inner"><div class="cover a2" aria-hidden="true"></div><p>Одностраничник или каталог с живыми 3D-объектами. Отдаём готовый код или собираем на вашей платформе.</p><ul><li>прототип и дизайн</li><li>вёрстка и анимации</li><li>запуск и аналитика</li></ul></div></div></div>
</li>
<li data-art="a3">
<button class="svc-row" type="button" aria-expanded="false" aria-controls="s4"><span class="n">04</span><span class="t">3D-предметка</span><span class="d">от 2 недель</span><span class="plus" aria-hidden="true"></span></button>
<div class="svc-body" id="s4" role="region" aria-label="3D-предметка"><div><div class="svc-inner"><div class="cover a3" aria-hidden="true"></div><p>Рендеры товара без фотостудии: ракурсы, материалы, анимация вращения для карточек маркетплейса и рекламы.</p><ul><li>модель по чертежу или фото</li><li>10 ракурсов</li><li>ролик 360°</li></ul></div></div></div>
</li>
<li data-art="a6">
<button class="svc-row" type="button" aria-expanded="false" aria-controls="s5"><span class="n">05</span><span class="t">Арт-дирекшн</span><span class="d">помесячно</span><span class="plus" aria-hidden="true"></span></button>
<div class="svc-body" id="s5" role="region" aria-label="Арт-дирекшн"><div><div class="svc-inner"><div class="cover a6" aria-hidden="true"></div><p>Ведём визуал бренда после запуска: съёмки, соцсети, сезонные коллекции. Два созвона в месяц и быстрые правки.</p><ul><li>контент-план визуала</li><li>ревью макетов</li><li>съёмки под ключ</li></ul></div></div></div>
</li>
</ol>
</section>
<div class="peek" id="peek" aria-hidden="true"><div class="cover"></div></div>
<section class="brief" id="brief" aria-labelledby="brief-title">
<div class="brief-grid">
<div>
<h2 id="brief-title" class="display">Есть <em>вещь?</em> Расскажите</h2>
<p class="brief-lead">Ответим в течение рабочего дня: зададим пару вопросов и пришлём оценку сроков и бюджета.</p>
<div class="contacts"><a href="mailto:hello@naklon.example">hello@naklon.example</a><span>+7 900 000-00-00</span></div>
</div>
<form id="form" novalidate>
<div class="row2">
<label class="f">Имя<input name="name" autocomplete="name" required></label>
<label class="f">Почта или телефон<input name="contact" autocomplete="email" required></label>
</div>
<fieldset>
<legend>Что нужно</legend>
<div class="chips">
<label><input type="checkbox" name="need" value="identity"><span>Айдентика</span></label>
<label><input type="checkbox" name="need" value="pack"><span>Упаковка</span></label>
<label><input type="checkbox" name="need" value="site"><span>Сайт</span></label>
<label><input type="checkbox" name="need" value="3d"><span>3D</span></label>
</div>
</fieldset>
<label class="f">Бюджет
<select name="budget"><option>Пока не знаю</option><option>до 300 тыс. ₽</option><option>300–700 тыс. ₽</option><option>от 700 тыс. ₽</option></select>
</label>
<label class="f">Пара слов о проекте<textarea name="about" placeholder="Что за предмет, для кого и к какому сроку"></textarea></label>
<label class="consent"><input type="checkbox" name="consent" required><span>Даю согласие на обработку персональных данных по <a href="#privacy">политике конфиденциальности</a></span></label>
<p class="err" id="err" role="alert"></p>
<button class="btn" type="submit">Отправить бриф →</button>
</form>
</div>
<footer class="foot" id="privacy">
<b>Наклон</b>
<span>© 2026 Студия «Наклон». Пример сайта, студия вымышленная.</span>
<a href="#top">Наверх ↑</a>
</footer>
</section>
</main>
<script>
// Plain DOM part: reveal, works FLIP toggle, services rows + cursor peek, form.
const reduce = matchMedia('(prefers-reduced-motion: reduce)').matches;
const io = new IntersectionObserver((es) => es.forEach((e) => { if (e.isIntersecting) { e.target.classList.add('in'); io.unobserve(e.target); } }), { threshold: .15 });
document.querySelectorAll('.rv').forEach((el) => io.observe(el));
// Layered headline: the card drifts slower than the page, so the word slides "behind" it
const lcard = document.getElementById('lcard'), lfront = document.getElementById('lfront'), lback = document.getElementById('layer-title');
function parallax() {
const r = lcard.getBoundingClientRect(), s = lfront.getBoundingClientRect();
// the front copy is cut at the card's centre: letters left of it pass over the card, the rest go under
const cut = r.left + r.width * 0.45 - s.left;
lfront.style.clipPath = `inset(-20% ${Math.max(0, s.width - cut)}px -20% -5%)`;
lback.style.clipPath = `inset(-20% -5% -20% ${Math.max(0, cut - 2)}px)`; // no double-drawn edges
const k = (r.top + r.height / 2 - innerHeight / 2) / innerHeight; // -1..1 around the screen centre
lcard.style.transform = reduce ? '' : `translateY(${k * -60}px)`;
}
addEventListener('scroll', parallax, { passive: true }); addEventListener('resize', parallax); parallax();
// FLIP: measure First, switch layout, measure Last, Invert with a transform, Play back to none
const list = document.getElementById('works-list');
const toggles = document.querySelectorAll('.toggle button');
toggles.forEach((b) => b.addEventListener('click', () => setView(b.dataset.view)));
function setView(view) {
if (list.classList.contains(view)) return;
const items = [...list.children];
const first = items.map((li) => ({ r: li.getBoundingClientRect(), c: li.querySelector('.cover').getBoundingClientRect() }));
list.classList.remove('list', 'grid'); list.classList.add(view);
toggles.forEach((b) => b.setAttribute('aria-pressed', String(b.dataset.view === view)));
if (reduce) return;
const opts = (i) => ({ duration: 700, easing: 'cubic-bezier(.2,.8,.2,1)', delay: i * 30, fill: 'backwards' });
items.forEach((li, i) => {
const r = li.getBoundingClientRect(), cover = li.querySelector('.cover'), c = cover.getBoundingClientRect(), f = first[i];
li.animate([{ transform: `translate(${f.r.left - r.left}px, ${f.r.top - r.top}px)` }, { transform: 'none' }], opts(i));
// the cover moves inside the card and changes size: translate relative to the card + scale from the top-left corner
const dx = (f.c.left - f.r.left) - (c.left - r.left), dy = (f.c.top - f.r.top) - (c.top - r.top);
cover.animate([{ transform: `translate(${dx}px, ${dy}px) scale(${f.c.width / c.width}, ${f.c.height / c.height})` }, { transform: 'none' }], opts(i));
li.querySelectorAll('.w-title, .w-meta, .w-num').forEach((t) => t.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 400, delay: 250 + i * 30, fill: 'backwards' }));
});
}
// Services: click expands a row; on hover a cover follows the cursor with a soft lag
const svc = document.getElementById('svc'), peek = document.getElementById('peek'), peekCover = peek.firstElementChild;
svc.querySelectorAll('.svc-row').forEach((btn) => btn.addEventListener('click', () => {
const li = btn.parentElement, open = !li.classList.contains('open');
li.classList.toggle('open', open); btn.setAttribute('aria-expanded', String(open));
}));
let mx = 0, my = 0, px = 0, py = 0, peekRaf = 0;
function peekLoop() {
px += (mx - px) * (reduce ? 1 : .16); py += (my - py) * (reduce ? 1 : .16);
const tilt = reduce ? 0 : Math.max(-10, Math.min(10, (mx - px) * .08));
peek.style.transform = `translate(${px + 24}px, ${py - 90}px) rotate(${tilt}deg)`;
peekRaf = peek.classList.contains('on') ? requestAnimationFrame(peekLoop) : 0;
}
svc.querySelectorAll('li').forEach((li) => li.addEventListener('pointerenter', (e) => {
if (e.pointerType !== 'mouse') return;
peekCover.className = 'cover ' + li.dataset.art;
if (!peek.classList.contains('on')) { px = mx = e.clientX; py = my = e.clientY; }
peek.classList.add('on');
if (!peekRaf) peekRaf = requestAnimationFrame(peekLoop);
}));
svc.addEventListener('pointermove', (e) => { mx = e.clientX; my = e.clientY; });
svc.addEventListener('pointerleave', () => peek.classList.remove('on'));
addEventListener('scroll', () => peek.classList.remove('on'), { passive: true });
// Brief form: client-side checks only. Hook your endpoint where the comment says.
const form = document.getElementById('form'), err = document.getElementById('err');
form.addEventListener('input', () => { err.textContent = ''; });
form.addEventListener('submit', (e) => {
e.preventDefault();
const d = new FormData(form);
let msg = '';
if (!String(d.get('name')).trim()) msg = 'Напишите, как к вам обращаться.';
else if (!/^\S+@\S+\.\S+$|^\+?[\d\s()-]{7,}$/.test(String(d.get('contact')).trim())) msg = 'Оставьте почту или телефон, чтобы мы ответили.';
else if (!d.get('consent')) msg = 'Нужно согласие на обработку данных.';
err.textContent = msg;
if (msg) return;
// fetch('/api/brief', { method: 'POST', body: d }) ← your backend, Telegram bot or form service
form.outerHTML = '<div class="done" role="status"><h3>Бриф у нас</h3><p>Спасибо! Ответим в течение рабочего дня.</p></div>';
});
</script>
<script type="importmap">{ "imports": {
"three": "https://cdn.jsdelivr.net/npm/three@0.170.0/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/"
} }</script>
<script type="module">
// Hero: a procedural dark "totem" of bent rounded blocks over the HTML headline.
// The canvas is transparent; a ShadowMaterial wall drops the soft shadow onto the letters.
import * as THREE from 'three';
import { RoundedBoxGeometry } from 'three/addons/geometries/RoundedBoxGeometry.js';
import { RoomEnvironment } from 'three/addons/environments/RoomEnvironment.js';
const reduce = matchMedia('(prefers-reduced-motion: reduce)').matches;
const hero = document.querySelector('.hero'), canvas = document.getElementById('gl');
const renderer = new THREE.WebGLRenderer({ canvas, antialias: true, alpha: true });
renderer.setPixelRatio(Math.min(devicePixelRatio, 2));
renderer.shadowMap.enabled = true;
renderer.shadowMap.type = THREE.PCFSoftShadowMap;
renderer.toneMapping = THREE.ACESFilmicToneMapping;
const scene = new THREE.Scene();
scene.environment = new THREE.PMREMGenerator(renderer).fromScene(new RoomEnvironment(), 0.04).texture;
scene.environmentIntensity = 0.35;
const camera = new THREE.PerspectiveCamera(30, 1, 0.1, 100);
const key = new THREE.DirectionalLight('#fff3e6', 3.2);
key.position.set(-4, 5, 7); key.castShadow = true;
key.shadow.mapSize.set(2048, 2048); key.shadow.radius = 8;
Object.assign(key.shadow.camera, { left: -5, right: 5, top: 5, bottom: -5, near: 1, far: 25 });
scene.add(key);
const rim = new THREE.DirectionalLight('#c9ceff', 2.2); rim.position.set(5, 2, -4); scene.add(rim);
scene.add(new THREE.HemisphereLight('#ffffff', '#c9b9a6', 0.6));
const wall = new THREE.Mesh(new THREE.PlaneGeometry(40, 40), new THREE.ShadowMaterial({ opacity: 0.2 }));
wall.position.z = -2.4; wall.receiveShadow = true; scene.add(wall);
// Smooth pseudo-noise (product of sines): dents every surface a little, so blocks look carved
const noise = (x, y, z) => Math.sin(x * 2.7 + y * 1.3) * Math.sin(y * 2.1 + z * 3.1) * Math.sin(z * 2.3 + x * 1.9);
function carve(g, amp, seed) {
const p = g.attributes.position, v = new THREE.Vector3();
for (let i = 0; i < p.count; i++) {
v.fromBufferAttribute(p, i);
v.multiplyScalar(1 + noise(v.x + seed, v.y - seed, v.z + seed * 0.5) * amp);
p.setXYZ(i, v.x, v.y, v.z);
}
g.computeVertexNormals();
return g;
}
const stone = new THREE.MeshStandardMaterial({ color: '#232226', roughness: 0.85, metalness: 0.05 });
const totem = new THREE.Group();
const add = (g, [x, y, z], [rx, ry, rz], i) => {
const m = new THREE.Mesh(carve(g, 0.07, i * 1.9), stone);
m.position.set(x, y, z); m.rotation.set(rx, ry, rz); m.castShadow = m.receiveShadow = true; totem.add(m);
};
const box = (w, h, d) => new RoundedBoxGeometry(w, h, d, 5, Math.min(w, h, d) * 0.24);
// A leaning stack: plinth, block, pebble, tilted slab (the "наклон"), pillar and a ring on top
add(box(2.0, 0.42, 1.4), [0, -2.1, 0], [0, 0.1, 0], 0);
add(box(1.5, 0.85, 1.1), [-0.1, -1.47, 0], [0, -0.2, 0.08], 1);
add(box(0.95, 0.9, 0.95), [0.28, -0.6, 0.05], [0.3, 0.5, 0.2], 2);
add(box(2.4, 0.34, 0.95), [0.05, 0.02, 0], [0, 0.15, -0.28], 3);
add(box(0.72, 1.25, 0.72), [-0.35, 0.86, 0], [0.05, 0.4, 0.12], 4);
add(new THREE.TorusGeometry(0.5, 0.17, 24, 64), [-0.3, 1.95, 0], [0.2, 0.6, 0.3], 5);
scene.add(totem);
// Inputs: page scroll through the hero (0..1) and the pointer over it
let px = 0, py = 0, lastInput = -1e9;
hero.addEventListener('pointermove', (e) => {
const r = hero.getBoundingClientRect();
px = (e.clientX - r.left) / r.width - 0.5; py = (e.clientY - r.top) / r.height - 0.5; lastInput = performance.now();
}, { passive: true });
const l1 = document.querySelector('.l1'), l2 = document.querySelector('.l2');
function resize() {
const w = hero.clientWidth, h = hero.clientHeight;
renderer.setSize(w, h, false);
camera.aspect = w / h;
const t = Math.tan(THREE.MathUtils.degToRad(camera.fov / 2)); // fit ~6.4 units tall and ~4.4 wide
camera.position.set(0, 0.1, Math.max(6.4 / (2 * t), 4.4 / (2 * t * camera.aspect)));
camera.updateProjectionMatrix();
}
addEventListener('resize', resize); resize();
const clock = new THREE.Clock();
let spin = 0, ry = 0, rx = 0, progress = 0;
function frame() {
const dt = Math.min(clock.getDelta(), 0.05), t = clock.elapsedTime;
const target = Math.min(1, Math.max(0, scrollY / hero.offsetHeight));
progress += (target - progress) * (reduce ? 1 : 0.1);
if (!reduce && performance.now() - lastInput > 2500) { px = Math.sin(t * 0.5) * 0.25; py = Math.sin(t * 0.7) * 0.15; }
if (!reduce) spin += dt * 0.2;
ry += (spin + progress * Math.PI + px * 0.8 - ry) * 0.08;
rx += (py * 0.25 - rx) * 0.08;
totem.rotation.set(rx, ry, 0);
totem.position.y = -progress * 0.8 + (reduce ? 0 : Math.sin(t * 0.9) * 0.05);
l1.style.transform = `translateX(${-progress * 14}vw)`;
l2.style.transform = `translateX(${progress * 14}vw)`;
renderer.render(scene, camera);
}
// Render only while the hero is on screen
new IntersectionObserver(([e]) => {
if (e.isIntersecting) { clock.getDelta(); renderer.setAnimationLoop(frame); } else renderer.setAnimationLoop(null);
}).observe(hero);
frame();
</script>
</body>
</html>