/* =========================================================
   Ukrainian Pro Cleaning — global (base, header, footer)
   ========================================================= */

:root {
  --navy: #13213f;
  --navy-2: #1b2c52;
  --ink: #0f1626;
  --text: #4a5366;
  --muted: #7a8293;
  --gold: #e2bd62;
  --gold-gradient: linear-gradient(135deg, #ac8a4e 0%, #d8b766 22%, #fbe8a8 45%, #d9b25a 62%, #b8914a 80%, #efd48f 100%);
  --gold-2: #d4a933;
  --gold-deep: #a97d1f;
  --cream: #eef2f8;
  --white: #ffffff;
  --line: #dce3ee;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 22, 38, .04), 0 12px 32px -12px rgba(15, 22, 38, .14);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); font-weight: 500; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.12; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
section[id], main [id] { scroll-margin-top: calc(var(--header-h) - 4px); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 28px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; letter-spacing: .005em;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold-gradient); background-size: 200% 100%; background-position: 0% 50%; color: var(--navy); box-shadow: 0 8px 20px -10px rgba(172, 138, 78, .9); transition: transform .25s var(--ease), background-position .6s var(--ease), box-shadow .25s; }
.btn--gold:hover { background-position: 100% 50%; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--sm { height: 44px; padding: 0 22px; font-size: .9rem; }
.btn--lg { height: 56px; padding: 0 34px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn .ico { width: 18px; height: 18px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--navy);
  padding-bottom: 3px;
  background: var(--gold-gradient) left bottom / 100% 1.5px no-repeat;
}
.link-arrow .ico { width: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: .8rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }

/* ---------- Image placeholders ---------- */
.media { position: relative; overflow: hidden; background: #e6ebf3; }
.media::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(19, 33, 63, .035) 14px 15px),
    linear-gradient(135deg, #eef2f8, #dfe6f0);
}
.media::after {
  content: attr(data-ph); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: 80%; text-align: center;
  font: 500 .78rem/1.4 var(--font-body); color: #6b7890; letter-spacing: .02em;
  padding: 8px 14px; border: 1px dashed #b9c4d6; border-radius: 8px; background: rgba(255, 255, 255, .55);
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.media img[hidden] { display: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: #14213f;
  transition: background-color .35s, box-shadow .35s, height .35s;
}
.header.is-scrolled {
  background: rgba(20, 33, 63, .94);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .5);
  --header-h: 72px;
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.header__logo { flex-shrink: 0; }
.header__logo img { width: auto; height: 58px; transition: height .35s; }
.header.is-scrolled .header__logo img { height: 50px; }

.nav { margin-left: auto; }
.nav + .header__actions { margin-left: 0; }
.nav__list { display: flex; gap: 22px; }
.nav__list a {
  position: relative; white-space: nowrap; font-size: .88rem; font-weight: 500; color: rgba(255, 255, 255, .86); padding: 6px 0;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--gold-2); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.nav__mobile-cta { display: none; }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: #fff; }
.header__phone .ico { width: 18px; height: 18px; color: var(--gold); }

.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--gold-gradient); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--navy); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); color: #fff; transition: background-color .25s, color .25s, border-color .25s; }
.socials a:hover { background: var(--gold-gradient); border-color: transparent; color: var(--navy); }
.socials--sm a { width: 38px; height: 38px; }
.socials--sm .ico { width: 17px; height: 17px; }

/* ---------- Footer ---------- */
.footer { background: #0d1830; color: rgba(255, 255, 255, .62); padding: 72px 0 0; font-size: .92rem; }
.footer__inner { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: 48px; padding-bottom: 56px; }
.footer__brand img { width: 190px; margin-bottom: 18px; }
.footer__brand p { max-width: 300px; }
.footer__nav { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 28px; align-content: start; }
.footer__nav a:hover, .footer__contacts a:hover, .footer__bottom a:hover { color: var(--gold); }
.footer__contacts { display: grid; gap: 14px; align-content: start; }
.footer__contacts > a { display: inline-flex; align-items: center; gap: 10px; color: #fff; word-break: break-word; }
.footer__contacts .ico { width: 18px; height: 18px; color: var(--gold); }
.footer__contacts .socials { margin-top: 6px; }
.footer__contacts .socials .ico { color: inherit; }
.footer__contacts .socials a:hover { color: var(--navy); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__dev { color: #fff; border-bottom: 1px solid rgba(230, 190, 75, .5); }

.call-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--gold-gradient); color: var(--navy);
  box-shadow: 0 10px 24px -8px rgba(172, 138, 78, .8);
  transition: transform .25s var(--ease), filter .25s;
}
.call-fab::before, .call-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--gold); animation: fab-pulse 2.2s var(--ease) infinite; pointer-events: none;
}
.call-fab::after { animation-delay: 1.1s; }
.call-fab .ico { width: 26px; height: 26px; stroke-width: 1.9; animation: fab-ring 2.2s ease-in-out infinite; }
.call-fab:hover { transform: scale(1.06); filter: brightness(1.06); }
body.menu-open .call-fab { opacity: 0; pointer-events: none; }
@keyframes fab-pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes fab-ring {
  0%, 60%, 100% { transform: rotate(0); }
  65%, 75%, 85% { transform: rotate(-14deg); }
  70%, 80%, 90% { transform: rotate(14deg); }
}

/* ---------- Default page / 404 ---------- */
.default-page, .page-404 { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(72px, 9vw, 120px); }
.default-page__box { max-width: 820px; }
.default-page__box > * + * { margin-top: 1em; }
.default-page__box h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.default-page__box a { color: var(--navy); border-bottom: 1px solid var(--gold); }
.page-404--inner-part { text-align: center; }
.numeric-title { font-size: clamp(5rem, 16vw, 10rem); line-height: 1; color: var(--navy); }
.page-notification { margin-top: 12px; font-size: 1.15rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1440px) {
  .header__inner { gap: 22px; }
  .nav__list { gap: 18px; }
  .nav__list a { font-size: .85rem; }
  .header__phone span { display: none; }
  .header__phone { width: 44px; height: 44px; justify-content: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); }
}

@media (max-width: 1100px) {
  .burger { display: block; }
  .nav + .header__actions { margin-left: auto; }
  .header__phone { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: calc(var(--header-h) + 24px) 24px 32px;
    background: #14213f;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 14px 0; font-family: var(--font-head); font-size: 1.35rem; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav__list a.is-active { color: var(--gold); }
  .nav__mobile-cta .btn--dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
  .nav__list a::after { display: none; }
  .nav__mobile-cta { display: grid; gap: 12px; margin-top: 32px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .header { background: #14213f; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .header__logo img, .header.is-scrolled .header__logo img { height: 40px; }
  .header__actions .btn { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__brand { grid-column: auto; }
  .footer__nav { grid-template-columns: repeat(2, auto); justify-content: start; }
  .footer__bottom { flex-direction: column; margin-top: 8px; padding-top: 28px; padding-bottom: 88px; }
  .footer__legal { flex-direction: column; gap: 8px; }

  .call-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; }
}
