/*
Theme Name: Astra Kontur
Theme URI: https://kontur.im/
Description: Дочерняя тема Astra для сайта УК Контур — дизайн-система, секции лендинга.
Author: Friday
Template: astra
Version: 1.0.0
Text Domain: astra-kontur
*/

:root {
  --c-ink: #000;
  --c-text: #151515;
  --c-muted: #585858;
  --c-soft: #9c9c9c;
  --c-line: #e7e7e7;
  --c-line2: #d9d9d9;
  --c-bg: #fff;
  --c-bg-alt: #f7f7f7;
  --c-bg-alt2: #f3f3f3;
  --c-accent: #265cff;
  --c-accent-dark: #0c33a8;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .06);
  --shadow-hover: 0 12px 36px rgba(0, 0, 0, .10);
  --wrap: 1200px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body, .ast-container, .site { font-family: var(--font); color: var(--c-text); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--c-ink); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
a { color: var(--c-accent); }

/* ---------- layout helpers ---------- */
.k-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.k-section { padding: 80px 0; }
.k-section.k-alt { background: var(--c-bg-alt); }
.k-section.k-tight { padding: 56px 0; }
.k-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.k-head h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 14px; }
.k-head p { font-size: 17px; color: var(--c-muted); margin: 0; }
.k-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--c-accent); margin-bottom: 10px; }

/* ---------- header ---------- */
.k-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-line); }
.k-header .k-wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.k-logo { font-weight: 800; letter-spacing: .16em; font-size: 20px; color: var(--c-ink); text-decoration: none; }
.k-nav { display: flex; gap: 22px; margin-left: 8px; }
.k-nav a { color: var(--c-text); font-size: 15px; text-decoration: none; opacity: .85; }
.k-nav a:hover { color: var(--c-accent); opacity: 1; }
.k-header-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.k-phone { font-weight: 600; color: var(--c-ink); text-decoration: none; white-space: nowrap; }

/* ---------- buttons ---------- */
.k-btn, .wp-block-button__link.k-btn {
  display: inline-block; background: var(--c-ink); color: #fff !important; border-radius: var(--radius-sm);
  padding: 14px 28px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--c-ink);
  transition: .18s ease; cursor: pointer;
}
.k-btn:hover { background: var(--c-accent); border-color: var(--c-accent); transform: translateY(-1px); }
.k-btn.k-btn-ghost { background: transparent; color: var(--c-ink) !important; }
.k-btn.k-btn-ghost:hover { background: var(--c-ink); color: #fff !important; }
.k-btn.k-btn-light { background: #fff; color: var(--c-ink) !important; border-color: #fff; }
.k-btn.k-btn-light:hover { background: var(--c-accent); color: #fff !important; border-color: var(--c-accent); }

/* ---------- hero ---------- */
.k-hero { position: relative; color: #fff; background: #151515 center/cover no-repeat; padding: 120px 0 110px; overflow: hidden; }
.k-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.72)); }
.k-hero .k-wrap { position: relative; z-index: 2; }
.k-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 58px); max-width: 900px; margin: 0 0 18px; }
.k-hero .k-hero-sub { font-size: clamp(16px, 1.6vw, 20px); color: #e7e7e7; max-width: 680px; margin: 0 0 30px; }
.k-hero .k-hero-brand { text-transform: uppercase; letter-spacing: .22em; font-weight: 600; font-size: 13px; color: #c9d6ff; margin-bottom: 16px; }
.k-hero .k-hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.k-hero .k-hero-phone { color: #fff; font-size: 20px; font-weight: 700; text-decoration: none; }

/* ---------- grids & cards ---------- */
.k-grid { display: grid; gap: 24px; }
.k-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.k-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.k-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.k-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: .18s ease; }
.k-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.k-card h3 { font-size: 19px; margin: 0 0 10px; }
.k-card p { color: var(--c-muted); margin: 0; font-size: 15px; line-height: 1.6; }
.k-card .k-num { font-size: 13px; font-weight: 700; color: var(--c-accent); margin-bottom: 14px; display: block; }
.k-card.k-photo { padding: 0; overflow: hidden; }
.k-card.k-photo img { width: 100%; height: 260px; object-fit: cover; display: block; }
.k-card.k-photo .k-body { padding: 22px 24px; }

/* feature list */
.k-feature { display: flex; gap: 16px; align-items: flex-start; }
.k-feature .k-ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--c-bg-alt2); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--c-accent); }
.k-feature h3 { font-size: 17px; margin: 0 0 6px; }
.k-feature p { color: var(--c-muted); font-size: 14px; margin: 0; line-height: 1.55; }

/* team */
.k-person { text-align: center; }
.k-person img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); display: block; margin-bottom: 16px; background: var(--c-bg-alt2); }
.k-person h3 { font-size: 17px; margin: 0 0 4px; }
.k-person p { color: var(--c-muted); font-size: 14px; margin: 0; }

/* objects */
.k-obj { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--c-bg-alt2); }
.k-obj img { width: 100%; height: 240px; object-fit: cover; display: block; transition: .3s ease; }
.k-obj:hover img { transform: scale(1.04); }

/* faq */
.k-faq details { border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 12px; overflow: hidden; }
.k-faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 16px; color: var(--c-text); position: relative; padding-right: 56px; }
.k-faq summary::-webkit-details-marker { display: none; }
.k-faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--c-accent); font-weight: 400; }
.k-faq details[open] summary::after { content: "–"; }
.k-faq .k-ans { padding: 0 24px 22px; color: var(--c-muted); font-size: 15px; line-height: 1.65; }

/* form */
.k-form { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.k-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--c-text); }
.k-form input, .k-form textarea, .k-form select { width: 100%; padding: 13px 15px; border: 1px solid var(--c-line2); border-radius: 10px; font-size: 15px; margin-bottom: 16px; font-family: var(--font); background: #fff; }
.k-form input:focus, .k-form textarea:focus { outline: none; border-color: var(--c-accent); }
.k-form .k-note { font-size: 12px; color: var(--c-soft); margin: 4px 0 0; }
.k-form .k-price { background: var(--c-bg-alt); border-radius: var(--radius-sm); padding: 20px 22px; margin-bottom: 22px; font-size: 15px; color: var(--c-muted); }
.k-form .k-price strong { color: var(--c-ink); }

/* contacts */
.k-contact-list { list-style: none; padding: 0; margin: 0; }
.k-contact-list li { padding: 14px 0; border-bottom: 1px solid var(--c-line); display: flex; gap: 14px; }
.k-contact-list .k-lbl { color: var(--c-soft); min-width: 120px; font-size: 14px; }
.k-contact-list .k-val { font-weight: 500; }
.k-contact-list a { color: var(--c-text); text-decoration: none; }
.k-contact-list a:hover { color: var(--c-accent); }

/* footer */
.k-footer { background: #151515; color: #d9d9d9; padding: 64px 0 28px; }
.k-footer h4 { color: #fff; font-size: 15px; margin: 0 0 16px; }
.k-footer a { color: #d9d9d9; text-decoration: none; }
.k-footer a:hover { color: #fff; }
.k-footer .k-fcols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.k-footer ul { list-style: none; padding: 0; margin: 0; }
.k-footer li { margin-bottom: 10px; font-size: 14px; }
.k-footer .k-copy { border-top: 1px solid #232323; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #9c9c9c; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .k-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .k-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .k-footer .k-fcols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .k-section { padding: 56px 0; }
  .k-grid.cols-2, .k-grid.cols-3, .k-grid.cols-4 { grid-template-columns: 1fr; }
  .k-nav { display: none; }
  .k-header .k-wrap { height: 64px; gap: 12px; }
  .k-hero { padding: 88px 0 72px; }
  .k-footer .k-fcols { grid-template-columns: 1fr; }
  .k-contact-list li { flex-direction: column; gap: 2px; }
}
