:root {
    --primary: #6366f1;
    --secondary: #ec4899;
    --dark: #1f2937;
    --text: #374151;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.5;
    overflow: hidden;
    height: 100%;
}

body.loading .animate-item {
    opacity: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.navbar.visible {
    transform: translateY(0);
}

.nav-container {
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    z-index: 1002;
    flex-shrink: 0;
}

.logo-img {
    height: 28px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 20px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
}

.burger {
    display: none;
}

.scroll-container {
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 3vh;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 800;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #888;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero {
    background: radial-gradient(circle at 50% 50%, #fdfbfb 0%, #ebedee 100%);
}

.hero-content {
    align-items: center;
    gap: 10px;
}

.hero-logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-logo-main {
    width: 318px;
    height: auto;
    opacity: 0;
    animation: fadeLogo 2s ease forwards 0.3s;
}

.hero-text-block {
    text-align: center;
    max-width: 600px;
    margin-top: 30px;
}

.hero-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 13px;
    color: #6b7280;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.animate-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.5s;
}

.delay-3 {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLogo {
    to {
        opacity: 1;
    }
}

.btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.scroll-down-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--primary);
    opacity: 0.6;
    cursor: pointer;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.slider-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
    scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.portfolio-card {
    min-width: 340px;
    max-width: 340px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    cursor: default;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
}

.card-image-wrapper {
    position: relative;
    height: 200px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.tech-badge {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark);
    font-weight: 700;
}

.card-desc {
    font-size: 0.95rem;
    color: #666;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    color: var(--primary);
    transition: 0.3s;
    z-index: 10;
    flex-shrink: 0;
}

.prev-btn {
    margin-right: 15px;
}

.next-btn {
    margin-left: 15px;
}

.prices {
    background: #f9fafb;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.price-card {
    background: var(--white);
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    transition: 0.3s;
    justify-content: space-between;
}

.price-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.price-header h3 {
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
}

.price-amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.price-features {
    margin-bottom: 20px;
    flex-grow: 1;
}

.price-features li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    color: #444;
    line-height: 1.3;
}

.price-features li::before {
    content: "•";
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.full-width {
    width: 100%;
}

.mobile-only-btn {
    display: none;
}

.mobile-hint {
    display: none;
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.text-left {
    text-align: left;
    margin-bottom: 20px;
    white-space: nowrap;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #f0fdf4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contacts-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    background: #f9fafb;
}

.btn-lg {
    padding: 16px;
    font-size: 1.1rem;
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-status.success {
    color: green;
}

.form-status.error {
    color: red;
}

@media (max-width: 1024px) {
    .prices-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
    }

    .price-card {
        min-width: 320px;
        scroll-snap-align: center;
    }

    .mobile-hint {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-text-block {
        margin-top: 10px;
    }

    .navbar {
        height: 60px;
    }

    .nav-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 20px;
    }

    .nav-brand {
        z-index: 1002;
        flex-shrink: 0;
    }

    .burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        gap: 5px;
        width: 40px;
        height: 40px;
        z-index: 1002;
        cursor: pointer;
        background: transparent;
        margin-left: auto;
    }

    .burger div {
        background-color: var(--dark);
        height: 2px;
        border-radius: 2px;
        transition: 0.3s;
    }

    .line1 {
        width: 24px;
    }

    .line2 {
        width: 18px;
    }

    .line3 {
        width: 24px;
    }

    .burger.active .line1 {
        width: 24px;
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger.active .line2 {
        opacity: 0;
        width: 0;
    }

    .burger.active .line3 {
        width: 24px;
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        margin: 0;
        padding: 0;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 20px;
        font-weight: 500;
        text-transform: none;
        padding: 10px;
        width: fit-content;
    }

    .nav-link.active::after {
        bottom: 5px;
        height: 3px;
        left: 0;
        width: 100%;
    }

    .container {
        padding: 0 16px;
        width: 100%;
    }

    .scroll-container {
        height: 100vh;
        height: 100dvh;
        scroll-snap-type: y mandatory;
    }

    .section {
        height: 100vh;
        height: 100dvh;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .scroll-down-btn {
        display: none;
    }

    .hero-logo-main {
        width: 240px;
    }

    .hero-title {
        font-size: 22px;
    }

    .prices-grid {
        display: block;
        overflow-x: hidden;
        scroll-snap-type: none;
        padding: 0;
        margin-top: 10px;
    }

    .price-card {
        min-width: 100%;
        margin-bottom: 12px;
        padding: 15px;
        flex-direction: row;
        align-items: center;
        min-height: auto;
        border: 1px solid #eee;
        box-shadow: none;
    }

    .price-features,
    .price-card .btn {
        display: none;
    }

    .price-header {
        margin: 0;
        border: none;
        padding: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .price-header h3 {
        font-size: 14px;
        margin: 0;
        font-weight: 600;
    }

    .price-amount {
        font-size: 15px;
    }

    .mobile-only-btn {
        display: flex;
        margin-top: 15px;
        padding: 14px;
    }

    .mobile-hint {
        display: none;
    }

    .contacts-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        height: 100%;
    }

    .text-left {
        text-align: center;
        white-space: normal;
    }

    .contact-item {
        justify-content: center;
        margin-bottom: 5px;
        font-size: 0.95rem;
        gap: 10px;
    }

    .icon-box {
        width: 36px;
        height: 36px;
    }

    .icon-box svg {
        width: 18px;
        height: 18px;
    }

    .contacts-form-wrapper {
        padding: 15px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        width: 100%;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }

    .btn-lg {
        padding: 12px;
        font-size: 16px;
    }

    .slider-btn {
        display: none;
    }

    .portfolio-card {
        min-width: 85vw;
        max-width: 85vw;
    }

    .slider-track {
        padding: 10px 5px 30px 5px;
    }
}