:root {
    --color-bg: #f5efe9;
    --color-surface: #fffdf9;
    --color-surface-muted: #f0e6dd;
    --color-primary: #d15b34;
    --color-primary-dark: #9d3c1d;
    --color-ink: #1e2933;
    --color-text: #43515c;
    --color-border: rgba(30, 41, 51, 0.08);
    --color-white: #ffffff;
    --shadow-soft: 0 18px 40px rgba(30, 41, 51, 0.08);
    --shadow-strong: 0 22px 50px rgba(15, 23, 42, 0.18);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1200px;
    --header-height: 88px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    font-family: "Roboto", sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background:
        radial-gradient(circle at top left, rgba(209, 91, 52, 0.08), transparent 22%),
        linear-gradient(180deg, #fcf7f2 0%, #f5efe9 100%);
    overflow-x: clip;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

main,
footer {
    position: relative;
    z-index: 1;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

.section-light {
    background: rgba(255, 255, 255, 0.45);
}

.section-dark-accent {
    background: linear-gradient(180deg, rgba(30, 41, 51, 0.03), rgba(209, 91, 52, 0.06));
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    color: var(--color-ink);
}

.section-title-light {
    color: var(--color-white);
}

.site-header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(1240px, calc(100% - 1rem));
    z-index: 50;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(20, 28, 36, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(10, 15, 20, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(20, 28, 36, 0.9);
    box-shadow: 0 18px 40px rgba(10, 15, 20, 0.3);
}

.site-header.is-hidden {
    transform: translate(-50%, calc(-100% - 1rem));
}

.header-wrapper {
    min-height: var(--header-height);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: var(--color-white);
    min-width: 0;
}

.logo-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    background: url('logo_bila.png') center/contain no-repeat;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
}

.logo-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.74);
}

.main-nav {
    margin-left: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0;
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.35rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f3a86d, var(--color-primary));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.hamburger {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay {
    display: none;
}

.hero-fullscreen {
    position: relative;
    min-height: 100svh;
    padding: 9rem 0 5rem;
    overflow: clip;
}

.hero-fullscreen::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.35)),
        url('2000.jpg') center/cover no-repeat;
    transform: scale(1.04);
}

.hero-overlay {
    position: relative;
    min-height: inherit;
    display: flex;
    align-items: center;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.hero-brand,
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: min(100%, 260px);
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.25));
}

.hero-badge {
    display: inline-flex;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.hero-content {
    max-width: 720px;
    color: var(--color-white);
}

.hero-kicker {
    margin-bottom: 1rem;
    color: #f4b486;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(2.6rem, 5vw, 4.9rem);
    line-height: 0.98;
    font-weight: 900;
    margin-bottom: 1.4rem;
    text-wrap: balance;
}

.hero-text {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 1rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #ef8a56, var(--color-primary));
    color: var(--color-white);
    box-shadow: 0 12px 25px rgba(209, 91, 52, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    box-shadow: 0 18px 28px rgba(209, 91, 52, 0.34);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.16);
}

.btn-full {
    width: 100%;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 2.2rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.15rem;
    font-size: 1.05rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item,
.panel-card,
.service-card,
.feature-item,
.contact-form,
.price-table,
.requirements-card,
.files-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.stat-item {
    padding: 1.5rem 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--color-text);
}

.about-panel {
    height: 100%;
}

.panel-card {
    height: 100%;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.84));
}

.panel-card-dark {
    background: linear-gradient(180deg, #24313d, #1b252f);
    color: rgba(255, 255, 255, 0.88);
}

.panel-card-dark h3 {
    color: var(--color-white);
}

.panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #ef8a56, var(--color-primary));
    font-size: 1.8rem;
}

.panel-card h3 {
    font-size: 1.4rem;
    color: var(--color-ink);
    margin-bottom: 0.75rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.92);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 42px rgba(30, 41, 51, 0.12);
}

.service-icon,
.feature-icon,
.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 18px;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #ef8a56, var(--color-primary));
    color: var(--color-white);
    font-size: 1.8rem;
    box-shadow: 0 12px 24px rgba(209, 91, 52, 0.22);
}

.service-card h3,
.feature-item h3 {
    color: var(--color-ink);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.service-price {
    margin-top: 1rem;
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 800;
}

.price-table {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
}

.price-header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #24313d, #1b252f);
    color: var(--color-white);
}

.price-header p {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.price-row {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid rgba(30, 41, 51, 0.08);
}

.price-row:nth-child(even) {
    background: rgba(209, 91, 52, 0.04);
}

.price-row:last-child {
    border-bottom: 0;
}

.price-service {
    font-weight: 500;
    color: var(--color-ink);
}

.price-amount {
    flex: 0 0 auto;
    color: var(--color-primary);
    font-weight: 800;
}

.carousel-wrapper {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
}

.carousel {
    overflow: hidden;
}

.features-grid {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.35s ease;
}

.feature-item {
    flex: 0 0 calc((100% - 3rem) / 3);
    padding: 2rem;
    background: rgba(255, 255, 255, 0.92);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: #24313d;
    color: var(--color-white);
    font-size: 1.25rem;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.carousel-btn.prev {
    left: -1.35rem;
}

.carousel-btn.next {
    right: -1.35rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(30, 41, 51, 0.2);
    cursor: pointer;
}

.carousel-dots button.active {
    width: 28px;
    background: var(--color-primary);
}

.requirements-card,
.files-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    margin: 1.5rem 0;
}

.requirements-card h3,
.files-card h4 {
    color: var(--color-ink);
    margin-bottom: 1rem;
}

.main-list,
.dash-list,
.download-list {
    padding-left: 1.25rem;
}

.main-list li,
.dash-list li,
.download-list li {
    margin-bottom: 0.75rem;
}

.dash-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
}

.dash-list li {
    position: relative;
    padding-left: 1rem;
}

.dash-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.download-link {
    color: var(--color-ink);
    font-weight: 700;
    text-decoration: none;
}

.download-link:hover {
    color: var(--color-primary);
}

.contact {
    background:
        linear-gradient(135deg, rgba(24, 33, 41, 0.95), rgba(38, 51, 62, 0.95)),
        radial-gradient(circle at top, rgba(239, 138, 86, 0.2), transparent 35%);
    color: var(--color-white);
}

.contact-content {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 2rem;
    align-items: stretch;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-item:last-child {
    border-bottom: 0;
}

.contact-icon {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    margin-bottom: 0;
}

.contact-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.contact-link:hover {
    color: #f4b486;
}

.contact-form {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    font: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.54);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid rgba(244, 180, 134, 0.45);
    border-color: rgba(244, 180, 134, 0.45);
}

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

option {
    color: var(--color-ink);
}

footer {
    background: #121a22;
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #f4b486;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--color-white);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.94rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .hamburger {
        display: inline-flex;
    }

    .mobile-menu-overlay {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 0;
        right: 0;
        display: block;
        padding: 0 0.75rem 0.75rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-menu-overlay nav {
        background: rgba(17, 24, 32, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        box-shadow: var(--shadow-strong);
        padding: 1rem 1.1rem;
    }

    .mobile-nav-menu {
        list-style: none;
    }

    .mobile-nav-link {
        display: block;
        padding: 0.95rem 0.4rem;
        color: rgba(255, 255, 255, 0.88);
        text-decoration: none;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-nav-menu li:last-child .mobile-nav-link {
        border-bottom: 0;
    }

    .mobile-nav-link.active {
        color: #f4b486;
    }

    .hero-shell,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-fullscreen {
        padding-top: 8rem;
    }

    .hero-brand {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-logo {
        width: 180px;
    }

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

    .feature-item {
        flex-basis: 100%;
    }

    .carousel-btn {
        display: none;
    }
}

@media (max-width: 720px) {
    :root {
        --header-height: 76px;
    }

    .section {
        padding: 4.5rem 0;
    }

    .site-header {
        top: 0.5rem;
        width: calc(100% - 0.75rem);
    }

    .header-wrapper {
        padding: 0.75rem 1rem;
        gap: 1rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-subtitle {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-badge {
        font-size: 0.88rem;
        border-radius: 18px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        min-width: 0;
    }

    .services-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}
