/* ============================================
   01. ЛОКАЛЬНЫЕ ШРИФТЫ И ЦВЕТОВАЯ ПАЛИТРА
============================================ */

@font-face {
    font-family: "Outfit";
    src: url("../fonts/outfit-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url("../fonts/dmsans-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}
:root {
    color-scheme: dark;
    --background: #0b0c12;
    --surface: #15151f;
    --raised-surface: #20202e;
    --text: #f3f1fa;
    --muted: #b9b7c8;
    --purple: #b8a4ff;
    --cyan: #79d9ed;
    --dark-ink: #171226;
    --rule: #3d3b4d;
    --gutter: clamp(22px, 5vw, 88px);
    --section-space: clamp(76px, 9vw, 150px);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}


/* ============================================
   02. ФОНОВОЕ ИЗОБРАЖЕНИЕ HERO
   Здесь можно заменить фон главного экрана.
   Пример: url("../img/hero-background.webp")
============================================ */

:root {
    --hero-image: none;
}


/* ============================================
   03. БАЗОВЫЕ СТИЛИ, ТИПОГРАФИКА И ДОСТУПНОСТЬ
============================================ */

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 28px;
    background: var(--background);
}
body {
    max-width: 1920px;
    margin: 0 auto;
    color: var(--text);
    background: var(--background);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body, button, input {
    font-synthesis: none;
}
::selection {
    color: var(--dark-ink);
    background: var(--cyan);
}
:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 6px;
}
[hidden] {
    display: none !important;
}
a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    transition: color 160ms ease;
}
a:hover {
    color: var(--purple);
}
a:active {
    opacity: 0.8;
}
button, input {
    font: inherit;
}
button {
    cursor: pointer;
}
img, svg {
    display: block;
    max-width: 100%;
}
img {
    height: auto;
}
h1, h2, h3, p, figure, dl, dd {
    margin: 0;
}
h1, h2, h3, dt {
    font-family: "Outfit", Arial, sans-serif;
    font-weight: 500;
}
h1, h2, h3 {
    text-wrap: balance;
    letter-spacing: -0.035em;
    line-height: 1.04;
}
h1 {
    font-size: clamp(58px, 7.5vw, 112px);
}
h2 {
    font-size: clamp(42px, 5vw, 74px);
}
h3 {
    font-size: clamp(30px, 3vw, 43px);
}
p + p {
    margin-top: 22px;
}
.section-space {
    padding: var(--section-space) var(--gutter);
}
.lead {
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.45;
    letter-spacing: -0.015em;
}
.small-note {
    color: var(--muted);
    font-size: 14px;
}
.skip-link {
    position: fixed;
    z-index: 20;
    top: 12px;
    left: 20px;
    padding: 12px 18px;
    color: var(--dark-ink);
    background: var(--cyan);
    transform: translateY(-160%);
}
.skip-link:focus {
    transform: translateY(0);
}


/* ============================================
   04. ШАПКА И МОБИЛЬНАЯ НАВИГАЦИЯ
============================================ */

.site-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 110px;
    padding: 24px var(--gutter);
    background: var(--background);
}
.site-logo {
    flex: 0 0 auto;
}
.site-logo img {
    width: 246px;
}
.site-navigation {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
    font-size: 15px;
}
.site-navigation a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
}
.site-navigation .navigation-contact {
    color: var(--purple);
    text-decoration: underline;
    text-underline-offset: 7px;
}
.menu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 6px 0 6px 12px;
    color: var(--text);
    border: 0;
    background: transparent;
}
.menu-symbol {
    display: grid;
    gap: 6px;
    width: 22px;
}
.menu-symbol span {
    height: 2px;
    background: currentColor;
    transition: transform 180ms var(--ease-out);
}
.menu-toggle[aria-expanded="true"] .menu-symbol span:first-child {
    transform: translateY(4px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-symbol span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}


/* ============================================
   05. КНОПКИ И ДЕЙСТВИЯ
============================================ */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 56px;
    padding: 14px 22px;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.button-primary {
    color: var(--dark-ink);
    background: var(--purple);
}
.button-primary:hover {
    color: var(--dark-ink);
    background: var(--cyan);
}
.button:active {
    transform: scale(0.98);
}
.arrow-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
}
.text-button {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    min-height: 44px;
    padding: 0;
    color: var(--purple);
    border: 0;
    background: transparent;
    font-size: 15px;
}
.text-button:hover {
    color: var(--cyan);
}


/* ============================================
   06. HERO И АВТОРСКАЯ V-КОМПОЗИЦИЯ
============================================ */

.hero {
    position: relative;
    isolation: isolate;
    padding: 65px var(--gutter) 32px;
}
.hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.16;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    content: "";
}
.hero-introduction {
    position: relative;
    z-index: 1;
    text-align: center;
}
.hero-introduction > p {
    margin-top: 28px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.5;
}
.hero-introduction .button {
    margin-top: 28px;
}
.vertex-composition {
    display: grid;
    grid-template-columns: 0.65fr 2.7fr 0.65fr;
    align-items: end;
    gap: 0;
    margin-top: -32px;
}
.vertex-figure img {
    width: 100%;
}
.vertex-figure figcaption {
    margin-top: -6px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}
.hero-side-note {
    padding-bottom: 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}
.hero-explore {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding: 16px 0 20px;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
}
.hero-explore span {
    font-size: 24px;
}


/* ============================================
   07. EXPERTISE — ОТКРЫТЫЕ ТИПОГРАФИЧЕСКИЕ КОЛОНКИ
============================================ */

.expertise {
    padding-top: clamp(100px, 10vw, 160px);
}
.section-opening {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    gap: 12%;
}
.section-opening > p {
    max-width: 47ch;
    color: var(--muted);
}
.expertise-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
    gap: 6%;
    margin-top: 72px;
}
.expertise-columns article {
    min-width: 0;
}
.expertise-design {
    padding: 38px;
    color: var(--dark-ink);
    background: var(--purple);
}
.expertise-interaction {
    padding-top: 38px;
}
.expertise-mobile {
    padding-top: 106px;
}
.expertise-columns article > p {
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.65;
}
.expertise-interaction > p, .expertise-mobile > p {
    color: var(--muted);
}
.discipline-note {
    display: block;
    margin-top: 38px;
    font-size: 12px;
    line-height: 1.7;
}


/* ============================================
   08. ИНТЕРАКТИВНЫЙ ГРАФИЧЕСКИЙ ЭТЮД
============================================ */

.form-study {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 5%;
    background: var(--surface);
}
.study-copy h2 {
    font-size: clamp(38px, 4.2vw, 62px);
}
.study-copy > p:not(.small-note) {
    max-width: 38ch;
    margin-top: 28px;
    color: var(--muted);
}
.study-controls {
    max-width: 380px;
    margin-top: 38px;
}
.range-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 14px;
}
.range-heading output {
    color: var(--purple);
    font-variant-numeric: tabular-nums;
}
#curve-tension {
    width: 100%;
    height: 44px;
    margin: 8px 0;
    accent-color: var(--purple);
    cursor: ew-resize;
}
.study-copy .small-note {
    margin-top: 24px;
}
.study-artwork {
    min-width: 0;
    color: var(--cyan);
}
.study-artwork svg {
    width: 100%;
    overflow: visible;
}


/* ============================================
   09. БУДУЩИЕ ЦИФРОВЫЕ ПРОДУКТЫ
============================================ */

.possibilities {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 12%;
    color: var(--dark-ink);
    background: var(--cyan);
}
.possibilities h2 {
    font-size: clamp(54px, 6.3vw, 96px);
}
.possibilities .lead {
    max-width: 20ch;
}
.possibilities-copy > p:not(.lead) {
    font-size: 16px;
}
.possibilities .availability-note {
    margin-top: 32px;
    font-size: 13px;
}


/* ============================================
   10. СТУДИЯ И ПРИНЦИПЫ ПОДХОДА
============================================ */

.studio-introduction {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10%;
}
.studio-copy > p:not(.lead) {
    color: var(--muted);
}
.approach-notes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 7%;
    margin-top: 84px;
}
.approach-notes dt {
    margin-bottom: 20px;
    color: var(--purple);
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.approach-notes dd {
    color: var(--muted);
    font-size: 16px;
}


/* ============================================
   11. КОНТАКТ И ПОДВАЛ
============================================ */

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 10%;
    background: var(--surface);
}
.contact-invitation > p {
    margin-top: 28px;
    color: var(--muted);
}
.email-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    padding-bottom: 18px;
    color: var(--purple);
    border-bottom: 1px solid var(--rule);
    font-family: "Outfit", Arial, sans-serif;
    font-size: clamp(24px, 2.3vw, 36px);
    line-height: 1.3;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    text-decoration: none;
}
.contact-address > p {
    margin-top: 24px;
    color: var(--muted);
    font-size: 14px;
}
.privacy-context {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
}
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px 40px;
    padding: 34px var(--gutter);
    color: var(--muted);
    font-size: 13px;
}
.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}


/* ============================================
   12. ЮРИДИЧЕСКИЕ СТРАНИЦЫ И 404
============================================ */

.document-main {
    padding: 64px var(--gutter) var(--section-space);
}
.document-heading {
    max-width: 1000px;
    margin-bottom: 68px;
}
.document-heading h1 {
    font-size: clamp(48px, 7vw, 96px);
}
.document-heading > p {
    max-width: 55ch;
    margin-top: 28px;
    color: var(--muted);
}
.document-layout {
    display: grid;
    grid-template-columns: 0.7fr 1.5fr;
    align-items: start;
    gap: 10%;
}
.document-index {
    position: sticky;
    top: 28px;
    display: grid;
    justify-items: start;
    gap: 8px;
    font-size: 14px;
}
.document-index a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.document-article {
    max-width: 70ch;
    overflow-wrap: anywhere;
}
.document-article section + section {
    margin-top: 52px;
}
.document-article h2 {
    margin-bottom: 22px;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.document-article p, .document-article li {
    color: var(--muted);
}
.document-article a {
    color: var(--purple);
}
.document-article address {
    color: var(--muted);
    font-style: normal;
}
.legal-details {
    display: grid;
    gap: 24px;
}
.legal-details dt {
    margin-bottom: 4px;
    font-size: 20px;
}
.legal-details dd {
    color: var(--muted);
}
.error-page {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 8%;
    min-height: 65vh;
    padding: 64px var(--gutter) 100px;
}
.error-page h1 {
    font-size: clamp(52px, 6vw, 90px);
}
.error-page p {
    max-width: 40ch;
    margin-top: 28px;
    color: var(--muted);
}
.error-page .button {
    margin-top: 32px;
}
.error-number {
    color: var(--purple);
    font-family: "Outfit", Arial, sans-serif;
    font-size: clamp(120px, 22vw, 320px);
    line-height: 1;
    letter-spacing: -0.04em;
}


/* ============================================
   13. ДВИЖЕНИЕ — ОДИН ВХОД И ОБРАТНАЯ СВЯЗЬ
   Контент виден без JavaScript и без анимаций.
============================================ */
@keyframes vertex-arrival {
    from {
        opacity: 0.65;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vertex-figure img {
    animation: vertex-arrival 900ms var(--ease-out) both;
}

@media (hover: hover) and (pointer: fine) {
    .button:hover {
        transform: translateY(-2px);
    }
}

/* ============================================
   14. АДАПТИВНОСТЬ — ПЛАНШЕТЫ И ТЕЛЕФОНЫ
============================================ */

@media (max-width: 1100px) {
    .site-header {
        gap: 24px;
    }
    .site-logo img {
        width: 210px;
    }
    .site-navigation {
        gap: 22px;
        font-size: 13px;
    }
    .expertise-columns {
        gap: 5%;
    }
    .expertise-design {
        padding: 30px;
    }
    .expertise-columns h3 {
        font-size: 32px;
    }
    .expertise-mobile {
        padding-top: 80px;
    }
    .hero-side-note, .hero-explore {
        font-size: 12px;
    }
    .vertex-composition {
        grid-template-columns: 0.7fr 2.5fr 0.7fr;
    }

}

@media (max-width: 850px) {
    .site-header {
        flex-wrap: wrap;
        min-height: 90px;
        padding-top: 18px;
        padding-bottom: 18px;
    }
    .site-navigation {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        font-size: 14px;
    }
    .navigation-enhanced .site-header {
        flex-wrap: nowrap;
    }
    .navigation-enhanced .site-navigation {
        position: absolute;
        inset: 100% 0 auto;
        display: grid;
        gap: 0;
        padding: 16px var(--gutter) 28px;
        background: var(--raised-surface);
    }
    .navigation-enhanced .site-navigation a {
        min-height: 62px;
        font-family: "Outfit", Arial, sans-serif;
        font-size: 25px;
    }
    .hero {
        padding-top: 52px;
    }
    .vertex-composition {
        grid-template-columns: 1fr 1fr;
        margin-top: 4px;
    }
    .vertex-figure {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    .vertex-figure img {
        width: min(100%, 650px);
        margin: 0 auto;
    }
    .hero-side-note {
        margin-top: 30px;
        padding-bottom: 0;
    }
    .hero-explore {
        padding-bottom: 0;
    }
    .section-opening, .studio-introduction {
        gap: 8%;
    }
    .expertise-columns {
        grid-template-columns: 1fr 1fr;
        gap: 42px 8%;
        margin-top: 48px;
    }
    .expertise-design {
        grid-row: span 2;
        padding: 32px;
    }
    .expertise-interaction, .expertise-mobile {
        padding-top: 0;
    }
    .expertise-columns h3 br {
        display: none;
    }
    .expertise-columns article > p {
        margin-top: 20px;
    }
    .discipline-note {
        margin-top: 24px;
    }
    .form-study {
        grid-template-columns: 1fr 1fr;
    }
    .study-copy h2 {
        font-size: 38px;
    }
    .possibilities {
        gap: 8%;
    }
    .possibilities h2 {
        font-size: 52px;
    }
    .approach-notes {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 56px;
    }
    .approach-notes > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8%;
    }
    .approach-notes dt {
        margin-bottom: 0;
    }
    .contact {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .contact-address {
        max-width: 580px;
    }
    .email-link {
        justify-content: flex-start;
        gap: 20px;
        font-size: 32px;
    }
    .document-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .document-index {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 24px;
    }

}

@media (max-width: 580px) {
    body {
        font-size: 16px;
    }
    .site-logo img {
        width: 194px;
    }
    .menu-toggle {
        gap: 9px;
        font-size: 14px;
    }
    .site-navigation {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 4px 24px;
    }
    .hero {
        padding-top: 40px;
        padding-bottom: 16px;
    }
    h1 {
        font-size: clamp(42px, 11.5vw, 64px);
    }
    h2 {
        font-size: 44px;
    }
    .hero-introduction > p {
        margin-top: 24px;
        font-size: 16px;
    }
    .hero-introduction .button {
        margin-top: 24px;
    }
    .vertex-composition {
        margin-top: 20px;
    }
    .vertex-figure {
        margin-inline: -10px;
    }
    .vertex-figure figcaption {
        margin-top: 6px;
        font-size: 11px;
    }
    .hero-side-note br {
        display: none;
    }
    .hero-side-note {
        max-width: 22ch;
        font-size: 11px;
    }
    .hero-explore {
        gap: 10px;
        font-size: 11px;
    }
    .section-opening, .studio-introduction, .possibilities {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .expertise-columns {
        grid-template-columns: 1fr;
        gap: 38px;
        margin-top: 40px;
    }
    .expertise-design {
        grid-row: auto;
        padding: 30px;
    }
    .expertise-columns h3 {
        font-size: 34px;
    }
    .expertise-interaction, .expertise-mobile {
        padding-left: 0;
    }
    .expertise-columns h3 br {
        display: initial;
    }
    .form-study {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .study-copy h2 {
        font-size: 39px;
    }
    .study-artwork {
        grid-row: 2;
    }
    .study-artwork svg {
        max-height: 230px;
    }
    .possibilities h2 {
        font-size: 50px;
    }
    .possibilities .lead {
        max-width: 22ch;
        font-size: 26px;
    }
    .approach-notes > div {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .approach-notes dt {
        font-size: 26px;
    }
    .contact h2 {
        font-size: 44px;
    }
    .email-link {
        font-size: 25px;
        gap: 8px;
    }
    .site-footer {
        display: grid;
        gap: 12px;
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .site-footer nav {
        gap: 20px;
    }
    .document-main {
        padding-top: 40px;
    }
    .document-heading {
        margin-bottom: 40px;
    }
    .document-heading h1 {
        font-size: 48px;
    }
    .document-article h2 {
        font-size: 28px;
    }
    .error-page {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 40px;
    }
    .error-number {
        grid-row: 1;
        font-size: 120px;
    }
    .error-page h1 {
        font-size: 48px;
    }

}

/* ============================================
   15. УМЕНЬШЕННОЕ ДВИЖЕНИЕ
   Пространственные эффекты отключены, состояния сохранены.
============================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .vertex-figure img {
        animation: none;
    }
    .button, .menu-symbol span {
        transition: background-color 100ms ease;
    }
    .button:hover, .button:active {
        transform: none;
    }
}
