/*
Theme Name: Litera 3
Theme URI: https://litera.kz/
Author: Litera 3
Description: Корпоративная тема для проектно-инжиниринговой компании «ЛИТЕРА 3».
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: litera3
*/

:root {
  --l3-navy: #062754;
  --l3-navy-deep: #031a38;
  --l3-blue: #0068cf;
  --l3-blue-hover: #0054aa;
  --l3-sky: #edf6ff;
  --l3-sky-strong: #e4f1fd;
  --l3-white: #ffffff;
  --l3-text: #082851;
  --l3-muted: #49647f;
  --l3-line: #c8d8e8;
  --l3-font-text: "Onest", Arial, sans-serif;
  --l3-font-display: "Commissioner", "Onest", Arial, sans-serif;
  --l3-container: 1180px;
  --l3-gutter: clamp(20px, 4vw, 56px);
  --l3-section: clamp(48px, 4.5vw, 66px);
  --l3-shadow: 0 18px 50px rgb(4 37 79 / 10%);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--l3-text);
  background: var(--l3-white);
  font-family: var(--l3-font-text);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3,
.brand__name,
.media-card__title,
.project-index__title {
  font-family: var(--l3-font-display);
  font-optical-sizing: auto;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.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;
  z-index: 9999;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  clip: auto;
  color: var(--l3-white);
  background: var(--l3-navy);
}

.l3-container {
  width: min(calc(100% - (2 * var(--l3-gutter))), var(--l3-container));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 100;
  min-height: 88px;
  background: var(--l3-white);
  border-bottom: 1px solid rgb(7 42 86 / 8%);
}

.site-header__inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 3vw, 52px);
}

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

.brand__mark { width: 50px; height: 50px; color: var(--l3-navy); }
.brand__name { display: block; font-size: 19px; line-height: 1; font-weight: 800; letter-spacing: .015em; }
.brand__tagline { display: block; max-width: 120px; margin-top: 6px; font-size: 6.5px; line-height: 1.22; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }

.primary-nav { justify-self: center; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(17px, 1.7vw, 30px); margin: 0; padding: 0; list-style: none; }
.primary-nav a { position: relative; display: block; padding: 35px 0 33px; font-size: 13px; line-height: 1; font-weight: 570; letter-spacing: -.01em; white-space: nowrap; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 23px; height: 1px; background: var(--l3-blue); transition: right .25s ease; }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after, .primary-nav a:focus-visible::after { right: 0; }

.header-actions { align-self: stretch; display: flex; align-items: stretch; border-left: 1px solid var(--l3-line); }
.header-contact { min-width: 180px; padding: 0 22px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--l3-line); }
.header-contact span { display: block; color: var(--l3-muted); font-size: 8px; font-weight: 700; line-height: 1; letter-spacing: .13em; text-transform: uppercase; }
.header-contact strong { display: block; margin-top: 8px; font-size: 13px; line-height: 1; font-weight: 650; letter-spacing: .025em; white-space: nowrap; }
.header-utilities { display: flex; align-items: stretch; }
.header-language { width: 44px; display: grid; place-items: center; border-right: 1px solid var(--l3-line); font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.header-search, .menu-toggle { display: grid; place-items: center; width: 44px; min-width: 44px; height: auto; padding: 0; border: 0; border-right: 1px solid var(--l3-line); background: transparent; cursor: pointer; }
.header-search svg, .menu-toggle svg { width: 21px; height: 21px; }
.menu-toggle { display: none; }

.button {
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--l3-white);
  background: var(--l3-blue);
  border: 1px solid var(--l3-blue);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.button:hover { background: var(--l3-blue-hover); border-color: var(--l3-blue-hover); transform: translateY(-1px); }
.button--outline { color: var(--l3-white); background: transparent; border-color: rgb(255 255 255 / 78%); }
.button--outline:hover { color: var(--l3-navy); background: var(--l3-white); border-color: var(--l3-white); }
.button svg, .text-link svg { width: 17px; height: 17px; flex: 0 0 auto; transition: transform .2s ease; }
.button:hover svg, .text-link:hover svg { transform: translateX(4px); }
.header-cta { min-width: 184px; min-height: 100%; padding: 0 22px; justify-content: space-between; border: 0; border-radius: 0; font-size: 12px; letter-spacing: .01em; }
.header-cta:hover { transform: none; }

.search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: 18px 0;
  background: var(--l3-white);
  border-top: 1px solid var(--l3-line);
  box-shadow: var(--l3-shadow);
}
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 10px; }
.search-form label { flex: 1; }
.search-field { width: 100%; height: 48px; padding: 0 16px; color: var(--l3-text); border: 1px solid var(--l3-line); }

@media (max-width: 1320px) {
  .site-header__inner { gap: clamp(22px, 2.3vw, 34px); }
  .header-contact { display: none; }
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--l3-white);
  background: var(--l3-navy-deep);
}
.hero::before { display: none; }
.hero__inner { position: relative; z-index: 1; padding-block: 66px; }
.hero__content { max-width: 610px; }
.hero__eyebrow { margin: 0 0 17px; font-size: 12px; font-weight: 700; letter-spacing: .33em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(58px, 7vw, 92px); line-height: .94; letter-spacing: -.035em; }
.hero__lead { max-width: 540px; margin: 20px 0 16px; font-size: clamp(22px, 2.4vw, 31px); line-height: 1.18; }
.hero__values { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.hero__actions { display: flex; gap: 16px; margin-top: 32px; }
.hero__side { position: absolute; top: 94px; right: var(--l3-gutter); max-width: 260px; font-size: 14px; line-height: 1.7; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }

.proof-bar { border-bottom: 1px solid var(--l3-line); background: var(--l3-white); }
.proof-bar__inner { min-height: 130px; display: grid; grid-template-columns: 1fr 1fr 1fr 1.35fr; align-items: center; }
.proof-item { min-height: 64px; padding: 0 28px; display: flex; align-items: center; gap: 18px; border-left: 1px solid var(--l3-line); }
.proof-item:first-child { padding-left: 0; }
.proof-item__number { color: var(--l3-blue); font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.proof-item__text { font-size: 13px; line-height: 1.35; }
.proof-item__text strong { display: block; }
.proof-item--statement { display: block; padding-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.proof-item--statement::after { content: ""; display: block; width: 34px; height: 2px; margin-top: 15px; background: var(--l3-blue); }

.section { padding-block: var(--l3-section); }
.section--tint { background: #edf6ff; }
.section--compact { padding-block: clamp(38px, 3.4vw, 50px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 2.7vw, 40px); line-height: 1.05; letter-spacing: -.03em; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--l3-blue); font-size: 14px; font-weight: 700; border-bottom: 1px solid currentColor; }

.task-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.task-card { min-height: 188px; padding: 22px 18px 18px; display: flex; flex-direction: column; background: var(--l3-white); border: 1px solid rgb(12 71 129 / 8%); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.task-card:hover { transform: translateY(-4px); border-color: rgb(0 104 207 / 30%); box-shadow: var(--l3-shadow); }
.task-card__icon { width: 46px; height: 46px; color: var(--l3-blue); }
.task-card__title { margin: 22px 0 0; font-size: 16px; line-height: 1.18; font-weight: 700; }
.task-card__arrow { margin-top: auto; align-self: flex-end; color: var(--l3-blue); }

.rail { position: relative; }
.rail__track { display: grid; gap: 14px; }
.industry-track { grid-template-columns: repeat(6, 1fr); }
.media-card { overflow: hidden; background: var(--l3-white); border: 1px solid rgb(10 61 117 / 9%); }
.media-card > a { display: block; }
.media-card__image { display: block; aspect-ratio: 1.55; overflow: hidden; background: var(--l3-sky); }
.media-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgb(255 255 255 / 58%); background: var(--l3-navy); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.media-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.media-card:hover .media-card__image img { transform: scale(1.035); }
.media-card__body { min-height: 78px; padding: 14px 15px; display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.media-card__title { margin: 0; font-size: 14px; line-height: 1.25; font-weight: 700; }
.media-card__arrow { flex: 0 0 auto; color: var(--l3-blue); }
.task-card__arrow svg, .media-card__arrow svg { width: 17px; height: 17px; }

.projects-track { grid-template-columns: repeat(4, 1fr); }
.project-card .media-card__image { aspect-ratio: 1.75; }
.project-card .media-card__body { min-height: 146px; display: block; }
.project-card__meta { margin-top: 8px; color: var(--l3-muted); font-size: 13px; }
.project-card__year { margin-top: 8px; color: var(--l3-text); font-size: 13px; font-weight: 800; }
.rail-button { position: absolute; z-index: 2; top: 50%; width: 44px; height: 44px; display: none; place-items: center; padding: 0; color: var(--l3-blue); background: var(--l3-white); border: 1px solid var(--l3-line); border-radius: 50%; box-shadow: 0 8px 24px rgb(5 43 88 / 12%); cursor: pointer; transform: translateY(-50%); }
.rail-button--prev { left: -22px; }
.rail-button--next { right: -22px; }

.trust-team { display: grid; grid-template-columns: 1fr 1.1fr; border-top: 1px solid var(--l3-line); }
.trust-block, .team-block { padding-block: var(--l3-section); }
.trust-block { padding-right: clamp(30px, 5vw, 74px); }
.team-block { padding-left: clamp(30px, 5vw, 74px); border-left: 1px solid var(--l3-line); }
.trust-block, .team-block { min-width: 0; }
.competencies { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.competency { min-height: 108px; padding: 13px; background: var(--l3-sky); }
.competency svg { width: 34px; height: 34px; color: var(--l3-blue); }
.competency span { display: block; margin-top: 14px; font-size: 10px; line-height: 1.23; font-weight: 700; }
.trust-title { margin: 28px 0 18px; font-size: 22px; }
.logo-cloud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: center; }
.client-logo { min-height: 54px; display: grid; place-items: center; color: #6a737d; filter: grayscale(1); font-size: 17px; line-height: 1.05; font-weight: 800; text-align: center; opacity: .85; }
.client-logo:nth-child(2) { font-style: italic; }
.team-photo { aspect-ratio: 1.95; overflow: hidden; background: var(--l3-sky); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.team-labels span { font-size: 12px; line-height: 1.25; }

.contact-cta { position: relative; overflow: hidden; color: var(--l3-white); background: var(--l3-navy-deep); }
.contact-cta::before { display: none; }
.contact-cta__inner { position: relative; z-index: 1; min-height: 210px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 54px; align-items: center; }
.contact-cta h2 { margin: 0; font-size: clamp(31px, 3.4vw, 47px); line-height: 1.02; letter-spacing: -.03em; }
.contact-cta p { margin: 15px 0 0; max-width: 390px; color: rgb(255 255 255 / 78%); }
.contact-list { margin: 0; padding: 0 0 0 28px; border-left: 1px solid rgb(255 255 255 / 50%); list-style: none; }
.contact-list li { display: flex; gap: 12px; margin: 11px 0; font-size: 14px; }
.contact-list svg { width: 19px; height: 19px; flex: 0 0 auto; }

.site-footer { background: var(--l3-white); }
.site-footer__inner { min-height: 118px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 30px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { font-size: 12px; }
.site-footer__legal { padding-left: 36px; border-left: 1px solid var(--l3-line); color: var(--l3-muted); font-size: 11px; }

.inner-hero { padding: clamp(70px, 9vw, 130px) 0; color: var(--l3-white); background: var(--l3-navy-deep); }
.inner-hero h1 { max-width: 900px; margin: 0; font-size: clamp(44px, 6vw, 82px); line-height: 1; letter-spacing: -.04em; }
.inner-hero p { max-width: 680px; margin: 24px 0 0; color: rgb(255 255 255 / 78%); font-size: 20px; }
.content-area { padding-block: var(--l3-section); }
.prose { max-width: 820px; font-size: 18px; line-height: 1.7; }
.prose h2 { margin: 2.2em 0 .7em; font-size: 34px; line-height: 1.1; }
.prose h3 { margin: 1.8em 0 .6em; font-size: 24px; }
.prose a { color: var(--l3-blue); text-decoration: underline; }
.project-index { border-top: 1px solid var(--l3-line); }
.project-index__item { border-bottom: 1px solid var(--l3-line); }
.project-index__link { min-height: 150px; display: grid; grid-template-columns: 58px minmax(0, 1fr) 90px; gap: 28px; align-items: center; padding: 24px 0; }
.project-index__link:has(.project-index__media) { grid-template-columns: 58px minmax(0, 1fr) 90px 230px; }
.project-index__number { align-self: start; padding-top: 7px; color: var(--l3-muted); font-size: 11px; letter-spacing: .14em; }
.project-index__content { display: block; }
.project-index__title { display: block; max-width: 760px; font-size: clamp(23px, 2.3vw, 36px); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.project-index__location { display: block; margin-top: 13px; color: var(--l3-muted); font-size: 13px; }
.project-index__year { justify-self: end; color: var(--l3-blue); font-size: 14px; font-weight: 800; }
.project-index__media { height: 102px; overflow: hidden; background: var(--l3-sky); }
.project-index__media img { width: 100%; height: 100%; object-fit: cover; }
.project-index__link:hover .project-index__title, .project-index__link:focus-visible .project-index__title { color: var(--l3-blue); }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 10px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--l3-line); }
.pagination .current { color: var(--l3-white); background: var(--l3-blue); border-color: var(--l3-blue); }
.single-project__grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 56px; }
.project-facts { margin: 0; padding: 26px; background: var(--l3-sky); }
.project-facts div { padding: 15px 0; border-bottom: 1px solid var(--l3-line); }
.project-facts div:last-child { border-bottom: 0; }
.project-facts dt { color: var(--l3-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.project-facts dd { margin: 5px 0 0; font-weight: 700; }

@media (max-width: 1080px) {
  .site-header__inner { display: flex; }
  .primary-nav { position: fixed; inset: 88px 0 auto 0; width: 100%; justify-self: stretch; display: none; padding: 18px var(--l3-gutter) 28px; background: var(--l3-white); border-bottom: 1px solid var(--l3-line); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav a { padding: 15px 0; font-size: 18px; border-bottom: 1px solid var(--l3-line); }
  .primary-nav a::after { display: none; }
  .header-actions { margin-left: auto; border-left: 1px solid var(--l3-line); }
  .header-contact { display: none; }
  .menu-toggle { display: grid; border-right: 0; }
  .header-cta { display: none; }
  .task-grid { grid-template-columns: repeat(3, 1fr); }
  .industry-track { grid-template-columns: repeat(3, 1fr); }
  .projects-track { grid-template-columns: repeat(2, 1fr); }
  .proof-bar__inner { grid-template-columns: repeat(3, 1fr); padding-block: 25px; }
  .proof-item--statement { grid-column: 1 / -1; min-height: auto; padding-left: 0; margin-top: 18px; border-left: 0; }
  .contact-cta__inner { grid-template-columns: 1fr auto; }
  .contact-list { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 26px; padding: 18px 0 0; border-left: 0; border-top: 1px solid rgb(255 255 255 / 35%); }
}

@media (max-width: 760px) {
  :root { --l3-gutter: 18px; --l3-section: 52px; }
  .site-header, .site-header__inner { min-height: 72px; }
  .primary-nav { inset: 72px 0 auto 0; }
  .brand { gap: 8px; }
  .brand__mark { width: 42px; height: 42px; }
  .brand__name { font-size: 17px; }
  .brand__tagline { max-width: 96px; font-size: 5.6px; }
  .header-language { display: none; }
  .header-actions { gap: 0; }
  .header-search, .menu-toggle { width: 46px; min-width: 46px; }
  .hero { min-height: 620px; align-items: end; background-position: 58% center; }
  .hero__inner { padding-block: 54px; }
  .hero__eyebrow { max-width: 270px; font-size: 10px; line-height: 1.65; letter-spacing: .25em; }
  .hero h1 { font-size: clamp(54px, 16vw, 72px); }
  .hero__lead { max-width: 350px; margin-top: 17px; font-size: 23px; }
  .hero__values { font-size: 10px; line-height: 1.8; letter-spacing: .2em; }
  .hero__actions { align-items: stretch; flex-direction: column; max-width: 100%; margin-top: 25px; }
  .hero__actions .button { width: 100%; }
  .hero__side { display: none; }
  .proof-bar__inner { grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: 28px; }
  .proof-item { min-width: 0; min-height: 92px; padding: 0 12px; align-items: start; flex-direction: column; gap: 8px; }
  .proof-item:first-child { padding-left: 0; }
  .proof-item__number { font-size: 39px; }
  .proof-item__text { font-size: 10px; }
  .proof-item--statement { min-height: auto; padding: 18px 0 0; font-size: 9px; line-height: 1.7; }
  .section-heading { align-items: start; margin-bottom: 20px; }
  .section-heading h2 { font-size: 29px; }
  .text-link { flex: 0 0 auto; font-size: 12px; }
  .task-grid, .rail__track { display: flex; gap: 12px; margin-right: calc(-1 * var(--l3-gutter)); padding-right: var(--l3-gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .task-grid::-webkit-scrollbar, .rail__track::-webkit-scrollbar { display: none; }
  .task-card { min-width: 46%; min-height: 178px; scroll-snap-align: start; }
  .industry-track .media-card { min-width: 76%; scroll-snap-align: start; }
  .projects-track .media-card { min-width: 88%; scroll-snap-align: start; }
  .rail-button { display: grid; width: 38px; height: 38px; }
  .rail-button--prev { left: -10px; }
  .rail-button--next { right: -10px; }
  .trust-team { width: min(calc(100% - (2 * var(--l3-gutter))), var(--l3-container)); grid-template-columns: minmax(0, 1fr); }
  .trust-block { width: 100%; min-width: 0; padding-right: 0; overflow: hidden; }
  .team-block { width: 100%; min-width: 0; padding-left: 0; overflow: hidden; border-top: 1px solid var(--l3-line); border-left: 0; }
  .competencies { display: flex; margin-right: calc(-1 * var(--l3-gutter)); padding-right: var(--l3-gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .competency { min-width: 46%; scroll-snap-align: start; }
  .logo-cloud { gap: 16px; }
  .client-logo { font-size: 14px; }
  .team-photo { aspect-ratio: 1.95; }
  .team-labels { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .team-labels span { font-size: 10px; }
  .contact-cta__inner { min-height: 420px; grid-template-columns: 1fr; gap: 24px; align-content: center; }
  .contact-cta .button { width: 100%; }
  .contact-list { display: block; margin: 0; padding-top: 14px; }
  .site-footer__inner { padding-block: 32px; grid-template-columns: 1fr; gap: 24px; }
  .footer-nav ul { justify-content: flex-start; }
  .site-footer__legal { padding: 20px 0 0; border-top: 1px solid var(--l3-line); border-left: 0; }
  .project-index__link, .project-index__link:has(.project-index__media) { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; }
  .project-index__media { display: none; }
  .single-project__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
