/*
Theme Name: CredoID Kazakhstan
Theme URI: https://credoid.kz/
Author: HISOFT
Author URI: https://hisoft.kz/
Description: Современная адаптивная корпоративная тема для интегратора систем контроля доступа CredoID Kazakhstan.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: credoid-kz
*/

:root {
  --navy: #031b2d;
  --navy-2: #05263f;
  --blue: #0868d9;
  --blue-2: #0b7af0;
  --cyan: #5fc8ff;
  --ink: #0a1a2f;
  --muted: #5f6c7a;
  --line: #e5ebf1;
  --surface: #f6f9fc;
  --white: #fff;
  --green: #18aa4b;
  --red: #e05252;
  --shadow: 0 12px 34px rgba(4, 29, 53, .1);
  --radius: 10px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.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 { clip: auto; width: auto; height: auto; top: 8px; left: 8px; z-index: 9999; padding: 10px 14px; background: #fff; color: var(--ink); }

.topbar { height: 34px; background: var(--navy); color: #dce9f4; font-size: 12px; }
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 23px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar__language { padding-left: 17px; border-left: 1px solid rgba(255,255,255,.2); letter-spacing: .07em; }
.topbar__whatsapp { color: #43df79; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid rgba(3,27,45,.08); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 7px 26px rgba(4,29,53,.11); }
.navbar { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.site-brand { min-width: 176px; display: inline-flex; align-items: center; }
.custom-logo { display: block; width: auto; max-height: 48px; }
.brand-wordmark { display: inline-flex; flex-direction: column; line-height: .85; }
.brand-wordmark strong { color: #08233a; font-size: 30px; font-weight: 850; letter-spacing: -2.2px; }
.brand-wordmark strong em { color: var(--blue); font-style: normal; }
.brand-wordmark small { padding-left: 15px; margin-top: 8px; color: #0b2136; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.primary-nav { flex: 1; }
.primary-nav ul { display: flex; align-items: center; justify-content: center; gap: clamp(13px, 1.35vw, 25px); list-style: none; padding: 0; margin: 0; }
.primary-nav a { position: relative; display: block; padding: 29px 0 25px; color: #172534; font-size: 12px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 19px; height: 2px; background: var(--blue); transition: right .2s ease; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--blue); }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { right: 0; }
.nav-cta { flex: none; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border: 1px solid transparent; border-radius: 4px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { background: #075ab8; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(8,104,217,.3); }
.button--outline { background: transparent; border-color: rgba(255,255,255,.75); }
.button--outline:hover { background: #fff; color: var(--navy); }
.button--small { min-height: 42px; padding-inline: 19px; font-size: 11px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 9px; margin-left: auto; border: 0; border-radius: 5px; background: #eef5fb; color: var(--navy); cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; transition: transform .2s, opacity .2s; }

.hero { position: relative; min-height: 645px; overflow: hidden; background: var(--navy) url("assets/images/hero-access.webp") center/cover no-repeat; color: #fff; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,20,35,.88) 0%, rgba(2,20,35,.49) 50%, rgba(2,20,35,.05) 78%); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 645px; padding-top: 74px; padding-bottom: 118px; }
.hero__content { width: min(640px, 58vw); }
.hero h1 { max-width: 610px; margin: 0 0 18px; font-size: clamp(42px, 4.35vw, 68px); line-height: .99; letter-spacing: -2px; font-weight: 850; }
.hero h1 span { display: block; color: #43a0ff; }
.hero__partner { margin: 0 0 15px; font-size: 19px; font-weight: 700; line-height: 1.35; }
.hero__partner strong { color: #67c5ff; font-weight: 800; }
.hero__lead { max-width: 580px; margin: 0; color: #eef5fa; font-size: 16px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 35px; }
.hero__features { position: absolute; z-index: 2; left: 50%; bottom: 0; width: min(calc(100% - 48px), var(--container)); transform: translateX(-50%); display: grid; grid-template-columns: repeat(6, 1fr); padding: 0 0 24px; }
.hero-feature { min-width: 0; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 0 18px; border-right: 1px solid rgba(255,255,255,.23); }
.hero-feature:first-child { padding-left: 0; }
.hero-feature:last-child { border: 0; padding-right: 0; }
.hero-feature .icon { width: 28px; height: 28px; color: #fff; }
.hero-feature strong { display: block; font-size: 12px; line-height: 1.25; }
.hero-feature small { display: block; margin-top: 4px; color: #c9d9e5; font-size: 9px; line-height: 1.35; }

.section { padding: 66px 0; }
.section--tight { padding: 45px 0; }
.section--surface { background: var(--surface); }
.section-heading { margin: 0 0 36px; text-align: center; }
.section-heading h2 { position: relative; display: inline-block; margin: 0; padding-bottom: 14px; color: var(--ink); font-size: clamp(23px, 2.1vw, 31px); line-height: 1.2; font-weight: 850; text-transform: uppercase; letter-spacing: -.5px; }
.section-heading h2::after { content: ""; position: absolute; width: 38px; height: 3px; left: 50%; bottom: 0; background: var(--blue); transform: translateX(-50%); }
.section-heading p { max-width: 680px; margin: 16px auto 0; color: var(--muted); }

.industry-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.industry-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(10,35,58,.07); transition: transform .2s ease, box-shadow .2s ease; }
.industry-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.industry-photo { height: 162px; background-image: url("assets/images/industry-grid.webp"); background-size: 300% 200%; background-repeat: no-repeat; }
.industry-card:nth-child(1) .industry-photo { background-position: 0 0; }
.industry-card:nth-child(2) .industry-photo { background-position: 50% 0; }
.industry-card:nth-child(3) .industry-photo { background-position: 100% 0; }
.industry-card:nth-child(4) .industry-photo { background-position: 0 100%; }
.industry-card:nth-child(5) .industry-photo { background-position: 50% 100%; }
.industry-card:nth-child(6) .industry-photo { background-position: 100% 100%; }
.industry-card__body { min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 15px 10px; text-align: center; }
.industry-card__body .icon { width: 30px; height: 30px; color: var(--blue); }
.industry-card__body strong { font-size: 14px; line-height: 1.2; }

.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.service { text-align: center; }
.service__icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 50%; color: var(--blue); background: #edf6ff; transition: transform .2s, background .2s, color .2s; }
.service:hover .service__icon { transform: translateY(-4px); background: var(--blue); color: #fff; }
.service__icon .icon { width: 30px; height: 30px; }
.service h3 { margin: 0 0 8px; font-size: 14px; }
.service p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.compare { display: grid; grid-template-columns: 1fr .92fr 1fr; align-items: center; gap: 38px; }
.compare-box { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 6px 20px rgba(5,33,57,.07); }
.compare-box h3 { margin: 0; padding: 10px 18px; color: #fff; background: #a6abb0; font-size: 14px; text-align: center; text-transform: uppercase; }
.compare-box--blue h3 { background: var(--blue); }
.checklist { padding: 18px 22px; margin: 0; list-style: none; }
.checklist li { position: relative; padding: 6px 0 6px 25px; font-size: 13px; }
.checklist li::before { position: absolute; left: 0; top: 5px; font-size: 16px; font-weight: 900; }
.checklist--no li::before { content: "×"; color: var(--red); }
.checklist--yes li::before { content: "✓"; color: var(--green); }
.devices { min-height: 280px; display: flex; align-items: flex-end; justify-content: center; gap: 40px; }
.terminal-device { position: relative; width: 88px; height: 245px; border: 5px solid #24282c; border-radius: 10px; background: linear-gradient(155deg,#252a2d,#050607 65%); box-shadow: 8px 12px 22px rgba(0,0,0,.24); }
.terminal-device::before { content: ""; position: absolute; width: 54px; height: 64px; left: 12px; top: 16px; border: 2px solid #2b9ce9; border-radius: 5px; background: radial-gradient(circle at 50% 42%,#77c8ff 0 8%,#15384d 9% 28%,#07131b 29%); }
.terminal-device::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 25px; height: 100px; background: radial-gradient(circle,#8da0ad 0 2px,transparent 3px); background-size: 17px 20px; }
.phone-device { position: relative; width: 120px; height: 232px; border: 6px solid #151719; border-radius: 20px; background: linear-gradient(160deg,#092543,#050f16); box-shadow: 10px 12px 22px rgba(0,0,0,.24); }
.phone-device::before { content: "✓"; position: absolute; width: 68px; height: 68px; left: 20px; top: 70px; display: grid; place-items: center; border-radius: 50%; background: #27cf4d; color: #06180b; font-size: 42px; font-weight: 900; }
.phone-device::after { content: "ACCESS"; position: absolute; left: 0; right: 0; bottom: 47px; color: #33df5a; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .15em; }

.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.product-card { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 17px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 5px 17px rgba(5,33,57,.06); text-align: center; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-visual { position: relative; width: 96px; height: 84px; display: grid; place-items: center; color: #0b1d2b; }
.product-visual::before { content: ""; position: absolute; inset: 12px; border-radius: 7px; background: linear-gradient(145deg,#252b2f,#07090b); box-shadow: 5px 7px 12px rgba(4,16,24,.23); }
.product-visual .icon { position: relative; z-index: 1; width: 34px; height: 34px; color: #48c986; }
.product-card:nth-child(4) .product-visual::before, .product-card:nth-child(5) .product-visual::before, .product-card:nth-child(6) .product-visual::before { background: linear-gradient(145deg,#f8fafc,#cdd5dc); border: 1px solid #a9b5bf; }
.product-card:nth-child(n+4) .product-visual .icon { color: #21394b; }
.product-card strong { font-size: 13px; }
.catalog-link { display: table; margin: 28px auto 0; color: var(--blue); font-size: 12px; font-weight: 850; text-transform: uppercase; }

.brands { padding: 25px 0; background: #f1f5f8; }
.brands__inner { display: grid; grid-template-columns: 1.1fr repeat(5, 1fr); align-items: center; gap: 30px; }
.brands__label { font-size: 14px; font-weight: 850; text-transform: uppercase; }
.brand-logo { color: #192531; font-size: 22px; font-weight: 900; text-align: center; letter-spacing: -.5px; filter: grayscale(1); opacity: .83; }
.brand-logo--blue { color: var(--blue); filter: none; }
.brand-logo span { display: block; margin-top: -4px; font-size: 7px; letter-spacing: .35em; }

.process-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 34px; counter-reset: step; }
.process-step { position: relative; text-align: center; counter-increment: step; }
.process-step:not(:last-child)::after { content: "→"; position: absolute; top: 34px; right: -29px; color: var(--blue); font-size: 25px; font-weight: 300; }
.process-step__icon { position: relative; width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 15px; border: 1px solid #d7e1e9; border-radius: 50%; color: #637485; background: #fff; box-shadow: 0 5px 15px rgba(5,33,57,.06); }
.process-step__icon::before { content: counter(step); position: absolute; width: 23px; height: 23px; right: -2px; top: -3px; display: grid; place-items: center; border-radius: 50%; background: #0b4b9a; color: #fff; font-size: 11px; font-weight: 800; }
.process-step__icon .icon { width: 30px; height: 30px; }
.process-step h3 { margin: 0 0 5px; font-size: 13px; }
.process-step p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { overflow: hidden; display: grid; grid-template-columns: 38% 62%; min-height: 150px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(5,33,57,.05); }
.news-card__image { min-height: 150px; background-color: #dce8f2; background-position: center; background-size: cover; }
.news-card__image--1 { background-image: url("assets/images/hero-access.webp"); background-position: 78% center; }
.news-card__image--2 { background-image: url("assets/images/industry-grid.webp"); background-size: 300% 200%; background-position: 50% 0; }
.news-card__image--3 { background-image: url("assets/images/industry-grid.webp"); background-size: 300% 200%; background-position: 100% 0; }
.news-card__body { display: flex; flex-direction: column; padding: 16px; }
.news-card time { color: #8a96a1; font-size: 10px; }
.news-card h3 { margin: 8px 0 12px; font-size: 13px; line-height: 1.45; }
.news-card__link { margin-top: auto; color: var(--blue); font-size: 11px; font-weight: 800; }

.contact { display: grid; grid-template-columns: .86fr 1.2fr 1fr; min-height: 390px; background: #fff; }
.contact__details { padding: 43px max(32px, calc((100vw - var(--container))/2)); padding-right: 42px; background: linear-gradient(140deg,#052943,#021b2f); color: #fff; }
.contact__details h2, .contact__form h2 { margin: 0 0 24px; font-size: 22px; text-transform: uppercase; }
.contact-list { padding: 0; margin: 0; list-style: none; }
.contact-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; margin: 14px 0; color: #eef6fc; font-size: 13px; }
.contact-list .icon { width: 18px; height: 18px; margin-top: 2px; color: #fff; }
.contact__map { position: relative; overflow: hidden; min-height: 390px; background-color: #edf2ee; background-image: linear-gradient(30deg,transparent 47%,#fff 48% 52%,transparent 53%), linear-gradient(120deg,transparent 47%,#d4dfdc 48% 51%,transparent 52%); background-size: 92px 72px, 124px 96px; }
.contact__map::before { content: ""; position: absolute; width: 165%; height: 70px; left: -25%; top: 53%; border: 13px solid rgba(120,187,220,.48); border-radius: 50%; transform: rotate(-9deg); }
.map-pin { position: absolute; left: 52%; top: 48%; width: 36px; height: 36px; display: grid; place-items: center; border: 5px solid #fff; border-radius: 50% 50% 50% 0; background: var(--blue); color: #fff; transform: translate(-50%,-50%) rotate(-45deg); box-shadow: 0 5px 14px rgba(2,37,62,.25); }
.map-pin .icon { width: 14px; height: 14px; transform: rotate(45deg); }
.contact__form { padding: 40px max(32px, calc((100vw - var(--container))/2)); padding-left: 34px; background: #f8fafc; }
.contact__form h2 { color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #d6dfe7; border-radius: 4px; background: #fff; color: var(--ink); outline: 0; }
.field:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,104,217,.1); }
textarea.field { min-height: 96px; resize: vertical; }
.form-grid__wide { grid-column: 1 / -1; }
.form-note { margin: 10px 0 0; color: var(--muted); font-size: 10px; }
.form-status { padding: 10px 12px; margin-bottom: 12px; border-radius: 4px; background: #e9f8ee; color: #126e34; font-size: 12px; }
.hp-field { position: absolute; left: -9999px; }

.site-footer { background: #021a2b; color: #b9cad8; font-size: 11px; }
.site-footer__inner { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-footer__links { display: flex; gap: 28px; }
.site-footer__socials { display: flex; gap: 12px; color: #fff; }
.site-footer__socials .icon { width: 18px; height: 18px; }

.content-area { min-height: 60vh; padding: 70px 0; }
.content-area h1 { font-size: 38px; }
.post-card { padding: 26px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 8px; }

@media (max-width: 1180px) {
  .nav-cta { display: none; }
  .industry-grid, .product-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .contact { grid-template-columns: 1fr 1.3fr; }
  .contact__form { grid-column: 1 / -1; padding: 42px max(32px, calc((100vw - var(--container))/2)); }
}

@media (max-width: 980px) {
  .topbar { display: none; }
  .navbar { min-height: 68px; }
  .site-brand { min-width: 0; }
  .brand-wordmark strong { font-size: 27px; }
  .menu-toggle { display: block; }
  .primary-nav { position: fixed; inset: 68px 0 0; z-index: 999; display: none; padding: 22px 28px; background: rgba(2,24,41,.98); }
  .nav-open .primary-nav { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .primary-nav a { padding: 17px 4px; color: #fff; font-size: 14px; }
  .primary-nav a::after { display: none; }
  .nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero, .hero__inner { min-height: 680px; }
  .hero { background-position: 62% center; }
  .hero::after { background: linear-gradient(90deg,rgba(2,20,35,.92),rgba(2,20,35,.6) 75%,rgba(2,20,35,.3)); }
  .hero__content { width: 72%; }
  .hero__features { grid-template-columns: repeat(3, 1fr); gap: 20px 0; }
  .hero-feature:nth-child(3) { border: 0; }
  .compare { grid-template-columns: 1fr 1fr; }
  .devices { grid-column: 1 / -1; grid-row: 1; min-height: 250px; }
  .process-grid { grid-template-columns: repeat(3, 1fr); row-gap: 42px; }
  .process-step:nth-child(3)::after { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .brands__inner { grid-template-columns: repeat(3, 1fr); }
  .brands__label { grid-column: 1 / -1; text-align: center; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .hero, .hero__inner { min-height: 720px; }
  .hero { background-position: 68% center; }
  .hero::after { background: linear-gradient(90deg,rgba(2,20,35,.96),rgba(2,20,35,.73)); }
  .hero__inner { padding-top: 54px; padding-bottom: 220px; }
  .hero__content { width: 100%; }
  .hero h1 { font-size: clamp(38px, 12vw, 54px); letter-spacing: -1px; }
  .hero__partner { font-size: 16px; }
  .hero__lead { font-size: 14px; }
  .hero__actions { gap: 10px; }
  .button { width: 100%; }
  .hero__features { width: calc(100% - 30px); grid-template-columns: repeat(2, 1fr); padding-bottom: 18px; }
  .hero-feature { padding: 0 10px; border: 0; }
  .hero-feature:first-child { padding-left: 10px; }
  .section { padding: 50px 0; }
  .section-heading { margin-bottom: 28px; }
  .industry-grid, .product-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .industry-photo { height: 122px; }
  .industry-card__body { min-height: 92px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
  .compare { grid-template-columns: 1fr; gap: 20px; }
  .devices { grid-column: auto; }
  .brands__inner { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2n)::after { display: none; }
  .process-step:nth-child(3)::after { display: block; }
  .contact { grid-template-columns: 1fr; }
  .contact__details, .contact__form { padding: 38px 24px; }
  .contact__map { min-height: 280px; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer__inner { padding-block: 18px; flex-direction: column; text-align: center; }
}

@media (max-width: 430px) {
  .industry-grid, .product-grid { grid-template-columns: 1fr; }
  .industry-photo { height: 170px; }
  .news-card { grid-template-columns: 1fr; }
  .news-card__image { min-height: 170px; }
  .site-footer__links { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

