:root{
  --bg:#ffffff;
  --surface:#f2f7f2;
  --text:#2d3a2d;
  --muted:#7a8a7a;
  --accent:#2e8b57;
  --accent-soft:#e0f2e9;
  --line:#d0e0d0;
  --radius:12px;
  --radius-sm:8px;
  --shadow:0 4px 20px rgba(45,58,45,0.06);
  --shadow-hover:0 8px 30px rgba(45,58,45,0.1);
  --space-1:0.25rem;
  --space-2:0.5rem;
  --space-3:0.75rem;
  --space-4:1rem;
  --space-5:1.5rem;
  --space-6:2rem;
  --space-7:3rem;
  --space-8:4rem;
  --space-9:6rem;
  --container:1100px;
  --font: Arial, Helvetica, sans-serif;
}

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

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:var(--font);
  font-size:1rem;
  line-height:1.6;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}

img,
svg{
  max-width:100%;
  height:auto;
  display:block;
}

h1,h2,h3,h4,h5,h6{
  line-height:1.2;
  margin:0 0 var(--space-4);
  font-weight:700;
  color:var(--text);
}

h1{
  font-size:clamp(2rem, 5vw + 1rem, 3.5rem);
  letter-spacing:-0.02em;
}

h2{
  font-size:clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
}

h3{
  font-size:clamp(1.2rem, 2vw + 0.5rem, 1.8rem);
}

p{
  margin:0 0 var(--space-4);
}

a{
  color:var(--accent);
  text-decoration:none;
  transition:color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

a:hover{
  color:var(--text);
}

a:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
  border-radius:4px;
}

ul,ol{
  margin:0 0 var(--space-4);
  padding-left:1.5rem;
}

li{
  margin-bottom:var(--space-2);
}

.ek-main{
  min-height:60vh;
}

.ek-section{
  padding:var(--space-7) var(--space-4);
}

.ek-section > .ek-container,
.ek-section > *:not(.ek-container){
  max-width:var(--container);
  margin-left:auto;
  margin-right:auto;
}

.ek-container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 var(--space-4);
}

.ek-header{
  background:var(--bg);
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:100;
}

.ek-brand{
  display:inline-flex;
  align-items:center;
  gap:var(--space-2);
  font-size:1.25rem;
  font-weight:700;
  color:var(--text);
  padding:var(--space-3) 0;
}

.ek-brand svg{
  width:2em;
  height:2em;
  fill:var(--accent);
}

.ek-hero{
  padding:var(--space-8) var(--space-4);
  text-align:center;
  background:var(--surface);
  border-bottom:1px solid var(--line);
}

.ek-hero-about,
.ek-hero-services{
  background:var(--bg);
}

.ek-hero-text{
  max-width:60ch;
  margin:0 auto;
}

.ek-lead{
  font-size:clamp(1.1rem, 2vw + 0.5rem, 1.5rem);
  line-height:1.5;
  color:var(--muted);
  margin-bottom:var(--space-5);
}

.ek-subhead{
  font-size:1.1rem;
  color:var(--muted);
  margin-bottom:var(--space-4);
}

.ek-contact-cta,
.ek-more{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  padding:var(--space-3) var(--space-5);
  border-radius:var(--radius-sm);
  font-weight:600;
  transition:background-color 0.2s ease, transform 0.2s ease;
}

.ek-contact-cta:hover,
.ek-more:hover{
  background:var(--text);
  color:#fff;
  transform:translateY(-2px);
}

.ek-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--space-5);
  margin:var(--space-5) 0;
}

.ek-card{
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:var(--space-5);
  box-shadow:var(--shadow);
  transition:box-shadow 0.2s ease, transform 0.2s ease;
  min-width:0;
}

.ek-card:hover{
  box-shadow:var(--shadow-hover);
  transform:translateY(-4px);
}

.ek-card-title{
  font-size:1.25rem;
  margin-bottom:var(--space-2);
}

.ek-card-text{
  color:var(--muted);
  margin-bottom:var(--space-4);
}

.ek-card-link{
  font-weight:600;
}

.ek-icon{
  width:1.5em;
  height:1.5em;
  fill:var(--accent);
  margin-bottom:var(--space-3);
}

.ek-big-icon{
  width:3em;
  height:3em;
  fill:var(--accent);
  margin-bottom:var(--space-4);
}

.ek-illustration{
  max-width:400px;
  margin:var(--space-5) auto;
}

.ek-illu-building,
.ek-till-illu{
  width:100%;
  height:auto;
}

.ek-advantages{
  background:var(--surface);
  padding:var(--space-7) var(--space-4);
}

.ek-advantages .ek-grid{
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
}

.ek-stats{
  background:var(--accent-soft);
  padding:var(--space-7) var(--space-4);
}

.ek-stat-list{
  list-style:none;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
  gap:var(--space-5);
  text-align:center;
}

.ek-stat-list li{
  font-size:2rem;
  font-weight:700;
  color:var(--accent);
}

.ek-stat-list li span{
  display:block;
  font-size:0.9rem;
  color:var(--muted);
  font-weight:400;
}

.ek-team-stats{
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-5);
  justify-content:center;
  margin:var(--space-5) 0;
}

.ek-team-stats .ek-stat{
  text-align:center;
}

.ek-steps{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--space-5);
  margin:var(--space-5) 0;
}

.ek-step{
  background:var(--surface);
  border-radius:var(--radius);
  padding:var(--space-5);
  border-left:4px solid var(--accent);
}

.ek-step h3{
  margin-bottom:var(--space-2);
}

.ek-process-list{
  list-style:none;
  padding:0;
}

.ek-process-list li{
  padding-left:var(--space-5);
  position:relative;
  margin-bottom:var(--space-4);
}

.ek-process-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:0.5em;
  width:12px;
  height:12px;
  background:var(--accent);
  border-radius:50%;
}

.ek-feature-list{
  list-style:none;
  padding:0;
}

.ek-feature-list li{
  padding-left:var(--space-5);
  position:relative;
  margin-bottom:var(--space-2);
}

.ek-feature-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  color:var(--accent);
  font-weight:bold;
}

.ek-services{
  padding:var(--space-7) var(--space-4);
}

.ek-service-card{
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:var(--space-5);
  text-align:center;
  transition:box-shadow 0.2s ease;
}

.ek-service-card:hover{
  box-shadow:var(--shadow-hover);
}

.ek-service-card .ek-icon{
  margin-left:auto;
  margin-right:auto;
}

.ek-popular{
  border:2px solid var(--accent);
  position:relative;
}

.ek-popular::before{
  content:"Популярно";
  position:absolute;
  top:-1em;
  left:50%;
  transform:translateX(-50%);
  background:var(--accent);
  color:#fff;
  padding:0.2em 1em;
  border-radius:20px;
  font-size:0.8rem;
  font-weight:600;
}

.ek-sale{
  background:var(--accent-soft);
  border-radius:var(--radius);
  padding:var(--space-4);
  margin:var(--space-4) 0;
}

.ek-table{
  width:100%;
  border-collapse:collapse;
  margin:var(--space-5) 0;
  font-size:0.95rem;
}

.ek-table th,
.ek-table td{
  padding:var(--space-3);
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}

.ek-table th{
  background:var(--surface);
  font-weight:600;
}

.ek-table tr:last-child td{
  border-bottom:none;
}

.ek-board-specs{
  overflow-x:auto;
}

.ek-board-specs .ek-table{
  min-width:600px;
}

.ek-dl{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--space-2) 0;
  margin:var(--space-5) 0;
}

.ek-dl dt{
  font-weight:600;
  color:var(--text);
}

.ek-dl dd{
  margin:0;
  color:var(--muted);
}

.ek-contact{
  background:var(--surface);
  padding:var(--space-7) var(--space-4);
}

.ek-contact-hero{
  text-align:center;
  margin-bottom:var(--space-6);
}

.ek-contact-cards{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--space-5);
}

.ek-contact-dl{
  display:grid;
  gap:var(--space-2);
}

.ek-contact-dl dt{
  font-weight:600;
}

.ek-contact-dl dd{
  margin:0;
  color:var(--muted);
}

.ek-contact-form-placeholder{
  background:var(--bg);
  border:2px dashed var(--line);
  border-radius:var(--radius);
  padding:var(--space-6);
  text-align:center;
  color:var(--muted);
}

.ek-map{
  margin:var(--space-5) 0;
}

.ek-map-card{
  background:var(--surface);
  border-radius:var(--radius);
  padding:var(--space-4);
  border:1px solid var(--line);
}

.ek-map-caption{
  font-size:0.9rem;
  color:var(--muted);
  margin-top:var(--space-2);
}

.ek-office-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--space-5);
}

.ek-pull-quote,
.ek-quote{
  background:var(--accent-soft);
  border-left:4px solid var(--accent);
  padding:var(--space-5);
  margin:var(--space-6) 0;
  border-radius:0 var(--radius) var(--radius) 0;
  font-style:italic;
  font-size:1.1rem;
}

.ek-pull-quote p,
.ek-quote p{
  margin:0;
}

.ek-tag,
.ek-tagа{
  display:inline-block;
  background:var(--accent-soft);
  color:var(--accent);
  padding:0.2em 0.8em;
  border-radius:20px;
  font-size:0.85rem;
  margin-right:var(--space-2);
  margin-bottom:var(--space-2);
}

.ek-tag-count{
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--muted);
  font-weight:600;
}

.ek-filter{
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-2);
  margin:var(--space-5) 0;
}

.ek-filter .ek-pill{
  background:var(--bg);
  border:1px solid var(--line);
  padding:0.4em 1em;
  border-radius:20px;
  cursor:pointer;
  transition:background-color 0.2s ease, color 0.2s ease;
}

.ek-filter .ek-pill:hover,
.ek-filter .ek-pill.active{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}

.ek-project-list{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--space-5);
}

.ek-small-diag{
  max-width:300px;
  margin:var(--space-5) auto;
}

.extra-services{
  background:var(--surface);
  padding:var(--space-7) var(--space-4);
}

.ek-div-title{
  font-size:1.5rem;
  margin-bottom:var(--space-4);
  text-align:center;
}

.ek-heading{
  text-align:center;
  margin-bottom:var(--space-5);
}

.ek-footnote{
  font-size:0.85rem;
  color:var(--muted);
  margin-top:var(--space-5);
}

.ek-footer{
  background:var(--surface);
  border-top:1px solid var(--line);
  padding:var(--space-6) var(--space-4);
  text-align:center;
  color:var(--muted);
}

@media (min-width: 640px){
  .ek-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .ek-steps{
    grid-template-columns:repeat(2, 1fr);
  }

  .ek-contact-cards{
    grid-template-columns:repeat(2, 1fr);
  }

  .ek-office-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .ek-project-list{
    grid-template-columns:repeat(2, 1fr);
  }

  .ek-dl{
    grid-template-columns:1fr 2fr;
    gap:var(--space-2) var(--space-4);
  }

  .ek-dl dt{
    text-align:right;
  }
}

@media (min-width: 900px){
  .ek-grid{
    grid-template-columns:repeat(3, 1fr);
  }

  .ek-steps{
    grid-template-columns:repeat(3, 1fr);
  }

  .ek-contact-cards{
    grid-template-columns:repeat(3, 1fr);
  }

  .ek-office-grid{
    grid-template-columns:repeat(3, 1fr);
  }

  .ek-project-list{
    grid-template-columns:repeat(3, 1fr);
  }

  .ek-hero{
    padding:var(--space-9) var(--space-4);
  }

  .ek-section{
    padding:var(--space-8) var(--space-4);
  }
}

@media (min-width: 1200px){
  .ek-grid{
    grid-template-columns:repeat(4, 1fr);
  }

  .ek-steps{
    grid-template-columns:repeat(4, 1fr);
  }

  .ek-contact-cards{
    grid-template-columns:repeat(4, 1fr);
  }

  .ek-office-grid{
    grid-template-columns:repeat(4, 1fr);
  }

  .ek-project-list{
    grid-template-columns:repeat(4, 1fr);
  }
}

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

.ek-grid > *,
.ek-steps > *,
.ek-contact-cards > *,
.ek-office-grid > *,
.ek-project-list > *{
  min-width:0;
}

@media (max-width: 360px){
  body{
    overflow-x:hidden;
  }

  .ek-section,
  .ek-hero,
  .ek-advantages,
  .ek-stats,
  .ek-contact{
    padding-left:var(--space-3);
    padding-right:var(--space-3);
  }

  h1{
    font-size:clamp(1.5rem, 8vw, 2rem);
  }

  h2{
    font-size:clamp(1.2rem, 6vw, 1.5rem);
  }

  .ek-lead{
    font-size:1rem;
  }
}


:root {
  --bg: #ffffff; --surface: #f2f7f2; --text: #2d3a2d;
  --muted: #7a8a7a; --accent: #2e8b57; --accent-soft: #e0f2e9;
  --line: #d0e0d0;
}
html { font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
body { line-height: 1.6; }
.ek-header { }
.ek-brand { font-weight: 700; text-decoration: none; color: inherit; font-size: 1.15rem; }
.ek-nav { }
.ek-nav-link { text-decoration: none; color: inherit; }
.ek-main { }
.ek-section { padding: 1.5rem 0; }
.ek-heading { font-size: clamp(1.5rem, 4vw, 2.35rem); margin: 0 0 0.6rem; line-height: 1.2; }
.ek-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); margin: 0 0 1.2rem; }
.ek-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.ek-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0.75rem; padding: 1.15rem 1.25rem;
}
.ek-card-title { margin: 0 0 0.4rem; font-size: 1.05rem; }
.ek-card-text { margin: 0; color: var(--muted); }
.ek-footer { }
.ek-contact { color: var(--muted); }
.ek-tag { }
a { color: var(--accent); }
@media (min-width: 720px) {
  .ek-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* --- repaired missing selectors --- */
.ek-bit-order { min-width: 0; }
.ek-list { min-width: 0; }
.ek-section\ek-section-коммерц { min-width: 0; }


/* --- guard --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; margin: 0; }
main > *, section > *, ul > li, ol > li { min-width: 0; }
svg, table, pre, blockquote, img { max-width: 100%; }
svg { height: auto; }
h1, h2, h3, h4, p, li, dt, dd, td, th, a, figcaption {
  overflow-wrap: anywhere;
}
table { display: block; overflow-x: auto; }
main header, main footer, main nav { display: none !important; }

.wp-header, .wp-footer, main {
  padding-left: max(1.25rem, env(safe-area-inset-left)) !important;
  padding-right: max(1.25rem, env(safe-area-inset-right)) !important;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.wp-header {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem 1.25rem;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
.wp-footer {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  margin-top: 2rem;
}
.wp-tagline {
  flex-basis: 100%;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  font-size: 0.95rem !important;
  line-height: 1.45 !important;
  max-width: none !important;
}

/* --- hamburger --- */
.wp-menu { margin: 0 0 0 auto; }
.wp-menu-btn {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  cursor: pointer;
  color: inherit;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #d4d4d4);
  border-radius: 0.5rem;
}
.wp-menu-btn::-webkit-details-marker,
.wp-menu-btn::marker { display: none; content: ""; }
.wp-menu-bars,
.wp-menu-bars::before,
.wp-menu-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  position: relative;
}
.wp-menu-bars::before,
.wp-menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.wp-menu-bars::before { top: -6px; }
.wp-menu-bars::after { top: 6px; }

@media (max-width: 719px) {
  .wp-nav-wide { display: none !important; }
  .wp-menu:not([open]) > nav { display: none !important; }
  .wp-menu[open] { flex-basis: 100%; width: 100%; margin: 0; }
  .wp-menu[open] > nav {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    gap: 0 !important;
    padding: 0.5rem 0 0.15rem !important;
  }
  .wp-menu[open] > nav > a {
    display: block !important;
    padding: 0.7rem 0.15rem !important;
  }
}

@media (min-width: 720px) {
  .wp-menu { display: none !important; }
  .wp-nav-wide {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.35rem 1.1rem;
    margin: 0 0 0 auto;
    align-items: center;
  }
}
