/* Web Studio — original blue/white layout, accessible responsive refinement. */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #0071e3;
    --primary-dark: #0056b3;
    --primary-light: #e3f2fd;
    --bg: #fff;
    --text: #1d1d1f;
    --text-light: #606065;
    --border: #e5e5e7;
    --light-bg: #f5f5f7;
}
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-wrap: break-word;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--primary-dark); }
button { cursor: pointer; }
svg { flex-shrink: 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.sr-only, .honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 2000;
    background: #fff;
    padding: 12px 18px;
    border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Frosted, sticky navigation retained from the original. */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .06);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
    gap: 24px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}
.logo span { overflow-wrap: anywhere; }
.logo svg { width: 32px; height: 32px; filter: drop-shadow(0 2px 4px rgba(0, 113, 227, .2)); }
.nav { display: flex; gap: 38px; align-items: center; flex-shrink: 0; }
.nav > a, .dropbtn {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    transition: color .2s ease;
}
.nav > a:not(.lang-toggle) { position: relative; padding: 12px 0; }
.nav > a:not(.lang-toggle)::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    transition: width .3s ease;
}
.nav > a:hover, .dropbtn:hover { color: var(--primary); }
.nav > a:hover::after { width: 100%; }
.nav .lang-toggle {
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(0, 113, 227, .1), rgba(0, 113, 227, .05));
    border: 1px solid rgba(0, 113, 227, .2);
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--primary-dark);
    transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.nav .lang-toggle:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 113, 227, .2);
}

/* Safe pointer bridge + JS-delayed closing, also functional without JS. */
.dropdown { position: relative; }
.dropbtn { display: flex; gap: 5px; align-items: center; padding: 12px 0; background: none; border: none; }
.dropbtn svg { width: 12px; height: 12px; transition: transform .2s ease; }
.dropdown.is-open .dropbtn svg { transform: rotate(180deg); }
.dropdown-content {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 216px;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
    z-index: 101;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease;
}
.dropdown-content::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: -1px;
    right: -1px;
    height: 12px;
    background: transparent;
}
.dropdown.is-open .dropdown-content,
html:not(.js) .dropdown:hover .dropdown-content,
html:not(.js) .dropdown:focus-within .dropdown-content {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
}
.dropdown-content a {
    display: block;
    padding: 14px 18px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: color .2s ease, background .2s ease;
}
.dropdown-content a:first-child { border-radius: 12px 12px 0 0; }
.dropdown-content a:last-child { border-radius: 0 0 12px 12px; }
.dropdown-content a:hover, .dropdown-content a:focus-visible {
    background: linear-gradient(90deg, rgba(0, 113, 227, .1), transparent);
    color: var(--primary-dark);
    border-left-color: var(--primary);
}

/* Full-width decorative image backgrounds; no layout shift. */
.hero, .services, .about { position: relative; overflow: hidden; isolation: isolate; }
.section-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.section-content { position: relative; z-index: 2; }
.hero { padding: 132px 0; min-height: 680px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(135deg, #0068d0, #00468e 50%, #00264f); }
.hero-image { object-position: 50% 50%; opacity: .95; }
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 26, 64, .68), rgba(0, 31, 75, .46), rgba(0, 27, 65, .57));
}
.hero-bg::before { content: ''; position: absolute; width: 400px; height: 400px; top: -100px; right: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%); }
.hero-content { position: relative; z-index: 1; text-align: center; color: #fff; }
.hero .hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: .1em;
    font-weight: 600;
    padding: 8px 16px;
    margin-bottom: 26px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 24px;
    background: rgba(255, 255, 255, .07);
}
.hero h1 {
    max-width: 1000px;
    margin: 0 auto 28px;
    font-size: clamp(38px, 4.7vw, 62px);
    font-weight: 800;
    line-height: 1.16;
    text-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    letter-spacing: -1px;
    text-wrap: balance;
}
.hero .hero-description { font-size: 21px; margin: 0 auto 42px; max-width: 800px; line-height: 1.85; color: #f3f7ff; }
.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #fff, #f5f5f7);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .15);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(0, 113, 227, .25); }
.btn-primary:active { transform: translateY(-1px); }
.btn-telegram {
    display: block;
    padding: 14px 24px;
    background: linear-gradient(135deg, #007fbf, #00629e);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 8px 20px rgba(0, 136, 204, .25);
}
.btn-telegram:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 136, 204, .3); }

/* Three original service cards, with useful project detail. */
.services { padding: 110px 0 120px; background: linear-gradient(180deg, #fff, #f5f5f7); }
.server-image { object-position: 50% 45%; opacity: .18; }
.services::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(245, 245, 247, .4)); z-index: 1; pointer-events: none; }
.services h2, .about h2, .contact h2 { font-size: 48px; font-weight: 800; text-align: center; letter-spacing: -1px; line-height: 1.25; }
.services h2 { margin-bottom: 20px; }
.section-intro { max-width: 760px; margin: 0 auto 60px; text-align: center; color: var(--text-light); font-size: 18px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.service-card {
    min-width: 0;
    padding: 46px 30px 36px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px;
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 32px 64px rgba(0, 113, 227, .13); border-color: rgba(0, 113, 227, .2); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 100px; height: 100px; margin: 0 auto 28px; background: linear-gradient(135deg, rgba(0, 113, 227, .15), rgba(0, 113, 227, .08)); border-radius: 16px; display: flex; align-items: center; justify-content: center; transition: transform .4s ease, background .4s ease; }
.service-card:hover .service-icon { background: linear-gradient(135deg, rgba(0, 113, 227, .22), rgba(0, 113, 227, .14)); transform: scale(1.08); }
.service-icon svg { width: 56px; height: 56px; filter: drop-shadow(0 2px 4px rgba(0, 113, 227, .1)); }
.service-card h3 { font-size: 25px; font-weight: 800; margin-bottom: 16px; letter-spacing: -.5px; line-height: 1.3; text-wrap: balance; }
.service-card p { color: var(--text-light); font-size: 16px; line-height: 1.9; }
.service-details { list-style: none; text-align: left; margin-top: 26px; padding-top: 22px; border-top: 1px solid #edf0f5; }
.service-details li { position: relative; padding-left: 17px; margin-top: 9px; font-size: 14px; color: #4d5869; line-height: 1.7; }
.service-details li::before { content: ''; position: absolute; top: .72em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }

/* About and practical collaboration steps. */
.about { padding: 110px 0; background: linear-gradient(180deg, #f5f5f7, #fff); text-align: center; }
.team-image { object-position: 50% 42%; opacity: .95; }
.about::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(245, 245, 247, .89), rgba(255, 255, 255, .9)); z-index: 1; pointer-events: none; }
.about h2 { margin-bottom: 40px; }
.about p { font-size: 18px; color: #50545c; margin: 0 auto 24px; max-width: 900px; line-height: 2; }
.process-title { font-size: 23px; margin: 42px 0 24px; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; text-align: left; }
.process-grid li { padding: 28px; border: 1px solid rgba(0, 113, 227, .08); border-radius: 14px; background: rgba(255, 255, 255, .9); }
.step-number { font-size: 13px; letter-spacing: .08em; color: var(--primary); font-weight: 700; }
.process-grid h4 { font-size: 18px; margin: 10px 0; }
.process-grid p { font-size: 15px; line-height: 1.8; margin: 0; }

/* Contact labels and 16px+ inputs prevent mobile Safari auto-zoom. */
.contact { padding: 110px 0 120px; background: #fff; }
.contact h2 { margin-bottom: 24px; }
.contact > .container > p { text-align: center; color: var(--text-light); margin: 0 auto 48px; max-width: 800px; font-size: 18px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; max-width: 700px; margin: 0 auto; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 15px; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; min-width: 0; padding: 16px 20px; border: 1px solid #d7dbe2; border-radius: 10px; font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease; background: #fff; color: var(--text); }
.contact-form textarea { resize: vertical; min-height: 155px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #757a83; opacity: 1; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 113, 227, .1); }
.contact-form .privacy-note { font-size: 13px; line-height: 1.85; color: var(--text-light); }
.privacy-note a { white-space: nowrap; text-underline-offset: 3px; }
.contact-form .submit-button { margin-top: 4px; color: #fff; background: linear-gradient(135deg, #0071e3, #0056b3); box-shadow: 0 8px 24px rgba(0, 113, 227, .2); }
.contact-form .submit-button:disabled { opacity: .65; cursor: wait; transform: none; }
.form-status { min-height: 48px; font-size: 14px; color: var(--text-light); line-height: 1.7; padding: 2px 0; overflow-wrap: anywhere; }
.form-status[data-state="success"] { color: #11643d; }
.form-status[data-state="error"] { color: #a42b25; }
.noscript-note { padding: 16px; background: var(--light-bg); border-radius: 8px; font-size: 14px; }
.footer { background: linear-gradient(180deg, #f5f5f7, #efefef); padding: 48px 0; text-align: center; border-top: 1px solid rgba(0, 0, 0, .06); }
.footer p { color: var(--text-light); font-size: 14px; }
.footer-note { margin-top: 8px; }
.footer-policies { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 20px; }
.footer-policies a { padding: 6px 0; font-size: 13px; color: #575b62; text-decoration: none; }
.footer-policies a:hover { color: var(--primary); }

/* Telegram popover with the same no-gap bridge as the policy disclosure. */
.contact-float { position: fixed; bottom: 38px; right: 38px; z-index: 99; }
.contact-float-btn { width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; box-shadow: 0 16px 48px rgba(0, 113, 227, .3); transition: transform .3s ease, box-shadow .3s ease; display: flex; align-items: center; justify-content: center; position: relative; }
.contact-float-btn::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary); animation: pulse 3s ease-in-out infinite; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.contact-float-btn:hover { transform: scale(1.06); box-shadow: 0 20px 56px rgba(0, 113, 227, .35); }
.contact-float-content { position: absolute; bottom: calc(100% + 12px); right: 0; width: min(320px, calc(100vw - 40px)); background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); padding: 28px; border: 1px solid rgba(0, 0, 0, .06); visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease; }
.contact-float-content::after { content: ''; position: absolute; top: 100%; right: 0; left: 0; height: 16px; background: transparent; }
.contact-float.is-open .contact-float-content,
html:not(.js) .contact-float:hover .contact-float-content,
html:not(.js) .contact-float:focus-within .contact-float-content { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
.contact-float-content h4 { font-size: 18px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.5px; }
.contact-float-content p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; line-height: 1.7; }

/* Real close buttons, scrollable dialogs and keyboard focus visibility. */
.modal { display: none; position: fixed; z-index: 1000; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); overflow-y: auto; padding: 20px; }
.modal.show, html:not(.js) .modal:target { display: flex; align-items: center; justify-content: center; }
.modal-content { width: 100%; background: #fff; padding: 48px; border-radius: 16px; max-width: 700px; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; position: relative; box-shadow: 0 32px 96px rgba(0, 0, 0, .2); }
.close { position: absolute; right: 20px; top: 20px; font-size: 32px; font-weight: 500; color: #727780; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 0; background: #f5f5f7; line-height: 1; transition: background .2s ease, color .2s ease; }
.close:hover { color: var(--text); background: #e9edf4; }
.modal-content h3 { font-size: 28px; font-weight: 800; margin-bottom: 28px; padding-right: 36px; letter-spacing: -.5px; }
.modal-content h4 { font-size: 17px; margin: 22px 0 9px; }
.modal-content p { color: var(--text-light); line-height: 1.9; font-size: 16px; }
.modal-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.modal-language { font-size: 14px; text-underline-offset: 3px; }
.modal-close-button { background: #edf4fc; color: var(--primary-dark); border: 0; border-radius: 8px; padding: 12px 18px; font-size: 14px; }

@media (max-width: 1000px) {
    .nav { gap: 24px; }
    .service-grid { gap: 22px; }
    .service-card { padding: 38px 23px 30px; }
    .service-card h3 { font-size: 22px; }
}
@media (max-width: 768px) {
    html { scroll-padding-top: 130px; }
    .header .container { flex-wrap: wrap; gap: 0; padding-top: 14px; padding-bottom: 8px; }
    .logo { font-size: 19px; flex: 1 1 100%; justify-content: center; margin-bottom: 8px; }
    .logo svg { width: 28px; height: 28px; }
    .nav { width: 100%; flex-shrink: 1; justify-content: center; gap: 24px; }
    .nav > a, .dropbtn { font-size: 14px; }
    .nav .lang-toggle { padding: 8px 12px; font-size: 12px; }
    .hero { padding: 100px 0; min-height: 560px; }
    .hero h1 { font-size: 42px; }
    .hero .hero-description { font-size: 18px; }
    .hero-image { object-position: 58% 50%; }
    .services, .about, .contact { padding: 86px 0; }
    .services h2, .about h2, .contact h2 { font-size: 36px; }
    .service-grid { grid-template-columns: 1fr; max-width: 580px; margin: 0 auto; gap: 28px; }
    .service-card { padding: 40px 32px; }
    .service-card h3 { font-size: 26px; }
    .service-details { max-width: 350px; margin-left: auto; margin-right: auto; }
    .process-grid { grid-template-columns: 1fr; max-width: 580px; margin: 0 auto; gap: 16px; }
    .process-grid li { padding: 24px; }
    .contact-float { bottom: 26px; right: 26px; }
    .contact-float-btn { width: 60px; height: 60px; }
    .contact-float-content { padding: 24px; }
    .modal-content { padding: 40px 32px; }
    .team-image { object-position: 60% 45%; }
    .server-image { object-position: 68% 50%; }
}
@media (max-width: 480px) {
    .container { padding-left: 18px; padding-right: 18px; }
    .header .container { padding-left: 14px; padding-right: 14px; }
    .nav { gap: clamp(8px, 2.5vw, 14px); }
    .nav > a, .dropbtn { font-size: 12px; }
    .dropbtn { gap: 3px; }
    .dropbtn svg { width: 10px; height: 10px; }
    .nav .lang-toggle { padding: 7px 9px; font-size: 12px; }
    .hero { padding: 76px 0; min-height: 510px; }
    .hero h1 { font-size: 34px; letter-spacing: -.5px; }
    .hero .hero-eyebrow { font-size: 11px; letter-spacing: .03em; padding: 7px 12px; }
    .hero .hero-description { font-size: 16px; margin-bottom: 34px; }
    .hero-image { object-position: 60% 50%; }
    .services, .about, .contact { padding: 72px 0; }
    .services h2, .about h2, .contact h2 { font-size: 29px; }
    .section-intro { font-size: 16px; margin-bottom: 36px; }
    .service-card { padding: 32px 24px; }
    .service-icon { width: 80px; height: 80px; margin-bottom: 24px; }
    .service-icon svg { width: 44px; height: 44px; }
    .service-card h3 { font-size: 23px; }
    .service-card p { font-size: 15px; }
    .about h2 { margin-bottom: 30px; }
    .about p { font-size: 16px; }
    .process-title { font-size: 20px; }
    .process-grid p { font-size: 15px; }
    .contact > .container > p { font-size: 16px; margin-bottom: 32px; }
    .contact-form input, .contact-form textarea { padding: 14px 16px; font-size: 16px; }
    .contact-float { bottom: max(20px, env(safe-area-inset-bottom)); right: 20px; }
    .contact-float-btn { width: 56px; height: 56px; }
    .contact-float-content { padding: 22px; }
    .modal { padding: 12px; }
    .modal-content { padding: 30px 24px; max-height: calc(100dvh - 24px); border-radius: 12px; }
    .modal-content h3 { font-size: 24px; padding-right: 36px; }
    .close { right: 12px; top: 12px; }
    .footer { padding: 40px 0 90px; }
}
@media (max-width: 340px) {
    .nav { justify-content: space-between; gap: 6px; }
    .nav .lang-toggle { padding: 7px; }
    .hero h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .service-card:hover, .service-card:hover .service-icon, .btn-primary:hover, .btn-telegram:hover, .contact-float-btn:hover { transform: none; }
}
@media print {
    .header, .contact-float, .contact-form, .modal, .hero-bg, .section-background { display: none; }
    .hero { min-height: auto; padding: 40px 0; }
    .hero-content, .hero .hero-description { color: #000; }
    .services, .about, .contact { padding: 32px 0; }
    .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
