:root {
    --bg: #f7f8fb;
    --paper: #ffffff;
    --ink: #17191f;
    --muted: #69707d;
    --line: #dde3ec;
    --soft: #edf2f7;
    --accent: #1d6fe8;
    --accent-strong: #0d4fb7;
    --mint: #21b996;
    --coral: #ff6b4a;
    --shadow: 0 24px 70px rgba(25, 35, 55, .12);
    --radius: 8px;
    --content: min(1540px, calc(100vw - 28px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    max-width: 100%;
    overflow-x: clip;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(29, 111, 232, .08), transparent 560px),
        var(--bg);
    letter-spacing: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(23, 25, 31, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 25, 31, .035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 18px;
    z-index: 20;
    width: var(--content);
    margin: 18px auto 0;
    min-height: 68px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(221, 227, 236, .9);
    border-radius: 8px;
    box-shadow: 0 12px 42px rgba(42, 57, 80, .09);
    backdrop-filter: blur(18px);
    transition: opacity .28s ease, background .28s ease, box-shadow .28s ease, border-color .28s ease, transform .28s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, .58);
    border-color: rgba(221, 227, 236, .62);
    box-shadow: 0 16px 52px rgba(20, 28, 42, .12);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #1fb98f);
    font-weight: 850;
    box-shadow: 0 10px 28px rgba(29, 111, 232, .25);
}

.brand strong,
.brand small {
    display: block;
}

.brand > span:last-child {
    min-width: 0;
}

.brand strong {
    font-size: 16px;
}

.brand small,
.header-contact small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 10px 12px;
    border-radius: 8px;
    color: #303744;
    font-size: 14px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.main-nav a:hover {
    color: var(--accent-strong);
    background: rgba(29, 111, 232, .08);
    transform: translateY(-1px);
}

.header-contact {
    display: grid;
    justify-items: end;
    gap: 2px;
    min-width: max-content;
}

.header-contact a {
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.wide-section {
    width: var(--content);
    max-width: 100%;
    margin: 0 auto;
}

.detail-hero h1 {
    max-width: 850px;
    margin: 12px 0 20px;
    font-size: clamp(46px, 7vw, 92px);
    line-height: .93;
    letter-spacing: 0;
}

.detail-hero p {
    max-width: 720px;
    color: #47505f;
    font-size: 20px;
    line-height: 1.65;
}

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(29, 111, 232, .18);
    border-radius: 8px;
    color: var(--accent-strong);
    background: rgba(29, 111, 232, .08);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.inline-actions,
.detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 650;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 14px 32px rgba(29, 111, 232, .24);
}

.btn-primary:hover {
    background: var(--accent-strong);
    box-shadow: 0 18px 40px rgba(29, 111, 232, .3);
}

.btn-secondary,
.btn-ghost {
    color: var(--ink);
    background: var(--paper);
    border-color: var(--line);
}

.btn-secondary:hover,
.btn-ghost:hover {
    border-color: rgba(29, 111, 232, .35);
    color: var(--accent-strong);
}

.btn-danger {
    color: #fff;
    background: #c83232;
}

.status-card,
.metric-strip {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 8px;
    backdrop-filter: blur(14px);
}

.status-card {
    width: fit-content;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.status-card span,
.metric-strip span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.status-card strong {
    display: block;
    font-size: 22px;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
}

.metric-strip div {
    padding: 16px;
    background: rgba(255, 255, 255, .78);
}

.metric-strip strong {
    display: block;
    margin-bottom: 4px;
    font-size: 22px;
}

.about,
.services,
.portfolio,
.callback-section,
.gallery {
    padding: 80px 0;
}

.about-first {
    position: relative;
    min-height: 420px;
    display: grid;
    align-items: center;
    margin-top: 22px;
    padding: 34px 42px;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(29, 111, 232, .24), transparent 34%),
        linear-gradient(290deg, rgba(33, 185, 150, .22), transparent 30%),
        linear-gradient(180deg, #111723, #171d28);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(17, 23, 35, .2);
}

.about-first::before,
.about-first::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: .5;
}

.about-first::before {
    width: 780px;
    height: 180px;
    right: -220px;
    top: 72px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
    transform: rotate(-10deg);
    animation: about-drift 12s ease-in-out infinite alternate;
}

.about-first::after {
    width: 640px;
    height: 140px;
    left: 18%;
    bottom: -52px;
    background: linear-gradient(90deg, transparent, rgba(33, 185, 150, .18), transparent);
    transform: rotate(9deg);
    animation: about-drift 15s ease-in-out infinite alternate-reverse;
}

.about-bg-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, .08) 42% 43%, transparent 43%),
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 100% 100%, 42px 42px, 42px 42px;
    animation: grid-shift 18s linear infinite;
}

@keyframes about-drift {
    from { translate: 0 0; }
    to { translate: -48px 28px; }
}

@keyframes grid-shift {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: 0 0, 42px 42px, 42px 42px; }
}

.about-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: clamp(26px, 4vw, 54px);
    align-items: center;
}

.portrait-wrap {
    width: min(280px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.about-first .portrait-wrap {
    justify-self: center;
    transform: rotate(-2deg);
    animation: portrait-float 8s ease-in-out infinite alternate;
}

@keyframes portrait-float {
    from { transform: translateY(0) rotate(-2deg); }
    to { transform: translateY(-14px) rotate(1deg); }
}

.portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.about-copy h1,
.about-copy h2,
.section-heading h2,
.callback-copy h2 {
    margin: 16px 0 18px;
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1.04;
    letter-spacing: 0;
}

.about-first .about-copy h1 {
    max-width: 920px;
    margin-top: 12px;
    font-size: clamp(32px, 3.8vw, 54px);
    line-height: 1;
}

.about-first .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
}

.about-first .inline-actions {
    margin-top: 20px;
}

.about-first .btn {
    min-height: 50px;
    padding: 0 22px;
    color: #fff;
    border-color: rgba(255, 255, 255, .16);
    box-shadow: none;
}

.about-first .about-call {
    background: linear-gradient(135deg, #2f7eff, #18bd98);
    box-shadow: 0 18px 38px rgba(29, 111, 232, .28);
    animation: action-pulse 3.4s ease-in-out infinite;
}

.about-first .about-call:hover {
    background: linear-gradient(135deg, #1765dc, #0fa783);
    box-shadow: 0 22px 48px rgba(29, 111, 232, .36);
}

.about-first .about-telegram {
    background:
        linear-gradient(#171d28, #171d28) padding-box,
        linear-gradient(135deg, rgba(47, 126, 255, .9), rgba(33, 185, 150, .9)) border-box;
}

.about-first .about-telegram:hover {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(47, 126, 255, .2), rgba(33, 185, 150, .18)) padding-box,
        linear-gradient(135deg, #2f7eff, #21b996) border-box;
    box-shadow: 0 16px 36px rgba(33, 185, 150, .18);
}

@keyframes action-pulse {
    0%, 100% { box-shadow: 0 18px 38px rgba(29, 111, 232, .24), 0 0 0 0 rgba(33, 185, 150, .24); }
    50% { box-shadow: 0 22px 48px rgba(29, 111, 232, .34), 0 0 0 9px rgba(33, 185, 150, 0); }
}

.about-copy p,
.callback-copy p {
    color: #4b5564;
    font-size: 18px;
    line-height: 1.75;
}

.about-first .about-copy p {
    max-width: 950px;
    color: rgba(255, 255, 255, .75);
    font-size: 15.5px;
    line-height: 1.58;
}

.about-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
    max-width: 840px;
}

.about-facts div {
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(12px);
}

.about-facts strong,
.about-facts span {
    display: block;
}

.about-facts strong {
    margin-bottom: 5px;
    color: #fff;
    font-size: 18px;
}

.about-facts span {
    color: rgba(255, 255, 255, .66);
    line-height: 1.45;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 32px;
    margin-bottom: 32px;
}

.section-heading h2 {
    margin: 0;
}

.section-heading p {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.clean-heading {
    align-items: end;
}

.services .clean-heading {
    display: block;
}

.services .clean-heading p {
    margin-top: 12px;
}

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

.service-card {
    position: relative;
    min-height: 310px;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .96)),
        var(--paper);
    border: 1px solid rgba(216, 226, 239, .92);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(24, 37, 56, .07);
    overflow: hidden;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(29, 111, 232, .11), transparent 42%),
        linear-gradient(315deg, rgba(33, 185, 150, .09), transparent 36%);
    opacity: 0;
    transition: opacity .24s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(29, 111, 232, .38);
    box-shadow: 0 28px 70px rgba(24, 37, 56, .13);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-link {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 310px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    align-content: start;
    gap: 16px;
    padding: 24px;
}

.service-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, rgba(29, 111, 232, .45), rgba(33, 185, 150, .36)) border-box;
    border: 1px solid rgba(29, 111, 232, .16);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(29, 111, 232, .1);
}

.service-icon svg,
.slider-arrow svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3,
.portfolio-card h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.14;
}

.service-card p,
.portfolio-card p,
.empty-showcase p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.service-price {
    align-self: end;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--accent-strong);
    font-size: 23px;
    font-weight: 760;
    line-height: 1.15;
}

.service-card--theme-dark {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(16, 25, 38, .96), rgba(21, 36, 58, .94)),
        #111722;
    border-color: rgba(255, 255, 255, .12);
}

.service-card--theme-dark::before {
    opacity: 1;
    background:
        linear-gradient(135deg, rgba(47, 126, 255, .24), transparent 46%),
        linear-gradient(320deg, rgba(33, 185, 150, .2), transparent 42%);
}

.service-card--theme-dark h3,
.service-card--theme-dark .service-price {
    color: #fff;
}

.service-card--theme-dark p {
    color: rgba(255, 255, 255, .7);
}

.service-card--theme-dark .service-icon {
    color: #fff;
    background:
        linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)) padding-box,
        linear-gradient(135deg, rgba(255, 255, 255, .32), rgba(33, 185, 150, .45)) border-box;
    border-color: transparent;
}

.app-cloud {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.app-cloud-icon {
    --float-x: 18px;
    --float-y: -20px;
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    opacity: .38;
    filter: drop-shadow(0 14px 18px rgba(24, 37, 56, .2));
    animation: app-float 13s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

.app-cloud-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.app-cloud-icon:nth-child(12n + 1) { left: 6%; top: 8%; width: 42px; height: 42px; --float-x: 32px; --float-y: 22px; animation-delay: -.8s; }
.app-cloud-icon:nth-child(12n + 2) { left: 39%; top: 4%; width: 50px; height: 50px; --float-x: -26px; --float-y: 30px; animation-delay: -4s; }
.app-cloud-icon:nth-child(12n + 3) { right: 7%; top: 10%; width: 46px; height: 46px; --float-x: -30px; --float-y: 22px; animation-delay: -2.2s; }
.app-cloud-icon:nth-child(12n + 4) { right: 16%; top: 40%; width: 54px; height: 54px; --float-x: 28px; --float-y: -28px; animation-delay: -6.4s; }
.app-cloud-icon:nth-child(12n + 5) { left: 8%; top: 48%; width: 52px; height: 52px; --float-x: 34px; --float-y: -30px; animation-delay: -1.5s; }
.app-cloud-icon:nth-child(12n + 6) { left: 55%; top: 33%; width: 40px; height: 40px; --float-x: -32px; --float-y: -22px; animation-delay: -5.1s; }
.app-cloud-icon:nth-child(12n + 7) { left: 25%; bottom: 9%; width: 46px; height: 46px; --float-x: 26px; --float-y: -32px; animation-delay: -7.2s; }
.app-cloud-icon:nth-child(12n + 8) { right: 7%; bottom: 12%; width: 54px; height: 54px; --float-x: -34px; --float-y: -24px; animation-delay: -3.6s; }
.app-cloud-icon:nth-child(12n + 9) { right: 38%; bottom: 5%; width: 46px; height: 46px; --float-x: 28px; --float-y: -34px; animation-delay: -8.3s; }
.app-cloud-icon:nth-child(12n + 10) { left: 4%; bottom: 14%; width: 38px; height: 38px; --float-x: 24px; --float-y: 28px; animation-delay: -4.8s; }
.app-cloud-icon:nth-child(12n + 11) { left: 72%; top: 61%; width: 44px; height: 44px; --float-x: -26px; --float-y: 30px; animation-delay: -9.1s; }
.app-cloud-icon:nth-child(12n) { left: 46%; bottom: 20%; width: 40px; height: 40px; --float-x: 30px; --float-y: -24px; animation-delay: -10.4s; }

.service-card:hover .app-cloud-icon {
    opacity: .6;
}

@keyframes app-float {
    0% { transform: translate3d(0, 0, 0) rotate(-6deg); opacity: .32; }
    50% { transform: translate3d(calc(var(--float-x) * .45), calc(var(--float-y) * .55), 0) rotate(5deg); opacity: .62; }
    100% { transform: translate3d(var(--float-x), var(--float-y), 0) rotate(-2deg); opacity: .42; }
}

.reviews-band {
    margin: 40px 0;
    padding: 60px 0;
    overflow: hidden;
    color: #fff;
    background: #161b22;
}

.reviews-band p {
    width: var(--content);
    margin: 34px auto 0;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.55;
}

.marquee {
    display: flex;
    gap: 42px;
    width: max-content;
    animation: marquee 24s linear infinite;
}

.marquee span {
    white-space: nowrap;
    font-size: clamp(42px, 7vw, 104px);
    line-height: 1;
    font-weight: 900;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.slider-controls {
    display: flex;
    gap: 8px;
}

.slider-arrow {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.slider-arrow:hover {
    color: var(--accent-strong);
    border-color: rgba(29, 111, 232, .35);
    transform: translateY(-2px);
}

.portfolio-slider {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    overflow-y: visible;
}

.portfolio-track {
    display: flex;
    gap: 16px;
    min-width: 0;
    transition: transform .45s ease;
    will-change: transform;
}

.portfolio-card,
.empty-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.portfolio-card {
    flex: 0 0 calc((100% - 32px) / 3);
    align-self: stretch;
    box-shadow: none;
}

.portfolio-card img,
.portfolio-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
    background: #eef3f8;
    border: 1px solid rgba(216, 226, 239, .88);
    box-shadow: 0 16px 34px rgba(24, 37, 56, .08);
}

.portfolio-card img {
    transition: transform .45s ease, filter .45s ease;
}

.portfolio-card:hover img {
    transform: translateY(-3px) scale(1.018);
    filter: saturate(1.05) contrast(1.02);
}

.portfolio-placeholder {
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 52px;
    font-weight: 900;
}

.portfolio-card-body {
    display: grid;
    grid-template-rows: auto minmax(78px, 1fr) auto auto;
    gap: 12px;
    align-content: start;
    height: 100%;
}

.portfolio-card-body p {
    min-height: 78px;
}

.portfolio-card a {
    color: var(--accent-strong);
    font-weight: 650;
}

.portfolio-card .portfolio-button {
    width: 100%;
    margin-top: 4px;
    color: var(--accent-strong);
    background:
        linear-gradient(135deg, rgba(29, 111, 232, .14), rgba(33, 185, 150, .1)),
        rgba(255, 255, 255, .88);
    border-color: rgba(29, 111, 232, .18);
    box-shadow: 0 14px 32px rgba(29, 111, 232, .12);
}

.portfolio-card .portfolio-button:hover {
    color: #fff;
    background: linear-gradient(135deg, #2f7eff, #18bd98);
    border-color: transparent;
    box-shadow: 0 18px 42px rgba(29, 111, 232, .24);
}

.empty-showcase {
    grid-template-columns: 1fr;
    box-shadow: 0 16px 40px rgba(24, 37, 56, .06);
}

.callback-section {
    position: relative;
    display: grid;
    grid-template-columns: 1fr minmax(340px, 460px);
    gap: 42px;
    align-items: start;
    margin-top: 34px;
    margin-bottom: 40px;
    padding: 42px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(29, 111, 232, .2), transparent 32%),
        linear-gradient(300deg, rgba(33, 185, 150, .18), transparent 34%),
        #151922;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(17, 23, 35, .18);
}

.callback-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
}

.callback-copy,
.callback-form {
    position: relative;
    z-index: 1;
}

.callback-copy p {
    color: rgba(255, 255, 255, .7);
}

.callback-section .callback-copy h2 {
    margin-top: 0;
}

.callback-section label {
    color: rgba(255, 255, 255, .82);
}

.callback-section input {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .16);
    color: #fff;
}

.callback-section input::placeholder {
    color: rgba(255, 255, 255, .46);
}

.callback-section input:focus {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .42);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .08);
}

.form-submit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.callback-section .consent-line {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    line-height: 1.45;
}

.callback-section .consent-line input {
    width: 18px;
    min-height: 18px;
    margin: 2px 0 0;
    accent-color: var(--accent);
    box-shadow: none;
}

.callback-section .consent-line a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-form,
.login-card {
    display: grid;
    gap: 16px;
    padding: 22px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.callback-form {
    display: grid;
    gap: 16px;
    padding: 22px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
}

label {
    display: grid;
    gap: 8px;
    color: #313847;
    font-weight: 750;
}

input,
textarea,
select {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fbfcfe;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

textarea {
    min-height: 104px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    background: #fff;
    border-color: rgba(29, 111, 232, .55);
    box-shadow: 0 0 0 4px rgba(29, 111, 232, .12);
}

.detail-hero {
    padding: 88px 0 56px;
}

.detail-actions strong {
    min-height: auto;
    display: inline-flex;
    align-items: center;
    padding: 0;
    color: var(--accent-strong);
    background: transparent;
    font-size: 22px;
    line-height: 1.15;
}

.back-link {
    color: var(--accent-strong);
    font-weight: 800;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gallery img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.policy-page {
    padding: 76px 0 34px;
}

.policy-card {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 48px);
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(216, 226, 239, .95);
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(24, 37, 56, .1);
}

.policy-card h1 {
    margin: 0 0 24px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
}

.policy-card p {
    margin: 0 0 18px;
    color: #3d4654;
    font-size: 17px;
    line-height: 1.75;
}

.site-footer {
    width: var(--content);
    margin: 50px auto 28px;
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 28px;
    padding: 30px;
    color: rgba(255, 255, 255, .72);
    background: #151922;
    border-radius: 8px;
}

.site-footer strong,
.site-footer a {
    color: #fff;
}

.site-footer p {
    max-width: 560px;
    line-height: 1.65;
}

.site-footer nav,
.footer-contacts {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-bottom {
    grid-column: 1 / -1;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .58);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-notice {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 60;
    width: min(1040px, calc(100vw - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    color: rgba(255, 255, 255, .78);
    background: rgba(21, 25, 34, .94);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(11, 16, 24, .34);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity .28s ease, transform .28s ease;
}

.cookie-notice.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cookie-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.cookie-notice a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-actions .btn {
    min-height: 42px;
    padding: 0 16px;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-block-reveal] {
    opacity: 0;
    transform: translateY(38px) scale(.985);
    transition: opacity .85s ease, transform .85s cubic-bezier(.2, .8, .2, 1);
}

[data-block-reveal].is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(420px, 100%);
}

.login-card h1 {
    margin: 0;
    font-size: 30px;
}

.login-card p,
.flash {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.flash {
    padding: 12px 14px;
    color: #0d4b32;
    background: rgba(33, 185, 150, .14);
    border: 1px solid rgba(33, 185, 150, .26);
    border-radius: 8px;
}

.admin-body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #eef2f7;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px;
    background: #151922;
    color: #fff;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
    margin-top: 28px;
}

.admin-sidebar nav a {
    padding: 12px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .75);
    transition: background .2s ease, color .2s ease;
}

.admin-sidebar nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

.admin-main {
    width: min(1120px, calc(100vw - 330px));
    margin: 0 auto;
    padding: 38px 0 70px;
}

.admin-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-title h1,
.admin-main h1 {
    margin: 0 0 22px;
    font-size: 34px;
}

.admin-title span {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--accent-strong);
    background: rgba(29, 111, 232, .12);
    font-weight: 900;
}

.admin-list {
    display: grid;
    gap: 12px;
}

.admin-subtitle {
    margin: 30px 0 14px;
    font-size: 24px;
}

.admin-row,
.admin-details,
.empty-admin {
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(24, 37, 56, .06);
}

.admin-row {
    display: grid;
    grid-template-columns: 1fr 170px 1fr auto;
    gap: 12px;
    align-items: center;
}

.admin-row strong,
.admin-row a,
.admin-row small {
    display: block;
}

.admin-row small {
    color: var(--muted);
}

.short-link-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
    align-items: end;
}

.short-link-grid {
    display: grid;
    gap: 14px;
}

.short-link-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    background: var(--paper);
    border: 1px solid rgba(216, 226, 239, .94);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(24, 37, 56, .06);
}

.short-link-head,
.short-link-actions,
.short-link-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.short-link-head {
    justify-content: space-between;
}

.short-link-head strong,
.short-link-head a {
    display: block;
}

.short-link-head a,
.short-link-meta {
    color: var(--muted);
    font-size: 14px;
}

.short-link-head > span {
    padding: 8px 12px;
    color: var(--accent-strong);
    background: linear-gradient(135deg, rgba(29, 111, 232, .12), rgba(33, 185, 150, .08));
    border: 1px solid rgba(29, 111, 232, .14);
    border-radius: 8px;
    font-weight: 800;
}

.short-link-copy {
    color: var(--accent-strong);
    font-weight: 760;
}

.short-link-edit {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
    gap: 12px;
}

.admin-table-wrap {
    overflow-x: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(24, 37, 56, .06);
}

.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.admin-table th {
    color: var(--muted);
    background: #f7f9fc;
    font-weight: 800;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table a {
    color: var(--accent-strong);
    font-weight: 760;
}

.admin-details {
    margin-bottom: 14px;
}

.admin-details summary {
    cursor: pointer;
    font-weight: 850;
}

.admin-details summary span {
    color: var(--accent-strong);
    float: right;
}

.admin-details .admin-form {
    margin-top: 16px;
    box-shadow: none;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-line input {
    width: 18px;
    min-height: 18px;
}

.seo-form fieldset {
    display: grid;
    gap: 12px;
    margin: 0 0 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.seo-form legend {
    padding: 0 8px;
    font-weight: 850;
}

.admin-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-thumbs img {
    width: 120px;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

@media (max-width: 980px) {
    :root {
        --content: min(100vw - 28px, 760px);
    }

    .site-header {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .about-first {
        padding: 38px 28px 42px;
    }

    .about-first .about-copy h1 {
        font-size: clamp(32px, 9vw, 48px);
    }

    .menu-toggle {
        display: block;
    }

    .main-nav,
    .header-contact {
        display: none;
    }

    .main-nav.is-open {
        grid-column: 1 / -1;
        display: grid;
        justify-content: stretch;
    }

    .about-grid,
    .section-heading,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .callback-section {
        grid-template-columns: 1fr;
        padding-right: 28px;
        padding-left: 28px;
    }

    .service-grid,
    .portfolio-grid,
    .gallery {
        grid-template-columns: 1fr;
    }

    .about-facts {
        grid-template-columns: 1fr;
    }

    .portfolio-card {
        flex-basis: min(420px, 82vw);
    }

    .section-heading {
        gap: 18px;
    }

    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-main {
        width: min(100vw - 28px, 980px);
    }

    .admin-row {
        grid-template-columns: 1fr;
    }

    .short-link-form,
    .short-link-edit {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .detail-hero h1 {
        font-size: 42px;
    }

    .detail-hero p {
        font-size: 17px;
    }

    .portfolio-card {
        flex-basis: 100%;
    }

    .slider-controls {
        width: 100%;
        justify-content: space-between;
    }

    .about,
    .services,
    .portfolio,
    .gallery {
        padding: 58px 0;
    }

    .about-first {
        padding: 42px 26px 46px;
    }

    .callback-section {
        padding: 48px 24px;
    }

    .form-submit-row,
    .cookie-notice {
        grid-template-columns: 1fr;
    }

    .form-submit-row .btn,
    .cookie-actions,
    .cookie-actions .btn {
        width: 100%;
    }

    .portrait-wrap {
        width: min(320px, 100%);
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .site-footer {
        padding: 22px;
    }
}

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

    [data-reveal],
    [data-block-reveal] {
        opacity: 1;
        transform: none;
    }
}
