:root {
    --primary: #3b8fd9;
    --secondary: #8cc9fb;
    --accent: #e57aa5;
    --light: #ffffff;
    --dark: #16304b;
    --background: #12263b;
    --text-light: #dcebf9;
}

.nowrap { white-space: nowrap; }

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    background: var(--background);
    color: var(--light);
    line-height: 1.5;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: rgba(18, 38, 59, 0.78);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(140, 201, 251, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--secondary);
    text-decoration: none;
}

.logo img { width: 40px; height: 40px; border-radius: 8px; }

.nav { display: none; gap: 1.6rem; }

.nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
}

.nav a:hover { color: var(--accent); }

.menu-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--light);
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
}

.nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(18, 38, 59, 0.97);
}

.nav.open a { padding: 0.7rem 0; font-size: 1.1rem; }

.video-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem 2rem;
    overflow: hidden;
}

.video-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.video-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(18, 38, 59, 0.6) 0%, rgba(43, 98, 150, 0.4) 50%, rgba(18, 38, 59, 0.7) 100%);
}

.text-backdrop {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    padding: 2rem 1.25rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(22, 48, 75, 0.82) 0%, rgba(38, 86, 133, 0.72) 100%);
    border: 1px solid rgba(140, 201, 251, 0.35);
    border-radius: 20px;
    backdrop-filter: blur(20px);
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    line-height: 1.2;
    color: var(--secondary);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 1.8rem;
}

.button {
    display: inline-block;
    padding: 0.95rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--light);
    background: linear-gradient(135deg, #d9628f, var(--accent));
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(229, 122, 165, 0.35);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.button-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    box-shadow: none;
    padding: calc(0.95rem - 2px) calc(2rem - 2px);
}

.button-outline:hover { border-color: var(--accent); }

.video-toggle {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(18, 38, 59, 0.6);
    color: var(--light);
    font-size: 1.1rem;
    cursor: pointer;
}

@media (min-width: 520px) {
    .hero-actions { flex-direction: row; justify-content: center; }
}

@media (min-width: 768px) {
    .header { padding: 0.7rem 2rem; }
    .nav { display: flex; }
    .menu-toggle { display: none; }
    .text-backdrop { padding: 3rem; }
    h1 { font-size: 2.8rem; }
    .subtitle { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.section { padding: 3rem 1rem; background: var(--background); }
.section-alt { background: var(--dark); }
.container { max-width: 1100px; margin: 0 auto; }
.section[id] { scroll-margin-top: 3.5rem; }

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    color: var(--light);
    margin-bottom: 0.6rem;
}

.cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.card {
    padding: 1.4rem;
    background: linear-gradient(135deg, rgba(22, 48, 75, 0.9), rgba(38, 86, 133, 0.55));
    border: 1px solid rgba(140, 201, 251, 0.3);
    border-radius: 16px;
    text-align: center;
}

.card p { color: var(--text-light); }

.price {
    margin-top: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--accent) !important;
}

.contacts { text-align: center; }
.lead { color: var(--text-light); margin-bottom: 1.2rem; }
.contact-list { list-style: none; display: grid; gap: 0.7rem; }
.contact-list a { color: var(--secondary); }
.contact-list a:hover { color: var(--accent); }

.form {
    display: grid;
    gap: 1rem;
    padding: 1.4rem;
    background: rgba(18, 38, 59, 0.7);
    border: 1px solid rgba(140, 201, 251, 0.3);
    border-radius: 16px;
}

.form label { display: grid; gap: 0.35rem; color: var(--text-light); }

.form input[type="text"],
.form textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    font: inherit;
    color: var(--light);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(140, 201, 251, 0.35);
    border-radius: 10px;
}

.form input[type="file"] { font: inherit; color: var(--text-light); }

.form .consent { display: flex; align-items: flex-start; gap: 0.6rem; }
.form .consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }

.form .button { border: 0; cursor: pointer; justify-self: start; }
.form-status { color: var(--text-light); min-height: 1.5em; }

@media (min-width: 768px) {
    .section { padding: 4.5rem 2rem; }
    h2 { font-size: 2.2rem; }
    .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .cards { grid-template-columns: repeat(4, 1fr); }
}

.request {
    width: min(92vw, 520px);
    max-height: 92vh;
    overflow-y: auto;
    padding: 1.6rem 1.4rem;
    color: var(--light);
    background: var(--dark);
    border: 1px solid rgba(140, 201, 251, 0.4);
    border-radius: 16px;
    margin: auto;
}

.request::backdrop { background: rgba(10, 22, 36, 0.75); }
.request h2 { margin-bottom: 0.6rem; }
.request .lead { text-align: center; }
.request .form { padding: 0; background: none; border: 0; }

.request-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    color: var(--light);
    background: none;
    border: 0;
    cursor: pointer;
}

.float-tg {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 9;
    padding: 0.75rem 1.1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--light);
    text-decoration: none;
    background: #2a9bd8;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); }

.page-top { padding-top: 6rem; }
.page { max-width: 760px; text-align: center; }
.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    line-height: 1.2;
    color: var(--secondary);
    margin-bottom: 1rem;
}
.page .price { margin: 0 0 1.4rem; font-size: 1.3rem; }
.page .lead { font-size: 1.1rem; }
.checklist { list-style: none; display: grid; gap: 0.7rem; text-align: left; max-width: 520px; margin: 0 auto 1.2rem; }
.checklist li { padding-left: 1.6rem; position: relative; color: var(--text-light); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--accent); }
.note { color: var(--text-light); }
.steps { list-style: none; display: grid; gap: 0.8rem; text-align: left; max-width: 520px; margin: 0 auto; counter-reset: s; }
.steps li { counter-increment: s; padding: 0.9rem 1rem 0.9rem 3.2rem; position: relative; color: var(--text-light); background: rgba(22, 48, 75, 0.7); border: 1px solid rgba(140, 201, 251, 0.25); border-radius: 12px; }
.steps li::before { content: counter(s); position: absolute; left: 1rem; top: 0.8rem; width: 1.6rem; height: 1.6rem; line-height: 1.6rem; text-align: center; font-weight: 700; color: var(--light); background: var(--accent); border-radius: 50%; }
.steps strong { display: block; color: var(--light); }

@media (min-width: 768px) {
    .page-title { font-size: 2.6rem; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.back-link { display: inline-block; margin-bottom: 1rem; color: var(--secondary); text-decoration: none; }
.back-link:hover { color: var(--accent); }

.footer { padding: 1.2rem 1rem 5rem; text-align: center; font-size: 0.8rem; line-height: 1.6; color: rgba(220, 235, 249, 0.55); background: var(--background); border-top: 1px solid rgba(140, 201, 251, 0.12); }
.footer p + p { margin-top: 0.2rem; }
.footer a { color: rgba(220, 235, 249, 0.7); text-decoration: none; }
.footer a:hover { color: var(--accent); }

.legal { max-width: 760px; text-align: left; }
.legal .page-title { text-align: left; font-size: 1.6rem; }
.legal h2 { text-align: left; font-size: 1.2rem; margin: 1.6rem 0 0.6rem; }
.legal p, .legal li { color: var(--text-light); margin-bottom: 0.6rem; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--secondary); }
.legal-date { color: var(--secondary); margin-bottom: 1rem; }

.form .consent a { color: var(--secondary); }

.cookie {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 4.5rem;
    z-index: 11;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem;
    color: var(--light);
    background: var(--dark);
    border: 1px solid rgba(140, 201, 251, 0.4);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.cookie[hidden] { display: none; }
.cookie a { color: var(--secondary); }
.cookie-actions { display: flex; gap: 0.6rem; }
.cookie-btn { flex: 1; padding: 0.65rem 1rem; font: inherit; font-weight: 500; color: var(--light); background: linear-gradient(135deg, #d9628f, var(--accent)); border: 0; border-radius: 50px; cursor: pointer; }
.cookie-btn-light { background: transparent; border: 1px solid var(--secondary); }

@media (min-width: 768px) {
    .cookie { left: 5rem; right: 1rem; max-width: 640px; flex-direction: row; align-items: center; justify-content: space-between; bottom: 1rem; }
    .cookie-btn { flex: none; }
    .footer { padding-bottom: 2rem; }
}

.card-img { display: block; width: calc(100% + 2.8rem); max-width: none; aspect-ratio: 16 / 10; object-fit: cover; margin: -1.4rem -1.4rem 1rem; border-radius: 16px 16px 0 0; }
.card-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: calc(100% + 2.8rem); margin: -1.4rem -1.4rem 1rem; border-radius: 16px 16px 0 0; overflow: hidden; }
.card-pair figure { position: relative; }
.card-pair img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }


.page-top { position: relative; }
.back-link { position: absolute; top: 4.6rem; left: 1rem; margin: 0; }

.works-wrap { max-width: 1100px; text-align: center; }
.works { column-count: 1; column-gap: 1rem; margin: 1.5rem 0 2rem; text-align: left; }
.work { break-inside: avoid; margin: 0 0 1rem; background: rgba(22, 48, 75, 0.7); border: 1px solid rgba(140, 201, 251, 0.25); border-radius: 14px; overflow: hidden; }
.work img { display: block; width: 100%; height: auto; }
.work figcaption { padding: 0.6rem 0.8rem; font-size: 0.95rem; color: var(--text-light); }
.works-cta { margin-top: 1rem; }

@media (min-width: 600px) { .works { column-count: 2; } }
@media (min-width: 1000px) { .works { column-count: 3; } }

.page-top { padding-top: 8.5rem; }

@media (min-width: 520px) and (max-width: 999px) { .cards { grid-template-columns: repeat(2, 1fr); } .card-img { aspect-ratio: 4 / 3; } }

.card-img, .card-pair img { height: auto; }

.work { background: transparent; border: 0; }
.work img { border-radius: 14px; }
.work-small { display: flex; justify-content: center; background: #e9e8e7; border-radius: 14px; }
.work-small img { width: 45%; max-width: 200px; height: auto; margin: 0 auto; border-radius: 0; }
.works.js { column-count: auto; display: flex; gap: 1rem; align-items: flex-start; }
.works-col { flex: 1; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.works-col .work { margin: 0; }
