/* ============================================================
   0) ROOT TOKENS (fonts, colors, radii, shadows, transitions)
   ============================================================ */

:root {
  /* Fonts */
  --font-default: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-nav: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;


  /* Global colors */
  --color-bg: #ffffff;
  --color-text: #555555;
  --color-heading: #222222;
  --color-accent: #5cb874;
  --color-surface: #ffffff;
  --color-contrast: #ffffff;

  /* Nav colors */
  --color-nav: #555555;
  --color-nav-hover: #5cb874;
  --color-nav-mobile-bg: #ffffff;
  --color-nav-dropdown-bg: #ffffff;
  --color-nav-dropdown: #555555;
  --color-nav-dropdown-hover: #5cb874;

  /* Common tokens */
  --radius-4: 4px;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-15: 15px;
  --radius-16: 16px;
  --radius-pill: 50px;

  --shadow-1: 0 0 18px rgba(0, 0, 0, 0.1);
  --shadow-2: 0 0 30px rgba(0, 0, 0, 0.1);
  --shadow-3: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-4: 0 8px 25px rgba(0, 0, 0, 0.25);
  --shadow-5: 0 12px 40px rgba(0, 0, 0, 0.2);

  --t-fast: 0.2s;
  --t-base: 0.3s;
  --t-slow: 0.5s;

  --ease: ease;
  --ease-in-out: ease-in-out;

  /* Smooth scroll */
  scroll-behavior: smooth;
}

/* Color presets (theme overrides via CSS variables) */
.light-background {
  --color-bg: #f9fcf9;
  --color-surface: #ffffff;
}

.dark-background {
  --color-bg: #060606;
  --color-text: #ffffff;
  --color-heading: #ffffff;
  --color-surface: #252525;
  --color-contrast: #ffffff;
}

.accent-background {
  --color-bg: #5cb874;
  --color-text: #ffffff;
  --color-heading: #ffffff;
  --color-surface: #80c792;
}

/* ============================================================
   1) BASE / TYPOGRAPHY
   ============================================================ */

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-default);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--t-base) var(--ease);
}

a:hover {
  color: color-mix(in srgb, var(--color-accent), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
  font-family: var(--font-heading);
}

h2 {
  text-align: center;
}

/* Utility */
.center {
  text-align: center;
}

/* Make inline links in text underlined (accessibility / clarity) */
p a,
.text-muted a {
  text-decoration: underline;
}

p a:hover,
.text-muted a:hover {
  text-decoration-thickness: 2px;
}

p.yes strong {
  color: #2e7d32;
  /* зелёный */
  font-size: 18px;
  font-weight: 600;
}

p.no strong {
  color: #c62828;
  /* красный */
  font-size: 18px;
  font-weight: 600;
}

/* ============================================================
   2) ANIMATIONS
   ============================================================ */

@keyframes pulsate-play-btn {
  0% {
    opacity: 1;
    transform: scale(0.6, 0.6);
  }

  100% {
    opacity: 0;
    transform: scale(1, 1);
  }
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ============================================================
   3) SHARED COMPONENTS
   ============================================================ */

/* Pulsating Play Button */
.pulsating-play-btn {
  position: relative;
  display: block;
  width: 94px;
  height: 94px;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(var(--color-accent) 50%,
      color-mix(in srgb, var(--color-accent), transparent 75%) 52%);
}

.pulsating-play-btn::before {
  content: "";
  position: absolute;
  top: -15%;
  left: -15%;
  width: 120px;
  height: 120px;
  border: 5px solid color-mix(in srgb, var(--color-accent), transparent 30%);
  border-radius: 50%;
  background: rgba(198, 16, 0, 0);
  opacity: 1;
  animation: pulsate-play-btn 2s steps(1) 0s infinite forwards;
}

.pulsating-play-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 100;
  width: 0;
  height: 0;
  transform: translateX(-40%) translateY(-50%);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.pulsating-play-btn:hover::before {
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-40%) translateY(-50%);
  border: 0;
  border-radius: 0;
  background: transparent;
  animation: none;
  z-index: 200;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
}

.pulsating-play-btn:hover::after {
  transform: scale(20);
  border-left-color: var(--color-accent);
}

/* PHP Email Form Messages */
.php-email-form .error-message,
.php-email-form .sent-message,
.php-email-form .loading {
  display: none;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .error-message {
  background: #df1529;
  color: #ffffff;
  text-align: left;
}

.php-email-form .sent-message {
  background: #059652;
  color: #ffffff;
  text-align: center;
}

.php-email-form .loading {
  background: var(--color-surface);
  text-align: center;
  font-weight: 400;
}

.php-email-form .loading::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--color-accent);
  border-top-color: var(--color-surface);
  border-radius: 50%;
  animation: php-email-form-loading 1s linear infinite;
}

/* ============================================================
   4) LAYOUT: HEADER
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: all var(--t-slow) var(--ease);
}

.header .topbar {
  height: 40px;
  padding: 0;
  background-color: var(--color-bg);
  font-size: 14px;
  transition: all var(--t-slow) var(--ease);
}

.header .topbar .contact-info i {
  color: var(--color-contrast);
  font-style: normal;
}

.header .topbar .contact-info i a,
.header .topbar .contact-info i span {
  padding-left: 5px;
  color: var(--color-contrast);
}

.header .topbar .contact-info i a {
  line-height: 0;
  transition: color var(--t-base) var(--ease);
}

.header .topbar .contact-info i a:hover {
  color: var(--color-contrast);
  text-decoration: underline;
}

.header .topbar .social-links a {
  margin-left: 20px;
  line-height: 0;
  color: color-mix(in srgb, var(--color-contrast), transparent 40%);
  transition: color var(--t-base) var(--ease);
}

.header .topbar .social-links a:hover {
  color: var(--color-contrast);
}

.header .branding {
  min-height: 60px;
  padding: 10px 0;
}

.header .logo {
  line-height: 1;
}

.header .logo img,
.header .logo svg {
  max-height: 36px;
  width: auto;
  margin-right: 8px;
}

.header .logo h1 {
  margin: 0;
  color: var(--color-accent);
  font-size: 28px;
  font-weight: 700;
}

.scrolled .header {
  box-shadow: var(--shadow-1);
}

@media (max-width: 575px) {

  .header .topbar .contact-info i a,
  .header .topbar .contact-info i span {
    font-size: 13px;
  }
}

@media (max-width: 767.98px) {
  .header .topbar .social-links a {
    margin-left: 14px;
  }
}

/* ============================================================
   5) LAYOUT: NAVIGATION
   ============================================================ */

/* Desktop nav */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 0;
    margin-left: 8px;
    color: var(--color-nav);
    font-family: var(--font-nav);
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
    transition: color var(--t-base) var(--ease);
  }

  .navmenu a i,
  .navmenu a:focus i {
    margin-left: 1px;
    padding-right: 3px;
    font-size: 12px;
    line-height: 0;
    transition: color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  }

  .navmenu a span,
  .navmenu a:not(:has(i)) {
    flex: 0 0 auto;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--color-nav-hover);
  }

  .navmenu .dropdown ul {
    position: absolute;
    top: 130%;
    left: 14px;
    z-index: 99;
    display: block;
    visibility: hidden;
    opacity: 0;
    margin: 0;
    padding: 10px 0;
    background: var(--color-nav-dropdown-bg);
    border-radius: var(--radius-4);
    box-shadow: var(--shadow-2);
    transition: opacity var(--t-base) var(--ease), top var(--t-base) var(--ease), visibility var(--t-base) var(--ease);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    color: var(--color-nav-dropdown);
    font-size: 15px;
    text-transform: none;
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--color-nav-dropdown-hover);
  }

  .navmenu .dropdown:hover>ul {
    top: 100%;
    visibility: visible;
    opacity: 1;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    top: 0;
    left: -100%;
    visibility: visible;
    opacity: 1;
  }
}

/* Mobile nav */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    margin-right: 10px;
    color: var(--color-nav);
    font-size: 28px;
    line-height: 0;
    cursor: pointer;
    transition: color var(--t-base) var(--ease);
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    position: relative;
    z-index: 9998;
    display: none;
    width: fit-content;
    min-width: 260px;
    max-width: 90vw;
    margin: 20px auto;
    padding: 16px 0;
    list-style: none;
    border-radius: var(--radius-4);
    background-color: var(--color-nav-mobile-bg);
    box-shadow: var(--shadow-2);
    overflow: visible;
    transition: all var(--t-base) var(--ease);
  }

  .navmenu a,
  .navmenu a:focus {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 56px 8px 14px;
    /* right padding for round icon */
    color: var(--color-nav-dropdown);
    font-family: var(--font-nav);
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    white-space: normal;
    line-height: 1.2;
    transition: color var(--t-base) var(--ease);
  }

  .navmenu a i:not(.nav-icon-left):not(.nav-sub-icon),
  .navmenu a:focus i:not(.nav-icon-left):not(.nav-sub-icon) {
    position: absolute;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 30px;
    height: 30px;
    margin-left: 5px;
    color: var(--color-accent);
    background-color: color-mix(in srgb, var(--color-accent), transparent 75%);
    border-radius: 50%;
    font-size: 12px;
    line-height: 0;
    flex-shrink: 0;
    transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease),
      transform var(--t-base) var(--ease);
  }

  .navmenu a i:not(.nav-icon-left):not(.nav-sub-icon):hover,
  .navmenu a:focus i:not(.nav-icon-left):not(.nav-sub-icon):hover {
    color: var(--color-contrast);
    background-color: var(--color-accent);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--color-nav-dropdown-hover);
  }

  .navmenu .active i:not(.nav-icon-left):not(.nav-sub-icon),
  .navmenu .active:focus i:not(.nav-icon-left):not(.nav-sub-icon) {
    color: var(--color-contrast);
    background-color: var(--color-accent);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    z-index: 99;
    display: none;
    margin: 10px 20px;
    padding: 10px 0;
    background-color: var(--color-nav-dropdown-bg);
    border: 1px solid color-mix(in srgb, var(--color-text), transparent 90%);
    box-shadow: none;
    transition: all var(--t-slow) var(--ease-in-out);
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 9999;
    margin-right: 0;
    color: #ffffff;
    font-size: 32px;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: rgba(33, 37, 41, 0.8);
    transition: all var(--t-base) var(--ease);
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/* ============================================================
   NAV ICONS (left-side icons in menu items)
   ============================================================ */

.nav-icon-left,
.nav-sub-icon {
  display: none;
}

/* Mobile: divider between top-level items */
@media (max-width: 1199px) {
  .navmenu ul > li {
    border-bottom: 1px solid color-mix(in srgb, var(--color-text), transparent 92%);
  }
  .navmenu ul > li:last-child {
    border-bottom: none;
  }
  .navmenu .dropdown ul li {
    border-bottom: 1px solid color-mix(in srgb, var(--color-text), transparent 95%);
  }
  .navmenu .dropdown ul li:last-child {
    border-bottom: none;
  }
  .navmenu ul {
    border-radius: 16px !important;
    padding: 8px 0 !important;
  }
  .cta-offert {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Mobile dropdown arrow animation (kept as-is selector contract) */
.navmenu .dropdown>a .toggle-dropdown {
  transition: transform var(--t-base) var(--ease);
}

.navmenu .dropdown.active>a .toggle-dropdown {
  transform: rotate(180deg);
}

/* ============================================================
   6) LAYOUT: FOOTER
   ============================================================ */

.footer {
  position: relative;
  padding-bottom: 24px;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
}

.footer .footer-top {
  padding-top: 44px;
  padding-bottom: 18px;
  border-top: 1px solid color-mix(in srgb, var(--color-text), transparent 90%);
}

.footer .footer-about .logo {
  margin-bottom: 20px;
  line-height: 1;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer .footer-about p {
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.footer .social-links {
  gap: 8px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 0;
  border: 1px solid color-mix(in srgb, var(--color-text), transparent 50%);
  border-radius: 50%;
  color: color-mix(in srgb, var(--color-text), transparent 50%);
  font-size: 16px;
  transition: all var(--t-base) var(--ease);
}

.footer .social-links a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.footer h4 {
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}

.footer .footer-links {
  margin-bottom: 18px;
}

.footer .footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  display: flex;
  align-items: center;
  padding: 6px 0;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  display: inline-block;
  color: color-mix(in srgb, var(--color-text), transparent 20%);
  line-height: 1.35;
}

.footer .footer-links ul a:hover {
  color: var(--color-accent);
}

.footer .footer-contact p {
  margin-bottom: 6px;
  line-height: 1.5;
}

.footer .footer-contact .footer-contact-text {
  margin-top: 12px;
  max-width: 280px;
}

.footer .copyright {
  padding: 18px 0;
  margin-top: 8px !important;
  background-color: color-mix(in srgb, var(--color-text), transparent 95%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
}

/* Tablet */
@media (max-width: 991.98px) {
  .footer .footer-top {
    padding-top: 36px;
    padding-bottom: 12px;
  }

  .footer .footer-about {
    margin-bottom: 10px;
  }

  .footer .footer-about .logo span {
    font-size: 24px;
  }

  .footer .footer-about p {
    margin-bottom: 10px;
  }

  .footer .social-links {
    margin-top: 12px !important;
    margin-bottom: 8px;
  }

  .footer .footer-links {
    margin-bottom: 14px;
  }

  .footer .footer-contact {
    margin-top: 4px;
  }

  .footer .footer-contact .footer-contact-text {
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .footer {
    font-size: 13px;
    padding-bottom: 18px;
  }

  .footer .footer-top {
    padding-top: 28px;
    padding-bottom: 8px;
  }

  .footer .footer-about .logo {
    margin-bottom: 14px;
  }

  .footer .footer-about .logo span {
    font-size: 22px;
    letter-spacing: 0;
  }

  .footer .footer-about p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .footer .social-links a {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .footer h4 {
    font-size: 15px;
    padding-bottom: 6px;
    margin-bottom: 8px;
  }

  .footer .footer-links {
    margin-bottom: 10px;
  }

  .footer .footer-links ul li {
    padding: 5px 0;
  }

  .footer .footer-links ul a {
    line-height: 1.3;
  }

  .footer .footer-contact {
    text-align: left !important;
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--color-text), transparent 80%);
  }

  .footer .footer-contact p {
    margin-bottom: 5px;
  }

  .footer .footer-contact .footer-contact-text {
    margin-top: 10px;
  }

  .footer .copyright {
    padding: 14px 10px;
    margin-top: 4px !important;
    font-size: 13px;
  }
}

/* ============================================================
   7) GLOBAL UI: PRELOADER + SCROLL TOP
   ============================================================ */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--color-bg);
  transition: all 0.6s ease-out;
}

#preloader::before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  width: 60px;
  height: 60px;
  border: 6px solid #ffffff;
  border-color: var(--color-accent) transparent var(--color-accent) transparent;
  border-radius: 50%;
  animation: animate-preloader 1.5s linear infinite;
}

/* Scroll Top Button */
.scroll-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  width: 40px;
  height: 40px;
  background-color: var(--color-accent);
  border-radius: var(--radius-4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
}

.scroll-top i {
  color: var(--color-contrast);
  font-size: 24px;
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--color-accent), transparent 20%);
  color: var(--color-contrast);
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   8) GLOBAL SECTIONS + TITLES + BREADCRUMBS
   ============================================================ */

section,
.section {
  padding: 5px 0;
  padding-bottom: 15px;
  background-color: var(--color-bg);
  color: var(--color-text);
  scroll-margin-top: 120px;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 100px;
  }
}

/* Section titles */
.section-title {
  position: relative;
  padding-bottom: 8px;
  text-align: center;
}

.section-title h2 {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 20px;
  font-size: 32px;
  font-weight: 700;
}

.section-title h2::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  width: 160px;
  height: 1px;
  margin: auto;
  background: color-mix(in srgb, var(--color-text), transparent 60%);
}

.section-title h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  margin: auto;
  background: var(--color-accent);
}

.section-title p {
  margin-bottom: 0;
}

/* Page title + breadcrumbs */
.page-title {
  position: relative;
  background-color: var(--color-bg);
  color: var(--color-text);
}

.page-title .heading {
  padding: 40px 0 30px;
  border-top: 1px solid color-mix(in srgb, var(--color-text), transparent 90%);
}

.page-title .heading h1,
.page-title h1 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.page-title p {
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.45;
}

.page-title nav {
  padding: 20px 0;
  background-color: color-mix(in srgb, var(--color-text), transparent 95%);
}

.page-title nav ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
}

.page-title nav ol li+li {
  padding-left: 10px;
}

.page-title nav ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--color-text), transparent 70%);
}

/* ============================================================
   9) HERO
   ============================================================ */

.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero .carousel {
  position: relative;
  width: 100%;
  min-height: 70vh;
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .carousel-item {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--color-bg), transparent 15%);
}

.hero .carousel-container {
  position: absolute;
  inset: 90px 64px 64px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h2 {
  margin-bottom: 30px;
  font-size: 48px;
  font-weight: 700;
  animation: fadeInDown 1s both;
}

.hero p {
  animation: fadeInDown 1s both 0.2s;
}

@media (min-width: 1024px) {

  .hero h2,
  .hero p {
    max-width: 60%;
  }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 30px;
  }
}

.hero .btn-get-started {
  animation: fadeInUp 1s both 0.4s;
}

.hero .btn-get-started:hover {
  background: color-mix(in srgb, var(--color-accent), transparent 10%);
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 10%;
  opacity: 0.5;
  transition: opacity var(--t-base) var(--ease);
}

.hero .carousel-control-prev:focus,
.hero .carousel-control-next:focus {
  opacity: 0.5;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: 0.9;
}

@media (min-width: 1024px) {

  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    width: 5%;
  }
}

.hero .carousel-control-next-icon,
.hero .carousel-control-prev-icon {
  background: none;
  font-size: 32px;
  line-height: 1;
}

.hero .carousel-indicators {
  list-style: none;
}

.hero .carousel-indicators li {
  cursor: pointer;
}

/* ============================================================
   10) SECTIONS: FEATURED SERVICES / ABOUT / WHY US / CLIENTS
   ============================================================ */

.featured-services {
  margin-top: 15px;
  padding: 15px 0;
}

.featured-services .service-item {
  height: 100%;
  padding: 20px 16px;
  transition: all 0.4s var(--ease-in-out);
}

.featured-services .service-item .icon {
  margin-bottom: 6px;
}

.featured-services .service-item .icon i {
  color: var(--color-accent);
  font-size: 36px;
  transition: color var(--t-base) var(--ease);
}

.featured-services .service-item h4 {
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 700;
}

.featured-services .service-item h4 a {
  color: var(--color-heading);
  transition: color var(--t-base) var(--ease-in-out);
}

.featured-services .service-item p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 18px;
}

.featured-services .service-item:hover {
  transform: translateY(-10px);
}

.featured-services .service-item:hover h4 a {
  color: var(--color-accent);
}

/* ============================================================
   Services desktop/mobile descriptions
   ============================================================ */

#services .mobile-desc {
  display: none;
}

@media (max-width: 768px) {

  /* показываем короткий текст */
  #services .desktop-desc {
    display: none;
  }

  #services .mobile-desc {
    display: inline;
  }

  /* компактная сетка */
  #services .row {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 10px;
  }

  /* карточка */
  #services .service-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;

    text-align: center !important;

    padding: 12px 8px !important;
    min-height: 135px;

    border-radius: 12px;
  }

  /* иконка */
  #services .service-item .icon {
    width: 44px !important;
    height: 44px !important;

    margin-bottom: 10px !important;

    font-size: 20px !important;
  }

  /* заголовок */
  #services .service-item h3 {
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
  }

  #services .service-item h3 a {
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  /* описание */
  #services .service-item p {
    font-size: 12px !important;
    line-height: 1.3 !important;
    margin-bottom: 0 !important;
  }

  /* отключаем zoom на телефоне */
  #services .service-item:hover {
    transform: none !important;
  }
}

/* About */
.about .content h3 {
  font-size: 1.75rem;
  font-weight: 700;
}

.about .content ul {
  padding: 0;
  list-style: none;
}

.about .content ul li {
  display: flex;
  padding: 10px 0 0;
}

.about .content ul i {
  margin-right: 0.5rem;
  color: var(--color-accent);
  font-size: 1.25rem;
  line-height: 1.2;
}

.about .content p:last-child {
  margin-bottom: 0;
}

.about .pulsating-play-btn {
  position: absolute;
  top: calc(50% - 47px);
  left: calc(50% - 47px);
}

/* Why Us */
.why-us .card {
  margin: -1px;
  padding: 40px;
  border: 1px solid color-mix(in srgb, var(--color-text), transparent 90%);
  border-radius: 0;
  background-color: var(--color-surface);
  color: var(--color-text);
}

.why-us .card span {
  display: block;
  color: var(--color-accent);
  font-size: 24px;
  font-weight: 400;
}

.why-us .card h4 {
  margin: 20px 0;
  padding: 0;
  color: color-mix(in srgb, var(--color-heading), transparent 20%);
  font-size: 24px;
  font-weight: 600;
}

.why-us .card p {
  margin: 0;
  padding: 0;
  color: color-mix(in srgb, var(--color-text), transparent 40%);
  font-size: 15px;
}

/* Clients (Swiper) */
.clients .swiper-wrapper {
  height: auto;
}

.clients .swiper-slide img {
  opacity: 0.5;
  filter: grayscale(100);
  transition: all var(--t-base) var(--ease);
}

.clients .swiper-slide img:hover {
  opacity: 1;
  filter: none;
}

.clients .swiper-pagination {
  position: relative;
  margin-top: 20px;
}

.clients .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  opacity: 1;
  background-color: color-mix(in srgb, var(--color-text), transparent 80%);
}

.clients .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--color-accent);
}

/* ============================================================
   11) SERVICES
   ============================================================ */

.services .service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 40px 30px;
  border-radius: 5px;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-2);
  text-align: center;
  transition: transform var(--t-base) var(--ease);
}

.services .service-item .icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 25px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 0;
}

.services .service-item h3 a {
  color: color-mix(in srgb, var(--color-heading), transparent 25%);
  font-size: 22px;
  font-weight: 700;
  transition: color var(--t-base) var(--ease);
}

.services .service-item p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--color-text), transparent 40%);
  transition: color var(--t-base) var(--ease);
}

.services .service-item.item-cyan .icon {
  color: #0dcaf0;
  background: rgba(13, 202, 240, 0.1);
}

.services .service-item.item-orange .icon {
  color: #fd7e14;
  background: rgba(253, 126, 20, 0.1);
}

.services .service-item.item-teal .icon {
  color: #20c997;
  background: rgba(32, 201, 151, 0.1);
}

.services .service-item.item-red .icon {
  color: #df1529;
  background: rgba(223, 21, 4, 0.1);
}

.services .service-item.item-indigo .icon {
  color: #6610f2;
  background: rgba(102, 16, 242, 0.1);
}

.services .service-item.item-pink .icon {
  color: #f3268c;
  background: rgba(243, 38, 140, 0.1);
}

.services .service-item:hover {
  transform: scale(1.06);
}

.services .service-item:hover h3 a {
  color: var(--color-heading);
}

.services .service-item:hover p {
  color: color-mix(in srgb, var(--color-text), transparent 10%);
}

/* #services: icon left, text right (keep existing HTML) */
#services .service-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  /* ширина иконки + текст */
  column-gap: 14px;
  align-items: start;
  text-align: left;
  /* убираем "по центру" */
}

/* иконка — в левую колонку, сверху */
#services .service-item .icon {
  grid-column: 1;
  grid-row: 1 / span 3;
  /* занимает высоту заголовок+текст+ссылка */
  margin: 0;
  /* убираем прежние отступы */
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

/* заголовок, текст и ссылка — в правую колонку */
#services .service-item h4,
#services .service-item p,
#services .service-item a {
  grid-column: 2;
}

/* чуть компактнее на мобиле */
@media (max-width: 767.98px) {
  #services .service-item {
    grid-template-columns: 36px 1fr;
    column-gap: 12px;
  }

  #services .service-item .icon {
    width: 36px;
    height: 36px;
  }
}

/* ============================================================
   12) CALL TO ACTION
   ============================================================ */

.call-to-action {
  position: relative;
  padding: 120px 0;
  clip-path: inset(0);
}

.call-to-action .container {
  position: relative;
  z-index: 3;
}

.call-to-action h3 {
  color: var(--color-text);
  font-size: 28px;
  font-weight: 700;
}

.call-to-action p {
  color: var(--color-text);
}

.call-to-action .cta-btn {
  display: inline-block;
  margin: 10px;
  padding: 12px 40px;
  border: 2px solid var(--color-contrast);
  border-radius: var(--radius-pill);
  color: var(--color-contrast);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: background-color var(--t-slow) var(--ease), border-color var(--t-slow) var(--ease);
}

.call-to-action .cta-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* ============================================================
   13) PORTFOLIO + DETAILS
   ============================================================ */

.portfolio .portfolio-filters {
  margin: 0 auto;
  padding: 0 0 20px;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  display: inline-block;
  margin: 0 10px;
  padding: 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: all var(--t-base) var(--ease-in-out);
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--color-accent);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

.portfolio .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    margin: 0 5px;
    font-size: 14px;
  }
}

.portfolio .portfolio-content {
  height: 100%;
  overflow: hidden;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-3);
}

.portfolio .portfolio-content img {
  position: relative;
  z-index: 1;
  transition: transform var(--t-base) var(--ease);
}

.portfolio .portfolio-content:hover img {
  transform: scale(1.1);
}

.portfolio .portfolio-content .portfolio-info {
  position: relative;
  z-index: 2;
  padding: 25px 20px;
  background-color: var(--color-bg);
  border-top: 1px solid color-mix(in srgb, var(--color-text), transparent 90%);
}

.portfolio .portfolio-content .portfolio-info h4 {
  padding-right: 50px;
  font-size: 18px;
  font-weight: 600;
}

.portfolio .portfolio-content .portfolio-info h4 a {
  color: var(--color-heading);
  transition: color var(--t-base) var(--ease);
}

.portfolio .portfolio-content .portfolio-info h4 a:hover {
  color: var(--color-accent);
}

.portfolio .portfolio-content .portfolio-info p {
  margin-bottom: 0;
  padding-right: 50px;
  color: color-mix(in srgb, var(--color-text), transparent 30%);
  font-size: 14px;
}

/* Portfolio details */
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .swiper-wrapper {
  height: auto;
}

.portfolio-details .swiper-button-prev,
.portfolio-details .swiper-button-next {
  width: 48px;
  height: 48px;
}

.portfolio-details .swiper-button-prev::after,
.portfolio-details .swiper-button-next::after {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  transition: background-color var(--t-base) var(--ease);
}

.portfolio-details .swiper-button-prev:hover::after,
.portfolio-details .swiper-button-next:hover::after {
  background-color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 575px) {

  .portfolio-details .swiper-button-prev,
  .portfolio-details .swiper-button-next {
    display: none;
  }
}

.portfolio-details .swiper-pagination {
  position: relative;
  margin-top: 20px;
}

.portfolio-details .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  opacity: 1;
  background-color: color-mix(in srgb, var(--color-text), transparent 85%);
}

.portfolio-details .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--color-accent);
}

.portfolio-details .portfolio-info h3 {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
}

.portfolio-details .portfolio-info h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--color-accent);
}

.portfolio-details .portfolio-info ul {
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li {
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
}

.portfolio-details .portfolio-info ul strong {
  color: color-mix(in srgb, var(--color-text), transparent 50%);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
}

.portfolio-details .portfolio-info .btn-visit {
  display: inline-block;
  padding: 8px 40px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-contrast);
  transition: background-color var(--t-base) var(--ease);
}

.portfolio-details .portfolio-info .btn-visit:hover {
  background: color-mix(in srgb, var(--color-accent), transparent 20%);
}

.portfolio-details .portfolio-description h2 {
  margin-bottom: 20px;
  font-size: 26px;
  font-weight: 700;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

.portfolio-details .portfolio-description .testimonial-item {
  position: relative;
  margin-bottom: 50px;
  padding: 30px 30px 0;
  background: color-mix(in srgb, var(--color-text), transparent 97%);
}

.portfolio-details .portfolio-description .testimonial-item .testimonial-img {
  float: left;
  width: 90px;
  margin: 0 10px 0 0;
  border: 6px solid var(--color-bg);
  border-radius: 50px;
}

.portfolio-details .portfolio-description .testimonial-item h3 {
  margin: 15px 0 5px;
  padding-top: 20px;
  font-size: 18px;
  font-weight: 700;
}

.portfolio-details .portfolio-description .testimonial-item h4 {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-left,
.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--color-accent), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-left {
  position: relative;
  left: -5px;
  display: inline-block;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
  position: relative;
  top: 10px;
  right: -5px;
  display: inline-block;
  transform: scale(-1, -1);
}

.portfolio-details .portfolio-description .testimonial-item p {
  margin: 0 0 15px 0;
  padding: 0;
  font-style: italic;
}

/* ============================================================
   14) CONTACT
   ============================================================ */

.contact .info-wrap {
  padding: 30px;
  background-color: var(--color-surface);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 20px;
  }
}

.contact .info-item {
  margin-bottom: 40px;
}

.contact .info-item i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: 15px;
  border-radius: 50px;
  background: color-mix(in srgb, var(--color-accent), transparent 92%);
  color: var(--color-accent);
  font-size: 20px;
  transition: all var(--t-base) var(--ease-in-out);
}

.contact .info-item h3 {
  margin-bottom: 5px;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
}

.contact .info-item p {
  margin-bottom: 0;
  padding: 0;
  font-size: 14px;
}

.contact .info-item:hover i {
  background: var(--color-accent);
  color: var(--color-contrast);
}

.contact .php-email-form {
  height: 100%;
  padding: 30px;
  background-color: var(--color-surface);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"],
.contact .php-email-form textarea {
  padding: 10px 15px;
  border-radius: 0;
  border-color: color-mix(in srgb, var(--color-text), transparent 80%);
  background-color: var(--color-surface);
  color: var(--color-text);
  font-size: 14px;
  box-shadow: none;
}

.contact .php-email-form input[type="text"]:focus,
.contact .php-email-form input[type="email"]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--color-accent);
}

.contact .php-email-form input[type="text"]::placeholder,
.contact .php-email-form input[type="email"]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--color-text), transparent 70%);
}

.contact .php-email-form button[type="submit"] {
  padding: 10px 30px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-contrast);
  transition: background-color 0.4s var(--ease);
}

.contact .php-email-form button[type="submit"]:hover {
  background: color-mix(in srgb, var(--color-accent), transparent 25%);
}

/* ============================================================
   15) SERVICE DETAILS + HELP BOXES
   ============================================================ */

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details p {
  margin-bottom: 16px;
  color: #333;
  font-size: 1rem;
  line-height: 1.7;
}

.service-details ul {
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.service-details ul li:not(:has(i)) {
  display: block;
  padding: 6px 0;
}

.service-details ul i {
  margin-right: 8px;
  color: var(--color-accent);
  font-size: 20px;
}

.service-details .service-box {
  padding: 20px;
  background-color: var(--color-surface);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.service-details .service-box+.service-box {
  margin-top: 30px;
}

.service-details .service-box h4 {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid color-mix(in srgb, var(--color-text), transparent 92%);
  font-size: 20px;
  font-weight: 700;
}

.service-details .services-list {
  background-color: var(--color-surface);
}

.service-details .services-list a {
  display: flex;
  align-items: center;
  margin-top: 15px;
  padding: 12px 15px;
  background-color: color-mix(in srgb, var(--color-text), transparent 96%);
  color: color-mix(in srgb, var(--color-text), transparent 20%);
  transition: all var(--t-base) var(--ease);
}

.service-details .services-list a:first-child {
  margin-top: 0;
}

.service-details .services-list a i {
  margin-right: 8px;
  color: var(--color-accent);
  font-size: 16px;
}

.service-details .services-list a.active {
  background-color: var(--color-accent);
  color: var(--color-contrast);
}

.service-details .services-list a.active i {
  color: var(--color-contrast);
}

.service-details .services-list a:hover {
  background-color: color-mix(in srgb, var(--color-accent), transparent 95%);
  color: var(--color-accent);
}

.service-details .download-catalog a {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid color-mix(in srgb, var(--color-text), transparent 90%);
  color: var(--color-text);
  transition: color var(--t-base) var(--ease);
}

.service-details .download-catalog a:first-child {
  padding-top: 0;
  border-top: 0;
}

.service-details .download-catalog a:last-child {
  padding-bottom: 0;
}

.service-details .download-catalog a i {
  margin-right: 8px;
  color: var(--color-accent);
  font-size: 24px;
}

.service-details .download-catalog a:hover {
  color: var(--color-accent);
}

/* Unified help-box (keeps template selector + custom selector contract) */
.service-details .help-box,
.help-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  height: auto;
  margin-top: 5px;
  padding: 23px;

  background: var(--color-accent);
  color: #ffffff;

  border-radius: var(--radius-15);
  box-shadow: var(--shadow-3);

  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.service-details .help-box .help-icon {
  font-size: 48px;
}

.service-details .help-box h4,
.service-details .help-box a,
.service-details .help-box p,
.help-box h3,
.help-box h4 {
  color: #ffffff;
  font-weight: 700;
}

/* Form controls & buttons inside help-box */
.help-box textarea.form-control {
  padding: 15px;
  border: none;
  border-radius: 10px;
}

.help-box .btn-dark {
  padding: 10px 25px;
  border: none;
  border-radius: 10px;
  background-color: #222;
  font-weight: 600;
}

.help-box .btn-dark:hover {
  background-color: #000;
}

/* ============================================================
   16) COOKIE UI (BEM)
   ============================================================ */

.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  padding: 12px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cookie-accept-btn {
  font-weight: 600;
}

@media (max-width: 576px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner__actions {
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
  }
  .cookie-accept-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
  #cookie-settings {
    font-size: 0.75rem;
    color: #888;
    border-color: #ccc;
  }
}

.cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}

.cookie-panel__inner {
  width: 100%;
  max-width: 680px;
  padding: 16px;
  background: #ffffff;
  border-radius: var(--radius-16);
  box-shadow: var(--shadow-5);
}

.cookie-option {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

/* ============================================================
   17) FLOATING / MODALS (Miljöro)
   ============================================================ */

/* Contact modal layout (single consolidated set) */
#contactModal {
  overflow: visible !important;
}

#contactModal .modal-dialog {
  max-height: 90vh;
  margin: 1rem auto;
}

#contactModal .modal-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  border-radius: 12px;
  overflow: hidden;
  padding-top: 0;
}

#contactModal .modal-body {
  flex: 1 1 auto;
  max-height: 75vh;
  padding: 0px 24px 16px;
  overflow-y: auto;
}

#contactModal .contact-modal-head {
  padding-top: 20px;
  padding-right: 2px;
  margin-bottom: 0 !important;
}

#contactModal .modal-body>p,
#contactModal .modal-body .text-center p {
  margin-top: 0;
  margin-bottom: 8px;
}

#contactModal .php-email-form {
  margin-top: 0;
}

#contactModal .php-email-form .row {
  --bs-gutter-y: 0.35rem;
}

#contactModal .php-email-form .form-group,
#contactModal .php-email-form .row>div {
  padding-right: 8px;
  padding-left: 8px;
}

#contactModal .php-email-form button[type="submit"] {
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #222;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#contactModal .php-email-form button[type="submit"]:hover {
  background: #000;
}

#contactModal .php-email-form button[type="submit"]:active {
  transform: translateY(1px);
}

@media (max-width: 576px) {
  #contactModal .modal-dialog {
    margin: 0.5rem;
  }

  #contactModal .modal-content {
    padding-top: 0;
  }

  #contactModal .modal-body {
    padding: 0 16px 12px;
  }

  #contactModal .contact-modal-head {
    padding-top: 18px;
    margin-bottom: 0 !important;
  }

  #contactModal .contact-modal-intro {
    margin-top: -16px;
    margin-bottom: 4px;
  }

  #contactModal .contact-modal-title {
    margin-top: 0;
    margin-bottom: 3px !important;
    line-height: 1.1;
  }

  #contactModal .contact-modal-subtitle {
    margin-top: 0;
    margin-bottom: 5px !important;
  }
}

/* CTA badge/link "Gratis offert" */
.cta-offert {
  padding: 4px 11px;
  border-radius: var(--radius-4);
  background-color: #5cb874;
  color: #ffffff !important;
  font-weight: 500;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.cta-offert:hover {
  background-color: #256628;
  transform: translateY(-1px);
}

@media (max-width: 1199px) {
  .cta-offert {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin: 12px auto 0;
  }
}

#aiMobileModal.show {
  display: flex !important;
  align-items: center;
}

#aiMobileModal .modal-dialog {
  width: calc(100% - 1.5rem);
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  #aiMobileModal {
    display: none !important;
  }
}

@media (max-width: 576px) {
  #aiMobileModal .modal-dialog {
    min-height: calc(100dvh - 1rem);
    margin: 0.5rem auto;
  }
}

.js-autoresize {
  overflow: hidden;
  resize: none;
  min-height: 48px;
}

/* ============================================================
   18) ACCORDION (round top corners after headings)
   ============================================================ */

.accordion> :is(h2, h3, h4)+.accordion-item {
  border-top: 1px solid var(--bs-accordion-border-color);
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  overflow: hidden;
}

.accordion> :is(h2, h3, h4)+.accordion-item .accordion-button {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

/* ============================================================
   19) AOS + MOBILE PERFORMANCE / RESPONSIVE OVERRIDES
   ============================================================ */

/* Faster AOS animations (global) */
[data-aos] {
  transition-duration: 350ms !important;
}

/* Disable AOS delay on mobile devices */
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/* Mobile typography & spacing tweaks */
@media (max-width: 768px) {
  .hero-title {
    margin-bottom: 0.6rem;
    font-size: 1.5rem;
    line-height: 1.15;
  }

  #hero h2 {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  section,
  .section {
    padding: 30px 0 !important;
  }

  .section-title {
    padding-bottom: 5px !important;
  }

  .section-title h2 {
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
    font-size: 26px !important;
  }

  .page-title .heading {
    padding: 16px 0 !important;
  }

  .page-title h1 {
    margin-bottom: 8px !important;
    font-size: 24px !important;
    line-height: 1.2;
  }

  .page-title p {
    margin-bottom: 0 !important;
    font-size: 14px;
    line-height: 1.4;
  }

  .page-title nav ol {
    font-size: 13px;
  }

  #featured-services.section,
  #featured-services.featured-services {
    padding-top: 20px !important;
    padding-bottom: 10px !important;
  }

  #featured-services .service-item {
    padding: 20px 16px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  #featured-services .service-item .icon {
    margin-bottom: 8px !important;
  }

  #featured-services .service-item h4 {
    margin-bottom: 6px !important;
    font-size: 18px !important;
  }

  #featured-services .service-item p {
    margin-bottom: 0 !important;
    line-height: 1.4;
  }

  #featured-services .row {
    --bs-gutter-y: 0.25rem;
  }

  .services .service-item,
  .icon-box {
    padding: 20px 16px !important;
  }

  .icon-box i,
  .icon-box .icon {
    margin-bottom: 10px !important;
  }

  [data-aos],
  [data-aos-delay] {
    transition-delay: 0s !important;
    transition-duration: 350ms !important;
  }
}

/* FIX hero text cut on real mobile devices */
@media (max-width: 768px) {
  .hero .carousel-container {
    position: relative;
    inset: auto;
    padding: 120px 20px 60px;
  }

  .hero .carousel {
    min-height: auto;
  }

  .hero .carousel-item {
    position: relative;
  }
}

/* Fix horizontal scroll WITHOUT breaking sticky */
html {
  /* overflow-x must NOT be set on html — it breaks position:sticky on header */
}

body {
  overflow-x: clip;
}

.hero,
.carousel,
.carousel-item,
.carousel-container {
  max-width: 100vw;
  overflow-x: hidden;
}

/* ============================================================
   20) SERVICE PAGE TYPOGRAPHY (Miljöro)
   ============================================================ */

.service-details h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.25;
}

@media (max-width: 768px) {
  .service-details h2 {
    font-size: 1.35rem;
  }

  .service-details p,
  .service-details ul li {
    font-size: 0.95rem;
  }
}

.section-divider {
  margin-top: 40px;
}

.section-intro {
  margin-top: -4px;
  margin-bottom: 24px;
  color: #555;
  font-size: 1rem;
}

/* Plain-list bullets (service details) */
.service-details ul.plain-list {
  padding-left: 0;
  list-style: none;
}

.service-details ul.plain-list li {
  display: block !important;
  position: relative;
  padding-left: 34px !important;
  margin-bottom: 2px;
  line-height: 1.35;
}

.service-details ul.plain-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

/* Process box */
.process-box {
  margin-top: 24px;
  padding: 24px 28px;
  background-color: #f9fcf9;
  border: 1px solid rgba(92, 184, 116, 0.25);
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius-8);
}

.process-box h3:first-child {
  margin-top: 0;
}

.process-box p:last-child {
  margin-bottom: 0;
}

/* Process steps typography */
.process-box h3 {
  margin-top: 16px;
  margin-bottom: 4px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.process-box h3+p {
  margin-bottom: 10px;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .process-box {
    padding: 18px 16px;
  }

  .process-box h3 {
    font-size: 0.95rem;
  }

  .process-box h3+p {
    font-size: 0.88rem;
  }

  .plain-list li {
    margin-bottom: 1px;
    padding-left: 20px;
    line-height: 1.3;
  }

  .plain-list li::before {
    top: 0.52em;
    width: 4px;
    height: 4px;
  }
}

/* About: centered content + bullets */
#about .content {
  text-align: center;
}

#about .content p,
#about .content h3 {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

#about ul.plain-list {
  display: inline-block;
  margin: 20px auto;
  padding-left: 0;
  text-align: left;
}

.about ul.plain-list li {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding-left: 0;
  line-height: 1.4;
}

.about ul.plain-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.45em;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

/* ============================================================
   21) SERVICE DETAILS: STICKY SIDEBAR (desktop) + HIDE (mobile)
   ============================================================ */

/* Row should not stretch columns — each col takes its own height */
#service-details .row {
  align-items: flex-start;
}

/* Mobile: hide the left sidebar column entirely */
@media (max-width: 991.98px) {
  #service-details .col-lg-3 {
    display: none !important;
  }
}

/* Desktop: CSS sticky sidebar */
@media (min-width: 992px) {
  /* Remove AOS transform that breaks sticky positioning */
  #service-details .col-lg-3 {
    transform: none !important;
  }

  #service-details .help-box-wrapper {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    width: 100%;
  }

  #service-details .help-box {
    word-break: break-word;
  }
}

/* ============================================================
   22) SMALL FIXES / OVERRIDES
   ============================================================ */

/* Hide breadcrumbs bar (kept as override) */
.page-title nav {
  display: none;
}

/* Service details: spacing tweaks */
#service-details.section {
  padding-top: 5px !important;
}

#service-details .row {
  --bs-gutter-y: 1rem;
  align-items: flex-start;
}

/* Link styling helper */
.text-link-green {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.text-link-green:hover {
  color: color-mix(in srgb, var(--color-accent), black 15%);
  text-decoration: underline;
}

/* Prevent layout shift while header/footer are injected */
#header-placeholder {
  min-height: 72px;
}

#footer-placeholder {
  min-height: 200px;
}

/* Optional: remove preloader visually (kept as explicit override) */
#preloader {
  display: none !important;
}

/* ============================================================
   23) MOBILE QUICK-ACTIONS (Miljöro)
   ============================================================ */

/* Container for floating action buttons (desktop only — hidden on mobile via media query below) */
.always-visible-mobile {
  position: fixed !important;
  right: 15px !important;
  bottom: 69px !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.offert-bubble-btn,
.ai-bubble-btn,
#scroll-top {
  width: 44px !important;
  height: 44px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border: none !important;
  border-radius: var(--radius-8) !important;

  background-color: var(--color-accent) !important;
  color: #ffffff !important;

  font-size: 20px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;

  cursor: pointer !important;
  text-decoration: none !important;
  pointer-events: auto !important;
}

/* only offert button: icon above text */
.offert-bubble-btn {
  flex-direction: column !important;
  gap: 0 !important;
  padding: 3px 2px 2px !important;
  align-items: center !important;
  justify-content: center !important;
}

.offert-bubble-btn i {
  display: block !important;
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

.offert-bubble-btn span {
  display: block !important;
  margin-top: 2px !important;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
}

/* Scroll top positioning (mobile override) */
#scroll-top {
  position: fixed !important;
  right: 15px !important;
  bottom: 15px !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: all 0.4s var(--ease) !important;
}

@media (max-width: 991.98px) {
  #scroll-top {
    bottom: 75px !important;
  }
}

/* AI bubble — text centered */
.ai-bubble-btn {
  flex-direction: column !important;
  padding: 4px !important;
  text-align: center !important;
}

.ai-bubble-btn span {
  display: block !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: break-word !important;
}

/* Robot icon tweak (if icon is present) */
.ai-bubble-btn i {
  margin: 0 !important;
  font-size: 18px !important;
}

/* On mobile: hide bubbles, show sticky bar */
@media (max-width: 991.98px) {
  .always-visible-mobile {
    display: none !important;
  }
  #sticky-mobile-cta {
    display: flex !important;
  }

  /* Hide topbar on mobile — phone/email already in sticky bottom bar */
  .header .topbar {
    display: none !important;
  }
}

/* On desktop: hide sticky bar, show bubbles */
@media (min-width: 992px) {
  #sticky-mobile-cta {
    display: none !important;
  }
  #sticky-mobile-spacer {
    display: none !important;
  }
}

/* ============================================================
   FIX: Make header truly fixed on all screen sizes
   position:sticky breaks if any ancestor has overflow != visible
   ============================================================ */

#header-placeholder > header#header,
#header-placeholder > header.header,
#header-placeholder > header.header.sticky-top {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1020;
}

/* Reserve space so content doesn't slide under fixed header */
#header-placeholder {
  min-height: 112px !important; /* topbar(40) + branding(72) on desktop */
}

@media (max-width: 991.98px) {
  /* On mobile topbar is hidden, only branding row */
  #header-placeholder {
    min-height: 72px !important;
  }
}

/* Snabblänkar (FAQ) */
.service-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  /* вертикальный/горизонтальный отступ */
  line-height: 1.6;
}

.service-links a {
  text-decoration: none;
  font-weight: 600;
}

.service-links a:hover {
  text-decoration: underline;
}

.service-links .sep {
  color: var(--accent-color, #2ca86d);
  /* зелёный шарик */
  font-size: 14px;
  opacity: .9;
  transform: translateY(-1px);
}

/* ============================================================
   24. Pricing / size table (universal)
   ============================================================ */

.pricing-box {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--color-accent), transparent 75%);
  border-radius: var(--radius-12);
  background: #f9fcf9;
}

.pricing-head {
  margin-bottom: 14px;
}

.pricing-head h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
}

.pricing-head p {
  margin: 0;
  color: #555;
}

.pricing-table-wrap {
  width: 100%;
  overflow-x: hidden;
}

.pricing-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--color-surface);
  border-radius: var(--radius-8);
  overflow: hidden;
}

.pricing-table th,
.pricing-table td {
  padding: 10px 7px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text), transparent 88%);
  text-align: left;
  vertical-align: middle;
  font-size: 0.98rem;
  line-height: 1.35;
  word-break: break-word;
}

.pricing-table thead th {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 10px;
}

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

.pricing-table tbody tr:hover {
  background: color-mix(in srgb, var(--color-accent), transparent 96%);
}

.pricing-table td strong {
  color: var(--color-heading);
  font-weight: 700;
}

/* 5 columns */
.pricing-table.cols-5 th:nth-child(1),
.pricing-table.cols-5 td:nth-child(1) {
  width: 11%;
}

.pricing-table.cols-5 th:nth-child(2),
.pricing-table.cols-5 td:nth-child(2) {
  width: 20%;
}

.pricing-table.cols-5 th:nth-child(3),
.pricing-table.cols-5 td:nth-child(3) {
  width: 35%;
}

.pricing-table.cols-5 th:nth-child(4),
.pricing-table.cols-5 td:nth-child(4) {
  width: 14%;
}

.pricing-table.cols-5 th:nth-child(5),
.pricing-table.cols-5 td:nth-child(5) {
  width: 20%;
  white-space: nowrap;
}

/* 6 columns */
.pricing-table.cols-6 th:nth-child(1),
.pricing-table.cols-6 td:nth-child(1) {
  width: 12%;
}

.pricing-table.cols-6 th:nth-child(2),
.pricing-table.cols-6 td:nth-child(2) {
  width: 28%;
}

.pricing-table.cols-6 th:nth-child(3),
.pricing-table.cols-6 td:nth-child(3) {
  width: 16%;
}

.pricing-table.cols-6 th:nth-child(4),
.pricing-table.cols-6 td:nth-child(4) {
  width: 12%;
}

.pricing-table.cols-6 th:nth-child(5),
.pricing-table.cols-6 td:nth-child(5) {
  width: 12%;
}

.pricing-table.cols-6 th:nth-child(6),
.pricing-table.cols-6 td:nth-child(6) {
  width: 20%;
  white-space: nowrap;
}

.pricing-rules {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing-rules p {
  margin-bottom: 10px;
}

.pricing-rules .plain-list {
  margin-bottom: 0;
}

/* mobile */
@media (max-width: 767.98px) {
  .pricing-box {
    padding: 16px;
  }

  .pricing-head h3 {
    font-size: 1.1rem;
  }

  .pricing-head p {
    font-size: 0.94rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 9px 6px;
    font-size: 0.79rem;
    line-height: 1.22;
  }

  .pricing-table thead th {
    font-size: 0.76rem;
    padding: 9px 6px;
  }

  .pricing-table.cols-5 th:nth-child(1),
  .pricing-table.cols-5 td:nth-child(1) {
    width: 12%;
  }

  .pricing-table.cols-5 th:nth-child(2),
  .pricing-table.cols-5 td:nth-child(2) {
    width: 16%;
  }

  .pricing-table.cols-5 th:nth-child(3),
  .pricing-table.cols-5 td:nth-child(3) {
    width: 34%;
  }

  .pricing-table.cols-5 th:nth-child(4),
  .pricing-table.cols-5 td:nth-child(4) {
    width: 14%;
  }

  .pricing-table.cols-5 th:nth-child(5),
  .pricing-table.cols-5 td:nth-child(5) {
    width: 24%;
  }
}

/* ============================================================
   25. Sorteringsguide trigger + modal table
   ============================================================ */

.sorteringsguide-trigger {
  cursor: pointer;
}

.sorteringsguide-modal .modal-dialog {
  max-width: 1100px;
}

.sorteringsguide-modal .modal-content {
  border: 0;
  border-radius: var(--radius-16);
  overflow: hidden;
  box-shadow: var(--shadow-5);
}

.sorteringsguide-modal .modal-header {
  align-items: flex-start;
  padding: 20px 24px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text), transparent 88%);
  background: #f9fcf9;
}

.sorteringsguide-modal .modal-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.sorteringsguide-modal .modal-header p {
  margin-top: 4px;
  color: #555;
  font-size: 0.95rem;
}

.sorteringsguide-modal .modal-body {
  padding: 24px;
  max-height: 75vh;
  overflow-y: auto;
}

.sorteringsguide-modal .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sorteringsguide-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.97rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--color-accent), transparent 76%);
  border-radius: var(--radius-12);
  overflow: hidden;
}

.sorteringsguide-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--color-heading);
  background: #f3faf5;
  border-bottom: 1px solid color-mix(in srgb, var(--color-accent), transparent 78%);
}

.sorteringsguide-table tbody td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text), transparent 90%);
}

.sorteringsguide-table tbody tr:last-child td {
  border-bottom: 0;
}

.sorteringsguide-table tbody tr:hover {
  background: #fbfdfb;
}

.sorteringsguide-table th:nth-child(1),
.sorteringsguide-table td:nth-child(1) {
  width: 15%;
}

.sorteringsguide-table th:nth-child(2),
.sorteringsguide-table td:nth-child(2) {
  width: 18%;
}

.sorteringsguide-table th:nth-child(3),
.sorteringsguide-table td:nth-child(3) {
  width: 67%;
}

.yes-label,
.no-label {
  display: inline-block;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.yes-label {
  color: #2e7d32;
  background: rgba(46, 125, 50, 0.12);
}

.no-label {
  color: #c62828;
  background: rgba(198, 40, 40, 0.12);
}

.sorteringsguide-extra {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--color-text), transparent 88%);
}

.sorteringsguide-extra h4 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 700;
}

.sorteringsguide-extra .plain-list {
  margin-bottom: 18px;
}

.sorteringsguide-extra p strong {
  display: inline-block;
  margin-bottom: 6px;
}

@media (max-width: 767.98px) {

  .sorteringsguide-modal .modal-header,
  .sorteringsguide-modal .modal-body {
    padding: 14px;
  }

  .sorteringsguide-table {
    min-width: 760px;
  }

  .sorteringsguide-table th,
  .sorteringsguide-table td {
    padding: 12px 10px;
    font-size: 0.9rem;
    white-space: normal;
  }
}

/* ============================================================
   Google reviews carousel
   ============================================================ */

.google-reviews-section {
  padding: 15px 0 !important;
  background: #f7f7f7;
}

.google-reviews-new-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.google-summary-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

.google-review-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

.google-logo-text {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.google-logo-text .b {
  color: #4285F4;
}

.google-logo-text .r {
  color: #DB4437;
}

.google-logo-text .y {
  color: #F4B400;
}

.google-logo-text .gn {
  color: #0F9D58;
}

.google-logo-text .rr {
  color: #DB4437;
}

.google-summary-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111;
  font-size: 16px;
  font-weight: 700;
}

.google-summary-stars,
.google-review-stars {
  color: #f4b400;
  letter-spacing: 1px;
}

.google-summary-count {
  margin-top: 4px;
  color: #111;
  font-size: 15px;
}

.google-summary-btn {
  display: inline-flex;
  margin-top: 0;
  padding: 9px 16px;
  border: 1px solid #222;
  border-radius: 4px;
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

.google-summary-btn:hover {
  background: #f3f3f3;
  color: #111;
}

.google-reviews-cards-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px;
  align-items: stretch;
  overflow: hidden !important;
  width: 100%;
}

.google-review-card {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  min-height: 230px;
}

.google-review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.google-review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.google-review-author {
  color: #111;
  font-weight: 700;
}

.google-review-meta {
  color: #777;
  font-size: 13px;
}

.google-review-text {
  color: #222;
  font-size: 15px;
  line-height: 1.5;
}

.google-review-text.grv-short {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.google-review-source {
  display: none;
}



.service-highlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0 20px;
  justify-items: center;
}

.service-highlight-card {
  display: flex;
  flex-direction: column;
  padding: 16px 28px;
  border: 1px solid rgba(92, 184, 116, 0.28);
  border-radius: 14px;
  background: #f9fcf9;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  text-align: center;
  width: auto;
  max-width: 100%;
}

.service-highlight-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-highlight-link:hover {
  text-decoration: none;
  color: inherit;
}

.service-highlight-link h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-heading);
}

.service-highlight-link p {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
}

.card-cta {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2e7d32;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.card-cta:hover {
  color: #1b5e20;
  transform: translateX(4px);
}

#grovavfall,
#mobler,
#vitvaror,
#skrap {
  scroll-margin-top: 100px;
}

@media (min-width: 768px) {
  .service-highlight-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .service-highlight-card {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .service-highlight-link h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
  }

  .service-highlight-link p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .card-cta {
    margin-top: auto;
    padding-top: 14px;
  }
}

.anchor-block {
  position: relative;
  top: -100px;
  height: 0;
}

h1.service-highlight-card,
.page-title h1.service-highlight-card,
.page-title .heading h1.service-highlight-card {
  font-size: 22px !important;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 16px;
}

@media (max-width: 768px) {

  h1.service-highlight-card,
  .page-title h1.service-highlight-card,
  .page-title .heading h1.service-highlight-card {
    font-size: 20px !important;
  }
}

/* ============================================================
   AI RESULT BOX
   ============================================================ */

.js-ai-result {
  background: linear-gradient(135deg, #4fa96a 0%, #2f7d46 100%) !important;
  border-radius: 14px !important;
  padding: 18px !important;
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 16px !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.js-ai-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.js-ai-response {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #fff !important;
}

.js-ai-response::after {
  content: "\A\A👉 Tryck här för att boka hämtning eller få exakt offert.";
  white-space: pre-line;
  display: block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.96);
}

/* ============================================================
   STATIC HERO (replaces carousel — июнь 2026)
   ============================================================ */

.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-static-container {
  position: relative;
  z-index: 3;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  max-width: 860px;
  margin: 0 auto;
}

/* Тёмный оверлей поверх фото */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.42);
}

/* Trust badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-badge .bi-star-fill { color: #f4b400; }
.hero-badge .bi-patch-check-fill { color: #5cb874; }
.hero-badge .bi-lightning-charge-fill { color: #5cb874; }

/* H1 */
.hero-title {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Подзаголовок */
.hero-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.55;
  max-width: 620px;
  margin: 0 0 28px;
}

/* CTA кнопки */
.hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  width: 100%;
}

/* Shared base for all hero buttons */
.hero-static-container .hero-btn-primary,
.hero-static-container .hero-btn-secondary,
.hero-static-container .hero-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 260px;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: background 0.2s, opacity 0.2s;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-static-container .hero-btn-primary:hover,
.hero-static-container .hero-btn-secondary:hover,
.hero-static-container .hero-btn-wa:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* Primary — slightly more opaque to stand out */
.hero-static-container .hero-btn-primary {
  background: rgba(92, 184, 116, 0.75);
  border-color: rgba(255, 255, 255, 0.8);
}

.hero-static-container .hero-btn-primary:hover {
  background: rgba(92, 184, 116, 0.9);
}

/* Secondary — ghost (phone) */
.hero-static-container .hero-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
}

/* WhatsApp — same ghost */
.hero-static-container .hero-btn-wa {
  background: rgba(255, 255, 255, 0.12);
}

/* Социальное доказательство */
.hero-proof {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}

.hero-proof .bi {
  color: var(--color-accent);
  margin-right: 2px;
}

/* Мобайл */
@media (max-width: 640px) {
  .hero-static-container {
    padding: 90px 16px 50px;
    min-height: 60vh;
  }

  .hero-badge {
    font-size: 12px;
    padding: 3px 10px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .hero-static-container .hero-btn-primary,
  .hero-static-container .hero-btn-secondary,
  .hero-static-container .hero-btn-wa {
    max-width: 280px;
    font-size: 14px;
    padding: 10px 18px;
  }

  .hero-proof {
    font-size: 12px;
  }
}

/* ============================================================
   SERVICES SECTION — tabbed cards with price (2025 redesign)
   ============================================================ */

/* Tab switcher */
.svc-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 2px solid #e8f5ec;
  padding-bottom: 0;
}

.svc-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  border-radius: var(--radius-8) var(--radius-8) 0 0;
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}

.svc-tab i {
  font-size: 16px;
}

.svc-tab:hover {
  color: var(--color-accent);
  background: #f3fbf5;
}

.svc-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  background: #f3fbf5;
}

/* Panels */
.svc-panel {
  display: none;
}

.svc-panel.active {
  display: block;
}

/* Card grid */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* Card */
.svc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--color-surface);
  border: 1px solid #e8f5ec;
  border-radius: var(--radius-12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  position: relative;
}

.svc-card:hover {
  box-shadow: 0 6px 24px rgba(92,184,116,0.15);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}

/* Icon */
.svc-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-8);
  background: #edf9f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--color-accent);
  transition: background var(--t-base) var(--ease);
}

.svc-card:hover .svc-icon {
  background: var(--color-accent);
  color: #fff;
}

/* Body */
.svc-body {
  flex: 1;
  min-width: 0;
}

.svc-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 3px;
  line-height: 1.3;
}

.svc-body p {
  font-size: 12px;
  color: color-mix(in srgb, var(--color-text), transparent 30%);
  margin: 0 0 5px;
  line-height: 1.3;
}

.svc-price {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  background: #edf9f1;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Arrow */
.svc-arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: #c8e6ce;
  transition: color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.svc-card:hover .svc-arrow {
  color: var(--color-accent);
  transform: translateX(3px);
}

/* Bottom CTA */
.svc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.svc-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  padding: 8px 20px;
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-pill);
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

.svc-cta-link:hover {
  background: var(--color-accent);
  color: #fff;
}

.svc-cta-sep {
  color: #c8e6ce;
  font-size: 18px;
}

/* ── Responsive ── */

@media (max-width: 1199px) {
  .svc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .svc-tab {
    font-size: 13px;
    padding: 9px 14px;
  }

  /* Mobile: vertical card layout, centered */
  .svc-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 16px 12px 14px;
  }

  .svc-arrow {
    display: none;
  }

  .svc-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .svc-body {
    width: 100%;
  }

  .svc-body h3 {
    font-size: 13px;
    text-align: center;
  }

  .svc-body p {
    display: none;
  }

  .svc-price {
    font-size: 11px;
  }
}

@media (max-width: 399px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }

  .svc-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .svc-body h3 {
    text-align: left;
  }

  .svc-arrow {
    display: block;
  }
}

/* ============================================================
   FEATURED SERVICES — compact horizontal cards
   ============================================================ */

.fs-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fs-card {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e8f5ec;
  border-radius: var(--radius-12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

/* Desktop & tablet: three cards side by side instead of stacked */
@media (min-width: 700px) {
  .fs-row {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .fs-card {
    flex: 1 1 0;
    min-width: 210px;
    max-width: 340px;
    width: auto;
  }
}

.fs-card:hover {
  box-shadow: 0 6px 20px rgba(92,184,116,0.15);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}

.fs-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-8);
  background: #edf9f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--color-accent);
  transition: background 0.2s;
}

.fs-card:hover .fs-icon {
  background: var(--color-accent);
  color: #fff;
}

.fs-body {
  flex: 1;
  min-width: 0;
}

.fs-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 3px;
  line-height: 1.3;
}

.fs-body p {
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text), transparent 30%);
  margin: 0;
  line-height: 1.4;
}

.fs-arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: #c8e6ce;
  transition: color 0.2s, transform 0.2s;
}

.fs-card:hover .fs-arrow {
  color: var(--color-accent);
  transform: translateX(3px);
}

@media (max-width: 767px) {
  .fs-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fs-card {
    padding: 12px 14px;
  }

  .fs-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .fs-body h4 {
    font-size: 14px;
  }

  .fs-body p {
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════
   BEFORE / AFTER SECTION
   ═══════════════════════════════════════════════════════════ */
.ba-section { padding-top: 48px; padding-bottom: 48px; }

.ba-carousel {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.ba-track { position: relative; }

.ba-card { display: none; }
.ba-card--active { display: block; }

.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 575px) {
  .ba-pair { grid-template-columns: 1fr; gap: 8px; }
}

.ba-figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius-12);
  overflow: hidden;
  background: #e8f5ec;
}

.ba-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

@media (max-width: 575px) {
  .ba-img { height: 200px; }
}

.ba-label {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  pointer-events: none;
}
.ba-label--before { background: rgba(0,0,0,.55); color: #fff; }
.ba-label--after  { background: #0b6b3a; color: #fff; }

.ba-caption {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin: 10px 0 0;
}

.ba-nav {
  position: absolute;
  top: 130px;
  transform: none;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #0b6b3a;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .9;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.ba-nav:hover { opacity: 1; transform: scale(1.08); }
.ba-nav--prev { left: -23px; }
.ba-nav--next { right: -23px; }

@media (max-width: 767px) {
  .ba-nav { width: 38px; height: 38px; font-size: 24px; top: 81px; }
  .ba-nav--prev { left: 4px; }
  .ba-nav--next { right: 4px; }
}

.ba-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.ba-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #c8e6d0;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.ba-dot--active,
.ba-dot:hover { background: #0b6b3a; }
/* ═══════════════════════════════════════════════════════════ */
