* {
    box-sizing: border-box;
}

:root {
    --page-pad: clamp(12px, 1.6vw, 24px);
    --bg: #05070d;
    --surface: rgba(10, 14, 24, 0.68);
    --card: rgba(18, 24, 38, 0.62);
    --card-strong: rgba(255, 255, 255, 0.12);
    --line: rgba(255, 255, 255, 0.15);
    --text: #f4f7fb;
    --muted: #aeb8c7;
    --accent: #7dd3fc;
    --accent-soft: rgba(125, 211, 252, 0.18);
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(32, 129, 163, 0.23), transparent 34%),
        radial-gradient(circle at 84% 86%, rgba(101, 76, 190, 0.2), transparent 34%),
        linear-gradient(135deg, #07111a 0%, #070914 48%, #090711 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    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: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), transparent 86%);
}

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

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

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

button {
    border: 0;
}

.site-shell {
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: clamp(12px, 1.8vh, 22px);
    padding: var(--page-pad);
}

.site-header,
.site-footer,
.site-main {
    width: 100%;
    margin: 0 auto;
}

.site-header,
.site-footer {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(22px);
}

.site-header {
    position: relative;
    display: flex;
    min-height: clamp(88px, 10vh, 118px);
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 8px clamp(18px, 2vw, 34px);
    border-radius: 24px;
}

.site-header::after {
    position: absolute;
    right: 8%;
    bottom: -1px;
    left: 8%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.42), transparent);
}

.brand {
    display: inline-flex;
    width: clamp(188px, 14vw, 236px);
    aspect-ratio: 347 / 127;
    height: auto;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 14px 28px rgba(37, 180, 255, 0.18));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: clamp(26px, 3vw, 44px);
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-socials a {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: #d9f7ff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.header-socials a:hover {
    transform: translateY(-3px) scale(1.04);
    border-color: rgba(125, 211, 252, 0.45);
    background: rgba(125, 211, 252, 0.13);
    box-shadow: 0 16px 34px rgba(67, 181, 224, 0.17);
}

.social-icon {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
    pointer-events: none;
}

.social-icon--tg {
    width: 34px;
    height: 34px;
}

.social-icon--gh {
    width: 30px;
    height: 30px;
    filter: invert(1) brightness(1.06);
}

.login-button,
.auth-submit,
.order-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 24px;
    border: 1px solid rgba(125, 211, 252, 0.32);
    border-radius: 999px;
    color: #ecfbff;
    font-size: 14px;
    font-weight: 750;
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.16), rgba(255, 255, 255, 0.06));
    box-shadow: 0 14px 36px rgba(3, 10, 24, 0.34);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.logout-form {
    margin: 0;
}

.login-button:hover,
.auth-submit:hover,
.order-button:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 211, 252, 0.58);
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.24), rgba(255, 255, 255, 0.09));
    box-shadow: 0 18px 44px rgba(43, 171, 219, 0.18);
}

.site-main {
    display: flex;
    min-height: 0;
}

.home-showcase,
.service-detail,
.auth-section,
.profile-section,
.order-section {
    display: flex;
    width: 100%;
    min-height: 100%;
}

.service-cards {
    display: grid;
    width: 100%;
    min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 32px);
    align-items: stretch;
}

.service-card,
.option-card,
.auth-card,
.profile-card,
.order-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
        var(--card);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 28px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(20px);
}

.service-card,
.option-card {
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.service-card::before,
.option-card::before,
.auth-card::before,
.profile-card::before,
.order-card::before {
    position: absolute;
    inset: -1px;
    content: "";
    opacity: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(125, 211, 252, 0.28), transparent 42%),
        linear-gradient(150deg, rgba(125, 211, 252, 0.12), rgba(139, 92, 246, 0.08));
    transition: opacity 220ms ease;
}

.service-card:hover,
.option-card:hover {
    transform: translateY(-10px) scale(1.014);
    border-color: rgba(125, 211, 252, 0.44);
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
        rgba(12, 17, 30, 0.66);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 34px 90px rgba(0, 0, 0, 0.44),
        0 0 34px rgba(83, 188, 229, 0.2);
}

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

.service-card > *,
.option-card > *,
.auth-card > *,
.profile-card > *,
.order-card > * {
    position: relative;
    z-index: 1;
}

.service-card {
    display: flex;
    height: 100%;
    min-height: clamp(420px, calc(100svh - 240px), 680px);
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(24px, 3vw, 42px);
    border-radius: clamp(24px, 2.4vw, 34px);
}

.service-card--featured {
    display: block;
    height: 100%;
    min-height: 0;
    padding: 0;
}

.service-card--featured:hover {
    transform: none;
}

.service-media {
    position: relative;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    border-radius: inherit;
    background: rgba(8, 12, 20, 0.72);
}

.service-media::before {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    width: 84px;
    height: 118px;
    border-radius: 24px;
    content: "";
    background: linear-gradient(180deg, rgba(10, 16, 28, 0.96), rgba(10, 16, 28, 0.76));
    box-shadow: 0 12px 30px rgba(5, 8, 18, 0.36);
}

.service-media::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: 42%;
    content: "";
    background: linear-gradient(180deg, rgba(10, 14, 24, 0), rgba(10, 14, 24, 0.94) 74%, rgba(10, 14, 24, 1));
}

.service-media-art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease, filter 220ms ease;
    filter: saturate(0.98) brightness(0.96);
}

.service-card--featured:hover .service-media-art {
    transform: scale(1.01);
    filter: saturate(1.02) brightness(1);
}

.service-card--pc .service-media-art {
    object-position: center 44%;
}

.service-card--dev .service-media-art {
    object-position: center 44%;
}

.service-card--it .service-media-art {
    object-position: center 44%;
}

.service-badge {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 2;
    display: grid;
    width: 68px;
    height: 104px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    color: #e9fbff;
    font-size: 14px;
    font-weight: 850;
    background:
        linear-gradient(145deg, rgba(125, 211, 252, 0.22), rgba(139, 92, 246, 0.16)),
        rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.service-body {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: grid;
    gap: 12px;
    padding: 72px 22px 24px;
}

.service-card--featured .service-title {
    padding-top: 0;
    margin-top: 0;
    font-size: clamp(22px, 1.9vw, 34px);
    line-height: 1.08;
}

.service-card--featured .service-text {
    margin-top: 0;
    max-width: none;
    font-size: clamp(14px, 0.98vw, 16px);
    line-height: 1.5;
}

.service-icon,
.option-icon,
.auth-mark {
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e9fbff;
    font-weight: 850;
    letter-spacing: 0;
    background:
        linear-gradient(145deg, rgba(125, 211, 252, 0.2), rgba(139, 92, 246, 0.13)),
        rgba(255, 255, 255, 0.07);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.service-icon {
    width: clamp(58px, 5.2vw, 76px);
    height: clamp(84px, 9vw, 128px);
    border-radius: 24px;
    font-size: 14px;
}

.service-title {
    margin-top: auto;
    padding-top: clamp(70px, 13vh, 150px);
    color: #ffffff;
    font-size: clamp(25px, 2.2vw, 38px);
    font-weight: 780;
    line-height: 1.08;
}

.service-text {
    max-width: 760px;
    margin-top: clamp(22px, 3vh, 38px);
    color: var(--muted);
    font-size: clamp(15px, 1.08vw, 18px);
    line-height: 1.55;
}

.service-detail {
    flex-direction: column;
    gap: clamp(16px, 2vw, 28px);
}

.section-heading {
    position: relative;
    display: grid;
    min-height: clamp(58px, 8vh, 96px);
    align-items: center;
    justify-items: center;
}

.section-heading h1 {
    width: min(980px, 100%);
    margin: 0 auto;
    color: rgba(244, 247, 251, 0.96);
    font-size: clamp(34px, 4vw, 72px);
    font-weight: 850;
    line-height: 1.02;
    text-align: center;
}

.back-link {
    position: absolute;
    top: 50%;
    left: 0;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.055);
    transform: translateY(-50%);
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.back-link:hover {
    transform: translateY(calc(-50% - 2px));
    border-color: rgba(125, 211, 252, 0.34);
    color: var(--text);
}

.service-options {
    display: grid;
    flex: 1;
    min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.7vw, 26px);
}

.service-detail-web .service-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-service-web .option-card--web {
    aspect-ratio: 2033 / 773;
    grid-template-rows: minmax(0, 56%) minmax(0, 44%);
}

body.page-service-web .option-card-art {
    object-position: 50% 0%;
}

body.page-service-web .option-card--web .option-title {
    max-width: 92%;
    display: block;
    overflow: visible;
    font-size: clamp(17px, 1.02vw, 22px);
    line-height: 1.16;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

body.page-service-web .option-card--web .option-text {
    max-width: 94%;
    font-size: clamp(12px, 0.76vw, 14px);
    line-height: 1.44;
    -webkit-line-clamp: 2;
}

body.page-service-other .option-card--other {
    aspect-ratio: 1775 / 886;
    grid-template-rows: minmax(0, 55%) minmax(0, 45%);
}

body.page-service-other .option-card--other .option-title {
    max-width: 92%;
    display: block;
    overflow: visible;
    font-size: clamp(17px, 1.02vw, 22px);
    line-height: 1.14;
}

body.page-service-other .option-card--other .option-text {
    max-width: 94%;
    font-size: clamp(12px, 0.76vw, 14px);
    line-height: 1.44;
    -webkit-line-clamp: 2;
}

.option-card {
    display: flex;
    min-height: clamp(280px, 31vh, 390px);
    flex-direction: column;
    padding: clamp(22px, 2.2vw, 34px);
    border-radius: clamp(22px, 2vw, 30px);
}

.option-card--visual {
    display: block;
    min-height: 0;
    aspect-ratio: 1656 / 950;
    padding: 0;
}

.option-card--visual:hover {
    transform: translateY(-6px);
}

.option-stage {
    position: relative;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    background: rgba(8, 12, 20, 0.82);
}

.option-stage::before {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    width: 84px;
    height: 118px;
    content: "";
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(10, 16, 28, 0.97), rgba(10, 16, 28, 0.8));
    box-shadow: 0 12px 30px rgba(5, 8, 18, 0.36);
}

.option-card-art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 220ms ease, filter 220ms ease;
    filter: saturate(0.98) brightness(0.96);
}

.option-card--visual:hover .option-card-art {
    transform: scale(1.018);
    filter: saturate(1.02) brightness(1);
}

.option-badge {
    top: 22px;
    left: 22px;
}

.option-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: grid;
    min-height: 36%;
    align-content: end;
    gap: 12px;
    padding: 18px 22px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    background:
        linear-gradient(180deg, rgba(18, 24, 36, 0.14), rgba(30, 36, 50, 0.88) 26%, rgba(38, 44, 60, 0.97));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.option-card--visual .option-title {
    max-width: 88%;
    margin: 0;
    font-size: clamp(18px, 1.3vw, 24px);
    line-height: 1.08;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.option-card--visual .option-text {
    max-width: 92%;
    margin: 0;
    font-size: clamp(13px, 0.88vw, 15px);
    line-height: 1.45;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.option-card--visual .option-footer {
    display: grid;
    width: 100%;
    margin-top: 4px;
    padding-top: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.option-card--split {
    display: grid;
    padding: 0;
    min-height: 0;
    overflow: hidden;
}

.option-media {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.option-panel {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    align-content: start;
    min-height: 0;
    gap: 10px;
    padding: 16px 18px 16px;
    background:
        linear-gradient(180deg, rgba(37, 45, 66, 0.98), rgba(43, 51, 72, 0.96)),
        rgba(19, 23, 38, 0.84);
    border-top: 1px solid rgba(164, 186, 255, 0.16);
    backdrop-filter: blur(14px);
}

.option-card--split .option-title {
    max-width: 90%;
    margin: 0;
    font-size: clamp(18px, 1.22vw, 24px);
    line-height: 1.08;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.option-card--split .option-text {
    max-width: 94%;
    margin: 0;
    font-size: clamp(13px, 0.86vw, 15px);
    line-height: 1.42;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.option-card--split .option-footer {
    display: grid;
    width: 100%;
    margin-top: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.option-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.option-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    border-radius: 18px;
    font-size: 13px;
}

.option-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(21px, 1.55vw, 30px);
    font-weight: 800;
    line-height: 1.12;
}

.option-text {
    max-width: 760px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: clamp(14px, 1vw, 17px);
    font-weight: 500;
    line-height: 1.52;
}

.option-footer {
    display: flex;
    margin-top: auto;
    padding-top: 24px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.option-price {
    color: rgba(244, 247, 251, 0.9);
    font-size: 14px;
    font-weight: 750;
}

.order-button {
    min-height: 40px;
    padding: 0 18px;
    white-space: nowrap;
}

.order-button--blocked {
    border-color: rgba(251, 191, 36, 0.28);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.13), rgba(255, 255, 255, 0.055));
}

.lock-icon {
    font-size: 13px;
}

.auth-section {
    align-items: center;
    justify-content: center;
}

.profile-section {
    align-items: center;
    justify-content: center;
}

.order-section {
    align-items: center;
    justify-content: center;
}

.auth-card {
    display: flex;
    width: min(460px, 100%);
    flex-direction: column;
    gap: 18px;
    padding: clamp(26px, 3vw, 42px);
    border-radius: 30px;
}

.profile-card {
    display: grid;
    width: min(920px, 100%);
    gap: clamp(18px, 2vw, 26px);
    padding: clamp(26px, 3vw, 42px);
    border-radius: 30px;
}

.order-card {
    display: grid;
    width: min(760px, 100%);
    gap: clamp(18px, 2vw, 26px);
    padding: clamp(26px, 3vw, 42px);
    border-radius: 30px;
}

.order-card--wide {
    width: min(1120px, 100%);
}

.auth-card--wide {
    width: min(540px, 100%);
}

.auth-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.auth-heading h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
}

.auth-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.auth-field input,
.auth-field select,
.auth-field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    outline: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.auth-field input,
.auth-field select {
    min-height: 50px;
    padding: 0 16px;
}

.auth-field textarea {
    min-height: 120px;
    resize: vertical;
    padding: 14px 16px;
}

.auth-field select {
    appearance: none;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
    border-color: rgba(125, 211, 252, 0.48);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.08);
}

.auth-row {
    display: flex;
    justify-content: flex-end;
}

.forgot-link,
.auth-links a {
    color: var(--muted);
    font-size: 14px;
    transition: color 180ms ease;
}

.forgot-link:hover,
.auth-links a:hover {
    color: var(--text);
}

.auth-submit {
    width: 100%;
    margin-top: 8px;
    border: 0;
    cursor: pointer;
}

.auth-submit--muted {
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.055);
}

.social-auth {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.social-auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.social-auth-divider::before,
.social-auth-divider::after {
    height: 1px;
    content: "";
    background: rgba(255, 255, 255, 0.12);
}

.social-auth-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    color: #f4f7fb;
    font-size: 14px;
    font-weight: 780;
    background: rgba(255, 255, 255, 0.065);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.social-auth-button:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 211, 252, 0.44);
    background: rgba(125, 211, 252, 0.1);
    box-shadow: 0 14px 34px rgba(43, 171, 219, 0.12);
}

.social-auth-button--telegram {
    border-color: rgba(68, 168, 232, 0.3);
}

.social-auth-button--yandex {
    border-color: rgba(255, 214, 92, 0.3);
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.auth-links a {
    color: #dff8ff;
    font-weight: 750;
}

.auth-copy {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.auth-messages {
    display: grid;
    gap: 8px;
}

.service-messages {
    width: min(760px, 100%);
    margin: 0 auto;
}

.auth-message {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 16px;
    color: #eafaff;
    font-size: 14px;
    line-height: 1.45;
    background: rgba(125, 211, 252, 0.09);
}

.auth-message--error,
.auth-message--warning {
    border-color: rgba(251, 113, 133, 0.28);
    color: #ffe8ed;
    background: rgba(251, 113, 133, 0.1);
}

.auth-message--success {
    border-color: rgba(74, 222, 128, 0.26);
    color: #eafff1;
    background: rgba(74, 222, 128, 0.09);
}

.field-error,
.field-help {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.field-error {
    color: #ffb4c2;
}

.field-help ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.telegram-widget-shell {
    display: grid;
    min-height: 52px;
    place-items: center;
    padding: 16px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
}

.profile-alert {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(251, 191, 36, 0.32);
    border-radius: 18px;
    color: #fff4c7;
    font-size: 15px;
    font-weight: 750;
    background: rgba(251, 191, 36, 0.1);
}

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

.profile-item {
    display: grid;
    gap: 8px;
    min-height: 92px;
    align-content: center;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
}

.profile-item span,
.profile-orders p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.profile-item strong {
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 16px;
}

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

.profile-actions .auth-submit {
    margin-top: 0;
}

.profile-orders {
    display: grid;
    gap: 8px;
    padding-top: 6px;
}

.profile-orders h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.15;
}

.profile-orders p {
    margin: 0;
}

.profile-orders-link {
    display: inline-flex;
    width: fit-content;
    min-height: 38px;
    align-items: center;
    padding: 0 16px;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 999px;
    color: #dff8ff;
    font-size: 14px;
    font-weight: 750;
    background: rgba(125, 211, 252, 0.08);
}

.section-heading--compact {
    min-height: 54px;
}

.section-heading--compact h1 {
    font-size: clamp(30px, 3vw, 48px);
}

.order-summary {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: 20px;
    background: rgba(125, 211, 252, 0.07);
}

.order-summary span,
.order-variant span,
.order-variant small,
.order-row small,
.thread-item time,
.thread-item small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.order-summary strong {
    color: #ffffff;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.15;
}

.order-summary p,
.order-variant p,
.order-note p,
.thread-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

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

.order-variant {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.052);
}

.order-variant strong,
.order-row strong,
.thread-item strong {
    color: var(--text);
    line-height: 1.25;
}

.order-list {
    display: grid;
    gap: 10px;
}

.order-list--compact {
    gap: 8px;
}

.order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.052);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.order-row:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 211, 252, 0.35);
    background: rgba(125, 211, 252, 0.075);
}

.order-row span:first-child {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.order-status {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(74, 222, 128, 0.22);
    border-radius: 999px;
    color: #eafff1;
    font-size: 13px;
    font-weight: 750;
    background: rgba(74, 222, 128, 0.08);
    white-space: nowrap;
}

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

.order-note {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.052);
}

.order-note h2,
.order-thread h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(20px, 1.6vw, 26px);
    line-height: 1.16;
}

.order-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 16px;
}

.order-thread {
    display: grid;
    gap: 12px;
    align-content: start;
}

.thread-item {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.052);
}

.thread-form {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.site-footer {
    display: flex;
    min-height: clamp(54px, 6vh, 66px);
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 20px;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 14px;
}

.footer-meta span:first-child,
.footer-meta span:last-child {
    color: var(--text);
    font-weight: 750;
}

@media (max-width: 1180px) {
    .service-options,
    .service-detail-web .service-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .site-shell {
        grid-template-rows: auto auto auto;
    }

    .site-main {
        min-height: auto;
    }

    .service-cards,
    .service-options,
    .service-detail-web .service-options {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: clamp(300px, 42vh, 440px);
    }

    .service-card--featured {
        width: min(100%, 620px);
        margin: 0 auto;
        min-height: 560px;
    }

    .service-title {
        padding-top: 54px;
    }
}

@media (max-width: 680px) {
    .site-header {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
    }

    .brand {
        width: min(194px, 62vw);
        aspect-ratio: 347 / 127;
        height: auto;
        justify-content: center;
        margin: 0 auto;
    }

    .brand-logo {
        object-position: center;
    }

    .header-actions {
        justify-content: center;
        gap: 22px;
    }

    .login-button {
        min-height: 42px;
        padding: 0 18px;
        font-size: 13px;
    }

    .header-socials a {
        width: 42px;
        height: 42px;
    }

    .section-heading {
        min-height: auto;
        padding-top: 52px;
    }

    .section-heading h1 {
        font-size: clamp(30px, 10vw, 48px);
    }

    .back-link {
        top: 0;
        transform: none;
    }

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

    .service-card,
    .option-card {
        padding: 24px;
    }

    .service-card--featured {
        padding: 0;
    }

    .option-card--visual {
        padding: 0;
        min-height: 380px;
        aspect-ratio: auto;
    }

    body.page-service-web .option-card--web {
        min-height: 380px;
        aspect-ratio: auto;
        grid-template-rows: minmax(0, 56%) minmax(0, 44%);
    }

    body.page-service-other .option-card--other {
        min-height: 380px;
        aspect-ratio: auto;
        grid-template-rows: minmax(0, 56%) minmax(0, 44%);
    }

    .service-badge {
        top: 18px;
        left: 18px;
        width: 60px;
        height: 92px;
        border-radius: 20px;
        font-size: 13px;
    }

    .service-body {
        padding: 64px 18px 20px;
    }

    .option-badge {
        top: 18px;
        left: 18px;
    }

    .option-stage {
        min-height: 380px;
    }

    .option-overlay {
        min-height: 40%;
        padding: 20px 18px 20px;
    }

    .option-panel {
        padding: 18px;
        gap: 10px;
    }

    .option-card--visual .option-title,
    .option-card--visual .option-text {
        max-width: none;
    }

    .option-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .order-button {
        width: 100%;
    }

    .profile-grid,
    .profile-actions,
    .order-variants,
    .order-detail-grid,
    .order-columns {
        grid-template-columns: 1fr;
    }

    .order-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

@media (max-width: 420px) {
    :root {
        --page-pad: 10px;
    }

    .site-header,
    .site-footer,
    .service-card,
    .option-card,
    .auth-card,
    .profile-card,
    .order-card {
        border-radius: 20px;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .service-card {
        min-height: 330px;
    }

    .service-card--featured {
        width: 100%;
        min-height: 500px;
    }

    .option-card {
        min-height: 280px;
    }

    .option-card--visual {
        min-height: 340px;
        padding: 0;
        aspect-ratio: auto;
    }

    body.page-service-web .option-card--web {
        min-height: 340px;
        aspect-ratio: auto;
        grid-template-rows: minmax(0, 54%) minmax(0, 46%);
    }

    body.page-service-other .option-card--other {
        min-height: 340px;
        aspect-ratio: auto;
        grid-template-rows: minmax(0, 54%) minmax(0, 46%);
    }

    .option-stage {
        min-height: 340px;
    }

    .option-panel {
        padding: 16px;
        gap: 8px;
    }

    .option-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (min-width: 981px) {
    body.page-home {
        overflow-y: hidden;
    }

    body.page-home .site-shell {
        height: 100svh;
        overflow: hidden;
    }

    body.page-home .site-main {
        overflow: hidden;
    }

    .home-showcase {
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .service-cards {
        height: 100%;
        align-content: center;
        grid-auto-rows: 1fr;
    }

    body.page-service-computer-help .service-detail {
        min-height: 0;
        gap: clamp(10px, 1vh, 16px);
    }

    body.page-service-web .service-detail {
        min-height: 0;
        gap: clamp(10px, 1vh, 16px);
    }

    body.page-service-other .service-detail {
        min-height: 0;
        gap: clamp(10px, 1vh, 16px);
    }
}

@media (min-width: 1181px) {
    body.page-service-computer-help {
        overflow-y: hidden;
    }

    body.page-service-computer-help .site-shell {
        height: 100svh;
        gap: 10px;
        overflow: hidden;
    }

    body.page-service-computer-help .site-main {
        min-height: 0;
        overflow: hidden;
    }

    body.page-service-computer-help .section-heading {
        min-height: clamp(44px, 5vh, 60px);
    }

    body.page-service-computer-help .section-heading h1 {
        font-size: clamp(30px, 3vw, 50px);
    }

    body.page-service-computer-help .service-options {
        height: 100%;
        min-height: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: clamp(10px, 1vw, 16px);
        align-content: stretch;
    }

    body.page-service-computer-help .option-card--visual {
        height: 100%;
        aspect-ratio: auto;
        min-height: 0;
    }

    body.page-service-computer-help .option-stage {
        height: 100%;
        min-height: 0;
    }

    body.page-service-computer-help .option-overlay {
        min-height: 40%;
        padding: 14px 16px 14px;
        gap: 10px;
    }

    body.page-service-computer-help .option-card--visual .option-title {
        max-width: 90%;
        font-size: clamp(15px, 0.98vw, 20px);
    }

    body.page-service-computer-help .option-card--visual .option-text {
        max-width: 92%;
        font-size: clamp(11px, 0.72vw, 13px);
        line-height: 1.4;
    }

    body.page-service-computer-help .option-card--visual .option-footer {
        margin-top: 0;
        gap: 10px;
    }

    body.page-service-computer-help .option-card--visual .option-price {
        font-size: 12px;
        line-height: 1.25;
    }

    body.page-service-computer-help .option-card--visual .order-button {
        min-height: 34px;
        padding: 0 14px;
        font-size: 12px;
    }

    body.page-service-web {
        overflow-y: hidden;
    }

    body.page-service-web .site-shell {
        height: 100svh;
        gap: 10px;
        overflow: hidden;
    }

    body.page-service-web .site-main {
        min-height: 0;
        overflow: hidden;
    }

    body.page-service-web .section-heading {
        min-height: clamp(44px, 5vh, 60px);
    }

    body.page-service-web .section-heading h1 {
        font-size: clamp(30px, 3vw, 50px);
    }

    body.page-service-web .service-options {
        height: 100%;
        min-height: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: clamp(12px, 1vw, 18px);
        align-content: stretch;
        align-items: stretch;
    }

    body.page-service-web .option-card--web {
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
        grid-template-rows: minmax(0, 57%) minmax(0, 43%);
    }

    body.page-service-web .option-media {
        height: 100%;
        min-height: 0;
    }

    body.page-service-web .option-panel {
        min-height: 0;
        padding: 14px 18px 14px;
        gap: 8px;
    }

    body.page-service-web .option-card--web .option-title {
        max-width: 92%;
        font-size: clamp(16px, 0.96vw, 20px);
        line-height: 1.16;
    }

    body.page-service-web .option-card--web .option-text {
        max-width: 94%;
        font-size: clamp(12px, 0.72vw, 13px);
        line-height: 1.42;
    }

    body.page-service-web .option-card--web .option-price {
        font-size: 12px;
        line-height: 1.25;
    }

    body.page-service-web .option-card--web .order-button {
        min-height: 34px;
        padding: 0 14px;
        font-size: 12px;
    }

    body.page-service-other {
        overflow-y: hidden;
    }

    body.page-service-other .site-shell {
        height: 100svh;
        gap: 10px;
        overflow: hidden;
    }

    body.page-service-other .site-main {
        min-height: 0;
        overflow: hidden;
    }

    body.page-service-other .section-heading {
        min-height: clamp(44px, 5vh, 60px);
    }

    body.page-service-other .section-heading h1 {
        font-size: clamp(30px, 3vw, 50px);
    }

    body.page-service-other .service-options {
        height: 100%;
        min-height: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: clamp(10px, 1vw, 16px);
        align-content: stretch;
        align-items: stretch;
    }

    body.page-service-other .option-card--other {
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
        grid-template-rows: minmax(0, 56%) minmax(0, 44%);
    }

    body.page-service-other .option-media {
        height: 100%;
        min-height: 0;
    }

    body.page-service-other .option-panel {
        min-height: 0;
        padding: 14px 16px 14px;
        gap: 8px;
    }

    body.page-service-other .option-card--other .option-title {
        max-width: 92%;
        font-size: clamp(15px, 0.94vw, 19px);
        line-height: 1.14;
    }

    body.page-service-other .option-card--other .option-text {
        max-width: 94%;
        font-size: clamp(11px, 0.72vw, 13px);
        line-height: 1.4;
    }

    body.page-service-other .option-card--other .option-price {
        font-size: 12px;
        line-height: 1.25;
    }

    body.page-service-other .option-card--other .order-button {
        min-height: 34px;
        padding: 0 14px;
        font-size: 12px;
    }
}
