/*
Theme Name: WP Rytual Child
Template: wp-rytual
*/

:root {
  --color-gold: #cbb68b;
  --color-accent: #0097D8;
  --color-cta: #fe7002;
  --color-bg-dark: #111;
  --color-white: #fff;
  --color-text-muted: rgba(255, 255, 255, 0.58);
  --font-heading: 'Forum', cursive;
  --font-body: 'Montserrat', sans-serif;
  --border-gold: 1px solid var(--color-gold);
  --header-desktop-h: 153.52px;
  --header-mobile-h: 110px;
  --content-max-w: 1280px;
}

.header,
.header .header__menu>li>a,
.header .logo__text,
.header .logo__title {
  font-family: var(--font-heading);
}

.header .logo a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header .logo__title {
  font-weight: 400;
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--color-gold);
  line-height: 1.2;
  text-align: center;
}

.intro__lead,
.intro__lead-line,
.intro__subtext {
  font-family: var(--font-body);
}

.intro__desc {
  display: flex;
  flex-direction: column;
  gap: clamp(15px, 3vh, 50px);
  background: transparent !important;
  box-shadow: none;
  align-items: flex-start;
}

.intro__lead {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vh, 40px);
}

.intro__lead-line {
  font-size: clamp(20px, min(4vw, 4vh), 46px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-white);
}

.intro__title {
  font-family: var(--font-heading);
  font-size: clamp(36px, min(5.5vw, 8vh), 85px);
  letter-spacing: 0;
  color: var(--color-gold);
  margin: 0;
  text-align: left;
}

.intro__subtext {
  font-size: clamp(18px, min(3vw, 3vh), 36px);
  line-height: 1.2;
  font-weight: 400;
  color: var(--color-white);
}

.intro__cta-wrap {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  max-width: 407px;
}

.intro__advantages {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.intro__advantages-item {
  flex: 0 0 33.3333%;
}

.intro__advantages-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.intro__advantages-icon {
  width: 30px;
  height: 33px;
  flex: 0 0 auto;
  margin-top: 4px;
}

.intro__advantages-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-gold) !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  /* 3 строки */
  overflow: hidden;
}

.intro .intro__cta.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 68px;
  margin-top: 0;
  padding: 0 16px;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--color-white) !important;
  background-color: var(--color-cta) !important;
  border: var(--border-gold);
  text-decoration: none;
  white-space: normal;
  word-break: break-word;
}

.intro .intro__cta.btn:hover,
.intro .intro__cta.btn:focus-visible,
.intro .intro__cta.btn:active {
  color: var(--color-white) !important;
  background-color: var(--color-cta) !important;
  filter: brightness(1.05);
  box-shadow: none;
  opacity: 1;
}

@media only screen and (min-width: 1025px) {

  /* убираем серую полосу между фиксированным header и первым блоком */

  .header {
    position: sticky !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    margin: 0 !important;
    z-index: 999;
    display: flex;
    align-items: flex-end;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    padding: 0 20px !important;
    background-color: var(--color-bg-dark) !important;
    transform: none !important;
    transition: none !important;
    min-height: var(--header-desktop-h) !important;
  }

  .header .logo {
    order: 1;
    flex: 0 0 auto;
    width: auto;
    height: var(--header-desktop-h);
    min-height: var(--header-desktop-h);
    padding: 8px 12px;
    margin-right: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header .logo img {
    width: 70px;
    height: 83.92px;
    max-width: none;
    object-fit: contain;
  }

  .header__content-col {
    order: 2;
    margin-left: 21px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-self: stretch;
  }

  .header__top-blocks {
    margin: auto 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
  }

  .header__top-block {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.8vw, 12px);
    font-family: var(--font-heading);
    color: var(--color-white);
    font-weight: 400;
  }

  .header__top-block--1 .header__top-text {
    font-size: clamp(12px, 1.2vw, 20px);
  }

  .header__top-block--2 {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(4px, 0.6vw, 10px) !important;
  }

  .header__top-block--2>a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }

  .header__top-block--2 .header__top-text {
    font-size: clamp(11px, 1.1vw, 18px);
    color: var(--color-gold);
    text-align: center;
  }

  .header__top-block--2 img {
    flex: 0 0 auto;
    width: clamp(16px, 1.5vw, 23px) !important;
    height: auto !important;
    margin-bottom: 4px;
  }

  .header__top-block--3 .phone-numbers {
    font-size: clamp(11px, 1.1vw, 18px);
    color: var(--color-gold);
  }

  .header__top-block--4 {
    align-items: center;
  }

  .header__top-block--4 .header__top-socials {
    width: 100%;
    justify-content: center;
    gap: 22px !important;
  }

  .header__top-block--4 .header__top-socials img {
    flex: 0 0 auto;
    width: 23px !important;
    height: 25.3px !important;
    object-fit: contain;
  }

  .header__top-block--4>.header__top-text {
    font-size: clamp(11px, 1.1vw, 18px);
    text-align: center;
  }

  .header__top-block--5>.header__top-text {
    font-size: clamp(12px, 1.2vw, 19px);
  }

  .header__top-block--col {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(2px, 0.4vw, 6px);
  }

  .header__top-row {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.5vw, 8px);
  }

  .header__top-text {
    line-height: 1.2;
    text-align: left;
  }

  .header__top-subtext {
    font-size: clamp(11px, 1.1vw, 18px);
    color: var(--color-white);
    line-height: 1.2;
  }

  .header__top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 0.5vw, 8px);
    background-color: var(--color-cta) !important;
    border: var(--border-gold) !important;
    width: clamp(100px, 9vw, 151px);
    height: clamp(26px, 2vw, 34px);
    padding: 0;
    color: var(--color-white) !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: clamp(11px, 1vw, 16px);
    margin-top: 4px;
  }

  .header__top-block img {
    width: clamp(20px, 2vw, 32px);
    height: clamp(20px, 2vw, 32px);
    object-fit: contain;
  }

  .header__top-btn img {
    width: clamp(10px, 1vw, 15px) !important;
    height: auto !important;
    flex: 0 0 auto;
  }

  .header .consultation,
  .header .logo__text {
    display: none;
  }

  .header__nav-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    border: var(--border-gold);
    border-radius: 4px;
    height: clamp(42px, 3.5vw, 51px);
    box-sizing: border-box;
  }

  .header .header__menu--left {
    margin-left: 0;
    justify-content: center;
  }

  .header .header__menu--right {
    justify-content: center;
  }

  .header .header__tel {
    order: 4;
    margin-left: auto;
  }

  .header .header__menu {
    border: none;
    border-radius: 0;
    height: 100%;
    min-height: auto;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .header__menu--single {
    width: 100%;
    justify-content: space-evenly;
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
  }

  .header .header__menu--left,
  .header .header__menu--right {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: space-evenly;
  }

  .header .header__menu>li {
    flex: 1 1 0;
    margin: 0;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    position: relative;
  }

  .header .header__menu>li>a {
    white-space: nowrap;
    padding: 0 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Submenu Styles */
  .header .header__menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-bg-dark);
    border: var(--border-gold);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 250px;
    z-index: 1000;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }

  .header .header__menu li:hover>.sub-menu,
  .header .header__menu li:focus-within>.sub-menu {
    display: flex;
  }

  .header .header__menu .sub-menu li {
    display: block;
    width: 100%;
    margin: 0;
  }

  .header .header__menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-white);
    text-align: left;
    white-space: normal;
    font-size: 14px;
    font-weight: 500;
  }

  .header .header__menu .sub-menu li a:hover {
    background-color: rgba(203, 182, 139, 0.2);
    color: var(--color-gold);
  }

  /*
   * Hero: правий край вирівняний з правим краєм .header__nav-wrapper.
   */
  .intro {
    background-image: url('figma-prerquisites/main-hero-bg.png') !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 0 !important;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    min-height: calc(100vh - var(--header-desktop-h)) !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    position: relative;
  }

  /* override any parent/theme that may strip bg on narrow viewports */
  .intro[style] {
    background-image: url('figma-prerquisites/main-hero-bg.png') !important;
  }

  .intro__row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .intro__side-blocks {
    position: static;
    flex: 0 0 135px;
    width: 135px;
    min-width: 135px;
    flex-shrink: 0;
    margin-left: auto;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding-top: 44px;
    padding-bottom: 44px;
    box-sizing: border-box;
    z-index: 10;
    height: 100%;
  }

  .intro__side-block,
  a.intro__side-block {
    width: 135px;
    height: 113px;
    background-color: rgba(255, 255, 255, 0.1);
    border: var(--border-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
  }

  .intro__side-block-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .intro__side-block-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    text-align: center;
    line-height: 1.2;
  }

  /* убираем отступ, так как хедер теперь не fixed */
  .home-section,
  .site-content,
  #content {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .intro__desc {
    position: relative;
    z-index: 5;
    flex: 1 1 auto;
    justify-content: space-between;
    min-width: 0;
    max-width: 1201px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    box-sizing: border-box;
  }

  .intro__title {
    font-size: clamp(50px, 6.5vw, 85px);
  }

  .intro__advantages {
    width: 100%;
    max-width: 1201px;
    height: auto;
    min-height: 78px;
  }

  /* Fade out the text blocks gradually depending on container space */
  @media only screen and (max-width: 1400px) {
    .header__top-block--1 {
      display: none !important;
    }
  }

  @media only screen and (max-width: 1200px) {
    .header__top-block--2 {
      display: none !important;
    }
  }

  .mobile-menu {
    display: none !important;
  }

}

.header__mobile-center {
  display: none;
}

.home-section {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Base mobile configuration: show Hamburger at <= 1024px */
@media only screen and (max-width: 1024px) {
  .header {
    position: sticky !important;
    top: 0 !important;
    z-index: 200 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 15px 0 0 !important;
    gap: 0 !important;
    min-height: var(--header-mobile-h) !important;
    height: auto !important;
    background-color: var(--color-bg-dark) !important;
  }

  nav.mobile-menu,
  .mobile-menu {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    order: 3 !important;
    align-self: stretch !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 15px !important;
    position: relative !important;
    cursor: pointer !important;
    height: auto !important;
    min-height: var(--header-mobile-h) !important;
  }

  nav.mobile-menu .mobile-menu__icon,
  .mobile-menu .mobile-menu__icon {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: 32px !important;
    height: 24px !important;
  }

  /* Hamburger lines — simple 3-bar icon in #cbb68b */
  .mobile-menu__lines {
    display: block !important;
    visibility: visible !important;
    width: 28px !important;
    height: 3px !important;
    background-color: var(--color-gold) !important;
    border-radius: 2px !important;
    position: relative !important;
  }

  .mobile-menu__lines::before,
  .mobile-menu__lines::after {
    content: '' !important;
    display: block !important;
    width: 28px !important;
    height: 3px !important;
    background-color: var(--color-gold) !important;
    border-radius: 2px !important;
    position: absolute !important;
    left: 0 !important;
  }

  .mobile-menu__lines::before {
    top: -9px !important;
  }

  .mobile-menu__lines::after {
    top: 9px !important;
  }

  .mobile-menu__input {
    position: absolute !important;
    opacity: 0 !important;
    top: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer !important;
    z-index: 160 !important;
    margin: 0 !important;
  }

  .mobile-menu__icon {
    cursor: pointer !important;
    z-index: 150 !important;
  }

  .mobile-menu__list {
    position: fixed !important;
    top: var(--header-mobile-h) !important;
    right: 0 !important;
    width: min(320px, 86vw) !important;
    height: calc(100vh - var(--header-mobile-h)) !important;
    height: calc(100dvh - var(--header-mobile-h)) !important;
    transform: translate3d(100%, 0, 0) !important;
    transition: transform 0.35s ease !important;
    background: var(--color-bg-dark) !important;
    border-left: var(--border-gold) !important;
    overflow-y: auto !important;
    z-index: 140 !important;
  }

  .mobile-menu__input:checked~.mobile-menu__list {
    transform: translate3d(0, 0, 0) !important;
  }

  .mobile-menu__input:checked+.mobile-menu__icon .mobile-menu__lines {
    width: 0 !important;
  }

  .mobile-menu__input:checked+.mobile-menu__icon .mobile-menu__lines::before {
    transform: rotate(45deg) translate(0) !important;
  }

  .mobile-menu__input:checked+.mobile-menu__icon .mobile-menu__lines::after {
    transform: rotate(-45deg) translate(0) !important;
  }

  .header .logo {
    order: 1 !important;
    width: auto !important;
    flex: 0 0 auto !important;
    align-self: stretch !important;
    height: auto !important;
    min-height: unset !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .header .logo a {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    height: 100% !important;
    margin: 0 !important;
  }

  .header .logo img {
    width: auto !important;
    height: 55px !important;
    max-height: 55px !important;
    object-fit: contain !important;
  }

  .header .logo__title {
    font-size: 13px !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  .header .consultation,
  .header .header__tel {
    display: none !important;
  }
}

/* Tablet (801px - 1024px): Show original blocks 3 and 5 in the middle */
@media only screen and (min-width: 801px) and (max-width: 1024px) {
  .header__mobile-center {
    display: none !important;
  }

  .header__nav-wrapper {
    display: none !important;
  }

  .header__content-col {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    order: 2 !important;
    margin: 0 !important;
    padding: 0 10px !important;
    flex: 1 1 auto;
  }

  .header__top-blocks {
    display: flex !important;
    position: static !important;
    margin: 0 !important;
    width: 100% !important;
    justify-content: space-evenly !important;
  }

  .header__top-block--1,
  .header__top-block--2,
  .header__top-block--4 {
    display: none !important;
  }

  .header__top-block--3,
  .header__top-block--5 {
    display: flex !important;
  }

  /* Restore font/color styles for blocks shown in tablet view */
  .header__top-block {
    font-family: var(--font-heading) !important;
    color: var(--color-white) !important;
    font-weight: 400 !important;
  }

  .header__top-block--3 .phone-numbers {
    font-size: clamp(11px, 1.5vw, 18px) !important;
    color: var(--color-gold) !important;
    white-space: nowrap !important;
  }

  /* Ensure block 3 lays out as a column (phone row on top, subtext below) */
  .header__top-block--3 {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
  }

  .header__top-block--3 .header__top-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  .header__top-block--3 .header__top-subtext {
    font-size: clamp(11px, 1.4vw, 18px) !important;
    color: var(--color-white) !important;
    white-space: nowrap !important;
    display: block !important;
  }

  .header__top-block--3 img,
  .header__top-block--5 img {
    width: clamp(18px, 2vw, 30px);
    height: auto;
    object-fit: contain;
  }

  .header__top-block--5 .header__top-text {
    font-size: clamp(11px, 1.4vw, 19px) !important;
    color: var(--color-white) !important;
  }

  /* Block 5: stack text above button */
  .header__top-block--5 {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  .header__top-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background-color: var(--color-cta) !important;
    border: var(--border-gold) !important;
    width: 120px !important;
    height: 27px !important;
    padding: 0 !important;
    color: var(--color-white) !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  .header__top-btn img {
    width: 12px !important;
    height: auto !important;
    flex: 0 0 auto !important;
  }
}

/* Strict Mobile screens (<= 800px): Disable top blocks entirely, show custom 3-row layout */
@media only screen and (max-width: 800px) {

  .header__content-col,
  .header__top-blocks {
    display: none !important;
  }

  /* Force burger visible — parent theme may hide it below 800px */
  nav.mobile-menu,
  .mobile-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-menu__icon {
    display: flex !important;
    visibility: visible !important;
    width: 32px !important;
    height: 24px !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
  }

  .header__mobile-center {
    display: flex !important;
    order: 2 !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    flex: 1 1 auto;
    padding: 0 10px;
  }

  .mobile-center__phones {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(10px, 2.6vw, 13px);
    color: var(--color-gold);
    line-height: 1.2;
  }

  .mobile-center__helptext {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 12px;
    color: var(--color-white);
    line-height: 1.2;
    white-space: nowrap;
  }

  .mobile-center__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 120px;
    height: 27px;
    background-color: var(--color-cta);
    border: var(--border-gold);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 12px;
    color: var(--color-white);
    text-decoration: none;
    margin-top: 2px;
  }

  .mobile-center__btn img {
    width: 12px;
    height: 12px;
    object-fit: contain;
  }
}

/* Very narrow screens (<390px): shrink header so burger stays in bounds */
@media only screen and (max-width: 389px) {
  :root {
    --header-mobile-h: 90px;
  }

  .header {
    padding: 0 6px 0 0 !important;
    min-height: var(--header-mobile-h) !important;
  }

  .header .logo {
    padding: 6px 8px !important;
  }

  .header .logo img {
    height: 40px !important;
    max-height: 40px !important;
  }

  .header .logo__title {
    font-size: 10px !important;
    white-space: normal !important;
    max-width: 80px !important;
  }

  .header__mobile-center {
    padding: 0 4px !important;
  }

  .mobile-center__helptext {
    white-space: normal !important;
    font-size: 10px !important;
  }

  .mobile-center__btn {
    width: auto !important;
    min-width: 80px !important;
    padding: 0 8px !important;
    height: 24px !important;
    font-size: 11px !important;
  }

  nav.mobile-menu,
  .mobile-menu {
    padding: 0 8px !important;
    min-height: var(--header-mobile-h) !important;
    flex-shrink: 0 !important;
  }
}

/* Preserve hero bg + fix layout on all narrow screens */
@media only screen and (max-width: 1024px) {
  .intro {
    background-image: url('figma-prerquisites/main-hero-bg.png') !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    min-height: calc(100vh - var(--header-mobile-h)) !important;
    padding-top: 0 !important;
    padding-bottom: 20px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    justify-content: flex-start !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }

  .intro__row {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
  }

  .intro__desc {
    padding-top: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    flex: 1 1 auto !important;
    justify-content: space-between !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }

  /* Ряд над заголовком: три колонки заповнюють ширину, проміжки ростуть з екраном */
  .intro__side-blocks {
    position: static !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-self: stretch !important;
    flex: 0 0 auto !important;
    width: clamp(100px, 13vw, 135px) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    gap: clamp(12px, 2vw, 26px) !important;
    padding: 10px 0 !important;
    box-sizing: border-box !important;
  }

  .intro__side-block {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: clamp(90px, 10vw, 113px) !important;
    min-height: 86px !important;
    padding: 6px 4px !important;
    /* Restore border and background */
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: var(--border-gold) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .intro__side-block-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .intro__side-block-content img {
    width: 28px !important;
    height: auto !important;
    flex: 0 0 auto !important;
  }

  .intro__side-block-text {
    text-align: center !important;
    font-size: clamp(11px, 2.8vw, 13px) !important;
    line-height: 1.2 !important;
    color: var(--color-white) !important;
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
  }
}

/* Side-blocks: switch to horizontal row only on very small screens */
@media only screen and (max-width: 479px) {
  .intro__row {
    flex-direction: column !important;
  }

  .intro__side-blocks {
    order: -1 !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-left: 0 !important;
    padding: 10px 0 !important;
    margin-bottom: 16px !important;
  }

  .intro__side-block {
    width: clamp(80px, 28vw, 110px) !important;
    min-width: 80px !important;
    max-width: 110px !important;
    height: auto !important;
    min-height: 80px !important;
  }
}

/* Switch advantages row to a vertical column and eliminate text breaks on smaller screens */
@media only screen and (max-width: 1325px) {
  .intro__advantages {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }

  .intro__advantages-item {
    flex: 0 0 auto !important;
    width: 100% !important;
  }

  br.desktop-br {
    display: none !important;
  }
}

.about.about--stats {
  padding: clamp(28px, 4vw, 52px) 0;
  background: var(--color-bg-dark);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
}

.about-stats__title {
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 400;
  color: var(--color-gold);
  line-height: 1.05;
}

.about-stats__lead,
.about-stats__text {
  margin: 0 auto;
  max-width: 980px;
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.45;
  color: var(--color-white);
}

.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.about-stats__card {
  margin: 0;
  padding: 14px 12px;
  min-height: 86px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(160deg, #2a2a2a 0%, #1d1d1d 60%, #171717 100%);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about-stats__num {
  color: var(--color-gold);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  margin-right: 0;
}

.about-stats__label {
  display: block;
}

.about-stats__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

@media only screen and (max-width: 1024px) {
  .about-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-stats__card {
    min-height: 80px;
  }
}

@media only screen and (max-width: 680px) {
  .about-stats__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-stats__card {
    min-height: 0;
    padding: 12px 11px;
  }
}

.burial-cremation {
  position: relative;
  background-color: #0a0a0a;
  overflow: hidden;
  isolation: isolate;
}

.burial-cremation::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('figma-prerquisites/section-bg.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
  opacity: 0.35;
  filter: blur(4px);
  transform: translateZ(0);
  z-index: 0;
  pointer-events: none;
}

.burial-cremation::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      #000 0px,
      #000 200px,
      rgba(0, 0, 0, 0) calc(200px + 33.33vw));
  z-index: 1;
  pointer-events: none;
}

.burial-cremation__candle {
  position: absolute;
  bottom: 180px;
  left: clamp(0px, calc(21.75vw - 310px), 140px);
  width: clamp(60px, 6.5vw, 96px);
  height: auto;
  max-height: 60%;
  object-fit: contain;
  object-position: bottom;
  z-index: 2;
  pointer-events: none;
  opacity: 0.88;
}

.burial-cremation__angel {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(calc(-50% - clamp(5px, 1.5vw, 10px))) translateX(5%);
  height: 110%;
  width: auto;
  object-fit: contain;
  object-position: center center;
  z-index: 2;
  pointer-events: none;
  opacity: 0.85;
}

.burial-cremation__container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--content-max-w);
  margin: 0 auto;
  padding: clamp(12px, 1.5vw, 22px) 20px clamp(18px, 2vw, 30px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vw, 22px);
}

.burial-cremation__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(32px, 5.5vw, 70px);
  line-height: 1.15;
  color: var(--color-gold);
  letter-spacing: 0;
}

.burial-cremation__accent,
.burial-cremation__accent--ql {
  color: var(--color-accent);
}

.burial-cremation__accent--ql {
  text-decoration: none;
}

.burial-cremation__body {
  position: relative;
}

.burial-cremation__card {
  border-radius: 20px;
  background: linear-gradient(90deg,
      rgba(36, 36, 36, 0.88) 0%,
      rgba(62, 62, 62, 0.80) 28%,
      rgba(135, 135, 135, 0.70) 50%,
      rgba(62, 62, 62, 0.80) 72%,
      rgba(36, 36, 36, 0.88) 100%);
  padding: clamp(14px, 1.6vw, 26px) clamp(20px, 2.4vw, 38px);
  max-width: 90%;
}

.burial-cremation__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(18px, 2.6vw, 44px);
  row-gap: 0;
}

.burial-cremation__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(7px, 0.85vw, 12px);
}

.burial-cremation__item {
  position: relative;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.burial-cremation__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.burial-cremation__item-main {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 24px);
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.3;
}

.burial-cremation__item-sub {
  font-family: var(--font-body);
  font-size: clamp(10px, 0.72vw, 11.5px);
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.burial-cremation__cta-bar {
  background: rgba(40, 40, 46, 0.85);
  border-radius: 12px;
  padding: clamp(10px, 1.1vw, 16px) clamp(16px, 2vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.burial-cremation__cta-main {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 22px);
  flex-wrap: nowrap;
}

.burial-cremation__cta-text {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(13px, 1.3vw, 18px);
  font-weight: 400;
  color: var(--color-gold);
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.burial-cremation__cta-gold {
  color: var(--color-accent);
}

.burial-cremation__messengers {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.burial-cremation__messengers img {
  width: clamp(18px, 1.5vw, 24px);
  height: clamp(18px, 1.5vw, 24px);
  object-fit: contain;
  display: block;
}

.burial-cremation__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0 clamp(14px, 1.8vw, 28px);
  height: clamp(52px, 2.8vw, 62px);
  background-color: var(--color-cta);
  border: var(--border-gold);
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: clamp(20px, 1.05vw, 28px);
  font-weight: 400;
  color: var(--color-white);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.2s ease;
}

.burial-cremation__cta-btn:hover,
.burial-cremation__cta-btn:focus-visible {
  filter: brightness(1.12);
  color: var(--color-white);
}

.burial-cremation__cta-subtext {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(11px, 0.82vw, 12.5px);
  font-weight: 400;
  color: var(--color-gold);
  text-align: left;
  line-height: 1.4;
}

.burial-cremation__cta-link {
  color: var(--color-accent);
  text-decoration: none;
}

.burial-cremation__seo {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 3vw, 42px) 0;
}

.burial-cremation__seo-inner {
  width: min(var(--content-max-w), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.burial-cremation__seo--bottom .burial-cremation__seo-inner {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
}

.burial-cremation__seo--split .burial-cremation__seo-inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: var(--content-max-w);
}

.burial-cremation__seo-heading {
  width: min(var(--content-max-w), calc(100% - 40px));
  margin: 0 auto clamp(14px, 2vw, 24px);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.1;
  color: var(--color-gold);
  text-align: center;
}

.burial-cremation__seo-item {
  border-radius: 18px;
  padding: clamp(16px, 2.2vw, 24px);
  background: rgba(17, 17, 17, 0.72);
  border: 1px solid rgba(255, 215, 135, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.advantages-seo .burial-cremation__seo-item {
  padding: clamp(16px, 2.2vw, 24px);
  background: none;
  border: 1px solid rgba(255, 215, 135, 0.55);
  box-shadow: none;
  border-radius: 18px;
}

.burial-cremation__seo:not(.advantages-seo) .burial-cremation__seo-inner {
  display: block;
}

.burial-cremation__seo:not(.advantages-seo) .burial-cremation__seo-item {
  padding: 0;
  margin: 0 0 clamp(14px, 2vw, 24px);
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.burial-cremation__seo:not(.advantages-seo) .burial-cremation__seo-item:last-child {
  margin-bottom: 0;
}

.burial-cremation__seo:not(.advantages-seo) .burial-cremation__seo-heading,
.burial-cremation__seo:not(.advantages-seo) .burial-cremation__seo-title {
  color: var(--color-white);
  text-align: left;
}

.burial-cremation__seo:not(.advantages-seo) .burial-cremation__seo-heading {
  width: 100%;
  margin: 0 0 clamp(14px, 2vw, 24px);
}

.burial-cremation__seo:not(.advantages-seo) .burial-cremation__seo-text {
  text-align: left;
}

.burial-cremation__seo--bottom:not(.advantages-seo) .burial-cremation__seo-inner {
  width: min(var(--content-max-w), calc(100% - 40px));
  margin: 0 auto;
  max-width: var(--content-max-w);
}

.burial-cremation__seo--bottom:not(.advantages-seo) .burial-cremation__seo-heading {
  width: min(var(--content-max-w), calc(100% - 40px));
  margin: 0 auto clamp(14px, 2vw, 24px);
  text-align: left;
}

.burial-cremation__seo--bottom:not(.advantages-seo) .burial-cremation__seo-heading,
.burial-cremation__seo--bottom:not(.advantages-seo) .burial-cremation__seo-title,
.burial-cremation__seo--bottom:not(.advantages-seo) .burial-cremation__seo-text {
  text-align: left;
}

.burial-cremation__seo-title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  color: var(--color-gold);
}

.burial-cremation__seo-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

@media only screen and (max-width: 1024px) {
  .burial-cremation__candle {
    width: clamp(50px, 7.5vw, 85px);
    max-height: 45%;
    opacity: 0.65;
  }

  .burial-cremation__angel {
    opacity: 0.6;
  }

  .burial-cremation__cta-main {
    flex-wrap: wrap;
    gap: 10px;
  }

  .burial-cremation__cta-btn {
    margin-left: 0;
  }

  .burial-cremation__cta-text {
    white-space: normal;
  }

  .burial-cremation__seo-inner {
    width: min(100%, calc(100% - 30px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .burial-cremation__seo--bottom .burial-cremation__seo-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media only screen and (max-width: 768px) {
  .burial-cremation__candle {
    display: none;
  }

  .burial-cremation__container {
    padding: clamp(20px, 5vw, 28px) clamp(12px, 4vw, 20px) clamp(16px, 4vw, 24px);
    gap: 16px;
  }

  .burial-cremation__title {
    text-align: center;
    font-size: clamp(26px, 7.5vw, 40px);
  }

  .burial-cremation__body {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .burial-cremation__card {
    order: 1;
    max-width: 100%;
    border-radius: 14px;
    padding: clamp(14px, 4vw, 20px);
  }

  .burial-cremation__angel {
    position: static;
    display: block;
    order: 2;
    width: clamp(180px, 64vw, 280px);
    height: auto;
    max-height: none;
    margin: clamp(0px, -7vw, 0px) auto 0;
    transform: none;
    opacity: 0.9;
    z-index: auto;
  }

  .burial-cremation__cols {
    grid-template-columns: 1fr;
    gap: clamp(6px, 2vw, 10px);
  }

  .burial-cremation__item-main {
    font-size: clamp(14px, 3.8vw, 18px);
  }

  .burial-cremation__item-sub {
    font-size: clamp(11px, 2.8vw, 13px);
  }

  .burial-cremation__cta-bar {
    padding: clamp(14px, 4vw, 20px);
    gap: 14px;
  }

  .burial-cremation__cta-main {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .burial-cremation__cta-text {
    order: 1;
    text-align: center;
    font-size: clamp(17px, 5vw, 22px);
    white-space: normal;
  }

  .burial-cremation__cta-btn {
    order: 2;
    width: 100%;
    height: clamp(46px, 12vw, 56px);
    font-size: clamp(16px, 4.5vw, 20px);
    margin-left: 0;
    border-radius: 8px;
  }

  .burial-cremation__messengers {
    order: 3;
    justify-content: center;
    gap: 20px;
  }

  .burial-cremation__messengers img {
    width: clamp(26px, 7vw, 34px);
    height: clamp(26px, 7vw, 34px);
  }

  .burial-cremation__cta-subtext {
    text-align: center;
    font-size: clamp(11px, 3vw, 13px);
  }

  .burial-cremation__seo {
    padding: clamp(18px, 5vw, 26px) 0;
  }

  .burial-cremation__seo-inner {
    width: min(100%, calc(100% - 24px));
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .burial-cremation__seo-title {
    margin-bottom: 8px;
    font-size: clamp(22px, 6vw, 28px);
  }

  .burial-cremation__seo-text {
    font-size: clamp(13px, 3.8vw, 15px);
    line-height: 1.55;
  }

  .burial-cremation__seo:not(.advantages-seo) .burial-cremation__seo-title,
  .burial-cremation__seo:not(.advantages-seo) .burial-cremation__seo-text {
    text-align: left;
  }
}

@media only screen and (max-width: 480px) {
  .burial-cremation__card {
    border-radius: 12px;
    padding: 12px;
  }

  .burial-cremation__angel {
    width: clamp(160px, 68vw, 220px);
    margin: clamp(0px, -8vw, 0px) auto 0;
  }

  .burial-cremation__cta-bar {
    border-radius: 10px;
    padding: 12px;
    gap: 12px;
  }

  .burial-cremation__item-main {
    font-size: clamp(13px, 3.8vw, 16px);
  }

  .burial-cremation__seo-inner {
    width: min(100%, calc(100% - 20px));
  }
}