/*
Theme Name: Euroremont 2026
Theme URI: https://wptest.s3nq.ru
Author: Euroremont
Description: Современный адаптивный дизайн для компании «Евроремонт» — Калининград.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: euroremont
*/

/* ---------------------------------------------------------------
   1. Fonts
--------------------------------------------------------------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------
   2. Tokens
--------------------------------------------------------------- */
:root {
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --cream: #F4EFE6;
  --ink: #101110;
  --ink-2: #33352E;
  --muted: #6C6F65;
  --line: #E6E1D7;
  --accent: #B4552D;
  --accent-dark: #8E3F1F;
  --accent-soft: #F6E7DF;
  --dark: #121309;
  --dark-2: #1B1C13;
  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 30px;
  --shadow-s: 0 1px 2px rgba(16,17,16,.05);
  --shadow: 0 2px 4px rgba(16,17,16,.04), 0 18px 40px -20px rgba(16,17,16,.28);
  --shadow-l: 0 30px 70px -30px rgba(16,17,16,.45);
  --container: 1240px;
  --gap: clamp(16px, 2.4vw, 28px);
  --section-y: clamp(56px, 8vw, 112px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------------------------------------------------------------
   3. Reset & base
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on, "cv11" on;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.028em;
}
h1 { font-size: clamp(2.35rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: -0.02em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: var(--accent); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin: 0 0 18px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.section-head p.lead { margin: 14px 0 0; max-width: 56ch; color: var(--muted); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--line);
  padding-bottom: 3px;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
  white-space: nowrap;
}
.link-arrow:hover { border-color: var(--accent); gap: .85em; color: var(--accent); }

/* ---------------------------------------------------------------
   4. Buttons
--------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  box-shadow: 0 10px 26px -14px rgba(180,85,45,.85);
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(180,85,45,.9); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(16,17,16,.18);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--lg { padding: 19px 38px; font-size: 1.03rem; }

/* ---------------------------------------------------------------
   5. Header
--------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251,250,247,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(16,17,16,.6);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.04em;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% -30%;
  height: 70%;
  background: var(--accent);
  border-radius: 50%;
  opacity: .9;
}
.brand__mark span { position: relative; z-index: 1; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; color: var(--ink); font-size: 1.06rem; letter-spacing: -0.03em; }
.brand__tag { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(14px, 1.8vw, 30px); margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-block;
  padding: 8px 0;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-2);
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .3s var(--ease);
}
.nav a:hover::after, .nav .current-menu-item > a::after, .nav .current_page_item > a::after { width: 100%; }
.nav .current-menu-item > a, .nav .current_page_item > a { color: var(--ink); }
.nav li { position: relative; }
.nav .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -18px;
  display: block;
  min-width: 250px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .22s var(--ease);
  z-index: 20;
}
.nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu li { width: 100%; }
.nav .sub-menu a { display: block; padding: 10px 14px; border-radius: 10px; font-size: .9rem; }
.nav .sub-menu a:hover { background: var(--cream); color: var(--ink); }

.header-phone {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: right;
  flex-shrink: 0;
}
.header-phone span { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.header-phone a { font-weight: 800; font-size: 1rem; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.header-cta { flex-shrink: 0; padding: 13px 24px; font-size: .9rem; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .25s var(--ease); }
.nav-toggle i::before, .nav-toggle i::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: .25s var(--ease);
}
.nav-toggle i::before { top: -6px; }
.nav-toggle i::after { top: 6px; }
.nav-open .nav-toggle i { background: transparent; }
.nav-open .nav-toggle i::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle i::after { top: 0; transform: rotate(-45deg); }

/* ---------------------------------------------------------------
   6. Hero
--------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 82vh, 820px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(60px, 9vw, 120px) clamp(48px, 6vw, 84px);
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,11,6,.62) 0%, rgba(10,11,6,.25) 38%, rgba(10,11,6,.88) 100%),
    radial-gradient(120% 80% at 12% 100%, rgba(10,11,6,.72), transparent 62%);
}
.hero h1 { color: #fff; max-width: 17ch; text-wrap: balance; }
.hero h1 .accent { color: #F0B082; }
.hero__lead {
  margin: 22px 0 0;
  max-width: 58ch;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  color: rgba(255,255,255,.82);
}
.hero .eyebrow { color: #F0B082; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin: 42px 0 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}
.hero__facts li { display: flex; align-items: center; gap: .6em; }
.hero__facts li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(180,85,45,.25);
  flex-shrink: 0;
}

/* ---------------------------------------------------------------
   7. Service cards
--------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: var(--gap);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #D8D1C4; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 1.14rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.card__desc { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.6; }
.card__more {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}
.card__more svg { transition: transform .3s var(--ease); }
.card:hover .card__more svg { transform: translateX(4px); }

/* ---------------------------------------------------------------
   8. Works (dark section)
--------------------------------------------------------------- */
.section--dark { background: var(--dark); color: rgba(255,255,255,.72); }
.section--dark h2, .section--dark .card__title { color: #fff; }
.section--dark .eyebrow { color: #F0B082; }
.section--dark .link-arrow { color: #fff; border-color: rgba(255,255,255,.25); }
.section--dark .link-arrow:hover { color: #F0B082; border-color: #F0B082; }
.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
}
.works a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-s);
  background: #1e1f15;
  aspect-ratio: 4 / 3;
}
.works a:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.works a:nth-child(1) img { height: 100%; }
.works img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s var(--ease); opacity: .88; }
.works a:hover img { transform: scale(1.05); opacity: 1; }
.works a::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,11,6,.75), transparent 55%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.works a:hover::after { opacity: 1; }
.works__label {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 2;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: .4s var(--ease);
}
.works a:hover .works__label { opacity: 1; transform: none; }

/* ---------------------------------------------------------------
   9. Steps
--------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--gap);
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 30px 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.step:hover { transform: translateY(-3px); border-color: #D8D1C4; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 10px; font-size: 1.06rem; }
.step p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------------------------------------------------------------
   10. Quotes
--------------------------------------------------------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--gap);
}
.quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.quote::before {
  content: "“";
  font-size: 4.2rem;
  line-height: .7;
  color: var(--accent);
  opacity: .28;
  font-weight: 800;
  position: absolute;
  top: 22px; right: 26px;
}
.quote p { margin: 0; font-size: .98rem; color: var(--ink-2); }
.quote footer { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.quote__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .95rem;
  flex-shrink: 0;
}
.quote__name { font-weight: 700; color: var(--ink); font-size: .94rem; line-height: 1.3; }
.quote__meta { font-size: .8rem; color: var(--muted); }

/* ---------------------------------------------------------------
   11. CTA band
--------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--dark);
  color: #fff;
  padding: clamp(38px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  right: -180px; top: -220px;
  background: radial-gradient(circle, rgba(180,85,45,.55), transparent 68%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; max-width: 20ch; position: relative; }
.cta-band p { position: relative; color: rgba(255,255,255,.75); margin: 16px 0 0; max-width: 46ch; }
.cta-band__actions { position: relative; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-band .btn { background: #fff; color: var(--ink); box-shadow: none; width: 100%; }
.cta-band .btn:hover { background: var(--accent); color: #fff; }
.cta-band__phone { font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }

/* ---------------------------------------------------------------
   12. Contact block
--------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.contact-list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.contact-list li:first-child { padding-top: 0; }
.contact-list svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.contact-list dt { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-list dd { margin: 4px 0 0; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.contact-card {
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius-l);
  background: var(--cream);
  border: 1px solid var(--line);
}
.contact-card h3 { margin-bottom: 14px; }
.contact-card p { font-size: .95rem; color: var(--ink-2); }

/* ---------------------------------------------------------------
   13. Footer
--------------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.62);
  padding-block: clamp(48px, 6vw, 76px) 26px;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: rgba(255,255,255,.45); }
.footer-brand .brand__mark { background: #fff; color: var(--ink); }
.footer-about { margin: 20px 0 0; max-width: 34ch; color: rgba(255,255,255,.55); font-size: .9rem; }
.site-footer h4 {
  color: #fff;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer a:hover { color: #F0B082; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: .84rem;
  color: rgba(255,255,255,.42);
}

/* ---------------------------------------------------------------
   14. Inner pages
--------------------------------------------------------------- */
.page-hero {
  padding-block: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 34px);
  background: linear-gradient(180deg, var(--cream), var(--bg));
  border-bottom: 1px solid var(--line);
}
.breadcrumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; font-size: .82rem; color: var(--muted); }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: #C9C2B4; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.page-hero h1 { max-width: 22ch; text-wrap: balance; }
.page-hero .subtitle { margin: 16px 0 0; max-width: 62ch; color: var(--muted); font-size: 1.05rem; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(28px, 4vw, 60px); align-items: start; padding-block: clamp(36px, 5vw, 64px); }
.layout--full { grid-template-columns: minmax(0, 1fr); max-width: 880px; }

.sidebar { position: sticky; top: 100px; display: grid; gap: 18px; }
.sidebar-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
}
.sidebar-card h4 { font-size: 1rem; margin-bottom: 8px; }
.sidebar-card p { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.sidebar-card .btn { width: 100%; padding: 14px 20px; font-size: .92rem; }
.sidebar-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sidebar-nav a { display: block; padding: 9px 12px; border-radius: 9px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.sidebar-nav a:hover { background: var(--cream); color: var(--ink); }

/* ---------------------------------------------------------------
   15. Legacy content (imported from the old site)
--------------------------------------------------------------- */
.entry-content { font-size: 1.04rem; color: var(--ink-2); max-width: 76ch; }
.entry-content > * { max-width: 100%; }
.entry-content h1, .entry-content h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 2.2em 0 .7em; letter-spacing: -0.025em; }
.entry-content h3 { font-size: 1.24rem; margin: 1.9em 0 .6em; }
.entry-content h4 { font-size: 1.06rem; margin: 1.6em 0 .5em; }
.entry-content > h1:first-child, .entry-content > h2:first-child { margin-top: 0; }
.entry-content p { color: var(--ink-2); }
.entry-content a { color: var(--accent-dark); text-decoration: underline; text-decoration-color: rgba(180,85,45,.35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.entry-content a:hover { text-decoration-color: var(--accent); color: var(--accent); }
.entry-content img { border-radius: var(--radius-s); height: auto; }
.entry-content img.alignleft { float: left; margin: 6px 24px 18px 0; max-width: 46%; border-radius: var(--radius-s); }
.entry-content img.alignright { float: right; margin: 6px 0 18px 24px; max-width: 46%; border-radius: var(--radius-s); }
.entry-content img.aligncenter { margin-inline: auto; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--accent); }
.entry-content blockquote {
  margin: 2em 0;
  padding: 22px 26px;
  border-left: 3px solid var(--accent);
  background: var(--cream);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--ink);
  font-size: 1.05rem;
}
.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.8em 0;
  font-size: .93rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  overflow: hidden;
}
.entry-content table th {
  background: var(--ink);
  color: #fff;
  text-align: left;
  font-weight: 700;
  padding: 13px 16px;
  font-size: .86rem;
  letter-spacing: .02em;
}
.entry-content table td { padding: 12px 16px; border-top: 1px solid var(--line); }
.entry-content table tr:nth-child(even) td { background: #FCFBF8; }
.entry-content table tr:hover td { background: var(--cream); }
.entry-content .ramka, .entry-content .warning, .entry-content .info, .entry-content .success {
  margin: 1.8em 0;
  padding: 22px 26px;
  border-radius: var(--radius-s);
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}
.entry-content .info { border-left-color: #3B6FA0; background: #F1F5F9; }
.entry-content .success { border-left-color: #3F7A4B; background: #F0F6F0; }
.entry-content .ramka p:last-child, .entry-content .warning p:last-child, .entry-content .info p:last-child { margin-bottom: 0; }
/* imported theme grid columns */
.entry-content [class*="tcol-"] { float: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.entry-content .g_item {
  display: inline-block;
  vertical-align: top;
  width: 33.333%;
  padding: 7px;
  box-sizing: border-box;
  float: none !important;
  margin: 0 !important;
}
.entry-content .g_item img { width: 100%; height: 230px; object-fit: cover; border-radius: var(--radius-s); margin: 0; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.entry-content .g_item a { display: block; overflow: hidden; border-radius: var(--radius-s); }
.entry-content .g_item img:hover { transform: scale(1.04); box-shadow: var(--shadow); }
.entry-content .wpcf7, .entry-content form { max-width: 100%; }
.entry-content form p { margin-bottom: 12px; }
.entry-content input[type="text"], .entry-content input[type="email"], .entry-content input[type="tel"], .entry-content select, .entry-content textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font: inherit;
  font-size: .95rem;
  background: var(--surface);
  color: var(--ink);
}
.entry-content input[type="submit"], .entry-content button {
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.entry-content iframe { border-radius: var(--radius-s); max-width: 100%; }
.entry-content .wp-block-image img, .entry-content figure img { border-radius: var(--radius-s); }

/* ---------------------------------------------------------------
   16. Blog cards
--------------------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16 / 10; background: var(--cream); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__meta { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.post-card h3 { font-size: 1.12rem; line-height: 1.3; }
.post-card h3 a { color: var(--ink); }
.post-card p { font-size: .92rem; color: var(--muted); margin: 0; }
.post-card__more { margin-top: auto; padding-top: 12px; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }

/* ---------------------------------------------------------------
   17. Lightbox
--------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 4vmin;
  background: rgba(10,11,6,.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-l); }
.lightbox__close {
  position: absolute;
  top: 22px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* ---------------------------------------------------------------
   18. Reveal
--------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.no-anim .reveal, html.no-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .card:hover, .step:hover, .post-card:hover, .btn:hover { transform: none; }
}

/* ---------------------------------------------------------------
   19. Responsive
--------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav, .header-phone { display: none; }
  .nav-toggle { display: grid; }
  .header-inner { justify-content: space-between; }
  .nav-open .nav {
    display: block;
    position: fixed;
    top: 76px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    padding: 24px clamp(18px, 4vw, 40px);
    margin: 0;
    overflow-y: auto;
    border-top: 1px solid var(--line);
  }
  .nav-open .nav ul { flex-direction: column; gap: 0; }
  .nav-open .nav li { border-bottom: 1px solid var(--line); }
  .nav-open .nav a { display: block; padding: 16px 0; font-size: 1.05rem; }
  .nav-open .nav a::after { display: none; }
  .nav-open .nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 10px 14px; min-width: 0; background: transparent; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .works a:nth-child(1) { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .works a:nth-child(1) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .cta-band { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; }
  .page-hero h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero { min-height: 0; padding-block: 90px 56px; }
  .hero__facts { gap: 10px 20px; font-size: .85rem; }
  .entry-content .g_item { width: 50%; }
  .entry-content .g_item img { height: 150px; }
  .entry-content img.alignleft, .entry-content img.alignright { float: none; margin: 0 0 18px; max-width: 100%; }
  .entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .works { gap: 10px; }
}

/* ---------------------------------------------------------------
   20. Inline CTA card (replaces the legacy copied forms)
--------------------------------------------------------------- */
.euro-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 2em 0;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #F7F2EA, #FFFFFF);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
}
.euro-inline-cta__text { display: grid; gap: 6px; max-width: 52ch; }
.euro-inline-cta__text strong { font-size: 1.12rem; color: var(--ink); letter-spacing: -0.02em; }
.euro-inline-cta__text span { font-size: .93rem; color: var(--muted); }
.euro-inline-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 12px 26px -16px rgba(180,85,45,.9);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.euro-inline-cta__btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
@media (max-width: 640px) { .euro-inline-cta { padding: 22px; } .euro-inline-cta__btn { width: 100%; justify-content: center; } }

/* Gallery tables (work photos) — strip table chrome, show tiles */
.entry-content table:has(td img) {
  border: 0;
  background: transparent;
  border-radius: 0;
  border-spacing: 6px;
  margin-block: 1.4em;
}
.entry-content table:has(td img) td {
  border: 0 !important;
  background: transparent !important;
  padding: 6px;
  vertical-align: top;
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
}
.entry-content table:has(td img) a { display: block; overflow: hidden; border-radius: 14px; }
.entry-content table:has(td img) img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 0 8px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.entry-content table:has(td img) a:hover img { transform: scale(1.04); box-shadow: var(--shadow); }

/* Uniform gallery tiles from the old theme */
.entry-content .g_item img { height: 210px; }

/* ---------------------------------------------------------------
   21. Contacts page
--------------------------------------------------------------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  margin: 0 0 clamp(26px, 3vw, 44px);
}
.contact-cards .cc {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
}
.contact-cards .cc span {
  display: block;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}
.contact-cards .cc strong {
  display: block;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}
.contact-cards .cc a { color: var(--ink); text-decoration: none; }
.contact-cards .cc a:hover { color: var(--accent); }
.map-wrap {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  aspect-ratio: 21 / 9;
  background: var(--cream);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 720px) { .map-wrap { aspect-ratio: 4 / 3; } }
