
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    background-color: #ffffff;
    color: #1e2a3a;
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, .btn, .logo-text {
    font-weight: 700;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}


.btn, button, .service-card, .portfolio-item, .footer-col a, .work-card {
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.btn:hover, button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.btn:active, button:active {
    transform: translateY(0px);
    transition: all 0.05s ease;
}

.service-card:hover, .work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}

.portfolio-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.08);
}


a {
    transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    text-decoration: none;
}

.contact-link {
    color: white;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-link:hover {
    color: #00A3C4;
    transform: translateY(-1px);
}

.footer-col a {
    display: block;
    color: #cbdbe0;
    text-decoration: none;
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: #00A3C4;
    transform: translateX(4px);
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 85px;
}

.gradient-text {
    background: linear-gradient(135deg, #00A3C4 0%, #0B2B40 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00A3C4;
    margin-bottom: 12px;
    background: rgba(0, 163, 196, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    color: #0B2B40;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: #3a5a6e;
}


.header {
    background: linear-gradient(135deg, #0B2B40 0%, #0a2538 100%);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 163, 196, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    color: white;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    padding: 6px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00A3C4;
    transition: width 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #00A3C4;
}

.header-contacts {
    display: flex;
    gap: 24px;
    align-items: center;
}

.contact-link i {
    width: 18px;
    text-align: center;
}

.mobile-menu-btn {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 1001;
}


.mobile-contacts {
    display: none;
}


.mobile-menu-btn {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .header-contacts {
        display: none;
    }

    .mobile-contacts {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 163, 196, 0.3);
    }
    
    .nav {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background: rgba(11, 43, 64, 0.95);
        backdrop-filter: blur(10px);
        z-index: 1001;
        transition: top 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        padding: 100px 24px 40px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid rgba(0, 163, 196, 0.3);
    }
    
    .nav.nav-open {
        top: 0;
    }
    
    .nav .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .nav .nav-links a {
        color: white;
        font-size: 22px;
        font-weight: 500;
        padding: 8px 0;
        display: block;
        text-decoration: none;
    }
    
    .nav .nav-links a::after {
        display: none;
    }
    
    .nav .nav-links a:hover {
        color: #00A3C4;
    }
    
    .nav .mobile-contacts .contact-link {
        font-size: 16px;
        color: white;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .nav .mobile-contacts .contact-link:hover {
        color: #00A3C4;
    }
}


.hero {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 80px 0 70px;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 150%;
    background: radial-gradient(circle, rgba(0,163,196,0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-bg-shape-2 {
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(11,43,64,0.02) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    min-width: 280px;
}

.hero-badge {
    background: rgba(0, 163, 196, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 40px;
    color: #00A3C4;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    color: #0B2B40;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    color: #2c3e4e;
    margin-bottom: 32px;
    max-width: 90%;
}

.hero-buttons {
    margin-bottom: 28px;
}

.btn-primary {
    background: linear-gradient(135deg, #00A3C4 0%, #008aa8 100%);
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0, 163, 196, 0.2);
}

.btn-primary i {
    transition: transform 0.25s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.hero-note {
    font-size: 15px;
    color: #3a5a6e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-note i {
    color: #00A3C4;
}

.hero-image {
    flex: 1;
    text-align: center;
    min-width: 280px;
}

.hero-image-wrapper {
    position: relative;
    display: inline-block;
}

.hero-image img {
    max-width: 100%;
    border-radius: 32px;
    position: relative;
    z-index: 2;
    box-shadow: 8px 8px 0px 0px rgba(11, 43, 64, 0.3);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.hero-image img:hover {
    box-shadow: 10px 10px 0px 0px rgba(11, 43, 64, 0.4);
    transform: translateY(-3px);
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(0,163,196,0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}


.about-us {
    background: linear-gradient(135deg, #E6F7FB 0%, #f0fafc 100%);
    padding: 80px 0;
}

.about-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.about-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 15px 30px -12px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.15);
}

.about-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.about-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.75) contrast(1.1);
}

.about-card:hover .about-card-image img {
    transform: scale(1.05);
    filter: brightness(0.8) contrast(1.1);
}

.about-card-content {
    padding: 28px 24px 32px;
    text-align: center;
}

.about-card-content h3 {
    font-size: 26px;
    font-weight: 800;
    color: #0B2B40;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.about-card-content p {
    font-size: 16px;
    color: #3a5a6e;
    line-height: 1.6;
}


.services {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #ffffff;
    padding: 40px 28px;
    border-radius: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px -8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,163,196,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 460px;
}

.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,163,196,0.02) 0%, transparent 100%);
    pointer-events: none;
}

.service-icon {
    font-size: 54px;
    background: linear-gradient(135deg, #00A3C4, #0B2B40);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #0B2B40;
}

.service-card p {
    color: #3a5a6e;
    line-height: 1.6;
    margin-bottom: 28px;
    flex-grow: 1;
}

.btn-service {
    background: transparent;
    border: 2px solid #00A3C4;
    color: #0B2B40;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    margin-top: auto;
    width: fit-content;
    align-self: center;
}

.btn-service:hover {
    background: #00A3C4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 163, 196, 0.15);
}


.portfolio {
    background: linear-gradient(135deg, #F5F7FA 0%, #ffffff 100%);
    padding: 80px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.portfolio-item {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 6px 14px -6px rgba(0,0,0,0.06);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.portfolio-item:hover img {
    transform: scale(1.03);
}

.portfolio-caption {
    padding: 20px;
    text-align: center;
    font-weight: 700;
    color: #0B2B40;
    background: white;
}


.sketch-section {
    padding: 80px 0;
    background: white;
}

.sketch-container {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.sketch-text {
    flex: 1;
}

.sketch-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #0B2B40;
}

.sketch-text p {
    font-size: 17px;
    margin-bottom: 20px;
    color: #2c3e4e;
    line-height: 1.6;
}

.btn-outline {
    background: transparent;
    border: 2px solid #00A3C4;
    color: #0B2B40;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    cursor: pointer;
}

.btn-outline:hover {
    background: #00A3C4;
    border-color: #00A3C4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 163, 196, 0.12);
}

.sketch-image {
    flex: 1;
    text-align: center;
}

.sketch-image-inner {
    background: linear-gradient(135deg, #f0f4f8, #e8edf2);
    border-radius: 32px;
    padding: 20px;
    border: 2px dashed #00A3C4;
}

.sketch-image img {
    max-width: 100%;
    border-radius: 20px;
}

.how-we-work {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.how-we-work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(0, 163, 196, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.work-card {
    background: white;
    border-radius: 28px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 163, 196, 0.1);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 163, 196, 0.25);
}

.work-number {
    font-size: 72px;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(0, 163, 196, 0.15) 0%, rgba(11, 43, 64, 0.1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    line-height: 1;
    letter-spacing: -3px;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.work-card:hover .work-number {
    background: linear-gradient(135deg, rgba(0, 163, 196, 0.5) 0%, rgba(11, 43, 64, 0.35) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    transform: scale(1.02);
}

.work-title {
    font-size: 24px;
    font-weight: 800;
    color: #0B2B40;
    margin-bottom: 12px;
}

.work-desc {
    font-size: 15px;
    color: #3a5a6e;
    line-height: 1.6;
}

.work-button-wrapper {
    text-align: center;
    margin-top: 20px;
}


.footer {
    background: linear-gradient(135deg, #0B2B40 0%, #061a24 100%);
    color: #e0eef5;
    padding-top: 60px;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(0,163,196,0.2);
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

.footer-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    margin-right: 8px;
    vertical-align: middle;
}

.footer-col h3, .footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-col p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #b0ccda;
}

.footer-col a i {
    width: 26px;
    color: #00A3C4;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 14px;
    border-top: 1px solid rgba(0,163,196,0.2);
    margin-top: 20px;
    color: #8aacbc;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-container {
    background: white;
    border-radius: 36px;
    width: 90%;
    max-width: 580px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    background: linear-gradient(135deg, #0B2B40, #0a2538);
    color: white;
}

.modal-header h3 {
    font-size: 20px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #00A3C4;
    transform: scale(1.05);
}

.modal-body {
    padding: 28px;
    max-height: 55vh;
    overflow-y: auto;
}

.step-indicator {
    margin-bottom: 28px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 8px 0;
}

.step-indicator-track {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    padding: 4px 4px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e7ed;
    color: #6b7c8a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-dot.active {
    background: linear-gradient(135deg, #00A3C4, #008aa8);
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 163, 196, 0.3);
}

.step-dot.completed {
    background: #0B2B40;
    color: white;
    box-shadow: 0 2px 8px rgba(11, 43, 64, 0.3);
}

.step-line {
    width: 28px;
    height: 2px;
    background: #e0e7ed;
    margin: 0 6px;
}

.step-line.completed {
    background: #0B2B40;
}

.step-content-wrapper {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.step-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.radio-group-full {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #F5F7FA;
    border-radius: 20px;
    border: 1.5px solid #e0e7ed;
    cursor: pointer;
    transition: all 0.25s ease;
}

.radio-card:hover {
    border-color: #00A3C4;
    background: #f0f9fc;
}

.radio-card.selected {
    border-color: #00A3C4;
    background: linear-gradient(135deg, #E6F7FB, #daf0f5);
}

.radio-card input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00A3C4;
}

.radio-text {
    font-size: 15px;
    color: #1e2a3a;
}

.contact-subtitle {
    font-size: 14px;
    color: #3a5a6e;
    margin-bottom: 16px;
}

.contact-methods {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #F5F7FA;
    border-radius: 16px;
    border: 2px solid #e0e7ed;
    cursor: pointer;
    transition: all 0.25s ease;
    flex: 1;
    min-width: 70px;
}

.contact-method i {
    font-size: 20px;
    color: #5a7a8a;
}

.contact-method span {
    font-size: 11px;
    font-weight: 500;
    color: #1e2a3a;
}

.contact-method:hover {
    border-color: #00A3C4;
    background: #f0f9fc;
}

.contact-method.active {
    border-color: #00A3C4;
    background: linear-gradient(135deg, #E6F7FB, #daf0f5);
}

.contact-method.active i {
    color: #00A3C4;
}

.contact-method input {
    display: none;
}

.contact-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.form-group-modal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-modal label {
    font-weight: 700;
    color: #1e2a3a;
    font-size: 14px;
}

.form-group-modal input {
    padding: 12px 16px;
    border-radius: 20px;
    border: 1.5px solid #d1d9e6;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
    color: #1e2a3a;
}

.form-group-modal input:focus {
    border-color: #00A3C4;
    box-shadow: 0 0 0 3px rgba(0, 163, 196, 0.15);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 28px;
    border-top: 1px solid #eef2f5;
    background: #fafcfd;
}

.btn-secondary {
    background: #e0e7ed;
    color: #1e2a3a;
    padding: 10px 28px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
}


.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.success-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.success-modal {
    background: white;
    border-radius: 32px;
    width: 90%;
    max-width: 400px;
    padding: 40px 32px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.3);
}

.success-modal-overlay.active .success-modal {
    transform: scale(1);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00A3C4, #0B2B40);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: successPop 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.success-icon i {
    font-size: 44px;
    color: white;
}

.success-modal h3 {
    font-size: 24px;
    color: #0B2B40;
    margin-bottom: 12px;
}

.success-modal p {
    color: #3a5a6e;
    margin-bottom: 28px;
    line-height: 1.5;
}

.success-btn {
    background: linear-gradient(135deg, #00A3C4, #008aa8);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 163, 196, 0.3);
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}


@media (max-width: 992px) {
    .hero-title { font-size: 36px; }
    .hero-container, .sketch-container { flex-direction: column; text-align: center; }
    .hero-desc { max-width: 100%; }
    .hero-note { justify-content: center; }
    .section-header h2 { font-size: 36px; }
    .sketch-text h2 { font-size: 36px; }
    .work-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .footer-main { flex-direction: column; text-align: center; }
    .footer-col a { text-align: center; }
    .section-header h2 { font-size: 32px; }
    .sketch-text h2 { font-size: 32px; }
    .about-card { min-width: 260px; }
    .work-grid { grid-template-columns: 1fr; gap: 20px; }
    .work-card { padding: 28px 24px; }
    .work-number { font-size: 56px; letter-spacing: -2px; }
    .work-title { font-size: 20px; }
    .step-dot { width: 32px; height: 32px; font-size: 12px; }
    .step-line { width: 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .section-header h2 { font-size: 28px; }
    .sketch-text h2 { font-size: 28px; }
    .step-dot { width: 28px; height: 28px; font-size: 11px; }
    .step-line { width: 15px; }
    .work-card { padding: 24px 20px; }
    .work-number { font-size: 48px; letter-spacing: -2px; }
    .work-title { font-size: 18px; }
    .work-desc { font-size: 14px; }
    .contact-methods { gap: 8px; }
    .contact-method { padding: 8px 10px; min-width: 60px; }
    .contact-method i { font-size: 18px; }
    .contact-method span { font-size: 10px; }
    .success-modal { padding: 32px 24px; }
    .success-icon { width: 64px; height: 64px; }
    .success-icon i { font-size: 32px; }
    .success-modal h3 { font-size: 20px; }
}

.modal-overlay,
.success-modal-overlay,
.error-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active,
.success-modal-overlay.active,
.error-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}


.modal-overlay {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.success-modal-overlay,
.error-modal-overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-container {
    background: white;
    border-radius: 36px;
    width: 90%;
    max-width: 580px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

.success-modal,
.error-modal {
    background: white;
    border-radius: 32px;
    width: 90%;
    max-width: 400px;
    padding: 40px 32px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.3);
}

.success-modal-overlay.active .success-modal,
.error-modal-overlay.active .error-modal {
    transform: scale(1);
}

@keyframes modalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00A3C4, #0B2B40);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: successPop 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.error-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: errorShake 0.5s ease;
}

.success-icon i,
.error-icon i {
    font-size: 44px;
    color: white;
}

.success-modal h3 {
    font-size: 24px;
    color: #0B2B40;
    margin-bottom: 12px;
}

.error-modal h3 {
    font-size: 24px;
    color: #e74c3c;
    margin-bottom: 12px;
}

.success-modal p,
.error-modal p {
    color: #3a5a6e;
    margin-bottom: 28px;
    line-height: 1.5;
}

.success-btn {
    background: linear-gradient(135deg, #00A3C4, #008aa8);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.error-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.success-btn:hover,
.error-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.nav .mobile-contacts {
    display: none !important;
}

@media (max-width: 768px) {
    .nav .mobile-contacts {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 163, 196, 0.3);
    }
}
/* ===== Калькулятор предварительной стоимости ===== */
.calculator {
    padding: 80px 0;
    background: linear-gradient(135deg, #E6F7FB 0%, #f0fafc 100%);
}

.calc-card {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 32px;
    padding: 44px;
    box-shadow: 0 20px 40px -20px rgba(11, 43, 64, 0.15);
    border: 1px solid rgba(0, 163, 196, 0.1);
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 32px;
}

.calc-field {
    display: flex;
    flex-direction: column;
}

.calc-field-modeling {
    grid-column: 1 / -1;
}

.calc-field label {
    font-weight: 700;
    font-size: 15px;
    color: #0B2B40;
    margin-bottom: 10px;
}

.calc-select,
.calc-input {
    width: 100%;
    max-width: 100%;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #0B2B40;
    background: #f8fafc;
    border: 1.5px solid #e0e7ed;
    border-radius: 14px;
    padding: 13px 16px;
    outline: none;
    transition: all 0.25s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.calc-select {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3e%3cpath fill='%23006c85' d='M1 1l5 5 5-5'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px;
}

.calc-select:focus,
.calc-input:focus {
    border-color: #00A3C4;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 163, 196, 0.1);
}

.calc-hint {
    font-size: 12.5px;
    color: #6b7c8a;
    margin-top: 8px;
    line-height: 1.4;
}

.calc-toggle {
    display: flex;
    gap: 10px;
}

.calc-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 52px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    color: #0B2B40;
    background: #f8fafc;
    border: 1.5px solid #e0e7ed;
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
}

.calc-toggle-btn.active {
    background: linear-gradient(135deg, #00A3C4 0%, #008aa8 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(0, 163, 196, 0.25);
}

.calc-result {
    background: #f8fafc;
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 24px;
}

.calc-result-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #3a5a6e;
    padding: 6px 0;
}

.calc-result-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    font-weight: 900;
    color: #0B2B40;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1.5px dashed #cbdbe0;
}

.calc-result-total span:last-child {
    color: #00A3C4;
}

.calc-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #6b7c8a;
    line-height: 1.6;
    margin-bottom: 28px;
}

.calc-disclaimer i {
    color: #00A3C4;
    margin-top: 3px;
}

.calc-cta {
    display: flex;
    justify-content: center;
}

@media (max-width: 640px) {
    .calc-card {
        padding: 28px 20px;
        border-radius: 24px;
        max-width: 100%;
    }
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .calc-toggle {
        flex-direction: column;
    }
    .calc-select {
        font-size: 13.5px;
        padding: 13px 34px 13px 14px;
        background-position: right 12px center;
        background-size: 11px;
    }
    .calc-result {
        padding: 20px;
    }
    .calc-result-row,
    .calc-result-total {
        flex-wrap: wrap;
        gap: 4px;
    }
    .calc-result-total {
        font-size: 20px;
    }
}
