/*
Theme Name: EngExp
Description: Классическая адаптивная тема для ООО «Инженерные изыскания».
Author: Cyper
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: engexp
*/

:root {
    --ink: #23334a;
    --muted: #68798e;
    --blue: #173d66;
    --link: #126da8;
    --line: #e0e7ee;
    --surface: #f1f6fb;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: #edf2f7; }
body {
    margin: 0;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #084b79; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid #1884c7;
    outline-offset: 4px;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
svg { vertical-align: middle; }
p, ul, ol, blockquote { margin: 0 0 1.25em; }
ul, ol { padding-left: 1.5em; }
li + li { margin-top: .55em; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 650; line-height: 1.3; }
h1 { margin: 0 0 28px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -1.4px; }
h2 { margin: 36px 0 18px; font-size: 25px; letter-spacing: -.5px; }
h3 { margin: 24px 0 12px; font-size: 20px; }
h4, h5, h6 { margin: 22px 0 10px; font-size: 17px; }
button, input, select, textarea { font: inherit; }
button, input[type="submit"] { cursor: pointer; }
button { line-height: 1.4; }
hr { margin: 30px 0; border: 0; border-top: 1px solid var(--line); }
pre { padding: 18px; overflow: auto; background: var(--surface); border-radius: 6px; }
blockquote { border-left: 3px solid #79acd1; padding-left: 20px; color: var(--muted); }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100000;
    width: auto;
    height: auto;
    padding: 12px 18px;
    margin: 0;
    clip: auto;
    color: white;
    background: var(--blue);
}
.site-shell {
    display: flex;
    flex-direction: column;
    width: min(100%, 1280px);
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 0 1px var(--line);
}
body.admin-bar .site-shell { min-height: calc(100vh - 32px); min-height: calc(100svh - 32px); }
.site-container { width: calc(100% - 128px); max-width: 1152px; margin-inline: auto; }
.site-header { flex: none; }
.branding { position: relative; height: 246px; }
.site-logo { position: absolute; top: 61px; left: 12px; width: 300px; }
.site-logo img { display: block; width: 100%; }
.header-collage { position: absolute; top: 7px; right: 0; width: 565px; }
.site-navigation { color: #fff; background: var(--blue); }
.navigation-inner { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.menu-panel { flex: 1; min-width: 0; }
.primary-menu, .primary-menu ul { padding: 0; margin: 0; list-style: none; }
.primary-menu { display: flex; align-items: stretch; gap: 25px; }
.primary-menu li { position: relative; margin: 0; }
.primary-menu > li > a {
    display: flex;
    align-items: center;
    min-height: 66px;
    padding: 0 4px;
    border-bottom: 3px solid transparent;
    padding-top: 3px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}
.primary-menu a:hover, .primary-menu a:focus-visible { color: #d4ecff; }
.primary-menu > .menu-item-has-children > a::after,
.primary-menu > .page_item_has_children > a::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 9px;
    margin-bottom: 3px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current_page_item > a,
.primary-menu .current_page_ancestor > a { border-bottom-color: #74b9e7; }
.primary-menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    display: none;
    min-width: 230px;
    padding: 8px;
    border: 1px solid #345675;
    border-radius: 0 0 6px 6px;
    background: var(--blue);
    box-shadow: 0 10px 24px #15304a20;
}
.primary-menu ul a { display: block; padding: 10px 12px; color: #fff; font-size: 14px; text-decoration: none; }
.primary-menu ul ul { top: 0; left: 100%; }
.primary-menu li:hover > ul, .primary-menu li:focus-within > ul { display: block; }
.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    gap: 24px;
    padding: 11px 18px;
    border: 1px solid #5c7b9c;
    border-radius: 5px;
    background: #234a73;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
}
.contact-link:hover, .contact-link.is-current { color: #fff; background: #315b86; border-color: #91b6d7; }
.menu-toggle { display: none; }
.site-main { flex: 1 0 auto; min-width: 0; padding-top: 42px; padding-bottom: 60px; }
.site-main:focus { outline: none; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; color: #8190a1; font-size: 12px; line-height: 1.6; }
.breadcrumbs a { color: #8190a1; text-decoration: none; }
.breadcrumbs > span[aria-hidden] { color: #bdc9d4; }
#content { min-width: 0; }
.front-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.entry-content { color: #526176; }
.entry-content::after { display: block; clear: both; content: ""; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2:empty, .entry-content h3:empty { display: none; }
.home.page .entry-content > p:first-child { color: var(--ink); font-size: 20px; line-height: 1.7; }
.home.page .entry-content > p:first-child strong { font-weight: 500; }
.home.page .entry-content > ul:first-of-type {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    margin: 0 0 32px;
    list-style: none;
}
.home.page .entry-content > ul:first-of-type > li {
    position: relative;
    margin: 0;
    padding: 33px 19px 19px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #526176;
    font-size: 14px;
    line-height: 1.65;
}
.home.page .entry-content > ul:first-of-type > li::before {
    position: absolute;
    top: 18px;
    left: 19px;
    width: 24px;
    height: 3px;
    background: #2383c3;
    content: "";
}
.work-sidebar {
    margin-top: 83px;
    padding: 26px 24px;
    border-top: 3px solid #1678bc;
    border-radius: 9px;
    background: var(--surface);
}
.work-sidebar h2 { margin: 0 0 18px; color: #788aa0; font-size: 11px; font-weight: 650; letter-spacing: 1.7px; text-transform: uppercase; }
.work-sidebar h3 { margin: 0 0 8px; font-size: 17px; }
.work-sidebar h3 a { color: var(--ink); text-decoration: none; }
.work-sidebar h3 a:hover { color: var(--link); }
.work-sidebar p { margin: 0; color: #697c91; font-size: 14px; line-height: 1.7; }
.work-sidebar section + section { margin-top: 22px; padding-top: 22px; border-top: 1px solid #dbe5ef; }
.sidebar-projects { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 18px; border-top: 1px solid #dbe5ef; font-size: 14px; font-weight: 600; text-decoration: none; }
.entry-meta, .entry-utility, .edit-link { color: var(--muted); font-size: 13px; }
.edit-link { margin-top: 24px; }
.hentry + .hentry { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.entry-summary { color: #526176; }
.page-links, .nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.alignleft { float: left; margin: 6px 24px 20px 0; }
.alignright { float: right; margin: 6px 0 20px 24px; }
.aligncenter { display: block; margin: 24px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { margin-top: 8px; color: var(--muted); font-size: 13px; }
.gallery { display: flex; flex-wrap: wrap; gap: 16px; }
.gallery-item { margin: 0; }
.gallery-columns-3 .gallery-item { width: calc((100% - 32px) / 3); }
.entry-content table { display: block; width: 100%; max-width: 100%; overflow: auto; border-collapse: collapse; margin: 24px 0; }
.entry-content th, .entry-content td { padding: 12px 15px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--surface); }
.entry-content iframe, .entry-content object, .entry-content embed { max-width: 100%; }
input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea, select {
    max-width: 100%;
    padding: 11px 13px;
    border: 1px solid #cbd8e4;
    border-radius: 5px;
    background: #fff;
    color: var(--ink);
    line-height: 1.5;
}
textarea { width: 100%; resize: vertical; }
input[type="submit"], .engexp-contact button {
    padding: 12px 25px;
    border: 1px solid var(--blue);
    border-radius: 5px;
    color: #fff;
    background: var(--blue);
    font-weight: 600;
}
input[type="submit"]:hover, .engexp-contact button:hover { background: #234f7b; }
.engexp-contact { max-width: 640px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.engexp-contact label { display: block; color: var(--ink); font-size: 14px; font-weight: 500; }
.engexp-contact input:not([type="hidden"]) { width: 100%; margin-top: 6px; }
.engexp-contact textarea { margin-top: 6px; min-height: 160px; }
.engexp-contact p:last-child { margin-bottom: 0; }
.entry-content [role="status"], .entry-content [role="alert"] { padding: 14px 18px; border-left: 3px solid #2581b8; background: var(--surface); }
.entry-content [role="alert"] { border-left-color: #b5543e; }
.site-footer { flex: none; color: #fff; background: var(--blue); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 112px; padding-top: 22px; padding-bottom: 22px; }
.footer-title { color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.footer-title:hover, .footer-contact a:hover { color: #c6e5ff; }
.footer-meta { margin: 5px 0 0; color: #a8c0d9; font-size: 12px; }
.footer-contact { display: grid; gap: 3px; font-size: 13px; text-align: right; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-phone { font-weight: 600; }
.map-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #f8fbfd; }
.map-stage { position: relative; width: 1000px; min-height: 600px; margin: auto; }
#map { width: 1000px; height: 600px; }
.point { position: absolute; z-index: 2; display: none; max-width: 320px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 28px #173d6626; font-size: 14px; }
.point img { display: block; max-width: 260px; margin: 10px 0; }
.point .close { display: inline-block; color: var(--link); font-size: 13px; }

@media (max-width: 1100px) {
    .site-container { width: calc(100% - 64px); }
    .site-logo { left: 0; width: 270px; }
    .header-collage { width: 52%; top: 24px; }
    .primary-menu { gap: 18px; }
    .primary-menu > li > a { font-size: 13px; }
    .navigation-inner { gap: 18px; }
    .contact-link { padding: 11px 14px; gap: 14px; font-size: 12px; }
    .front-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
    .work-sidebar { padding: 24px 20px; }
}
@media (max-width: 820px) {
    .site-container { width: calc(100% - 40px); }
    .branding { height: 200px; }
    .site-logo { top: 51px; width: 37%; }
    .header-collage { width: 55%; top: 20px; }
    .navigation-inner { flex-wrap: wrap; justify-content: space-between; gap: 0; min-height: 62px; padding-top: 9px; padding-bottom: 9px; }
    .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; gap: 9px; padding: 9px 5px; border: 0; border-radius: 4px; color: #fff; background: transparent; font-size: 14px; }
    .menu-panel { order: 3; flex: 0 0 100%; }
    .primary-menu { display: block; margin-top: 10px; padding: 8px 0; border-top: 1px solid #426281; }
    .primary-menu > li > a { min-height: 44px; padding: 11px 9px; border-bottom: 0; border-left: 3px solid transparent; font-size: 14px; }
    .primary-menu .current-menu-item > a, .primary-menu .current-menu-ancestor > a, .primary-menu .current_page_item > a, .primary-menu .current_page_ancestor > a { border-left-color: #74b9e7; background: #234a73; }
    .primary-menu ul, .primary-menu ul ul { position: static; display: block; min-width: 0; padding: 0 0 6px 20px; border: 0; box-shadow: none; }
    .primary-menu ul a { padding: 10px; }
    .site-navigation[data-menu-ready="true"][data-menu-open="false"] .menu-panel { display: none; }
    .contact-link { margin-left: auto; font-size: 12px; }
    .site-main { padding-top: 28px; padding-bottom: 40px; }
    .front-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .work-sidebar { margin-top: 0; }
    .work-sidebar h2 { margin-bottom: 20px; }
    .footer-inner { gap: 20px; }
    body.admin-bar .site-shell { min-height: calc(100vh - 46px); min-height: calc(100svh - 46px); }
}
@media (max-width: 520px) {
    .branding { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 126px; }
    .site-logo, .header-collage { position: static; flex: none; }
    .site-logo { width: 42%; }
    .header-collage { width: 54%; }
    .site-main { padding-top: 23px; }
    .breadcrumbs { gap: 10px; margin-bottom: 20px; font-size: 11px; }
    h1 { margin-bottom: 22px; font-size: 32px; letter-spacing: -.9px; }
    h2 { margin-top: 28px; font-size: 23px; }
    body { font-size: 15px; }
    .home.page .entry-content > p:first-child { font-size: 18px; }
    .home.page .entry-content > ul:first-of-type { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .home.page .entry-content > ul:first-of-type > li { padding-bottom: 17px; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 24px; }
    .footer-title { font-size: 14px; }
    .footer-contact { text-align: left; }
    .engexp-contact { padding: 20px 17px; }
    .alignleft, .alignright { float: none; margin: 18px 0; }
    .gallery-columns-3 .gallery-item { width: calc((100% - 16px) / 2); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
