/*
Theme Name: ГенТех
Theme URI: http://localhost:8090/
Author: Codex
Description: Local WordPress theme for the ГенТех website.
Version: 1.0.0
Text Domain: gentech
*/

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

#dc-root,
#dc-root > .sc-host {
    min-height: 100%;
}

#dc-root header > div {
    box-sizing: border-box;
    gap: clamp(28px, 3vw, 44px) !important;
    margin: 0 !important;
    max-width: none !important;
    padding-inline: clamp(24px, 3vw, 40px) !important;
    width: 100%;
}

#dc-root header nav {
    align-items: center;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    gap: 24px !important;
    margin-left: 0 !important;
    min-width: 0;
    white-space: nowrap;
}

#dc-root header > div > a:first-child {
    margin-left: 0 !important;
}

#dc-root header > div > a:first-child img {
    width: 40px !important;
}

#dc-root header nav + div {
    margin-right: 0 !important;
}

#dc-root header nav + div a[href="#contact"] {
    margin-right: 0 !important;
}

#dc-root header nav a {
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    display: inline-flex;
    line-height: 1.2;
    outline: 0 !important;
    padding: 6px 0 !important;
}

#dc-root header nav a:hover {
    border: 0 !important;
    box-shadow: none !important;
    color: #2E8B57 !important;
    outline: 0 !important;
}

#dc-root header nav a:focus,
#dc-root header nav a:focus-visible {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.gt-menu-toggle {
    display: none;
}

@media (max-width: 1100px) {
    #dc-root header > div {
        gap: 18px !important;
        padding-inline: 20px !important;
    }

    #dc-root header nav {
        gap: 16px !important;
    }

    #dc-root header nav a {
        font-size: 14px !important;
    }
}

@media (max-width: 900px) {
    #dc-root header > div {
        height: auto !important;
        min-height: 72px;
        padding-block: 12px !important;
        flex-wrap: wrap;
    }

    #dc-root header nav {
        width: 100%;
        order: 3;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    #dc-root header nav::-webkit-scrollbar {
        display: none;
    }

    #dc-root header nav + div {
        margin-left: auto !important;
    }
}

@media (max-width: 640px) {
    #dc-root header > div {
        align-items: flex-start !important;
        gap: 12px !important;
        padding-inline: 16px !important;
    }

    #dc-root header nav {
        justify-content: flex-start;
    }

    #dc-root header nav + div {
        width: 100%;
        gap: 10px !important;
    }

    #dc-root header nav + div a[href^="tel:"] {
        font-size: 13px !important;
    }

    #dc-root header nav + div a[href="#contact"] {
        margin-left: auto;
        padding: 10px 14px !important;
    }
}

@media (max-width: 1024px) {
    .gt-page [style*="grid-template-columns: repeat(5, 1fr)"],
    .gt-page [style*="grid-template-columns: repeat(4, 1fr)"],
    .gt-page [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .gt-page [style*="grid-template-columns: 1fr 1fr"],
    .gt-page [style*="grid-template-columns: 1.6fr 1fr"],
    .gt-page [style*="grid-template-columns: 1.1fr 1.2fr 0.55fr"],
    .gt-page [style*="grid-template-columns: 92px 1.5fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .gt-page h1 {
        font-size: clamp(44px, 6vw, 56px) !important;
    }

    .gt-page h2 {
        font-size: clamp(34px, 5vw, 46px) !important;
    }
}

@media (max-width: 760px) {
    html,
    body,
    #dc-root,
    #dc-root > .sc-host,
    .gt-page {
        max-width: 100%;
        overflow-x: hidden;
    }

    #dc-root,
    #dc-root > .sc-host {
        height: auto !important;
        min-height: 100%;
    }

    #dc-root header {
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
    }

    #dc-root header > div {
        align-items: center !important;
        gap: 10px !important;
        min-height: 70px;
        padding: 10px 16px !important;
    }

    #dc-root header > div > a:first-child {
        gap: 8px !important;
        order: 1;
    }

    #dc-root header > div > a:first-child img {
        height: 32px !important;
        width: 32px !important;
    }

    #dc-root header > div > a:first-child span {
        font-size: 18px !important;
    }

    .gt-menu-toggle {
        align-items: center;
        background: #0B3B5E;
        border: 0;
        border-radius: 12px;
        box-shadow: none;
        cursor: pointer;
        display: inline-flex;
        flex-direction: column;
        gap: 4px;
        height: 38px;
        justify-content: center;
        order: 3;
        padding: 0;
        width: 42px;
    }

    .gt-menu-toggle span {
        background: #fff;
        border-radius: 999px;
        display: block;
        height: 2px;
        transition: transform .2s, opacity .2s;
        width: 18px;
    }

    header.gt-menu-open .gt-menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    header.gt-menu-open .gt-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    header.gt-menu-open .gt-menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    #dc-root header nav {
        display: grid !important;
        gap: 8px !important;
        grid-template-columns: 1fr !important;
        margin: 0 !important;
        max-width: none;
        max-height: 0;
        opacity: 0;
        order: 4;
        overflow: hidden;
        padding: 0 !important;
        transition: max-height .25s ease, opacity .2s ease, padding .2s ease;
        width: 100%;
    }

    #dc-root header.gt-menu-open nav {
        max-height: 360px;
        opacity: 1;
        padding-top: 8px !important;
    }

    #dc-root header nav a {
        background: rgba(255, 255, 255, 0.72);
        border: 0 !important;
        border-radius: 12px !important;
        box-shadow: inset 0 0 0 1px rgba(11, 59, 94, 0.08) !important;
        font-size: 13px !important;
        justify-content: center;
        padding: 11px 12px !important;
        width: 100%;
    }

    #dc-root header nav + div {
        gap: 8px !important;
        margin-left: auto !important;
        order: 2;
        width: auto !important;
    }

    #dc-root header nav + div a[href^="tel:"] {
        align-items: center;
        background: rgba(208, 226, 232, 0.8);
        border-radius: 999px;
        display: inline-flex;
        font-size: 0 !important;
        height: 36px;
        justify-content: center;
        padding: 0 12px;
    }

    #dc-root header nav + div a[href^="tel:"]::after {
        color: #0B3B5E;
        content: "Позвонить";
        font-size: 13px;
        font-weight: 800;
    }

    #dc-root header nav + div a[href="#contact"] {
        display: none !important;
    }

    .gt-page h1 {
        font-size: clamp(34px, 10.5vw, 44px) !important;
        letter-spacing: 0 !important;
        line-height: 1.08 !important;
        text-wrap: balance;
    }

    .gt-page h2 {
        font-size: clamp(28px, 8vw, 36px) !important;
        letter-spacing: 0 !important;
        line-height: 1.14 !important;
        text-wrap: balance;
    }

    .gt-page h3 {
        font-size: clamp(20px, 5.8vw, 26px) !important;
        letter-spacing: 0 !important;
        line-height: 1.2 !important;
    }

    .gt-page p,
    .gt-page li,
    .gt-page input,
    .gt-page textarea,
    .gt-page button,
    .gt-page a {
        max-width: 100% !important;
    }

    .gt-page p {
        font-size: clamp(15px, 4.1vw, 17px) !important;
        line-height: 1.55 !important;
    }

    .gt-page > section:not([aria-hidden]) {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .gt-page > header + section {
        padding-bottom: 62px !important;
        padding-top: 118px !important;
    }

    .gt-page [style*="padding: 150px"],
    .gt-page [style*="padding: 130px"],
    .gt-page [style*="padding: 110px"],
    .gt-page [style*="padding: 100px"],
    .gt-page [style*="padding: 96px"],
    .gt-page [style*="padding: 90px"] {
        padding-bottom: 56px !important;
        padding-top: 56px !important;
    }

    .gt-page [style*="padding: 76px"] {
        padding-bottom: 46px !important;
        padding-top: 46px !important;
    }

    .gt-page [style*="padding: 48px"],
    .gt-page [style*="padding: 44px"],
    .gt-page [style*="padding: 40px"],
    .gt-page [style*="padding: 36px"],
    .gt-page [style*="padding: 34px"],
    .gt-page [style*="padding: 32px"],
    .gt-page [style*="padding: 30px"],
    .gt-page [style*="padding: 28px"] {
        padding: 24px !important;
    }

    .gt-page [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .gt-page [style*="display: grid"] {
        gap: 20px !important;
    }

    .gt-page [style*="display: flex"][style*="justify-content: space-between"] {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .gt-page [style*="display: flex"][style*="gap: 14px"] {
        gap: 10px !important;
    }

    .gt-page a[style*="padding: 16px 32px"],
    .gt-page a[style*="padding: 16px 30px"],
    .gt-page button[type="submit"] {
        display: inline-flex !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .gt-page input,
    .gt-page textarea {
        width: 100% !important;
    }

    .gt-page img,
    .gt-page iframe {
        max-width: 100% !important;
    }

    .gt-page [style*="height: 460px"] {
        height: 290px !important;
    }

    .gt-page [style*="height: 360px"] {
        height: 260px !important;
    }

    .gt-page [style*="height: 190px"] {
        height: 210px !important;
    }

    .gt-page [style*="height: 160px"] {
        height: 190px !important;
    }

    .gt-page [style*="min-height: 360px"] {
        min-height: 300px !important;
    }

    .gt-page [style*="width: 320px"],
    .gt-page [style*="width: 280px"],
    .gt-page [style*="width: 220px"] {
        opacity: 0.24 !important;
    }

    .gt-page [style*="font-family: 'JetBrains Mono'"] {
        overflow-wrap: anywhere;
    }

    .gt-page footer > div[style*="display: grid"],
    .gt-page footer > div[style*="display: flex"] {
        align-items: flex-start !important;
        grid-template-columns: 1fr !important;
    }

    .gt-page footer [style*="display: flex"][style*="gap: 24px"] {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .gt-page [style*="position: fixed"][style*="width: 300px"] {
        bottom: 92px !important;
        left: 18px !important;
        right: 18px !important;
        width: auto !important;
    }

    .gt-page [style*="position: fixed"][style*="bottom: 28px"][style*="left: 50%"] {
        left: 18px !important;
        right: 18px !important;
        transform: none !important;
        width: auto !important;
    }
}

@media (max-width: 420px) {
    #dc-root header > div {
        padding-inline: 14px !important;
    }

    #dc-root header nav {
        width: 100%;
    }

    .gt-page > section:not([aria-hidden]) {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .gt-page > header + section {
        padding-top: 116px !important;
    }

    .gt-page [style*="padding: 48px"],
    .gt-page [style*="padding: 44px"],
    .gt-page [style*="padding: 40px"],
    .gt-page [style*="padding: 36px"],
    .gt-page [style*="padding: 34px"],
    .gt-page [style*="padding: 32px"],
    .gt-page [style*="padding: 30px"],
    .gt-page [style*="padding: 28px"],
    .gt-page [style*="padding: 24px"] {
        padding: 20px !important;
    }
}
