/* ─── FONTS ────────────────────────────────────────────── */

/* Montserrat — основной шрифт с поддержкой кириллицы */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat-latin-ext1.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat-cyrillic.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat-vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Sora — шрифт логотипа, только латиница */
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 100 600;
    font-display: swap;
    src: url('../fonts/sora-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 100 600;
    font-display: swap;
    src: url('../fonts/sora-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary:       #3b82f6;
    --primary-dark:  #2563eb;
    --primary-light: #eff6ff;
    --bg:            #ffffff;
    --bg-alt:        #f8fafc;
    --text:          #131623;
    --text-muted:    #64748b;
    --border:        #e2e8f0;
    --shadow-m:      0 4px 16px rgba(0,0,0,.07);
    --shadow-l:      0 12px 40px rgba(0,0,0,.10);
    --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
    --transition:    0.25s var(--ease-out);
    --gutter:        60px;
    --content-w:     1100px;
}

/* ─── SCROLL PROGRESS ──────────────────────────────────── */

#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    z-index: 200;
    transition: width 0.1s linear;
    pointer-events: none;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ─── NAV ──────────────────────────────────────────────── */

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--gutter);
    height: 68px;
    margin-bottom: 56px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.container {
    max-width: var(--content-w);
    margin: 0 auto;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

nav.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
}

.logo {
    font-family: 'Sora', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: .3px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 24px;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width 0.25s var(--ease-out);
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-icons {
    display: flex;
    gap: 8px;
    margin-left: 32px;
    flex-shrink: 0;
}

.nav-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
}

.nav-icon-link:hover { background: var(--primary-dark); }

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.nav-burger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}

/* Три полоски → крестик при открытом меню */
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── BUTTONS ──────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 56px;
    padding: 12px 26px;
    border: 2px solid transparent;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 0.2s var(--ease-out),
                background 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease,
                opacity 0.15s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.btn:active { opacity: 0.85; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(59,130,246,.30);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover { background: var(--primary-light); }

.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-sm { width: 176px; }

/* ─── HERO ─────────────────────────────────────────────── */

.hero-text {
    max-width: 800px;
    margin-bottom: 40px;
    animation: heroFadeUp 0.7s var(--ease-out) both;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -.5px;
}

.hero-text > p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 24px;
}

.hero-image {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    background: #f7f7f7;
    display: flex;
    justify-content: center;
    animation: heroFadeUp 0.8s var(--ease-out) 0.12s both;
}

.hero-image img {
    max-width: 1300px;
    width: 100%;
    height: auto;
    display: block;
}

/* ─── SECTION SHARED ───────────────────────────────────── */

section:not(:last-of-type) {
    margin-bottom: 56px;
    padding: 0 var(--gutter);
    overflow: hidden;
}

.section-title {
    font-size: 40px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: -.3px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .section-title { margin-bottom: 0; }

/* ─── SCROLL REVEAL ────────────────────────────────────── */

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

[data-reveal].revealed { opacity: 1; transform: none; }

[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="right"].revealed { transform: none; }

[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="left"].revealed { transform: none; }

/* ─── SERVICES ─────────────────────────────────────────── */

.services-header {
    max-width: var(--content-w);
    margin: 0 auto 32px;
}

.services-header .section-title { margin-bottom: 6px; }

.services-header .section-subtitle {
    font-size: 16px;
    color: var(--text);
    line-height: 1.65;
}

.service-list {
    max-width: var(--content-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 320px;
    background: #F7F7F7;
    border-radius: 16px;
    padding: 24px 32px;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.service-item:hover { box-shadow: var(--shadow-m); }

.js-ready .service-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease-out),
                transform 0.5s var(--ease-out),
                box-shadow var(--transition);
    transition-delay: var(--delay, 0s);
}

.service-item.revealed { opacity: 1; transform: none; }

.service-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.service-item-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-right: 20px;
}

.service-tag-label {
    font-size: 16px;
    margin-right: 24px;
    color: var(--text);
    font-weight: 500;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #1e293b;
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 500;
}

.service-item-body h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.service-item-body > p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
    flex: 1;
}

.service-item-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}

.service-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

.service-item-img {
    overflow: hidden;
    border-radius: 16px;
    height: 222px;
}

.service-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ─── SKILLS ───────────────────────────────────────────── */

.skills-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    max-width: var(--content-w);
    margin: 0 auto;
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skills-content .section-title { margin-bottom: 0; }

.skills-content > p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.75;
}

.skills-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1.5px solid var(--text);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    font-weight: 400;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.chip:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.skills-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-l);
    min-width: 480px;
    align-self: center;
}

.skills-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.skills-image:hover img { transform: scale(1.03); }

/* ─── PROCESS ──────────────────────────────────────────── */

.process { text-align: center; }

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: var(--content-w);
    margin: 0 auto;
}

.process-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: left;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.process-card:hover {
    box-shadow: var(--shadow-m);
    border-color: #cbd5e1;
}

.process-card--featured {
    background: var(--primary);
    border-color: var(--primary);
}

.process-card--featured:hover {
    box-shadow: 0 8px 28px rgba(59,130,246,.4);
    border-color: var(--primary-dark);
}

.process-num {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1;
    letter-spacing: -.3px;
}

.process-card--featured .process-num { color: #fff; }

.process-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.process-card--featured h3 { color: #fff; }

.process-card p {
    font-size: 13px;
    color: var(--text);
    line-height: 1.65;
}

.process-card--featured p { color: #fff; }

.process-cta { margin-top: 40px; }

/* ─── FEATURED CASE (CTA) ──────────────────────────────── */

.featured-case {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
}

.featured-case-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.featured-case-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 30, 0.68);
    z-index: 1;
}

.featured-case-card {
    position: relative;
    bottom: 40px;
    left: 76px;
    z-index: 2;
    background: var(--bg);
    border-radius: 16px;
    padding: 36px 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.featured-case-card.revealed { opacity: 1; transform: none; }

.featured-case-card h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -.2px;
}

.featured-case-card > p {
    font-size: 13px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 6px;
}

.featured-case-card > p:last-of-type { margin-bottom: 20px; }

.featured-case-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.featured-case-links { display: flex; gap: 8px; }

.featured-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
}

.featured-link:hover { background: var(--primary-dark); }

/* ─── FOOTER ───────────────────────────────────────────── */

footer {
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p {
    font-size: 13px;
    color: var(--text);
}

.footer-privacy {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-privacy:hover { color: var(--primary); }

/* ─── MODAL ────────────────────────────────────────────── */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 24px 64px rgba(0,0,0,.16);
    animation: slideDown 0.25s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 16px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0 4px;
    transition: color var(--transition);
    flex-shrink: 0;
}

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

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-actions { display: flex; gap: 12px; margin-top: 20px; }
.form-actions .btn { flex: 1; }

.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 13px;
}

.message.show { display: block; }
.message.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.message.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ─── ANIMATIONS ───────────────────────────────────────── */

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── LOGIN (admin) ────────────────────────────────────── */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    padding: 20px;
}

.login-box {
    background: var(--bg);
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-l);
    border: 1px solid var(--border);
}

.login-box h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 28px;
    text-align: center;
}

.error-message {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

/* ─── RESPONSIVE ───────────────────────────────────────── */

@media (max-width: 1100px) {
    :root { --gutter: 40px; }

    .hero-text h1 { font-size: 38px; }

    .service-item { grid-template-columns: 1fr 280px; }
    .service-item-img { margin-top: 35px; }

    .nav-links li a { font-size: 16px; }
    .logo { font-size: 24px; }

    .skills-inner { gap: 48px; }
    .process-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --gutter: 20px; }

    nav {
        height: 60px;
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        background: var(--bg);
        border-top: 1px solid var(--border);
        position: fixed;
        top: 60px; left: 0; right: 0;
        padding: 12px 0;
        box-shadow: var(--shadow-m);
        z-index: 99;
        margin-left: 0;
    }

    .nav-links.open { display: flex; }
    .nav-links li a { display: block; padding: 12px 24px; }

    .nav-icons { display: none; }
    .nav-burger { display: flex; }

    .hero { padding: 48px 20px 0; }
    .hero-text { margin-bottom: 36px; }
    .hero-text h1 { font-size: 28px; }
    .hero-text > p { font-size: 14px; }
    .hero-image {
        margin-left: -20px;
        margin-right: -20px;
    }

    .services, .skills, .process { padding: 56px 20px; }

    .service-item { grid-template-columns: 1fr; gap: 8px; }
    .service-item-body { display: contents; }
    .service-item-footer { order: 4; flex-wrap: wrap; }
    .service-item-img { height: 200px; min-height: 0; margin-top: 0; }

    .skills-inner { grid-template-columns: 1fr; gap: 32px; }
    .skills-image { order: -1; min-width: auto; }

    .process-grid { grid-template-columns: 1fr; }

    .featured-case {
        padding: 0 20px 44px;
        min-height: 480px;
    }

    .featured-case-card { padding: 28px 24px; position: unset; }
    .featured-case-card h2 { font-size: 20px; }

    .section-title { font-size: 32px; }
    .skills-chips { justify-content: center; }
    .footer-inner {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .modal-content { padding: 28px 20px; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 32px; }
    .service-item { padding: 24px 16px; }
    .process-grid { grid-template-columns: 1fr; }
    .footer-inner { align-items: start; }
    .btn-sm { width: 100%; }
}
