:root {
    --color-primary: #0c7b93;
    --color-primary-dark: #075f73;
    --color-accent: #00a8cc;
    --color-ink: #10233f;
    --color-muted: #5f6f82;
    --color-surface: #ffffff;
    --color-surface-soft: #f4f7fb;
    --color-border: rgba(16, 35, 63, 0.1);
    --shadow-soft: 0 24px 70px rgba(16, 35, 63, 0.1);
    --shadow-card: 0 16px 45px rgba(16, 35, 63, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    margin-top: 76px;
    color: var(--color-ink);
    background: var(--color-surface);
    -webkit-font-smoothing: antialiased;
}

.header-wrapper {
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 30px rgba(16, 35, 63, 0.05);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

body[class^=page-template-] .header-wrapper {
    background: rgba(255, 255, 255, 0.88);
}

.site-header {
    display: flex;
    align-items: center;
    gap: 34px;
    width: 100%;
    height: 76px;
    max-height: none;
    overflow: visible;
}

.site-header.open {
    max-height: none;
}

.header-brand {
    display: flex;
    flex: 0 0 142px;
    align-items: center;
}

.header-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.main-nav {
    display: flex;
    align-self: stretch;
    flex: 1 1 auto;
    justify-content: center;
    gap: 12px;
    margin: 0;
}

.main-nav .nav-item {
    display: flex;
    align-items: stretch;
    padding: 0;
}

.main-nav a {
    display: flex;
    align-items: center;
    width: auto;
    padding: 0 16px;
    color: var(--color-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.08em;
}

.underline {
    bottom: 16px;
    height: 2px;
    border-radius: 2px;
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.header-telegram {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 4px 16px 4px 5px;
    color: #fff;
    background: var(--color-ink);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.header-telegram:hover {
    color: #fff;
    background: var(--color-primary-dark);
    box-shadow: 0 10px 24px rgba(12, 123, 147, 0.22);
    transform: translateY(-2px);
}

.header-telegram img {
    width: 36px;
    height: 36px;
}

.menu-dropdown {
    position: static;
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px 9px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 13px;
}

.menu-dropdown > span {
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.open .menu-dropdown > span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.site-header.open .menu-dropdown > span:nth-child(2) {
    opacity: 0;
}

.site-header.open .menu-dropdown > span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.btn {
    min-height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    box-shadow: 0 14px 30px rgba(12, 123, 147, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    color: #fff;
    box-shadow: 0 18px 36px rgba(12, 123, 147, 0.3);
    transform: translateY(-2px);
}

.section1 {
    position: relative;
    padding-bottom: 170px;
    background:
        radial-gradient(circle at 82% 18%, rgba(0, 168, 204, 0.16), transparent 30%),
        linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

.section1::before {
    position: absolute;
    top: 72px;
    left: -140px;
    width: 320px;
    height: 320px;
    background: rgba(12, 123, 147, 0.06);
    border-radius: 50%;
    content: '';
}

.section1-panel-left {
    max-width: 720px;
    padding-top: 76px;
}

.section1-panel-left .logo {
    width: 214px;
    margin-bottom: 52px;
}

.site-main-title {
    max-width: 720px;
    color: var(--color-ink);
    font-size: clamp(46px, 4.25vw, 68px);
    line-height: 1.13;
    letter-spacing: -0.045em;
}

.section1-image img {
    top: 8px;
    left: -150px;
    max-width: 1260px;
    filter: drop-shadow(0 30px 55px rgba(16, 35, 63, 0.13));
}

.section2 {
    margin-top: -130px;
    padding-top: 110px;
    padding-bottom: 120px;
}

.skills-box-content,
.review-slider-item,
.panel {
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.skills-box-content {
    border-radius: 34px;
}

.skills-box-title {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    box-shadow: 0 12px 24px rgba(12, 123, 147, 0.2);
}

.section2-panel-right h2,
.section3 h2,
.section4 h2,
.section5 h2,
.section6-content h2 {
    color: var(--color-ink);
    font-size: clamp(34px, 3vw, 46px);
    letter-spacing: -0.03em;
}

.site-text-size-big {
    color: var(--color-muted);
    line-height: 1.65;
}

.review-slider-item {
    background: var(--color-surface);
    border-radius: 24px;
}

.section3 {
    padding: 92px 0;
    background: var(--color-surface-soft);
}

.panel {
    padding: 72px 54px;
    border-radius: 34px;
}

.number {
    color: var(--color-ink);
    font-size: clamp(56px, 5vw, 78px);
    letter-spacing: -0.05em;
}

.number-text {
    color: var(--color-muted);
    font-size: 20px;
}

.section4 {
    padding: 96px 0;
    background: linear-gradient(135deg, #0d2843 0%, #0c7b93 100%);
}

.section4 h2 {
    margin-bottom: 52px;
    color: #fff;
}

.service-item {
    display: flex;
    align-items: center;
}

a.service-item-block {
    width: 100%;
    padding: 34px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.service-item.active a.service-item-block,
a.service-item-block:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-4px);
}

.service-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.service-img {
    filter: drop-shadow(0 30px 40px rgba(5, 23, 38, 0.22));
}

.section5 {
    padding-top: 96px;
    padding-bottom: 110px;
    background: #fff;
}

.work-slide-item,
.works-slider .swiper-slide img {
    border-radius: 24px;
}

.work-slide-item {
    box-shadow: var(--shadow-card);
}

.work-slide-bottom-layout {
    bottom: 20px;
    width: calc(100% - 40px);
    border-radius: 18px;
}

.area-main {
    background: linear-gradient(135deg, #0c7b93 0%, #65b9c2 100%);
}

.lower-footer {
    padding: 38px 0;
    background: #0b1f33;
}

.lower-footer .row {
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.lower-footer p {
    color: rgba(255, 255, 255, 0.72);
    text-align: left;
    line-height: 1.65;
}

.lower-footer a.policy-link {
    color: rgba(255, 255, 255, 0.72) !important;
    text-underline-offset: 4px;
}

a.tel {
    margin-right: 0;
    font-size: 22px;
}

.lower-footer-col-2 span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.58);
}

.socials a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    height: auto;
    min-height: 46px;
    margin: 0;
    padding: 3px 16px 3px 3px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.socials a img {
    width: 40px;
    height: 40px;
}

.modal__content,
.text-field,
.file-field,
.text-field-select,
.text-field-select-currency {
    border-radius: 14px;
}

@media (max-width: 1200px) {
    .site-header {
        gap: 18px;
    }

    .main-nav {
        gap: 2px;
    }

    .main-nav a {
        padding: 0 10px;
        font-size: 12px;
    }

    .section1-image img {
        left: -120px;
        max-width: 1120px;
    }
}

@media (max-width: 993px) {
    body {
        margin-top: 66px;
    }

    .site-header {
        height: 66px;
        border-bottom: 0;
    }

    .header-brand {
        flex-basis: 132px;
    }

    .menu-dropdown {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
        padding: 12px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--color-border);
        border-radius: 20px;
        box-shadow: var(--shadow-soft);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .site-header.open .main-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav .nav-item,
    .main-nav .nav-item.active,
    .site-header.open .main-nav .nav-item {
        order: initial;
        width: 100%;
    }

    .main-nav a {
        width: 100%;
        min-height: 48px;
        padding: 0 16px;
        border-radius: 12px;
        font-size: 13px;
    }

    .main-nav .nav-item.active a,
    .main-nav a:hover {
        background: var(--color-surface-soft);
    }

    .main-nav .underline {
        display: none;
    }

    .section1 {
        padding-bottom: 130px;
    }

    .section1-panel-left {
        padding-top: 64px;
    }

    .section1-image img {
        opacity: 0.22;
    }

    .section2 {
        margin-top: -70px;
    }

    .lower-footer .row {
        text-align: center;
    }

    .lower-footer .lower-footer-col-1,
    .lower-footer .lower-footer-col-2,
    .lower-footer .lower-footer-col-3 {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .lower-footer .lower-footer-col-1 {
        order: 3;
    }

    .lower-footer p {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header-telegram {
        min-width: 44px;
        padding-right: 4px;
    }

    .header-telegram span {
        display: none;
    }

    .header-telegram img {
        width: 36px;
        height: 36px;
    }

    .section1 {
        padding-bottom: 64px;
    }

    .section1 .row > .col {
        display: none;
    }

    .section1-panel-left {
        padding-top: 52px;
    }

    .section1-panel-left .logo {
        width: 182px;
        margin-bottom: 36px;
    }

    .site-main-title {
        font-size: clamp(38px, 11vw, 52px);
        line-height: 1.12;
    }

    .section2 {
        margin-top: 0;
        padding-top: 56px;
        padding-bottom: 80px;
    }

    .section2-panel-left {
        padding-top: 82px;
        padding-bottom: 70px;
    }

    .review-slider-item {
        padding: 30px 20px;
    }

    .section3,
    .section4,
    .section5 {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .panel {
        padding: 48px 24px;
        border-radius: 26px;
    }

    a.service-item-block {
        padding: 28px 24px;
    }

    .work-slide-bottom-layout {
        width: calc(100% - 24px);
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .site-header {
        gap: 10px;
    }

    .header-brand {
        flex-basis: 112px;
        margin-right: auto;
    }

    .header-actions {
        gap: 8px;
    }

    .site-main-title {
        font-size: 36px;
    }

    .review-slider-item {
        display: block;
    }

    .review-slider-content {
        width: 100%;
        padding-top: 20px;
        padding-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
