:root {
    --bg-color: #f4f8fa;
    --text-color: #0f172a;
    --text-muted: #475569;
    --primary-color: #0284c7;
    --primary-hover: #0369a1;
    --card-bg: #ffffff;
    --border-color: rgba(15, 23, 42, 0.08);
    --header-bg: rgba(244, 248, 250, 0.85);
    --footer-bg: #0f172a;
    --footer-text: #94a3b8;
    --footer-title: #ffffff;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 36px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1);

    --arrow-bg: rgba(255, 255, 255, 0.92);
    --arrow-color: #0f172a;
    --arrow-border: rgba(15, 23, 42, 0.1);
}

html[data-theme="dark"] {
    --bg-color: #0b0f19;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary-color: #38bdf8;
    --primary-hover: #7dd3fc;
    --card-bg: #111827;
    --border-color: rgba(248, 250, 252, 0.08);
    --header-bg: rgba(11, 15, 25, 0.85);
    --footer-bg: #030712;
    --footer-text: #64748b;
    --footer-title: #f8fafc;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);

    --arrow-bg: rgba(2, 6, 23, 0.88);
    --arrow-color: #38bdf8;
    --arrow-border: rgba(56, 189, 248, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

.header {
    background-color: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.header-wrap {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-box {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 48px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background-color: var(--card-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

html[data-theme="light"] .sun-icon { display: none; }
html[data-theme="light"] .moon-icon { display: block; }
html[data-theme="dark"] .sun-icon { display: block; }
html[data-theme="dark"] .moon-icon { display: none; }

.btn-header {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-header:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.hero {
    padding: 240px 0 140px;
    text-align: center;
}

.hero-wrap {
    max-width: 900px;
}

.hero-title {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 21px;
    color: var(--text-muted);
    margin-bottom: 44px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-hero-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.25);
}

.btn-hero-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.35);
}

.btn-hero-secondary {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.menu-toggle {
    display: none;
}

.btn-hero-secondary:hover {
    background-color: var(--bg-color);
    transform: translateY(-2px);
}

.services {
    padding: 120px 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--bg-color);
    padding: 45px 35px;
    border-radius: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    color: var(--primary-color);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 28px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
}

.portfolio, .prices {
    padding: 120px 0;
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.slider-view {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.slider-list {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    gap: 24px;
}

.slider-item {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: var(--arrow-bg);
    border: 1px solid var(--arrow-border);
    color: var(--arrow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.slider-arrow svg {
    width: 22px;
    height: 22px;
    stroke-width: 3;
}

.slider-arrow:hover {
    transform: translateY(-50%) scale(1.05);
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(2, 132, 199, 0.28);
}

.arrow-prev {
    left: 16px;
}

.arrow-next {
    right: 16px;
}

.work-card {
    background-color: var(--card-bg);
    border-radius: 24px;
    height: 340px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
    border-color: var(--primary-color);
}

.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.advantages {
    padding: 120px 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.advantages-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.advantage-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.advantage-num {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.25;
    line-height: 1;
}

.advantage-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
}

.advantage-content p {
    color: var(--text-muted);
    font-size: 16px;
}

.price-card {
    background-color: var(--card-bg);
    padding: 50px 35px;
    border-radius: 28px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.price-card-featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
    position: relative;
    z-index: 2;
}

.price-card-featured .price-val {
    color: var(--primary-hover);
}

.price-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 700;
}

.price-val {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 35px;
}

.price-card-featured .price-val {
    color: #38bdf8;
}

.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 45px;
    font-size: 15px;
    text-align: left;
    padding-left: 10px;
    color: var(--text-muted);
}

.price-card-featured .price-features {
    color: var(--text-color);
}

.btn-price {
    background-color: var(--bg-color);
    color: var(--text-color);
    width: 100%;
    border: 1px solid var(--border-color);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-price:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.3);
}

.contact {
    padding: 120px 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.contact-wrap {
    max-width: 650px;
    text-align: center;
}

.contact-box {
    background-color: var(--bg-color);
    padding: 60px 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.contact-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-email {
    max-width: 100%;
    font-size: clamp(19px, 4vw, 30px);
    line-height: 1.25;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.contact-box:hover .contact-email {
    color: var(--primary-color);
}

.contact-hint {
    font-size: 14px;
    color: var(--text-muted);
}

.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0 25px;
    border-top: 1px solid var(--border-color);
}

.footer-wrap {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand {
    gap: 16px;
}

.footer-logo {
    width: 100px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-logo .logo-img {
    width: 100px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.4;
    max-width: 240px;
}

.footer-col h4 {
    color: var(--footer-title);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.footer-col a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-info {
    font-size: 14px;
}

.footer-bottom {
    grid-column: span 4;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    margin-top: 15px;
    text-align: center;
}

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

.toast {
    position: fixed;
    bottom: 40px;
    left: 40px;
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 18px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    z-index: 2000;
    transform: translateY(150px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.logo-light {
    display: none;
}

html[data-theme="dark"] .header .logo-dark {
    display: none;
}

html[data-theme="dark"] .header .logo-light {
    display: block;
}

.portfolio-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--border-color), rgba(2, 132, 199, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: background 0.3s ease;
}

.portfolio-link:hover .work-placeholder {
    background: linear-gradient(135deg, var(--border-color), rgba(2, 132, 199, 0.15));
}

.work-info {
    margin-top: 16px;
    padding: 0 4px;
}

.work-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.portfolio-link:hover .work-info h3 {
    color: var(--primary-color);
}

.work-info p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-link {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.price-discount {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ef4444;
    margin-bottom: 8px;
    background-color: rgba(239, 68, 68, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

.price-old {
    font-size: 15px;
    text-decoration: line-through;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 500;
}

@media(max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .slider-item {
        flex: 0 0 calc(50% - 12px);
    }
    .footer-wrap {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-bottom {
        grid-column: span 2;
    }
}

@media(max-width: 768px) {
    .header-wrap {
        height: 74px;
    }

    .logo-box,
    .logo-box .logo-img,
    .footer-logo,
    .footer-logo .logo-img {
        width: 74px !important;
        height: 74px !important;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: 1px solid var(--border-color);
        color: var(--text-color);
        padding: 10px;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .menu-toggle:hover {
        background-color: var(--card-bg);
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .btn-header {
        display: none !important;
    }

    .nav {
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        background-color: var(--header-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        gap: 0 !important;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        padding: 10px 0;
        box-shadow: var(--shadow-md);
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav-link {
        padding: 18px 24px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        font-size: 16px;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .theme-toggle {
        padding: 8px;
    }

    .hero {
        padding: 130px 0 60px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.25;
        letter-spacing: -0.5px;
        margin-bottom: 20px;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 32px;
        padding: 0 4px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px;
    }

    .btn {
        padding: 14px 22px;
        font-size: 15px;
        border-radius: 12px;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 36px;
    }

    .services,
    .portfolio,
    .contact {
        padding: 60px 0;
    }

    .prices {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 30px 24px;
        border-radius: 20px;
    }

    .slider-item {
        flex: 0 0 100%;
    }

    .slider-wrapper {
        padding-bottom: 76px;
    }

    .slider-arrow {
        top: auto;
        bottom: 0;
        width: 48px;
        height: 48px;
        transform: none;
        border-radius: 14px;
    }

    .slider-arrow:hover {
        transform: translateY(-2px) scale(1.03);
    }

    .arrow-prev {
        left: calc(50% - 56px);
        right: auto;
    }

    .arrow-next {
        right: calc(50% - 56px);
        left: auto;
    }

    .work-card {
        height: 260px;
    }

    #prices .slider-view {
        padding: 12px 0 18px;
    }

    #prices .slider-list {
        align-items: flex-start;
    }

    #prices .slider-item {
        flex: 0 0 100%;
    }

    #prices .price-card {
        width: calc(100% - 28px);
        height: auto;
        min-height: 0;
        margin: 0 auto;
        padding: 28px 20px;
        border-radius: 20px;
        justify-content: flex-start;
    }

    #prices .price-card-featured {
        transform: none;
        box-shadow: var(--shadow-md);
    }

    #prices .price-card h3 {
        font-size: 18px;
        line-height: 1.35;
        margin-bottom: 16px;
    }

    #prices .price-discount {
        align-self: center;
        width: auto;
        max-width: 100%;
        font-size: 9px;
        line-height: 1.35;
        padding: 5px 9px;
        margin-bottom: 10px;
        letter-spacing: 0.7px;
    }

    #prices .price-old {
        font-size: 14px;
        margin-bottom: 5px;
    }

    #prices .price-val {
        font-size: 30px;
        line-height: 1.2;
        margin-bottom: 26px;
    }

    #prices .price-features {
        width: 100%;
        gap: 11px;
        padding-left: 0;
        margin-bottom: 26px;
        font-size: 14px;
    }

    #prices .price-features li {
        line-height: 1.45;
    }

    #prices .btn-price {
        min-height: 50px;
        margin-top: auto;
        font-size: 15px;
    }

    .contact-form {
        gap: 16px;
        margin-top: 24px;
    }

    .form-input {
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 10px;
    }

    .footer-wrap {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .footer-brand,
    .footer-col {
        align-items: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-bottom {
        grid-column: span 1;
    }

    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
    }

    .toast {
        left: 20px;
        right: 20px;
        bottom: 20px;
        padding: 14px 20px;
        font-size: 14px;
        text-align: center;
    }
}

.slider-arrow[hidden] {
    display: none;
}

.slider-arrow:disabled {
    opacity: 0.38;
    cursor: default;
    pointer-events: none;
}

.contact-box:focus-visible,
.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
.slider-arrow:focus-visible,
.back-to-top:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.portfolio-link:focus-visible,
.footer a:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}
