@font-face {
    font-family: "Avenir Next Cyr";
    src: url(/styles/fonts/avenirnextcyr-regular.ttf) format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Avenir Next Cyr";
    src: url(/styles/fonts/avenirnextcyr-medium.ttf) format("truetype");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Avenir Next Cyr";
    src: url(/styles/fonts/avenirnextcyr-thin.ttf) format("truetype");
    font-weight: 200;
    font-display: swap;
}

:root {
    --bg: #121016;
    --bg-alt: #17141c;
    --surface: #1d1924;
    --surface-2: #251f2e;
    --border: rgba(162, 155, 254, 0.12);
    --border-strong: rgba(162, 155, 254, 0.32);
    --text: #f4f2f8;
    --muted: #a9a3b6;
    --faint: #6f6880;
    --accent: #6c5ce7;
    --accent-2: #a29bfe;
    --accent-ink: #ffffff;
    --brand: #ef4136;
    --brand-2: #f26b3a;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
    --container: 1200px;
    --nav-h: 72px;
    --font: "Avenir Next Cyr", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

html,
body {
    overflow-x: clip;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-2);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.grad {
    background: linear-gradient(100deg, var(--brand) 0%, var(--brand-2) 45%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 10px 28px -10px rgba(108, 92, 231, 0.8);
}

.btn--primary:hover {
    background: #7b6cf0;
    box-shadow: 0 14px 34px -10px rgba(108, 92, 231, 0.95);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn--ghost:hover {
    background: rgba(162, 155, 254, 0.1);
    border-color: var(--accent-2);
}

.btn--sm {
    min-height: 40px;
    padding: 0 18px;
    font-size: 15px;
}

.btn--lg {
    min-height: 54px;
    padding: 0 28px;
    font-size: 17px;
}

/* ---------- nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    background: rgba(18, 16, 22, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav.is-scrolled {
    border-bottom-color: var(--border);
    background: rgba(18, 16, 22, 0.88);
}

.nav__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.nav__brand img {
    width: 40px;
    height: 40px;
}

.nav__brand b {
    color: var(--brand-2);
    font-weight: 600;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav__menu a:not(.btn) {
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 16px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nav__menu a:not(.btn):hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav__cta {
    margin-left: 10px;
}

.nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    position: relative;
}

.nav__toggle span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 28px; }

.nav.is-open .nav__toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
    position: relative;
    padding: 72px 0 96px;
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    inset: -20% -10% auto;
    height: 900px;
    background:
        radial-gradient(40% 50% at 78% 35%, rgba(108, 92, 231, 0.32), transparent 70%),
        radial-gradient(30% 40% at 12% 20%, rgba(239, 65, 54, 0.14), transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
    pointer-events: none;
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.hero__title {
    margin-top: 18px;
    font-size: clamp(38px, 5.4vw, 64px);
}

.hero__lead {
    margin-top: 22px;
    font-size: 19px;
    color: #d7d2e2;
    max-width: 560px;
}

.hero__sub {
    margin-top: 14px;
    color: var(--muted);
    max-width: 560px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 40px;
    margin: 40px 0 0;
    padding: 24px 0 0;
    list-style: none;
    border-top: 1px solid var(--border);
}

.stats li {
    display: flex;
    flex-direction: column;
}

.stats b {
    font-size: 34px;
    font-weight: 600;
    line-height: 1.1;
}

.stats span {
    color: var(--muted);
    font-size: 15px;
}

.hero__visual {
    position: relative;
    perspective: 1400px;
}

.mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    transform: rotateY(-14deg) rotateX(6deg) rotateZ(2deg);
    transform-style: preserve-3d;
}

.mosaic__tile {
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
    animation: tile-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.mosaic__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mosaic__tile:nth-child(odd) {
    transform: translateY(18px);
}

.mosaic__tile--2 { animation-delay: 0.06s; }
.mosaic__tile--3 { animation-delay: 0.12s; }
.mosaic__tile--4 { animation-delay: 0.18s; }
.mosaic__tile--5 { animation-delay: 0.24s; }
.mosaic__tile--6 { animation-delay: 0.3s; }

@keyframes tile-in {
    from { opacity: 0; translate: 0 24px; }
    to { opacity: 1; translate: 0 0; }
}

.hero__logo {
    position: absolute;
    left: -46px;
    bottom: -52px;
    width: 92px;
    height: 92px;
    filter: drop-shadow(0 16px 30px rgba(239, 65, 54, 0.35));
}

/* ---------- sections ---------- */

.section {
    padding: 96px 0;
    position: relative;
}

.section--alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section__head {
    max-width: 720px;
    margin-bottom: 44px;
}

.section__title {
    margin-top: 14px;
    font-size: clamp(30px, 3.6vw, 44px);
}

.section__lead {
    margin-top: 14px;
    color: var(--muted);
    font-size: 18px;
}

/* ---------- skills ---------- */

.skills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.skill {
    padding: 26px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.skill:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
}

.skill__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(108, 92, 231, 0.14);
    color: var(--accent-2);
    margin-bottom: 18px;
}

.skill__icon svg,
.price__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skill h3 {
    font-size: 20px;
}

.skill p {
    margin-top: 6px;
    color: var(--muted);
}

.skill--link {
    background: linear-gradient(140deg, rgba(108, 92, 231, 0.18), rgba(239, 65, 54, 0.08)), var(--surface);
}

.skill__more {
    display: inline-block;
    margin-left: 6px;
    color: var(--accent-2);
    font-weight: 600;
}

/* ---------- works ---------- */

.works {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.work {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.work:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.work.is-extra {
    display: none;
}

.works.is-expanded .work.is-extra {
    display: flex;
    animation: fade-up 0.4s ease both;
}

@keyframes fade-up {
    from { opacity: 0; translate: 0 12px; }
    to { opacity: 1; translate: 0 0; }
}

.work__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0d0b10;
    overflow: hidden;
}

.work__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.work:hover .work__media img {
    transform: scale(1.04);
}

.work__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(13, 11, 16, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.work__badge--video { color: #ffb4ad; }
.work__badge--gallery { color: #c9c4ff; }
.work__badge--link { color: #b8e6c9; }

.work__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.work__play::after {
    content: "";
    position: absolute;
    left: 22px;
    top: 17px;
    border-left: 16px solid #fff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

.work:hover .work__play,
.work:focus-visible .work__play {
    opacity: 1;
    transform: scale(1);
}

.work__body {
    padding: 16px 18px 18px;
}

.work__title {
    font-size: 17px;
    line-height: 1.3;
}

.work__desc {
    margin-top: 6px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}

.works__more {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.works__more.hidden,
.works.is-expanded + .works__more {
    display: none;
}

/* ---------- partners ---------- */

.partners {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.partner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 17px;
    transition: border-color 0.2s ease, transform 0.2s ease;
    min-width: 0;
}

.partner:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
}

.partner img {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
}

.partner span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- pricing ---------- */

.prices {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.price {
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.price--featured {
    background: linear-gradient(160deg, rgba(108, 92, 231, 0.22), rgba(108, 92, 231, 0.04) 60%), var(--surface);
    border-color: var(--border-strong);
}

.price__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(239, 65, 54, 0.12);
    color: #ff8f6b;
}

.price__name {
    margin-top: 20px;
    font-size: 19px;
    line-height: 1.3;
    min-height: 2.6em;
}

.price__value {
    margin: 18px 0 24px;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
}

.price__value span {
    font-size: 17px;
    color: var(--muted);
    font-weight: 400;
}

.price .btn {
    margin-top: auto;
    width: 100%;
}

/* ---------- contacts ---------- */

.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: center;
    padding: 48px;
    border-radius: 24px;
    background:
        radial-gradient(60% 90% at 0% 0%, rgba(108, 92, 231, 0.28), transparent 70%),
        radial-gradient(50% 80% at 100% 100%, rgba(239, 65, 54, 0.14), transparent 70%),
        var(--surface);
    border: 1px solid var(--border-strong);
}

.contact__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(18, 16, 22, 0.6);
    border: 1px solid var(--border);
    text-align: left;
    cursor: pointer;
    min-width: 0;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact__item:hover {
    border-color: var(--accent-2);
    background: rgba(108, 92, 231, 0.12);
}

.contact__item img,
.contact__svg {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
}

.contact__svg {
    fill: none;
    stroke: var(--accent-2);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact__item span {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.contact__item b {
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
}

.contact__item small {
    color: var(--faint);
    font-size: 12px;
}

.contact__item--tg {
    grid-column: 1 / -1;
    background: linear-gradient(120deg, rgba(42, 171, 238, 0.18), rgba(108, 92, 231, 0.14));
    border-color: rgba(42, 171, 238, 0.4);
}

/* ---------- footer ---------- */

.footer {
    padding: 40px 0 48px;
    border-top: 1px solid var(--border);
    color: var(--faint);
    font-size: 14px;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__brand img {
    width: 32px;
    height: 32px;
    opacity: 0.85;
}

.footer__legal {
    font-style: normal;
    line-height: 1.7;
    text-align: right;
}

.footer__legal a:hover {
    color: var(--text);
}

/* ---------- to top ---------- */

.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: rgba(29, 25, 36, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--text);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- modal ---------- */

.modal {
    width: min(1100px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.modal::backdrop {
    background: rgba(8, 6, 12, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal[open] {
    animation: modal-in 0.22s ease both;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.modal__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 14px 14px 22px;
    border-bottom: 1px solid var(--border);
}

.modal__title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 19px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal__ext {
    flex: 0 0 auto;
    color: var(--accent-2);
    font-weight: 600;
    font-size: 15px;
}

.modal__ext:hover {
    color: var(--text);
}

.modal__close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.modal__close:hover {
    background: rgba(255, 255, 255, 0.06);
}

.modal__close svg,
.modal__nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.modal__video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.modal__video:empty {
    display: none;
}

.modal__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.modal__gallery {
    position: relative;
    background: #000;
    display: grid;
    place-items: center;
    max-height: calc(100dvh - 120px);
}

.modal__gallery[hidden] {
    display: none;
}

.modal__gallery img {
    width: 100%;
    max-height: calc(100dvh - 120px);
    object-fit: contain;
}

.modal__nav {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(13, 11, 16, 0.7);
    cursor: pointer;
}

.modal__nav:hover {
    background: var(--accent);
}

.modal__nav--prev { left: 14px; }
.modal__nav--next { right: 14px; }

.modal__counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(13, 11, 16, 0.7);
    font-size: 14px;
}

/* ---------- toast ---------- */

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 100;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* ---------- 404 ---------- */

.notfound {
    min-height: 100dvh;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 16px;
    padding: 24px;
    text-align: center;
}

.notfound p {
    color: var(--muted);
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
    .works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nav__menu a:not(.btn) { padding: 8px 10px; }
}

@media (max-width: 920px) {
    :root { --nav-h: 64px; }

    .nav__toggle { display: block; }

    .nav__menu {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 16px 20px;
        background: rgba(18, 16, 22, 0.97);
        border-bottom: 1px solid var(--border);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .nav.is-open .nav__menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav__menu a:not(.btn) {
        padding: 12px 14px;
        font-size: 17px;
    }

    .nav__cta {
        margin: 8px 0 0;
    }

    .hero {
        padding: 40px 0 64px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__visual {
        order: -1;
        perspective: none;
    }

    .mosaic {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        transform: none;
    }

    .mosaic__tile:nth-child(odd) { transform: none; }
    .mosaic__tile--4,
    .mosaic__tile--5,
    .mosaic__tile--6 { display: none; }

    .hero__logo { display: none; }

    .section { padding: 72px 0; }

    .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .contact {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 24px;
    }

    .footer__legal { text-align: left; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }

    .container { padding: 0 16px; }

    .hero__lead { font-size: 17px; }

    .hero__cta .btn { flex: 1 1 100%; }

    .stats { gap: 14px 24px; }
    .stats b { font-size: 28px; }

    .section { padding: 56px 0; }
    .section__head { margin-bottom: 28px; }

    .skills { grid-template-columns: 1fr; gap: 12px; }
    .skill { padding: 20px; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: center; }
    .skill__icon { grid-row: span 2; margin: 0; }
    .skill p { margin-top: 2px; }

    .works { grid-template-columns: 1fr; gap: 16px; }

    .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .partner { flex-direction: column; text-align: center; gap: 10px; padding: 16px 10px; font-size: 15px; }
    .partner span { white-space: normal; }

    .prices { grid-template-columns: 1fr; gap: 12px; }
    .price__name { min-height: 0; }

    .contact { padding: 28px 18px; border-radius: 20px; }
    .contact__links { grid-template-columns: 1fr; }

    .modal { width: calc(100vw - 16px); border-radius: 16px; }
    .modal__head { padding: 10px 10px 10px 16px; gap: 10px; }
    .modal__title { font-size: 16px; }
    .modal__ext { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
