:root {
    /* Palette */
    --bg-page: #0b0816;
    --bg-hero-dark: #140f26;
    --bg-services: #0f0a1c;
    --bg-form: #0d091a;
    --bg-card: #171027;
    --bg-input: #1d1730;
    --bg-captcha: #1a132d;
    --surface-light: #ffffff;
    --border-strong: #333;
    --border-soft: #222;
    --text-primary: #ffffff;
    --text-secondary: #ccc;
    --text-dark: #000000;
    --accent: #7d5fff;
    --accent-strong: #5b3bb3;
    --accent-glow: rgba(125, 95, 255, 0.2);
    --error: #ff6161;
    --success: #4caf50;

    /* Effects */
    --stripe-strong: rgba(255, 255, 255, 0.04);
    --stripe-soft: rgba(255, 255, 255, 0.02);
    --thumb-shadow: rgba(0, 0, 0, 0.28);
    --border-glow: rgba(76, 175, 80, 0.25);
    --border-highlight: rgba(255, 255, 255, 0.04);

    /* Captcha */
    --captcha-track: #1f1f1f;
    --thumb-light: #fdfdfd;
    --thumb-mid: #e6e6e6;
    --thumb-border: #d0d0d0;
    --captcha-progress: 0%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-page);
    overflow-x: hidden;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.page-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* ================== HERO ================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding: 70px 0 40px;
    background: linear-gradient(120deg, var(--bg-hero-dark), var(--accent), var(--bg-hero-dark));
    background-size: 350% 350%;
    animation: gradientFlow 14s ease infinite;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 600px at 20% 30%, rgba(255, 255, 255, 0.06), transparent 60%),
        radial-gradient(500px 500px at 80% 10%, rgba(255, 255, 255, 0.05), transparent 55%),
        radial-gradient(700px 700px at 60% 80%, rgba(125, 95, 255, 0.18), transparent 60%),
        radial-gradient(800px 800px at 10% 80%, rgba(100, 70, 200, 0.2), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero .page-shell,
.hero-content {
    position: relative;
    z-index: 5;
}
.hero .page-shell {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero img {
    position: absolute;
    right: clamp(8vw, 12vw, 16vw);
    bottom: 0;
    height: 89vh;
    width: auto;
    min-width: 40vw;
    object-fit: contain;
    object-position: bottom right;
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 5;
    width: clamp(380px, 38vw, 560px);
    max-width: 560px;
    padding-right: 32vw;
    margin-top: 10vh;
}

.hero-content h1 {
    font-size: 46px;
    margin: 0 0 12px;
    font-weight: 700;
    line-height: 1.05;
}

.hero-content h3 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
}

.contacts {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
}

.contacts a {
    width: clamp(240px, 38vw, 320px);
    min-width: 52px;
    height: clamp(44px, 4vw, 56px);
    padding: 0 clamp(12px, 1.8vw, 18px);
    background: #ffffff11;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    color: var(--text-primary);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(13px, 1.4vw, 15px);
    transition: 0.2s;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contacts a:hover { opacity: 0.8; }

.contact-label {
    flex: 1;
    text-align: center;
}

.contacts .contact::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
    flex-shrink: 0;
}

.contact-tg::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.287 5.906c-.778.324-2.334.994-4.666 2.01-.378.15-.577.298-.595.442-.03.243.275.339.69.47l.175.055c.408.133.958.288 1.243.294.26.006.549-.1.868-.32 2.179-1.471 3.304-2.214 3.374-2.23.05-.012.12-.026.166.016.047.041.042.12.037.141-.03.129-1.227 1.241-1.846 1.817-.193.18-.33.307-.358.336a8.154 8.154 0 0 1-.188.186c-.38.366-.664.64.015 1.088.327.216.589.393.85.571.284.194.568.387.936.629.093.06.183.125.27.187.331.236.63.448.997.414.214-.02.435-.22.547-.82.265-1.417.786-4.486.906-5.751a1.426 1.426 0 0 0-.013-.315.337.337 0 0 0-.114-.217.526.526 0 0 0-.31-.093c-.3.005-.763.166-2.984 1.09z'/%3E%3C/svg%3E");
}
.contact-wa::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024' fill='%23fff'%3E%3Cpath d='M713.5 599.9c-10.9-5.6-65.2-32.2-75.3-35.8-10.1-3.8-17.5-5.6-24.8 5.6-7.4 11.1-28.4 35.8-35 43.3-6.4 7.4-12.9 8.3-23.8 2.8-64.8-32.4-107.3-57.8-150-131.1-11.3-19.5 11.3-18.1 32.4-60.2 3.6-7.4 1.8-13.7-1-19.3-2.8-5.6-24.8-59.8-34-81.9-8.9-21.5-18.1-18.5-24.8-18.9-6.4-.4-13.7-.4-21.1-.4-7.4 0-19.3 2.8-29.4 13.7-10.1 11.1-38.6 37.8-38.6 92s39.5 106.7 44.9 114.1c5.6 7.4 77.7 118.6 188.4 166.5 70 30.2 97.4 32.8 132.4 27.6 21.3-3.2 65.2-26.6 74.3-52.5 9.1-25.8 9.1-47.9 6.4-52.5-2.7-4.9-10.1-7.7-21-13z'/%3E%3Cpath d='M925.2 338.4c-22.6-53.7-55-101.9-96.3-143.3-41.3-41.3-89.5-73.8-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9-53.3 22.8-101.1 55.2-142 96.5-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9.3 69.4 16.9 138.3 48 199.9v152c0 25.4 20.6 46 46 46h152.1c61.6 31.1 130.5 47.7 199.9 48h2.1c59.9 0 118-11.6 172.7-34.3 53.5-22.3 101.6-54.3 142.8-95.2 41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6z m-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z'/%3E%3C/svg%3E");
}
.contact-tel::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300c26e'%3E%3Cpath d='M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.568 17.568 0 0 0 4.168 6.608 17.569 17.569 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.678.678 0 0 0-.58-.122l-2.19.547a1.745 1.745 0 0 1-1.657-.459L5.482 8.062a1.745 1.745 0 0 1-.46-1.657l.548-2.19a.678.678 0 0 0-.122-.58L3.654 1.328zM1.884.511a1.745 1.745 0 0 1 2.612.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.678.678 0 0 0 .178.643l2.457 2.457a.678.678 0 0 0 .644.178l2.189-.547a1.745 1.745 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.634 18.634 0 0 1-7.01-4.42 18.634 18.634 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877L1.885.511z'/%3E%3C/svg%3E");
}

.contact-tel2::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232d8cff'%3E%3Cpath d='M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.568 17.568 0 0 0 4.168 6.608 17.569 17.569 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.678.678 0 0 0-.58-.122l-2.19.547a1.745 1.745 0 0 1-1.657-.459L5.482 8.062a1.745 1.745 0 0 1-.46-1.657l.548-2.19a.678.678 0 0 0-.122-.58L3.654 1.328zM1.884.511a1.745 1.745 0 0 1 2.612.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.678.678 0 0 0 .178.643l2.457 2.457a.678.678 0 0 0 .644.178l2.189-.547a1.745 1.745 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.634 18.634 0 0 1-7.01-4.42 18.634 18.634 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877L1.885.511z'/%3E%3C/svg%3E");
}

.scroll-arrow {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    opacity: 0.8;
    animation: bounce 1.3s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 14px); }
}

/* ================== SERVICES ================== */
.services {
    padding: 70px 16px;
    background: var(--bg-services);
    width: 100%;
}

.services-head {
    max-width: 820px;
    margin: 0 auto 36px;
    text-align: center;
}

.services-kicker {
    margin: 0;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
}

.services h2 {
    font-size: 32px;
    margin: 6px 0 12px;
}

.services-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.service-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 880px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-item {
    background: var(--bg-card);
    padding: 18px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

.service-bullet {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px var(--accent-glow);
    margin-top: 6px;
    flex-shrink: 0;
}

.service-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.service-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-title {
    font-size: 18px;
    font-weight: 700;
}

.service-desc {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.service-item a {
    background: var(--accent);
    color: var(--text-primary);
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    transition: 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.service-item a:hover { background: var(--accent-strong); }

/* Shared animated overlay for sections */
.services::before,
.testimonials::before,
.form-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(320px 320px at 10% 20%, rgba(125, 95, 255, 0.14), transparent 55%),
        radial-gradient(420px 420px at 90% 10%, rgba(255, 255, 255, 0.06), transparent 60%),
        radial-gradient(380px 380px at 40% 90%, rgba(90, 60, 180, 0.16), transparent 60%);
    opacity: 0.7;
    animation: sectionGlow 16s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.services > .page-shell,
.testimonials > .page-shell,
.form-block > .page-shell {
    position: relative;
    z-index: 1;
}

@keyframes sectionGlow {
    0% { transform: translate3d(0,0,0); filter: hue-rotate(0deg); }
    50% { transform: translate3d(10px, -12px, 0); filter: hue-rotate(12deg); }
    100% { transform: translate3d(-8px, 14px, 0); filter: hue-rotate(-8deg); }
}

/* ================== FORM ================== */
.form-block {
    padding: 70px 16px;
    background: var(--bg-form);
    width: 100%;
}

.form-block h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;
}

form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

input,
textarea {
    padding: 14px;
    border: 1px solid var(--border-strong);
    background: var(--bg-input);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 16px;
    resize: none;
}

.captcha {
    background: var(--bg-captcha);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.captcha-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.captcha-title { font-weight: 600; }

.captcha-status {
    font-weight: 700;
    color: var(--accent);
    font-size: 13px;
}

.captcha-status.passed { color: var(--success); }

.captcha-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px dashed var(--border-strong);
    background:
        linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--captcha-progress), var(--captcha-track) var(--captcha-progress), var(--captcha-track) 100%),
        repeating-linear-gradient(45deg, var(--stripe-strong) 0 10px, var(--stripe-soft) 10px 20px);
    box-shadow: inset 0 0 0 1px var(--border-highlight);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.captcha-range::-webkit-slider-runnable-track {
    height: 48px;
    background: transparent;
    border-radius: 12px;
}

.captcha-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 64px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--thumb-light), var(--thumb-mid));
    border: 1px solid var(--thumb-border);
    box-shadow: 0 8px 16px var(--thumb-shadow);
    cursor: grab;
    position: relative;
}

.captcha-range::-webkit-slider-thumb:active { cursor: grabbing; }
.captcha-range:disabled { cursor: not-allowed; opacity: 0.7; }

.captcha-range::-moz-range-track {
    height: 48px;
    background: transparent;
    border-radius: 12px;
}

.captcha-range::-moz-range-thumb {
    width: 64px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--thumb-light), var(--thumb-mid));
    border: 1px solid var(--thumb-border);
    box-shadow: 0 8px 16px var(--thumb-shadow);
    cursor: grab;
}

.captcha.passed .captcha-range {
    border-color: var(--success);
    background:
        linear-gradient(90deg, var(--success) 0%, var(--success) var(--captcha-progress), var(--captcha-track) var(--captcha-progress), var(--captcha-track) 100%),
        repeating-linear-gradient(45deg, var(--stripe-strong) 0 10px, var(--stripe-soft) 10px 20px);
    box-shadow: 0 0 0 1px var(--border-glow), inset 0 0 0 1px var(--border-highlight);
}

.submit-btn {
    background: var(--accent);
    color: var(--text-primary);
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.25s;
}

.submit-btn:hover { background: var(--accent-strong); }

.errors {
    color: var(--error);
    text-align: center;
    margin-bottom: 20px;
}

.success {
    color: var(--success);
    text-align: center;
    margin-bottom: 20px;
}

/* ================== TESTIMONIALS ================== */
.testimonials {
    padding: 70px 16px;
    background: var(--bg-services);
    width: 100%;
}

.testimonials-head {
    text-align: center;
    margin: 0 auto 28px;
}

.testimonials-head h2 {
    margin: 6px 0 0;
    font-size: 30px;
}

.testimonial-viewport {
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    transition: transform 0.35s ease;
}

.testimonial-slide {
    min-width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-top {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.testimonial-name {
    font-weight: 700;
    font-size: 18px;
}

.testimonial-role {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

.testimonial-text {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.testimonial-nav {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.testimonial-btn {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s ease;
}

.testimonial-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* ================== FOOTER ================== */
.footer {
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 28px 16px 32px;
    border-top: 1px solid var(--border-soft);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    align-items: center;
    text-align: center;
}

.footer a {
    color: var(--text-primary);
    text-decoration: none;
}

.footer a:hover { color: var(--accent); }

/* ================== MEDIA ================== */
@media (max-width: 1100px) {
    .hero-content { padding-right: 0; }
}

@media (max-width: 1279px) {
    .hero {
        justify-content: center;
        align-items: flex-start;
        padding: 20px 16px 0;
        text-align: center;
    }
    .hero img {
        height: 70vh;
        width: auto;
        max-width: 90vw;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        object-position: bottom center;
    }
    .hero-content {
        padding-right: 0;
        margin-top: 12px;
        margin-left: auto;
        margin-right: auto;
        text-shadow: 0 4px 18px rgba(0, 0, 0, 0.42);
        text-align: center;
    }
    .hero-content h1,
    .hero-content h3 {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    }
    .contacts {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
    }
    .contacts a {
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
        padding: 0 16px;
        width: clamp(240px, 80vw, 320px);
        min-width: 200px;
        justify-content: flex-start;
    }
    .contact-label { display: inline; text-align: left; }
    .scroll-arrow { display: none; }
}

@media (max-width: 720px) {
    .service-item { flex-direction: column; }
    .service-body { flex-direction: column; align-items: flex-start; }
    .service-item a { width: 100%; text-align: center; }
}
