/*
Theme Name: ASKO Support24
Theme URI: https://asko-support24.ru/
Author: ASKO Support24
Description: Precise light theme for an independent post-warranty ASKO service. Confirmed operator, phone, hours, area and four categories.
Version: 0.2.6
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: asko-support24
*/

:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --page: #ffffff;
  --hero: #f6f7f7;
  --surface: #f3f4f4;
  --surface-2: #ebeded;
  --ink: #1b1e20;
  --muted: #555b5f;
  --line: #dadddf;
  --accent: #1c2022;
  --accent-text: #ffffff;
  --focus: #145f9d;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f0f1f1; font-size: 16px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
.site { width: min(100%, 1600px); min-height: 100vh; margin: 0 auto; background: var(--page); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 10000; top: 10px; left: 10px; width: auto; height: auto; padding: 12px 16px; clip-path: none; background: #fff; }

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 84px; padding: 17px clamp(22px, calc(50vw - 558px), 242px);
  background: var(--hero); border-bottom: 1px solid #dfe2e3;
}
.wordmark { display: inline-flex; flex-direction: column; flex: 0 0 auto; color: var(--ink); text-decoration: none; line-height: 1.04; }
.wordmark-main { font-size: 17px; font-weight: 720; letter-spacing: -.045em; }
.wordmark-sub { margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 560; letter-spacing: .11em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); }
.main-nav a { color: var(--ink); font-size: 13px; font-weight: 560; text-decoration: none; white-space: nowrap; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.header-cta, .button-primary, .button-secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 11px 19px; border: 1px solid transparent; border-radius: 999px;
  font-size: 14px; font-weight: 650; line-height: 1.25; text-align: center;
  text-decoration: none; transition: transform .16s ease, background .16s ease;
}
.header-cta, .button-primary { color: var(--accent-text); background: var(--accent); }
.header-cta:hover, .button-primary:hover { color: var(--accent-text); transform: translateY(-1px); }
.button-secondary { color: var(--ink); background: transparent; border-color: #737a7e; }
.button-secondary:hover { background: #e9ebec; }

.hero-area { background: var(--hero); }
.hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(330px, .96fr); align-items: center; gap: clamp(28px, 6vw, 82px); max-width: 1280px; min-height: 540px; margin: 0 auto; padding: 54px clamp(22px, 6vw, 82px) 72px; }
.hero-copy { min-width: 0; max-width: 585px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 21px; color: var(--muted); font-size: 12px; font-weight: 690; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.eyebrow::before { flex: 0 0 17px; width: 17px; height: 1px; background: currentColor; content: ""; }
.hero h1 { max-width: 660px; margin-bottom: 20px; font-size: clamp(38px, 5.5vw, 66px); font-weight: 620; letter-spacing: -.065em; line-height: 1.01; }
.hero-lead { max-width: 510px; margin-bottom: 27px; color: var(--muted); font-size: clamp(17px, 1.55vw, 19px); letter-spacing: -.018em; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.call-hours { margin: 11px 0 0; color: var(--muted); font-size: 14px; }
.hero-category-jump { display: none; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note span::before { flex: 0 0 4px; width: 4px; height: 4px; background: currentColor; border-radius: 50%; content: ""; }
.independence-note { display: flex; gap: 10px; align-items: flex-start; max-width: 500px; margin-top: 21px; padding-top: 15px; color: #454b4e; border-top: 1px solid #cfd4d6; font-size: 14px; line-height: 1.5; }
.independence-mark { display: grid; flex: 0 0 19px; width: 19px; height: 19px; place-items: center; margin-top: 1px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 700; }
.hero-visual { align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-width: 0; margin: 0; }
.machine-art { display: block; width: 100%; max-height: 410px; object-fit: cover; border-radius: 4px; background: #e8e9e8; }
.image-caption { margin: 9px 1px 0; color: var(--muted); font-size: 12px; }

.content-section { max-width: 1280px; margin: 0 auto; padding: 86px clamp(22px, 6vw, 82px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 29px; }
.section-kicker { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section-heading h2 { max-width: 660px; margin: 0; font-size: clamp(28px, 3.2vw, 42px); font-weight: 590; letter-spacing: -.055em; line-height: 1.1; }
.section-aside { max-width: 280px; margin-bottom: 3px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.category-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 96px; padding: 19px 20px; color: var(--ink); background: var(--page); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background .16s ease; }
.category-card:hover { background: var(--surface); }
.category-name { max-width: 205px; font-size: 16px; font-weight: 560; letter-spacing: -.015em; line-height: 1.35; }
.category-arrow { flex: 0 0 auto; color: var(--muted); font-size: 18px; }
.scope-note { margin: 17px 0 0; color: var(--muted); font-size: 14px; }

.process-section { background: var(--surface); }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.process-step { min-height: 210px; padding: 24px 28px 20px 0; }
.process-step + .process-step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-number { display: inline-block; margin-bottom: 29px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.process-step h3 { margin-bottom: 10px; font-size: 19px; font-weight: 620; letter-spacing: -.03em; line-height: 1.25; }
.process-step p { max-width: 315px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.warranty-note { margin: 24px 0 0; padding-top: 15px; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }
.home-editor-content { padding-top: 62px; padding-bottom: 62px; border-top: 1px solid var(--line); }

.contact-section { padding-top: 76px; padding-bottom: 78px; }
.contact-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: clamp(23px, 4vw, 46px); background: var(--surface); }
.contact-panel.has-form { grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr); align-items: start; }
.contact-panel h2 { max-width: 620px; margin-bottom: 8px; font-size: clamp(27px, 3vw, 36px); font-weight: 590; letter-spacing: -.05em; line-height: 1.12; }
.contact-copy > p:not(.section-kicker) { max-width: 520px; margin: 0; color: var(--muted); font-size: 15px; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 24px; }
.contact-actions .button-primary { overflow-wrap: anywhere; }
.contact-hours { color: var(--muted); font-size: 14px; }
.contact-unavailable { margin-top: 20px !important; padding: 12px 15px; border-left: 3px solid var(--ink); }
.lead-form { min-width: 0; padding: 25px; background: #fff; border: 1px solid var(--line); }
.lead-form h3 { margin: 0 0 16px; font-size: 22px; font-weight: 620; letter-spacing: -.035em; }
.asko-lead-form { display: grid; gap: 13px; }
.asko-lead-form p { margin: 0; color: var(--ink); font-size: 14px; }
.asko-lead-form label { display: inline-block; margin-bottom: 6px; font-weight: 620; }
.asko-lead-form input:not([type=hidden]):not([type=checkbox]), .asko-lead-form select, .asko-lead-form textarea { display: block; width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #aeb4b7; border-radius: 8px; }
.asko-lead-form textarea { min-height: 100px; resize: vertical; }
.asko-lead-form input[type=checkbox] { width: 17px; height: 17px; margin: 0 5px 0 0; vertical-align: middle; }
.asko-lead-form p:has(input[type=checkbox]) label { font-weight: 400; }
.asko-lead-form a { color: #07598f; }
.asko-lead-form button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 11px 18px; color: #fff; background: var(--accent); border: 0; border-radius: 999px; font-weight: 650; cursor: pointer; }
.asko-form-message { padding: 11px 13px; background: #e8f4ec; border-left: 3px solid #31694a; }
.asko-form-message[role=alert] { background: #fff0ee; border-left-color: #ad3d31; }

.site-footer { padding: 24px clamp(22px, 6vw, 82px) 28px; color: var(--muted); background: var(--page); border-top: 1px solid var(--line); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; max-width: 1116px; margin: 0 auto; }
.site-footer p { max-width: 720px; margin: 0; }
.site-footer p + p { margin-top: 11px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-links a { white-space: nowrap; }
.footer-legal { white-space: pre-line; }

.page-content { min-height: 60vh; padding: 70px clamp(22px, 8vw, 120px); }
.content-article { max-width: 1100px; margin: 0 auto; }
.page-content h1 { margin: 10px 0 28px; font-size: clamp(38px, 5vw, 62px); font-weight: 600; letter-spacing: -.055em; line-height: 1.07; }
.entry-content { max-width: 900px; font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.entry-content h2 { margin-top: 1.8em; font-size: clamp(28px, 3vw, 40px); font-weight: 590; line-height: 1.16; }
.entry-content h3 { margin-top: 1.5em; font-size: clamp(22px, 2vw, 27px); line-height: 1.25; }
.entry-content p, .entry-content ul, .entry-content ol { max-width: 760px; }
.entry-content a { color: #07598f; }
.entry-content img { max-width: 100%; height: auto; }
.alignwide { max-width: min(1100px, 100%); margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }

.service-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(245px, .8fr); align-items: center; gap: clamp(26px, 5vw, 64px); padding: 72px clamp(22px, 6vw, 82px); background: var(--hero); }
.service-hero h1 { max-width: 760px; margin-bottom: 18px; font-size: clamp(38px, 5vw, 62px); font-weight: 620; letter-spacing: -.06em; line-height: 1.05; }
.service-intro { max-width: 600px; margin-bottom: 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }
.service-hero .hero-actions { margin-top: 25px; }
.service-hero-aside { padding: 26px; background: #e9ebeb; }
.service-hero-aside strong { display: block; max-width: 280px; margin: 5px 0 12px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.045em; line-height: 1.15; }
.service-hero-aside p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.service-body { max-width: 900px; min-height: 100px; margin: 0 auto; padding: 55px 22px 70px; }
.related-services { padding-top: 54px; padding-bottom: 54px; border-top: 1px solid var(--line); }
.related-services .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1120px) {
  .site-header { padding-right: 32px; padding-left: 32px; }
  .main-nav { gap: 17px; }
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: 30px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-services .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; min-height: 68px; padding: 13px 20px; }
  .main-nav { order: 3; display: flex; flex: 1 0 100%; flex-wrap: wrap; gap: 0 14px; padding-top: 5px; border-top: 1px solid var(--line); }
  .main-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .wordmark-main { font-size: 16px; }
  .header-cta { min-height: 44px; padding: 9px 14px; }
  .hero { grid-template-columns: 1fr; gap: 27px; min-height: 0; padding: 46px 20px 42px; }
  .hero h1 { font-size: clamp(35px, 8.5vw, 52px); line-height: 1.07; }
  .hero-lead { font-size: 17px; }
  .hero-category-jump { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 8px 0; color: #07598f; font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
  .hero-visual { max-width: 500px; }
  .machine-art { max-height: none; }
  .content-section { padding: 58px 20px; }
  .section-heading { display: block; margin-bottom: 23px; }
  .section-heading h2 { font-size: clamp(30px, 7vw, 39px); }
  .section-aside { max-width: 500px; margin: 12px 0 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 0; padding: 20px 0 23px; }
  .process-step + .process-step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .step-number { margin-bottom: 12px; }
  .process-step p { max-width: none; }
  .contact-panel, .contact-panel.has-form { grid-template-columns: 1fr; gap: 22px; padding: 25px; }
  .related-services .category-grid { grid-template-columns: 1fr; }
  .contact-section { padding-top: 55px; padding-bottom: 55px; }
  .footer-inner { flex-direction: column; gap: 15px; }
  .service-hero { grid-template-columns: 1fr; padding: 52px 20px; }
  .service-hero-aside { padding: 22px; }
}
@media (max-width: 450px) {
  .site-header { gap: 12px; }
  .wordmark-main { font-size: 15px; }
  .wordmark-sub { font-size: 10px; }
  .header-cta { padding: 8px 12px; font-size: 13px; }
  .eyebrow { font-size: 11px; }
  .hero-actions .button-primary, .hero-actions .button-secondary { min-height: 46px; padding: 10px 14px; }
  .hero-note { margin-top: 17px; }
  .category-card { min-height: 86px; gap: 8px; padding: 13px 11px; }
  .category-name { font-size: 14px; }
  .category-arrow { font-size: 15px; }
  .contact-panel { padding: 21px 18px; }
  .contact-panel h2 { font-size: 29px; }
  .lead-form { padding: 18px; }
  .footer-links a { white-space: normal; }
  .site-footer { font-size: 12px; }
  .service-body { padding: 42px 20px 60px; }
}
@media (max-width: 360px) {
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 72px; padding: 13px 16px; }
  .category-name { max-width: none; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .header-cta, .button-primary, .button-secondary, .category-card { transition: none; } }
