@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background: #F8FAFC;
    color: #111827;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid #E5E7EB;
    z-index: 100;
}

header .container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    color: #2563EB;
    align-items: center;
}

.logo img {
    height: 40px;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: #2563EB;
    font-weight: 600;
    transition: .3s;
}

nav a:hover {
    opacity: .7;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563EB;
    color: #fff;
    padding: 15px 34px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: .25s;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #2563EB;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
    transition: .3s;
}

.btn-small:hover {
    background: #1D4ED8;
}

.btn:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    padding: 14px 28px;
    border: 2px solid #2563EB;
    color: #2563EB;
    text-decoration: none;
    border-radius: 10px;
    transition: .3s;
}

.btn-outline:hover {
    background: #2563EB;
    color: white;
}

.hero {
    padding-top: 180px;
    padding-bottom: 160px;
    text-align: center;
}

.hero h1 {
    font-size: 60px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero p {
    font-size: 20px;
    color: #64748B;
    max-width: 700px;
    margin: auto;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.about {
    background: #F1F5F9;
    padding: 100px 0;
}

.section-title {
    text-transform: uppercase;
    font-size: 14px;
    color: #64748B;
    margin-bottom: 20px;
}

.about h2 {
    font-size: 42px;
    margin-bottom: 50px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #2563EB22;
}

.feature h3 {
    color: #2563EB;
    margin-bottom: 10px;
    font-size: 24px;
}

.work-image {
    height: 230px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

@media (max-width:1100px) {
    .works-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contacts-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width:700px) {
    .works {
        padding: 70px 0;
    }
    .work-image {
        height: 230px;
        overflow: hidden;
    }
    .work-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .work-content {
        padding: 22px;
    }
    .work-content h3 {
        font-size: 22px;
    }
    .contacts {
        padding: 70px 0;
    }
    .row {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 25px;
    }
    .contacts-info h2 {
        font-size: 24px;
    }
}


/* ===========================
   SERVICES
=========================== */

.services {
    padding: 110px 0;
    background: #fff;
}

.services h2 {
    max-width: 780px;
    margin-bottom: 55px;
    font-size: 40px;
    line-height: 1.25;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: #F1F5F9;
    border-radius: 18px;
    padding: 30px;
    transition: .3s;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: #2563EB;
    box-shadow: 0 12px 30px rgba(37, 99, 235, .08);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 18px;
    color: #111827;
}

.service-card p {
    color: #64748B;
    line-height: 1.7;
    font-size: 16px;
}


/* ===========================
   WORKS
=========================== */

.works {
    padding: 110px 0;
    background: #F1F5F9;
}

.section-description {
    max-width: 700px;
    margin: 20px 0 60px;
    color: #64748B;
    line-height: 1.8;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.work-card {
    background: #fff;
    border: 1px solid #D6E4FF;
    border-radius: 18px;
    overflow: hidden;
    transition: .3s;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, .12);
}

.work-image {
    height: 230px;
    background: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-weight: 600;
    font-size: 18px;
}

.work-content {
    padding: 28px;
}

.work-content h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.work-content p {
    color: #64748B;
    line-height: 1.7;
    margin-bottom: 20px;
}

.work-tags {
    display: block;
    margin-bottom: 24px;
    color: #2563EB;
    font-size: 15px;
    font-weight: 600;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 22px;
    background: #2563EB;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: .3s;
}

.btn-small:hover {
    background: #1D4ED8;
}


/* ===========================
   CONTACTS
=========================== */

.contacts {
    background: #F1F5F9;
    padding: 100px 0;
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 60px;
    align-items: start;
}

.contacts-info h2 {
    margin: 15px 0 30px;
    font-size: 30px;
    line-height: 1.45;
}

.contacts-info h2 span {
    color: #2563EB;
}

.contacts-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.contacts-info li {
    margin-bottom: 16px;
    line-height: 1.7;
}

.contacts-note {
    color: #64748B;
    line-height: 1.7;
}


/* ===========================
   FORM
=========================== */

.contact-form {
    background: #fff;
    border: 1px solid #2563EB;
    border-radius: 18px;
    padding: 35px;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
}

.field label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2563EB;
}

.field input,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    background: #F8FAFC;
    font-size: 16px;
    font-family: inherit;
    resize: none;
    transition: .25s;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.contact-form .btn {
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 15px 30px;
}


/* ===========================
   FOOTER
=========================== */

footer {
    border-top: 1px solid #D6DCE5;
    background: #F1F5F9;
}

.footer {
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #64748B;
    font-size: 14px;
}


/* ===========================
    ANIMATIONS
=========================== */

.hidden {
    opacity: 0;
    transform: translateY(60px);
    transition: 1s;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

header {
    transition: .35s;
}

.header-scroll {
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}


/* ===========================
   MODAL
=========================== */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 999;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: min(850px, 92%);
    max-height: 85vh;
    background: #fff;
    border-radius: 18px;
    padding: 35px;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: .3s;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal h2 {
    margin-bottom: 30px;
    font-size: 34px;
}

.modal-top {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    align-items: start;
}

.modal-top img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.modal-description {
    color: #64748B;
    line-height: 1.9;
    white-space: pre-line;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #F1F5F9;
    cursor: pointer;
    font-size: 24px;
    transition: .25s;
}

.modal-close:hover {
    background: #2563EB;
    color: white;
}

body.modal-open {
    overflow: hidden;
}

@media(max-width:768px) {
    .modal-content {
        padding: 22px;
    }
    .modal h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }
    .modal-top {
        grid-template-columns: 1fr;
    }
    .modal-top img {
        height: 200px;
    }
}


/* ===========================
   BURGER
=========================== */

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.burger span {
    width: 28px;
    height: 3px;
    background: #2563EB;
    border-radius: 3px;
}

@media(max-width:768px) {
    .modal-content {
        padding: 20px;
    }
    .modal-top {
        grid-template-columns: 1fr;
    }
    .modal-top img {
        height: 180px;
    }
    .modal-info {
        grid-template-columns: 1fr;
    }
}

@media(max-width:768px) {
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 30px;
        transition: .35s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    }
    nav.active {
        left: 0;
    }
    .burger {
        display: flex;
    }
    header .btn {
        display: none;
    }
}

@media(max-width:768px) {
    .hero {
        padding-top: 120px;
        padding-bottom: 70px;
    }
    .hero h1 {
        font-size: 34px;
        line-height: 1.2;
    }
    .hero p {
        font-size: 17px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
}

@media(max-width:768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about h2 {
        font-size: 30px;
    }
    .features {
        grid-template-columns: 1fr;
    }
}

@media(max-width:768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .services h2 {
        font-size: 30px;
    }
    .service-card {
        padding: 24px;
    }
}

@media(max-width:768px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
    .work-image {
        height: 220px;
    }
    .work-content {
        padding: 22px;
    }
}

@media(max-width:768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    .modal img {
        height: 220px;
    }
    .modal-body {
        padding: 20px;
    }
    .modal-body h2 {
        font-size: 24px;
    }
}

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

.container {
    width: min(1200px, 100%);
    padding: 0 20px;
}

@media(max-width:768px) {
    .btn,
    .btn-outline,
    .btn-small {
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media(max-width:768px) {
    header .container {
        height: 70px;
    }
    .logo img {
        height: 34px;
    }
}


/* =====================================
   CONTACTS MOBILE
===================================== */

@media (max-width:768px) {
    .contacts {
        padding: 60px 0;
    }
    .contacts-wrapper {
        display: flex;
        flex-direction: column;
        gap: 35px;
    }
    .contacts-info {
        order: 1;
    }
    .contact-form {
        order: 2;
        width: 100%;
        padding: 24px;
        border-radius: 16px;
    }
    .contacts-info h2 {
        font-size: 28px;
        line-height: 1.35;
        margin: 15px 0 25px;
    }
    .contacts-info ul {
        margin-bottom: 20px;
    }
    .contacts-info li {
        font-size: 15px;
        line-height: 1.6;
    }
    .contacts-note {
        font-size: 15px;
    }
    .row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .field {
        margin-bottom: 18px;
    }
    .field label {
        font-size: 14px;
    }
    .field input,
    .field textarea {
        width: 100%;
        font-size: 16px;
        padding: 14px;
        border-radius: 10px;
    }
    .field textarea {
        min-height: 140px;
    }
    .contact-form .btn {
        width: 100%;
        height: 52px;
        font-size: 16px;
    }
}

.contacts-info li,
.contacts-note {
    word-break: break-word;
}

.contacts-info a {
    color: #2563EB;
    text-decoration: none;
}

.contacts-info a:hover {
    text-decoration: underline;
}

.works-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding-bottom: 15px;
}

.work-card {
    flex: 0 0 380px;
    scroll-snap-align: start;
}

@media (max-width:1100px) {
    .work-card {
        flex: 0 0 340px;
    }
}

@media (max-width:768px) {
    .works-grid {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    .work-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
    }
}

.works-grid::-webkit-scrollbar {
    height: 8px;
}

.works-grid::-webkit-scrollbar-thumb {
    background: #2563EB;
    border-radius: 20px;
}

.works-grid::-webkit-scrollbar-track {
    background: #E5E7EB;
}

@media (max-width:768px) {
    .works-grid {
        padding-left: 20px;
        padding-right: 20px;
        margin-left: -20px;
        margin-right: -20px;
    }
}

@media (max-width:768px) {
    .work-card {
        flex: 0 0 300px;
    }
}


/* ===========================
   CONTACT FORM
=========================== */

.honeypot {
    display: none;
}

.submit-btn {
    position: relative;
    min-width: 220px;
}

.submit-btn.loading {
    pointer-events: none;
    opacity: .8;
}

.loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .loader {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-status {
    margin-top: 18px;
    font-size: 15px;
    font-weight: 500;
    min-height: 22px;
}

.form-status.success {
    color: #16a34a;
}

.form-status.error {
    color: #dc2626;
}