:root {
  --container: 1224px;
  --container-wide: 1320px;
  --gutter: 16px;
  --green: #73d13d;
  --green-hover: #5fbd2e;
  --text: #262626;
  --white: #ffffff;
  --off-white: #fafafa;
  --line: #e6e6e6;
  --bg: #ffffff;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-offset: 128px;
}

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

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

/* ---------------------------------------------------------------------------
 * Gutenberg content width.
 * Обычные блоки держим в контейнере; .alignwide / .alignfull (full-width
 * Lazy Blocks) могут выходить шире.
 * ------------------------------------------------------------------------- */
.entry-content > * {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.entry-content > .alignwide {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container-wide));
}

.entry-content > .alignfull {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* ---------------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  height: 80px;
  padding: 16px 24px;
  background: var(--white);
  border-radius: 20px;
}

.header-bar__left {
  display: flex;
  align-items: center;
  gap: 40px;
  min-width: 0;
}

.header-logo {
  display: block;
  flex-shrink: 0;
}

.header-logo img,
.header-logo svg {
  display: block;
  height: 36px;
  width: auto;
}

.header-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-nav__menu a {
  font-weight: 500;
  font-size: 16px;
  line-height: normal;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.header-nav__menu a:hover { color: var(--green); }

.header-bar__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-phone {
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--green);
  color: var(--off-white);
  font-weight: 600;
  font-size: 14px;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  transition: background-color 0.15s ease;
}

.header-cta:hover { background: var(--green-hover); }

.header-burger {
  display: none;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  flex-shrink: 0;
}

.header-burger svg,
.mobile-menu__close svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* Offset page content below the floating header. */
.site-main { padding-top: var(--header-offset); }

/* ---------------------------------------------------------------------------
 * Mobile off-canvas menu
 * ------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--white);
  overflow-y: auto;
}

.mobile-menu__panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 100%;
  padding: 16px;
}

.mobile-menu__top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu__head .header-logo img,
.mobile-menu__head .header-logo svg { height: 26px; }

.mobile-menu__close {
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text);
}

.mobile-menu__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu__nav a {
  font-weight: 500;
  font-size: 24px;
  line-height: normal;
  color: var(--text);
  text-decoration: none;
}

.mobile-menu__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu__contact {
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
}

.mobile-menu__cta {
  width: 100%;
  height: 52px;
  font-size: 16px;
  color: var(--white);
}

/* ---------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------- */
.site-footer {
  background: var(--text);
  margin-top: 64px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 100px;
  padding-block: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: block;
  flex-shrink: 0;
}

.footer-logo img,
.footer-logo svg {
  display: block;
  height: 36px;
  width: auto;
}

.footer-copy {
  margin: 0;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  color: var(--white);
}

.footer-privacy {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
 * Tablet / mobile header
 * ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .header-bar {
    margin-top: 16px;
    height: 50px;
    padding: 0 16px;
    border-radius: 10px;
  }

  .header-bar__left { gap: 0; }

  .header-logo img,
  .header-logo svg { height: 26px; }

  .header-nav,
  .header-bar__right { display: none; }

  .header-burger { display: block; }

  :root { --header-offset: 82px; }
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    min-height: 0;
    padding-block: 24px;
  }

  .footer-left {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .footer-logo img,
  .footer-logo svg { height: 26px; }

  .footer-copy__rights { display: none; }

  .footer-privacy { text-align: center; }
}
