/* ===================================
  AgroGeo Website - Semantic Styles
  ================================== */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (CSS Variables)
   ========================================================================== */

:root {
  /* === Brand Colors === */
  --brand-primary: #f18330;
  --brand-secondary: #2B2B2B;
  --brand-text-dark: #141615;
  --brand-text-light: #7E7D89;
  --brand-text-accent: #0B0B0C;
  --brand-background-light: rgba(241, 246, 246, 1);
  
  /* === Typography === */
  --font-primary: 'Manrope', sans-serif;
  --font-secondary: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Lato', sans-serif;
  
  /* === Font Sizes === */
  --font-size-small: 14px;
  --font-size-base: 16px;
  --font-size-medium: 18px;
  --font-size-large: 22px;
  --font-size-xl: 24px;
  --font-size-xxl: 28px;
  --font-size-hero: 45px;
  --font-size-heading: 35px;
  
  /* === Font Weights === */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extra-bold: 800;
  
  /* === Line Heights === */
  --line-height-tight: 1.3;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.75;
  
  /* === Spacing === */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 30px;
  --spacing-xxl: 50px;
  
  /* === Border Radius === */
  --radius-sm: 10px;
  --radius-md: 15px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-button: 16px;
  --radius-full: 50px;
  
  /* === Shadows === */
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 40px #ff3c00, 0 2px 8px #ff3c00;
  
  /* === Layout === */
  --container-max-width: 1200px;
  --navbar-max-width: 1200px;
  --content-width: 90%;
  --content-width-narrow: 80%;
  --content-width-half: 50%;
  
  /* === Z-index === */
  --z-navbar: 100;
  --z-hero-image: 97;
  
  /* === Gradients === */
  --gradient-hero: linear-gradient(90deg, rgba(241, 246, 246, 1) 10%, white 90%);
  --gradient-service-hover: linear-gradient(90deg, #383535 10%, var(--brand-primary) 90%);
  --gradient-brand-bg: linear-gradient(rgb(100 254 50 / 10%) 1%, rgb(33 126 20 / 10%) 100%);
  
  /* === Transitions === */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

.k-activation, .k-activation-button {
  display: none;
}


/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--brand-text-dark);
  line-height: var(--line-height-base);
  
}

/* Ensure headings use the secondary font (Plus Jakarta Sans) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
}

/* Specific font applications */
.font-heading {
  font-family: var(--font-secondary) !important;
}

.font-body {
  font-family: var(--font-body) !important;
}

.font-primary {
  font-family: var(--font-primary) !important;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: var(--content-width);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.section {
  display: flex;
  padding: var(--spacing-xxl) 0;
}

.full-width-section {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}


.flex-row {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
}

.flex-column {
  flex: 1 1 0%;
}

.flex-column--half {
  flex-basis: var(--content-width-half);
}

.flex-column--full {
  flex-basis: 100%;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-center-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

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

hr {
    max-width: 50%;
    border: none;
    height: 3px;
    width: 50%;
    background-color: lightgray;
    margin: 5px;
    border-radius: 20px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
  min-height: 50px;
  width: 100%;
  background-color: black;
  color: white;
  border-bottom: 1px solid rgba(202, 202, 202, 0.63);
  position: relative;
  z-index: var(--z-navbar);
}

.navbar__container {
  max-width: var(--navbar-max-width);
  margin: 0 auto;
  width: 95%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.navbar__container::after {
  content: "";
  clear: both;
  display: block;
}

.navbar__brand {
  vertical-align: top;
  display: inline-block;
  padding: var(--spacing-xs) 0;
  color: inherit;
  text-decoration: none;
  margin-top: 12px;
  margin-left: 0;
}

.navbar__logo {
  width: 150px;
  height: auto;
}

.navbar__items {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: 16px;
}

.navbar__menu {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--spacing-xs) 0;
  display: flex;
  justify-content: flex-start;
  gap: 4px;
  align-items: center;
  color: #ec8031;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 1.3px;
}

.navbar__link {
  margin: 0;
  color: inherit;
  text-decoration: none;
  display: inline-block;
  padding: 12px 8px;
  font-family: var(--font-primary);
}

.navbar__search {
  display: flex;
  align-items: center;
  flex: 0 1 360px;
  min-width: min(100%, 280px);
  position: relative;
}

.navbar__search-form {
  display: block;
  width: 100%;
}

.navbar__search-scope-wrap {
  display: flex;
  align-items: center;
}

.navbar__search-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  color: white;
  background: #4c4646;
  padding: 3px 5px 3px 6px;
  gap: 4px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar__search-shell:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(71, 137, 19, 0.12);
}

.navbar__search-field {
  display: block;
  min-width: 0;
}

.navbar__search-input {
  width: 100%;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--brand-text-light);
  font: inherit;
  padding: 0 4px;
}

.navbar__search-input:focus {
  outline: none;
}

.navbar__search-scope-wrap {
  position: relative;
  align-self: stretch;
}

.navbar__search-scope-wrap::after {
  content: "";
  width: 1px;
  height: 20px;
  background: rgba(15, 23, 42, 0.1);
  margin-left: 2px;
}

.navbar__search-scope-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 36px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--brand-text-dark);
  font: inherit;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  white-space: nowrap;
}

.navbar__search-scope-toggle:focus-visible {
  outline: 2px solid rgba(71, 137, 19, 0.32);
  outline-offset: 2px;
}

.navbar__search-scope-arrow {
  color: var(--brand-primary);
  flex: 0 0 auto;
  transition: transform var(--transition-fast);
}

.navbar__search-scope-current {
  display: none;
}

.navbar__search-scope-wrap[data-open="true"] .navbar__search-scope-arrow {
  transform: rotate(180deg);
}

.navbar__search-scope-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: max-content;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(20, 22, 21, 0.16);
  z-index: 45;
}

.navbar__search-scope-dropdown[hidden] {
  display: none;
}

.navbar__search-scope-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--brand-text-dark);
  font: inherit;
  text-align: left;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.navbar__search-scope-option:hover,
.navbar__search-scope-option:focus-visible,
.navbar__search-scope-option.is-active {
  background: rgba(71, 137, 19, 0.08);
  color: var(--brand-primary);
  outline: none;
}

.navbar__search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgb(238 177 70 / 10%);
  color: var(--brand-primary);
  pointer-events: none;
}

.navbar__search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: calc(var(--z-navbar) + 20);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgb(240 130 48);
  border-radius: 18px;
  background: #4c4646;
  box-shadow: 0 22px 50px rgba(20, 22, 21, 0.14);
}

.navbar__search-dropdown[hidden] {
  display: none;
}

.live-search-state {
  margin: 0;
  color: var(--brand-text-light);
}

.live-search-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-search-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-search-section__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
}

.live-search-section__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgb(238 177 70 / 10%);
  color: var(--brand-primary);
  font-size: 0.85rem;
  font-weight: 800;
}

.live-search-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-search-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.live-search-item:hover {
  background: rgba(71, 137, 19, 0.06);
  transform: translateY(-1px);
}

.live-search-item__media {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(71, 137, 19, 0.16), rgba(241, 246, 246, 1));
}

.live-search-item__media img,
.live-search-item__placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.live-search-item__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.live-search-item__meta {
  color: var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.live-search-item__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.live-search-item__excerpt {
  color: var(--brand-text-light);
  font-size: 0.84rem;
  line-height: 1.35;
}

.live-search-footer {
  padding-top: 4px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.live-search-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: none;
}

.product-search {
  position: relative;
  margin: 0 0 32px;
}

.product-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 22, 21, 0.08);
}

.product-search-form__field {
  display: block;
}

.product-search-form__input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  color: var(--brand-text-dark);
  font: inherit;
}

.product-search-form__input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(71, 137, 19, 0.12);
}

.product-search-form__button {
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--brand-primary);
  color: #fff;
  font: inherit;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-search-form__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(71, 137, 19, 0.22);
}

.product-search__dropdown {
  top: calc(100% + 8px);
}

.product-search--category {
  margin-top: 20px;
}

.product-search--catalog {
  margin-bottom: 40px;
}

/* --- Language Switcher -------------------------------------------------- */
.navbar__lang-switch {
  margin-left: 0;
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.navbar__langs--mobile {
  display: none;
  width: 100%;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-top: var(--spacing-sm);
}

.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  font-family: var(--font-primary);
}

.lang-switch__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 14px 16px;
  border-radius: 20px;
  border: none;
  background: #4c4646;
  color: var(--brand-text-light);
  font-weight: var(--font-weight-semibold);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
  
}

.lang-switch__toggle:hover {
  border-color: rgba(57, 254, 50, 0.45);
  box-shadow: 0 8px 22px rgba(103, 232, 80, 0.14);

}

.lang-switch[data-open="true"] .lang-switch__toggle {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary);

  color: var(--brand-text-light);
}

.lang-switch__toggle:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

.lang-switch__code {
  font-weight: var(--font-weight-bold);
}

.lang-switch__icon {
  transition: transform var(--transition-fast);
  opacity: 0.8;
}

.lang-switch[data-open="true"] .lang-switch__icon {
  transform: rotate(180deg);
}

.lang-switch__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 210px;
  padding: 10px;
  border-radius: 20px;
  background: #4c4646;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity var(--transition-medium), transform var(--transition-medium), visibility var(--transition-medium);
  z-index: calc(var(--z-navbar) + 10);
}

.lang-switch[data-open="true"] .lang-switch__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-switch__item {
  list-style: none;
  margin: 0;
}

@media (max-width: 960px) {
  .navbar__search-dropdown {
    position: static;
    margin-top: 10px;
    box-shadow: 0 12px 28px rgba(20, 22, 21, 0.1);
  }

  .product-search-form {
    grid-template-columns: 1fr;
  }

  .product-search-form__button {
    width: 100%;
  }
}

.lang-switch__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: 10px 12px;
  border-radius: 0px;
  background: transparent;
  color: var(--brand-text-light);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.lang-switch__option:hover,
.lang-switch__option:focus-visible {
  background: rgb(238 177 70 / 10%);
  color: var(--brand-primary);
}

.lang-switch__option.is-active {
  background: rgb(238 177 70 / 10%);
  color: var(--brand-primary);
  cursor: default;
  pointer-events: none;
}

.lang-switch__option-code {
  font-weight: var(--font-weight-bold);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.lang-switch__option-name {
  font-size: 14px;
  white-space: nowrap;
}

.navbar__burger {
  margin: var(--spacing-sm) 0;
  padding: var(--spacing-xs) var(--spacing-sm);
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 40px;
  position: absolute;
  right: 0;
  top: 12px;
  z-index: 10;
}

.navbar__burger-line {
  background-color: rgb(241 131 48);
  height: 3px;
  border-radius: initial;
  margin: 3px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.navbar__burger-line:nth-child(1) {
  width: 28px;
}

.navbar__burger-line:nth-child(2) {
  width: 32px;
}

.navbar__burger-line:nth-child(3) {
  width: 24px;
}

/* Burger to X animation states */
.navbar__burger.is-active .navbar__burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  width: 32px;
}

.navbar__burger.is-active .navbar__burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__burger.is-active .navbar__burger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 32px;
}

.navbar__cta {
  padding: var(--spacing-md) var(--spacing-xl);
  text-decoration: none;
  color: white;
  background-color: #000000;
  border-radius: initial;
  font-family: initial;
  display: none;
}

/* === Sub Menu (generic) ================================================= */
.navbar__item--has-sub {
  position: relative;

}

.sub-menu-toggle {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sub-menu-toggle:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: initial;
}

.sub-menu-caret {
  font-size: 0.8em;
  transform: translateY(-1px);
  transition: transform var(--transition-fast);
}

.sub-menu-toggle[aria-expanded="true"] .sub-menu-caret {
  transform: rotate(180deg) translateY(1px);
}

 .sub-menu {
  --sub-menu-width: 920px;
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  /* Центрирование + динамическая корректировка краёв через переменную */
  transform: translateX(calc(-50% + var(--sub-menu-shift-x, 0px)));
  will-change: transform, opacity;
  width: var(--sub-menu-width);
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-radius: initial;
  padding: 24px 28px 30px;
  display: none;
  z-index: calc(var(--z-navbar) + 5);
  max-height: 75vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sub-menu[data-open="true"] {
  display: block;
  animation: subMenuFadeIn var(--transition-medium);
}

@keyframes subMenuFadeIn {
  from { opacity: 0; transform: translateX(calc(-50% + var(--sub-menu-shift-x, 0px))) translateY(10px); }
  to { opacity: 1; transform: translateX(calc(-50% + var(--sub-menu-shift-x, 0px))) translateY(0); }
}

.sub-menu__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px 36px;
  align-items: flex-start;
}

.sub-menu__col {
  min-width: 0;
}

.sub-menu__heading {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--brand-text-accent);
  padding: 0;
}
.sub-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sub-menu__link {
  display: block;
  padding: 6px 10px 6px 0;
  border-radius: initial;
  color: initial;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  position: relative;
}

.sub-menu__link:focus-visible,
.sub-menu__link:hover {
  background: linear-gradient(90deg, rgb(97 241 64 / 18%), rgba(27, 204, 95, 0));
  color: #000;
}

.sub-menu__link.active {
  background: linear-gradient(90deg, rgb(97 241 64 / 18%), rgba(254, 79, 50, 0));
  font-weight: 600;
  position: relative;
}

.sub-menu__link.active::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-primary), #83ed52);
}

/* Underline hover effect (like .blog-post-card__link) for top-level and submenu items */
.navbar__link,
.sub-menu__link {
  position: relative;
  text-decoration: none;
}

.navbar__link::after,
.sub-menu__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: width .3s ease;
}

/* Keep submenu underline closer to text baseline to avoid overlap */
.sub-menu__link::after { bottom: -2px; }

.navbar__link:hover::after,
.sub-menu__link:hover::after,
.sub-menu__link:focus-visible::after {
  width: 100%;
}

/* Divider style (optional future) */
.sub-menu__divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 12px 0;
}

/* Mobile adaptations */
@media (max-width: 960px) {
  .sub-menu {
    position: static;
    transform: none;
    /* Collapse width to content when closed to avoid stretching parent */
    width: auto;
    box-shadow: none;
    border: none;
    padding: 0 0 0; /* внутренние отступы внутри колонок */
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: block; /* всегда в потоке для измерения высоты */
    animation: none;
    max-height: none;
    overflow: hidden; /* скрываем при свёрнутой высоте */
    will-change: height, opacity;
    height: 0;
    opacity: 0;
    transition: height .28s cubic-bezier(.4,0,.2,1), opacity .22s ease;
  }
  .sub-menu[data-open="true"] {
    /* When open, stretch to full width for readability */
    width: 100%;
    height: var(--sub-menu-mobile-h, auto);
    opacity: 1;
  }
  .sub-menu__inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .sub-menu__heading {
    font-size: 14px;
  }
  .sub-menu__link {
    padding-left: 4px;
    font-size: 15px;
  }
}

/* Small tablets only: center the submenu item box without centering its children */
@media (min-width: 769px) and (max-width: 960px) {
  .navbar__item--has-sub {
    margin-left: auto;
    margin-right: auto;
    width: max-content;
    max-width: 100%;
    text-align: center;
    align-self: center; /* in case parent is a flex column */
  }
}

/* Reduce width slightly on small desktops */
@media (max-width: 1180px) and (min-width: 961px) {
  .sub-menu {
    --sub-menu-width: 840px;
  }
}

/* Ensure dropdown above hero overlaps */
body .sub-menu-root { z-index: calc(var(--z-navbar) + 5); }

@media (min-width: 961px) {
  .sub-menu { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sub-menu[data-open="true"] { animation: none; }
  .sub-menu-caret { transition: none; }
}

/* Scrollbar styling (webkit) */
.sub-menu::-webkit-scrollbar { width: 10px; }
.sub-menu::-webkit-scrollbar-track { background: transparent; }
.sub-menu::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
}
.sub-menu::-webkit-scrollbar-thumb:hover {background: rgba(0,0,0,0.28); }


table, td {
    border: 1px grey solid;
    border-collapse: collapse;
    text-align: center;
}

.about-section h1 {
    font-size: 55px !important;

}
/* -------------------------------------------------- */
/* Portfolio (Photography) listing reuse blog styles   */
/* -------------------------------------------------- */
.portfolio-list { padding-top: 40px; }
.portfolio-list__header { 
    font-family: 'Manrope', sans-serif;
    font-size: 35px;
    margin: 0 0 16px;
    line-height: 1.1;
}
.portfolio-list__items { display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 34px; }
.portfolio-list .portfolio-card {width: 30%; background-color: rgb(251 251 251);}
.services-list .portfolio-list__items {
  justify-content: flex-start;
}
.services-list .portfolio-card {
  width: 47% !important;
  flex: 0 1 calc(33% - 20px);
  max-width: calc(50% - 20px);
  text-decoration: none;
}

/* Modifiers sitting on top of blog-post base */
.portfolio-card {width: 48%; display: flex; flex-direction: column;}
.portfolio-card__image {width: 100% !important; align-self: center;}
.portfolio-card .portfolio-card__image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100% !important; }
.portfolio-card__title { margin-top: 0; margin-bottom: 10px; }
.portfolio-card__excerpt { margin: 0 0 14px; }
.portfolio-card__link { font-weight: 600; }

/* Slight hover accent */
.portfolio-card:hover .portfolio-card__title { color: var(--brand-text-accent); }
.portfolio-card:hover .portfolio-card__image img { filter: brightness(.94); }

@media (min-width: 800px) {
  .portfolio-card {width: 40%;}
  .portfolio-list__items { gap: 42px; }
  .portfolio-card__excerpt { max-width: 850px; }
}

@media (max-width: 640px) {
  .portfolio-list .portfolio-card {width: 100%;}
  .services-list .portfolio-list__items {
    justify-content: center;
  }
  .services-list .portfolio-card {
    width: 100% !important;
    flex: 0 1 100%;
    max-width: 100%;
  }
  .portfolio-card {width: 100%;}
  .portfolio-card .blog-post__image { max-width: 320px; }
}

/* --------------------------------------------- */
/* Album page gallery                            */
/* --------------------------------------------- */
.album-page__header { margin-bottom: 26px; }
.album-page__description { margin: 0 0 38px; max-width: 900px; }

.album-gallery { display: flex; flex-direction: column; gap: 22px; }
.album-gallery__viewer { position: relative; }
.album-gallery__stage {
  position: relative;
  overflow: hidden;
  border-radius: initial;
  background: #f5f5f5;
  --ag-fade-duration: .55s;
}
.album-gallery__stage::after { content:''; position:absolute; inset:0; pointer-events:none; background: linear-gradient(0deg, rgba(0,0,0,0) 65%, rgba(0,0,0,0.08)); mix-blend-mode: multiply; opacity:.6; }
/* Main image base + transition states */
.album-gallery__main { position:relative; z-index:1; display:block; width:100%; height:auto; max-height:68vh; object-fit:contain; opacity:1; transition: opacity var(--ag-fade-duration) ease, transform var(--ag-fade-duration) cubic-bezier(.4,0,.2,1), filter var(--ag-fade-duration) ease; will-change: opacity, transform, filter; }
/* During load (network) lowered opacity */
.album-gallery__main.is-loading { opacity:.25; }
/* Before showing new image (enter) */
.album-gallery__main.is-entering { opacity:0; transform:scale(.985); filter:brightness(.92); }
/* Clone of previous image fading out */
.album-gallery__main--clone { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; z-index:2; pointer-events:none; animation: ag-fade-out var(--ag-fade-duration) ease forwards; }
@keyframes ag-fade-out { 0% { opacity:1; transform:scale(1); filter:brightness(1); } 100% { opacity:0; transform:scale(1.04); filter:brightness(1.08); } }
.album-gallery__counter {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 20px;
  letter-spacing: .5px;
  font-weight: 500;
}
.album-gallery__caption { font-size:14px; color: #444; text-align: center; margin-top:8px; line-height:1.45; position:relative; transition: opacity .35s ease, transform .45s ease; }
.album-gallery__caption.is-changing { opacity:0; transform: translateY(6px); }

.album-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(0, 0, 0, 0.15);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s, box-shadow .2s;
  z-index: 30;
}
.album-gallery__nav span { font-size:20px; line-height:1; }
.album-gallery__nav:hover { background:#fff; box-shadow:0 4px 16px rgba(0,0,0,.15); }
.album-gallery__nav:disabled { opacity:.35; cursor:default; }
.album-gallery__nav--prev { left:12px; }
.album-gallery__nav--next { right:12px; }

.album-gallery__thumbs { display:flex; justify-content: center; flex-wrap:nowrap; gap:10px; overflow-x:auto; padding:6px 4px 4px; -webkit-overflow-scrolling: touch; }
.album-gallery__thumbs[data-drag-scroll] { cursor: grab; }
.album-gallery__thumbs[data-drag-active="true"] { cursor: grabbing; }
.album-gallery__thumbs::-webkit-scrollbar { height:10px; }
.album-gallery__thumbs::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .15);
  border-radius: 6px;
}

.album-thumb {
  flex: 0 0 auto;
  position: relative;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: initial;
  overflow: hidden;
  line-height: 0;
  transition: transform .28s, border-color .28s, box-shadow .28s;
}
.album-thumb img { display:block; width:110px; height:74px; object-fit:cover; filter:brightness(.9) saturate(.9); transition: filter .28s, transform .45s cubic-bezier(.4,0,.2,1); }
.album-thumb:hover img, .album-thumb:focus img { filter:brightness(1) saturate(1); }
.album-thumb.is-active { border-color: var(--brand-text-accent); box-shadow:0 0 0 2px var(--brand-text-accent) inset, 0 6px 14px -4px rgba(0,0,0,.35); transform: translateY(-3px); }
.album-thumb.is-active img { filter:brightness(1.05) saturate(1.1); }
.album-thumb:focus-visible { outline:2px solid var(--brand-text-accent); outline-offset:2px; }
/* Lightbox link focus */
.album-gallery__stage a[data-album-lightbox] { display:block; position:relative; z-index:2; }
.album-gallery__stage a[data-album-lightbox]:focus-visible { outline:2px solid var(--brand-text-accent); outline-offset:4px; }

@media (max-width: 900px) {
  .album-gallery__main { max-height:60vh; }
  .album-thumb img { width:92px; height:62px; }
}

@media (max-width: 600px) {
  .album-gallery { gap:16px; }
  .album-gallery__nav { width:38px; height:38px; }
  .album-gallery__nav--prev { left:6px; }
  .album-gallery__nav--next { right:6px; }
  .album-thumb img { width:78px; height:54px; }
}

@media (prefers-reduced-motion: reduce) {
  .album-gallery__main { transition:none; }
  .album-gallery__main--clone { animation:none; }
  .album-gallery__caption { transition:none; }
  .album-thumb { transition:none; }
}

/* --------------------------------------------- */
/* Services list filters (moved outside reduced motion media query) */
/* --------------------------------------------- */
.services-filters__buttons { display:flex; flex-wrap:wrap; gap:10px; }

/* Базовый переиспользуемый чип категории */
.category-chip {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 20px;
  background: rgba(248, 250, 252, .8);
  border: 1px solid #e2e8f0;
  font-size: 14px;
  transition: .3s cubic-bezier(.4, 0, .2, 1);
  font-weight: 600;
  line-height: 1.2;
  gap: 6px;
}
.category-chip:focus-visible { outline:2px solid var(--brand-text-accent); outline-offset:2px; }
.category-chip .category-chip__label, .category-chip .blog-category__label { color:#374151; font-weight:600; margin-right:6px; transition:color .3s; }
.category-chip .category-chip__count,
.category-chip .blog-category__count {
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 600;
  background: rgb(238 177 70 / 10%);
  padding: 2px 6px;
  border-radius: 10px;
  transition: .3s;
}
.category-chip:hover { background:rgba(254,79,50,.1); border-color:none; transform:translateY(-2px); box-shadow:0 4px 12px rgba(254,79,50,.2); }
.category-chip:hover .category-chip__label, .category-chip:hover .blog-category__label { color:var(--brand-primary); }
.category-chip:hover .category-chip__count, .category-chip:hover .blog-category__count { background:var(--brand-primary); color:#fff; }
.category-chip.is-active { background:var(--brand-primary); border-color:none; color:#fff; }
.category-chip.is-active .category-chip__label, .category-chip.is-active .blog-category__label { color:#fff; }
.category-chip.is-active .category-chip__count, .category-chip.is-active .blog-category__count { background:rgba(255,255,255,.2); color:#fff; }

/* Совместимость со старыми классами */
.services-filter-btn.blog-category { /* alias to category-chip */ color:inherit; }

/* Утилиты групп */
.services-group.is-hidden { display:none; }
.services-group__title { scroll-margin-top: 90px; }
[hidden][hidden] { display:none !important; }

/* --------------------------------------------- */
/* Inline gallery blocks inside posts/pages */
/* --------------------------------------------- */
.gallery { margin:32px 0; }
.gallery ul { list-style:none; margin:0; padding:0; display:grid; gap:14px; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); }
.gallery li {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #f3f5f7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  transition: box-shadow .3s, transform .35s cubic-bezier(.4, 0, .2, 1);
}
.gallery a[data-lightbox] { display:block; line-height:0; cursor:zoom-in; }
.gallery img { width:100%; height:100%; object-fit:cover; display:block; filter:brightness(.94) saturate(.95); transition: filter .35s, transform .6s cubic-bezier(.4,0,.2,1); }
.gallery li:hover img, .gallery li:focus-within img { filter:brightness(1.05) saturate(1.05); transform:scale(1.04); }
.gallery li:hover { box-shadow:0 10px 22px -6px rgba(0,0,0,.18); transform:translateY(-4px); }
.gallery figcaption { margin-top:14px; font-size:14px; line-height:1.5; color:#555; text-align:center; }
@media (max-width:700px) { .gallery ul { gap:10px; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); } }
@media (max-width:480px) { .gallery ul { grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); } }

/* Enhanced lightbox UI */
.sg-lightbox { position:relative; max-width:92vw; max-height:90vh; display:flex; align-items:center; justify-content:center; }
.sg-lightbox__figure { margin:0; position:relative; }
.sg-lightbox__img {
  max-width: 92vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, .45);
  transition: opacity .35s ease;
}
.sg-lightbox__img.is-changing { opacity:.25; }
.sg-lightbox__caption { text-align:center; margin-top:12px; font-size:14px; color:#e5e7eb; font-weight:500; font-family: var(--font-primary, 'Manrope', sans-serif); }
.sg-lightbox__counter {
  position: absolute;
  bottom: 8px;
  right: 14px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.sg-lightbox__close {
  position: absolute;
  top: -42px;
  right: -4px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, transform .25s;
}
.sg-lightbox__close:hover {
  background: rgba(0, 0, 0, .8);
  transform: rotate(90deg);
}
.sg-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background .25s, box-shadow .25s, transform .25s;
}
.sg-lightbox__nav:hover { background:rgba(0,0,0,.85); box-shadow:0 4px 18px -4px rgba(0,0,0,.55); transform:translateY(-50%) scale(1.05); }
.sg-lightbox__nav--prev { left:-60px; }
.sg-lightbox__nav--next { right:-60px; }
@media (max-width:900px) { .sg-lightbox__nav--prev { left:6px; } .sg-lightbox__nav--next { right:6px; } .sg-lightbox__close { top:8px; right:8px; } }
@media (max-width:600px) { .sg-lightbox__nav { width:40px; height:40px; font-size:24px; } }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  background-image: var(--gradient-hero);
}

.hero__container {
  width: 100%;
  max-width: 1440px;
  background-image: var(--gradient-hero);
  background-position: 0px 0px;
  background-size: 100% 100%;
  background-repeat: repeat;
  background-attachment: scroll;
  background-origin: padding-box;
  position: relative;
}

.hero__content {
  padding-top: var(--spacing-xxl);
  padding-right: 0;
  padding-bottom: 50px;
  padding-left: 0;
  background-image: var(--gradient-hero);
  position: static;
  width: var(--content-width);
  margin: 0 auto;
}

.hero__text-column {
  flex-basis: var(--content-width-half);
  z-index: var(--z-hero-image);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-lg);
}

.hero__image-column {
  flex-basis: var(--content-width-half);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image {
  color: black;
  width: 80%;
  position: relative;
  z-index: var(--z-hero-image);
  border-radius: 20px;
  height: auto;
  backdrop-filter: unset;
  backface-visibility: visible;
}

.hero__tag {
  padding: var(--spacing-sm);
  font-family: var(--font-secondary);
  color: var(--brand-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
}

.hero__title {
  font-family: var(--font-primary);
  color: #0C0E17;
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-medium);
  margin: 0;
}

.hero__description {
  padding: var(--spacing-sm);
  color: #010101;
  font-family: var(--font-primary);
  font-size: var(--font-size-medium);
  line-height: var(--line-height-relaxed);
  padding-left: 0;
  padding-right: 0;
  margin-bottom: var(--spacing-md);
  width: var(--content-width-narrow);
}

.hero__cta {
  background-color: var(--brand-primary);
  width: 200px;
  padding: var(--spacing-md);
  font-family: var(--font-secondary);
  color: white;
  font-size: 1rem;
  text-align: center;
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 30px;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about {
  padding-bottom: initial;
}

.about__content {
  flex-basis: 100%;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-lg);
}

.about__tag {
  padding: var(--spacing-sm);
  color: var(--brand-primary);
  font-size: var(--font-size-base);
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-bold);
  text-align: center;
}

.about__title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-heading);
  color: var(--brand-text-accent);
  margin: 0;
  text-align: center;
}

.about__description {
  padding: var(--spacing-sm);
  width: var(--content-width-half);
  text-align: center;
  padding-top: var(--spacing-md);
  padding-bottom: 0;
  font-family: var(--font-primary);
  color: var(--brand-text-dark);
  font-size: var(--font-size-medium);
  line-height: var(--line-height-relaxed);
  margin: 0 auto;
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */

.portfolio {
  justify-content: center;
  padding: 0;
}

.portfolio__container {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm);
}

.portfolio__link {
  color: var(--brand-primary);
  padding: var(--spacing-sm);
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: 1.2rem;
  padding-top: 0;
  padding-right: var(--spacing-xs);
  padding-bottom: 0;
  padding-left: var(--spacing-xs);
}

.portfolio__icon {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  vertical-align: middle;
  fill: currentColor;
  width: 50px;
  height: 50px;
  width: 26px;
  height: 27px;
  display: flex;
  align-items: center;
  color: var(--brand-primary);
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features {
  position: relative;
  /* Перенесли фон на псевдоэлемент для возможности поворота */
  background: none;
  /* Позволяем фону выступать за пределы секции, чтобы он залезал под следующие блоки */
  z-index: 0; /* создаём контекст наложения для ::before */
  /* предотвращаем горизонтальный скролл из-за большой фигуры, вертикально — можно выходить */
  overflow-x: clip;
}

.features::before {
  content: "";
  position: absolute;
  top: var(--features-top, 115%); /* ниже секции, чтобы заходить под блок услуг */
  left: 50%;
  width: var(--features-size, 420px);
  height: var(--features-size, 420px);
  /* SVG-абстракция: тонкие "лазерные" лучи с отражениями (градиентные штрихи) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><g fill='none' stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round'><path d='M0 80 C 60 60, 120 100, 180 80 S 300 60, 400 90' stroke-width='1.1'/><path d='M0 110 C 70 90, 130 130, 190 110 S 310 90, 400 120' stroke-width='1' stroke-dasharray='6 8'/><path d='M0 140 C 50 120, 120 150, 180 140 S 290 120, 400 150' stroke-width='0.9'/><path d='M0 170 C 60 150, 130 180, 200 170 S 320 150, 400 180' stroke-width='1' stroke-dasharray='4 7'/><path d='M0 200 C 60 180, 130 210, 200 200 S 320 180, 400 210' stroke-width='1.2'/><path d='M0 230 C 55 210, 125 240, 195 230 S 315 210, 400 240' stroke-width='1'/><path d='M0 260 C 60 240, 140 270, 210 260 S 330 240, 400 270' stroke-width='0.9' stroke-dasharray='5 9'/><path d='M0 290 C 70 270, 140 300, 220 290 S 340 270, 400 300' stroke-width='1.05'/><path d='M0 320 C 55 300, 135 330, 215 320 S 335 300, 400 330' stroke-width='0.85'/></g></svg>");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  transform: translate(-50%, -50%) rotate(var(--features-rotate, 0deg)) scale(var(--features-scale, 4));
  transform-origin: center;
  pointer-events: none;
  opacity: var(--features-opacity, 0.02);
  z-index: -1; /* фон ниже контента секции и ниже соседних элементов */
}

.features > * {
  position: relative;
  z-index: 1;
}

.features__container {
  padding: 0;
  border-radius: initial;
  border: 1px solid rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.features__row {
  width: 100%;
  margin: var(--spacing-xxl) auto;
  background-color: rgba(255, 255, 255, 1);
  margin-top: 0;
  margin-bottom: 0;
  padding: var(--spacing-lg);
}

.features__image-column {
  flex-basis: var(--content-width-half);
  padding: var(--spacing-md);
  display: flex;
  justify-content: center;
  align-items: center;
}

.features__content-column {
  flex-basis: var(--content-width-half);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.features__image {
  color: black;
  width: 90%;
  border-radius: initial;
  height: 320px;
}

.features__title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-heading);
  margin: 0;
  text-align: center;
}

.features__subtitle {
  padding: var(--spacing-sm);
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
  font-family: var(--font-primary);
  font-size: var(--font-size-small);
  text-decoration: none;
  color: gray;
  font-style: italic;
}

.features__description {
  padding: var(--spacing-xl);
  padding-top: 0;
  padding-bottom: 0;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-secondary);
  color: var(--brand-text-dark);
  line-height: var(--line-height-relaxed);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services__title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-heading);
  padding-top: var(--spacing-md);
  margin: 0;
  text-align: center;
  color: white;
}

.services__grid {
  width: 100%;
  margin: var(--spacing-xxl) auto;
  border-radius: initial;
  padding: initial;
  gap: var(--spacing-lg);
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.container-service-card {
  background: var(--gradient-service-hover);
}

.service-card {
  display: block;
  flex-direction: column;
  justify-content: center;
  background-color: none;
  border-radius: initial;
  padding: initial;
  align-items: center;
  transition: transform var(--transition-slow);
  color: white;
  cursor: pointer;
  transform: unset;
  flex: 1 1 calc(50% - var(--spacing-lg));
  /* max-width: calc(50% - var(--spacing-lg)); */
  position: relative;
  text-decoration: none;
}

.service-card:hover {
  background-color: white;
  background-position: 0px 0px;
  background-size: 100% 100%;
  background-repeat: repeat;
  background-attachment: scroll;
  background-origin: padding-box;
  color: var(--brand-text-accent);
  border-radius: 20px;
}

.service-card__icon {
  width: 300px;
  max-height: 55%;
  text-align: center;
  margin: 0 auto;
  display: block;
}

.service-card__title {
  margin: var(--spacing-md) 0 3px 0;
  font-family: var(--font-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  text-align: center;
  color: inherit;
}

.service-card__description {
  padding: var(--spacing-sm);
  font-family: var(--font-primary);
  color: inherit;
  font-size: var(--font-size-base);
  text-align: center;
}

.service-card__arrow {
  text-align: right;
  display: block;
  float: right;
  color: var(--brand-primary);
  position: absolute;
  right: var(--spacing-sm);
  bottom: var(--spacing-sm);
}
.circle img {
  /* border-radius: 999px !important;*/
  object-fit: cover;
  overflow: hidden;
  /* border: #f0f0f0 10px solid;
  -webkit-border-radius: 999px;
  -moz-border-radius: 999px;*/
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */

.blog {
  padding: initial 0;
}

.blog__container {
  border-radius: initial;
  background-color: #F0F0F0;
  padding: var(--spacing-xxl) var(--spacing-xl);
  display: block;
  flex-direction: column;
  align-items: stretch;
}
.services__grid--custom {
  display: grid;
  grid-template-columns: repeat(var(--cols-desktop, 3), minmax(0, 1fr));
  gap: var(--spacing-lg);
  width: var(--content-width);
  max-width: var(--container-max-width);
  margin: var(--spacing-xxl) auto;
}
.services__grid--custom .service-card {
  width: 100%;
  flex: 0 0 auto; /* neutralize legacy flex sizing */
}
/* Variant: compact cards */
.services__grid--custom[data-variant="compact"] {
  gap: var(--spacing-md);
}
.services__grid--custom[data-variant="compact"] .service-card {
  padding: calc(var(--spacing-md) + 2px);
}
.services__grid--custom[data-variant="compact"] .service-card__icon {
  width: 80px;
}
@media (max-width: 992px) {
  .services__grid--custom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: var(--spacing-xl) auto;
  }
}
@media (max-width: 640px) {
  .services__grid--custom {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    width: 95%;
  }
}

.blog__header {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.blog__tag {
  padding: 5px 30px;
  color: var(--brand-primary);
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  background-image: var(--gradient-brand-bg);
  border-radius: initial;
  text-align: center;
  display: inline-block;
  margin: 0 auto;
}

.blog__title {
  margin: var(--spacing-md) 0 40px 0;
  font-family: var(--font-secondary);
  color: var(--brand-text-accent);
  font-size: var(--font-size-xxl);
  font-weight: var(--font-weight-extra-bold);
}

.blog__posts {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  margin-bottom: 40px;
}

.blog-post {
  display: flex;
  gap: 25px;
  background-color: rgba(255, 255, 255, 1);
  border-radius: initial;
  padding: 25px;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  cursor: pointer;
}

.blog-post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.blog-post__image {
  flex-shrink: 0;
  width: 200px;
  overflow: hidden;
  border-radius: 12px;
}

.blog-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.blog-post:hover .blog-post__image img {
  transform: scale(1.05);
}

.blog-post__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-post__title {
  font-family: var(--font-secondary);
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-bold);
  color: var(--brand-text-accent);
  margin: 0 0 12px 0;
  line-height: var(--line-height-tight);
}

.blog-post__excerpt {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: #74797D;
  margin: 0 0 var(--spacing-md) 0;
}

.blog-post__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-post__date {
  font-family: var(--font-secondary);
  font-size: var(--font-size-small);
  color: #74797D;
  font-style: italic;
}

.blog-post__link {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-medium);
}

.blog-post__link:hover {
  color: rgb(241 131 48 / 62%);
}

.blog__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-xl);
}

.blog__cta-link {
  color: rgba(0, 0, 0, 1);
  padding: var(--spacing-sm);
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: 1.2rem;
  padding-top: 0;
  padding-right: var(--spacing-xs);
  padding-bottom: 0;
  padding-left: var(--spacing-xs);
}

.blog__cta-icon {
  width: 26px;
  height: 27px;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   INDIVIDUAL POST STYLES
   ========================================================================== */

/* Post Layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.post-main {
  min-width: 0;
}

.post-sidebar {
  position: sticky;
  top: 120px;
}

/* Post Article Footer */
.post-article__footer {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid #e0e0e0;
}

.post-article__tags {
  margin-bottom: var(--spacing-lg);
}

.post-article__tags h4 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-medium);
  color: var(--brand-text-dark);
  margin-bottom: var(--spacing-sm);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.post-tag {
  background-color: #f5f5f5;
  color: var(--brand-text-dark);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 20px;
  text-decoration: none;
  font-size: var(--font-size-small);
  transition: all 0.3s ease;
}

.post-tag:hover {
  background-color: var(--brand-primary);
  color: white;
}

.post-article__share h4 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-medium);
  color: var(--brand-text-dark);
  margin-bottom: var(--spacing-sm);
}

.post-share {
  display: flex;
  gap: var(--spacing-sm);
}

.post-share__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f5f5f5;
  color: var(--brand-text-dark);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-share__link:hover {
  background-color: var(--brand-primary);
  color: white;
  transform: translateY(-2px);
}

.post-share__link svg {
  width: 20px;
  height: 20px;
}

/* Sidebar Widgets */
.post-widget {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.post-widget:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.post-widget__title {
  color: #1f2937;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px 0;
  font-family: var(--font-primary);
  position: relative;
  padding-bottom: 12px;
}

.post-widget__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #ff6b47 100%);
  border-radius: 2px;
}

/* Tags Widget */
.post-tags-widget {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.post-tag-widget {
  background-color: white;
  color: var(--brand-text-dark);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 15px;
  text-decoration: none;
  font-size: var(--font-size-small);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.post-tag-widget:hover {
  background-color: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}

/* CTA Widget */
.post-widget--cta {
  background: linear-gradient(135deg, rgb(67 210 116 / 8%) 0%, rgb(109 160 95 / 3%) 100%);
  border-color: rgb(161 209 139 / 20%);
  text-align: center;
}

.post-cta p {
  color: var(--brand-primary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 15px;
}

.post-cta__button {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #000 100%);
  color: white !important;
  padding: 12px 24px;
  border-radius: 0px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
}

.post-cta__button:hover {
  background: linear-gradient(135deg, #1fcc1c 0%, #000 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(254, 79, 50, 0.4);
}

/* Related Posts Widget */
.post-related {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.post-related__item {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-radius: 0px;
  transition: background-color 0.3s ease;
}

.post-related__item:hover {
  background: #f8f9fa;
}

.post-related__image {
  width: 50px;
  height: 38px;
  border-radius: 0px;
  object-fit: cover;
  flex-shrink: 0;
}

.post-related__content {
  flex: 1;
  min-width: 0;
}

.post-related__title {
  margin: 0 0 var(--spacing-xs) 0;
  font-size: var(--font-size-small);
  line-height: 1.3;
}

.post-related__title a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.post-related__title a:hover {
  color: var(--brand-primary);
}

.post-related__date {
  font-size: var(--font-size-small);
  color: var(--brand-primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR POST PAGES
   ========================================================================== */

@media (max-width: 1200px) {
  .post-layout {
    grid-template-columns: 1fr 280px;
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .post-sidebar {
    position: static;
    order: -1;
  }
  
  .post-header {
    padding: 60px 0 40px 0;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background-color: #2C2D34;
  padding-bottom: var(--spacing-sm);
}

.footer__container {
  width: 100%;
  gap: var(--spacing-xl);
  padding: var(--spacing-lg);
}

.footer__brand {
  flex-basis: 50%;
}

.footer__logo {
  color: black;
  width: 100px;
  height: auto;
}

.footer__description {
  color: var(--brand-text-light);
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-medium);
  line-height: var(--line-height-relaxed);
  padding: var(--spacing-md) 0;
  font-style: italic;
}

.footer__social {
  align-items: center;
  gap: 11px;
  display: flex;
}

.footer__social-link {
  color: white;
  display: inline-block;
  vertical-align: top;
  padding: var(--spacing-sm);
  max-width: 100%;
  text-decoration: none;
}

.footer__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  vertical-align: middle;
  fill: currentColor;
  width: 42px;
  height: 42px;
}

.footer__social-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer__links {
  flex-basis: 25%;
  padding: 0 var(--spacing-lg);
}

.footer__links-title {
  margin-bottom: var(--spacing-sm);
  margin-top: 0;
  font-family: var(--font-primary);
  color: white;
  font-weight: var(--font-weight-extra-bold);
  font-size: var(--font-size-large);
}

.footer__link {
  color: var(--brand-text-light);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  text-decoration: none;
  padding: var(--spacing-xs) 0;
  display: block;
}

.footer__contact {
  /* flex-basis: 25%; */
  padding: 0 var(--spacing-lg);
}

.footer__contact-title {
  margin-bottom: var(--spacing-sm);
  margin-top: 0;
  font-family: var(--font-primary);
  color: white;
  font-weight: var(--font-weight-extra-bold);
  font-size: var(--font-size-large);
}

.footer__contact-item {
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--spacing-xs);
  margin-bottom: 9px;
}

.footer__contact-icon {
  width: 22px;
  height: 22px;
  color: var(--brand-text-light);
}

.footer__contact-text {
  font-family: var(--font-primary);
  color: var(--brand-text-light);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
}

.footer__contact-link {
  color: var(--brand-text-light);
  text-decoration: none;
}

.footer__bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--spacing-lg);
}

.footer__copyright {
  flex-basis: var(--content-width-half);
}

.footer__copyright-text {
  font-family: var(--font-primary);
  color: white;
  font-size: var(--font-size-medium);
}

.footer__rights {
  flex-basis: var(--content-width-half);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--spacing-md);
  font-family: var(--font-primary);
}

.footer__rights-text {
  color: rgba(255, 255, 255, 1);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Large screens - 4 columns for service cards */
@media (min-width: 1200px) {
  .service-card {
    flex-basis: calc(25% - var(--spacing-lg));
    /* max-width: calc(25% - var(--spacing-lg)); */
  }
}

/* Medium screens - 3 columns for service cards */
@media (min-width: 993px) and (max-width: 1199px) {
  .service-card {
    flex-basis: calc(33.333% - var(--spacing-lg));
    max-width: calc(33.333% - var(--spacing-lg));
  }
}

/* Tablets and small desktops */
@media (max-width: 992px) {
  .navbar__menu {
    font-size: 0.75rem;
  }

  .navbar__items {
    gap: var(--spacing-md);
  }

  .navbar__search {
    flex-basis: 320px;
    min-width: 260px;
  }
  
  .navbar__container {
    width: 90%;
  }
  .hero__content {
    width: 90%;
    padding: 0;
  }
  
  .about__description {
    width: 80%;
  }
  
  .features__row {
    padding: var(--spacing-sm);
  }
  
  .services__grid {
    flex-wrap: wrap;
  }
  
  .footer__container {
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
  }
  
  .footer__brand {
    flex-basis: 40%;
  }
  
  .footer__links,
  .footer__contact {
    flex-basis: 30%;
  }
  
  .footer__bottom {
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }
  
  .footer__copyright {
    flex: 0 1 auto;
  }
  
  .footer__rights {
    flex: 0 1 auto;
  }
  
  .hero__description {
    width: 90%;
  }
  
  .navbar__logo {
    max-width: 150px;
    padding: var(--spacing-sm) 0;
  }
  
  .blog-post {
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
  }
  
  .blog-post__image {
    width: 180px;
  }
  
  .blog-post__title {
    font-size: var(--spacing-lg);
  }
  
  .blog-post__excerpt {
    font-size: var(--spacing-md);
  }
}

/* Mobile & small tablets (landscape) */
@media (max-width: 960px) {
  .navbar__items {
    display: none;
    width: 100%;
    padding: 0 var(--spacing-md) var(--spacing-lg);
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-md);
  }
  .navbar__brand {
    margin-top: 20px;
}
  .navbar__burger {
    display: block;
    right: var(--spacing-md);
    top: 20px;
  }
  
  .navbar__menu {
    width: 100%;
    flex-direction: column;
    background-color: var(--brand-text-light);
    margin-right: 0;
    margin-bottom: 20px;
    border-radius: 20px;   
  }

  .navbar__search {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }

  .navbar__search-shell {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    border-radius: 999px;
    padding: 3px 5px 3px 6px;
    gap: 4px;
  }

  .navbar__search-scope-wrap {
    width: auto;
    justify-content: flex-start;
    align-self: stretch;
  }

  .navbar__search-scope-wrap::after {
    display: block;
  }

  .navbar__search-scope-toggle {
    width: auto;
    justify-content: center;
    min-width: 32px;
    min-height: 36px;
    padding: 0 6px;
    background: transparent;
  }

  .navbar__search-scope-dropdown {
    left: 0;
    right: auto;
    width: max-content;
    min-width: 240px;
    max-width: min(280px, calc(100vw - 32px));
  }

  .navbar__search-input {
    min-height: 36px;
    padding: 0 4px;
  }

  .navbar__search-icon {
    justify-self: auto;
    align-self: center;
    margin-right: 0;
  }

  .navbar__lang-switch {
    display: none;
  }

  .navbar__langs--mobile {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0 var(--spacing-lg);
  }

  .navbar__langs--mobile .navbar__link {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-sm);
    font-weight: var(--font-weight-semibold);
  }
  
  .navbar__link {
    display: block;
  }
  
  .navbar__container {
    width: 100%;
  }
  
  .hero__content {
    width: 100%;
    flex-direction: row;
    padding: 0;
  }
  
  .hero__image-column {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .about__description {
    width: 85%;
  }
  
  .features__row {
    flex-direction: column;
  }
  
  .features__row:nth-child(even) {
    flex-direction: column-reverse;
  }
  
  .flex-column--half {
    flex-basis: 100%;
  }
  
  .footer__links {
    flex-basis: 100%;
    padding: var(--spacing-lg) 0;
  }
  
  .footer__contact {
    flex-basis: 100%;
    padding: var(--spacing-lg) 0;
  }
  
  .footer__brand {
    flex-basis: 100%;
  }
  
  .footer__container {
    width: 95%;
    flex-direction: column;
  }
  
  .footer__bottom {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero__description {
    width: 100%;
  }
  
  .service-card__arrow {
    position: static;
  }
  
  .navbar__brand {
    margin-left: var(--spacing-md);
  }
  
  .blog-post {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .blog-post__image {
    width: 100%;
  }
  
  .blog-post__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .blog__container {
    padding: var(--spacing-lg) var(--spacing-md);
    width: 100%;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .navbar__menu {
    border-bottom: 1px solid rgba(125, 125, 125, 0.27);
    left: 0;
    text-align: left;
    align-items: flex-start;
    padding-left: var(--spacing-lg);
    gap: var(--spacing-xs);
    font-size: medium;
  }
  
  .hero__content {
    padding: 0;
    flex-direction: column;
    gap: var(--spacing-xl);
    padding-top: var(--spacing-lg);
  }
  
  .hero__text-column {
    text-align: left;
    order: 2;
  }
  
  .hero__image-column {
    order: 1;
  }
  
  .about__description {
    width: 100%;
  }
  
  .features__row {
    padding: var(--spacing-xs);
    gap: var(--spacing-lg);
  }
  
  .features__image-column,
  .features__content-column {
    padding: 0;
  }
  
  .flex-column--half {
    flex-basis: 100%;
  }
  
  .services__grid {
    flex-direction: column;
  }
  
  .footer__container {
    flex-direction: column;
  }
  
  .footer__links {
    flex-basis: 100%;
    padding: var(--spacing-md) 0;
  }
  
  .footer__contact {
    flex-basis: 100%;
    padding: var(--spacing-md) 0;
  }
  
  .footer__brand {
    flex-basis: 100%;
  }
  
  .footer__bottom {
    flex-wrap: wrap;
    flex-direction: column;
  }
  
  .footer__rights {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer__rights-text {
    flex: 0 0 auto;
  }
  
  .footer__copyright-text {
    font-size: 1.2rem;
  }
  
  .hero__image {
    width: 100%;
    height: auto;
  }
  
  .features__image {
    width: 100%;
    height: auto;
  }
  
  .blog-post {
    padding: var(--spacing-md);
  }
  
  .blog-post__title {
    font-size: var(--font-size-medium);
  }
  
  .blog-post__excerpt {
    font-size: var(--font-size-small);
  }
  
  .about__title {
    font-size: 1.6rem;
  }
  
  .features__title {
    font-size: 1.6rem;
  }
  
  .services__title {
    font-size: 1.6rem;
  }
  
  .service-card__title {
    font-size: 1.6rem;
  }
  
  .hero__title {
    font-size: 2rem;
    text-align: left;
  }
  
  .footer__links-title,
  .footer__contact-title {
    font-size: 1.2rem;
  }
  
  .blog__title {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-xl);
    font-family: var(--font-primary);
  }
  
  .blog__posts {
    gap: var(--spacing-lg);
  }
  
  .blog__container {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .hero__description {
    text-align: left;
  }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================== */
/* VIDEO AND IMAGES */
/* ============================== */

.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}
.img img,
.video iframe,
.video video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.img[data-contain] img {
  object-fit: contain;
}
.video[data-contain] video {
  object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
}

/* Custom big play button overlay for local videos */
.video.video--local { cursor: pointer; }
.video__overlay-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  outline: none;
  display: inline-block;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
  opacity: .95;
}
.video__overlay-play::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  /* triangle */
  width: 0; height: 0;
  border-left: 24px solid #000;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}
.video__overlay-play:hover {
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow: 0 6px 28px rgba(0,0,0,.4);
}
.video.is-playing .video__overlay-play { opacity: 0; pointer-events: none; }

@media (max-width: 640px) {
  .video__overlay-play { width: 76px; height: 76px; }
  .video__overlay-play::before { border-left-width: 20px; border-top-width: 13px; border-bottom-width: 13px; }
}

/* ============================== */
/* SCROLL ANIMATIONS */
/* ============================== */

/* Base animation states */
.animate-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

.animate-zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-zoom-in.in-view {
  opacity: 1;
  transform: scale(1);
}

.animate-icon {
  opacity: 0;
  transform: rotate(-10deg) scale(0.8);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: var(--icon-delay, 0s);
}

.animate-icon.in-view {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.animate-image {
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-image.in-view {
  opacity: 1;
  transform: scale(1);
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.animate-slide-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Icon delay variables */
.animate-icon:nth-child(1) { --icon-delay: 0.1s; }
.animate-icon:nth-child(2) { --icon-delay: 0.2s; }
.animate-icon:nth-child(3) { --icon-delay: 0.3s; }
.animate-icon:nth-child(4) { --icon-delay: 0.4s; }
.animate-icon:nth-child(5) { --icon-delay: 0.5s; }
.animate-icon:nth-child(6) { --icon-delay: 0.6s; }

/* Feature row stagger delays */
.features__row:nth-child(2) .animate-fade-up {
  transition-delay: 0.1s;
}
.features__row:nth-child(3) .animate-fade-up {
  transition-delay: 0.2s;
}
.features__row:nth-child(4) .animate-fade-up {
  transition-delay: 0.3s;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .animate-scale,
  .animate-zoom-in,
  .animate-icon,
  .animate-image,
  .animate-fade-up,
  .animate-slide-left {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Contacts header (adapted from blog-header) */
.contacts-header {background:linear-gradient(135deg,#f8fafc 0%,#ffffff 50%,#f1f5f9 100%);padding:25px 0 45px;position:relative;overflow:hidden}
.contacts-header::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none}
.contacts-header__content{max-width:800px;margin:0 auto;text-align:center;position:relative;z-index:2}
.contacts-header__title{font-family:'Manrope',sans-serif;font-size:48px;font-weight:800;margin:0 0 16px;line-height:1.1;background:linear-gradient(135deg,#1f2937 0%,#374151 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.contacts-header__subtitle{font-size:18px;color:var(--brand-primary);line-height:1.7;margin:0;font-weight:500}


/* =============================================================
   Contacts Page Styling (contacts.php)
   ============================================================= */

.contacts-content { padding: 0; }
.contacts-content .blocks-wrapper { display: grid; gap: 2.5rem; }
.contacts-content .legacy-text { margin-top: 1.5rem; font-size: 1.05rem; line-height: 1.6; }

.contact--details { --gap: 2.5rem; }
.contact__title {text-align: left; margin: 0 0 2rem; }
.contact__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact__item {
  background: #1d2128;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .4);
}
.contact__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; opacity: .7; margin: 0 0 .35rem; font-weight: 600; }
.contact__value { font-size: .95rem; line-height: 1.5; }
.contact__social { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem .75rem; }
.contact__social a { color: #4aa8ff; text-decoration: none; font-weight: 500; }
.contact__social a:hover { text-decoration: underline; }

@media (min-width: 900px) {
  .contacts-content .blocks-wrapper { gap: 3.5rem; }
  .contact__grid { gap: 2.5rem; }
}

/* Modern contact cards */
.contact--modern .contact__grid { gap: 2.25rem; }
.contact-card {
  display: flex;
  gap: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.08);
  backdrop-filter: blur(4px);
  padding: 1.25rem 1.25rem 1.15rem;
  border-radius: 18px;
  position: relative;
  transition: box-shadow .3s ease, transform .25s ease;
}
.contact-card:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(45, 212, 59, 0.45), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: .65;
  pointer-events: none;
}
.contact-card:hover {
  box-shadow: 0 8px 28px -6px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.contact-card__icon {
  width: 52px; min-width:52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgb(255 168 63 / 15%), rgb(147 254 50 / 5%));
  color: var(--brand-primary);
  box-shadow: inset 0 0 0 1px rgb(235 175 75 / 25%), 0 2px 4px rgba(0, 0, 0, .06);
}
.contact-card__label { margin: 0 0 .4rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; opacity: .65; }
.contact-card__value { font-size: .95rem; line-height: 1.5; }
.contact-card__value a {
  color: var(--primary-color, var(--brand-primary));
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(71, 137, 19, 0.2);
  transition: border-color .25s ease, color .25s ease;
}
.contact-card__value a:hover {
  border-color: var(--primary-color, var(--brand-primary));
  color: var(--primary-color, var(--brand-primary));
}
.contact-card__value a[href^="tel:"] {
  font-feature-settings: "tnum" 1;
  letter-spacing: .02em;
}
.contact-card--social .contact-card__value { width: 100%; }

/* Social list */
.contact-social-list { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.contact-social-list__item { display: flex; }
.contact-social-list__link {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .75rem .45rem .5rem;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  font-size: .85rem;
  color: #1d2731;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 0 0 1px rgba(0,0,0,.04);
  transition: background .25s, box-shadow .25s, transform .25s;
}
.contact-social-list__link:hover {
  background: linear-gradient(90deg,#fff,#f7f9fb);
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.12), 0 0 0 1px rgba(254,79,50,.35);
  transform: translateY(-2px);
}
.contact-social-list__icon { width: 22px; height: 22px; display: block; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
.contact-social-list__icon--fallback {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eceff3;
  border-radius: 7px;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.contact-social-list__text { line-height: 1; }

/* Vertical stack layout for contacts page */
.contact__stack { display:flex; flex-direction:column; gap:1.4rem; max-width:820px; }
.contact__stack .contact-card { width:100%; }

/* Link + icon color system */
.contact-social-list__link { position:relative; }
.contact-social-list__link:hover .contact-social-list__icon { filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }

/* Platform accent rings (optional subtle) */
.contact-social-list__link[data-platform]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.contact-social-list__link:hover[data-platform]::after { opacity:1; }

/* Brand color variables */
:root {
  --social-youtube:#FF0000;
  --social-instagram:#E4405F;
  --social-discord:#5865F2;
  --social-mastodon:#595aff;
  --social-facebook:#1877F2;
  --social-telegram:#229ED9;
}

/* Coloring svg via filter fallback if inline not used (kept neutral here) */
.contact-social-list__icon { transition: filter .3s, transform .3s; }
.contact-social-list__link:hover .contact-social-list__icon { transform: translateY(-1px); }

/* The text link color unify */
.contact-social-list__link { color: var(--brand-text-dark); }
.contact-social-list__link:hover { color: var(--brand-primary); }



@media (min-width: 640px) {
  .contact-social-list { flex-direction: row; flex-wrap: wrap; }
  .contact-social-list__item { width: auto; }
}


/* =============================================================
   Global layouts grid (used by Kirby layouts snippet on any page)
   ============================================================= */
/* These classes are referenced by site/snippets/layouts.php and must be global */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter, 1.5rem);
}

.column {
  grid-column: span var(--columns, 12);
}

.margin-xl {
  margin: 2rem 0;
}

.text { line-height: 1.6; }
.text .blocks { margin: 0; }

/* Spacing between auto-rendered Kirby blocks */
.text .block { margin-bottom: 1.5rem; }
.text .block:last-child { margin-bottom: 0; }

/* Safe defaults for images/figures inside layout columns */
.text figure { max-width: 100%; margin: 1.5rem 0; overflow: hidden; }
.text figure img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.text img { max-width: 100%; height: auto; display: block; }
.text .block-image img {
  border-radius: 8px;
}

/* Stack columns on small screens to avoid overflow/overlap */
@media (max-width: 768px) {
  .grid { gap: 1rem; }
  .grid .column { grid-column: span 12 !important; }
}

/* =============================================================
   Homepage-specific spacing for layouts and standard blocks
   ============================================================= */
/* Ensure generic Kirby blocks and layout sections have container width and vertical rhythm on home */
.home-blocks { display:block; }

/* Layout sections rendered by layouts.php */
.home-blocks > section.grid {
  width: var(--content-width);
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--spacing-xxl);
  margin-bottom: var(--spacing-xxl);
}

/* Standard Kirby blocks rendered as a .blocks wrapper when not inside a layout */
.home-blocks > .blocks {
  width: var(--content-width);
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-top: var(--spacing-xxl);
  padding-bottom: var(--spacing-xxl);
  line-height: 1.6;
}

.home-blocks > .blocks img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.home-blocks > .blocks figure img {
  border-radius: 8px;
}
.post-content__text figure img, .post-content__layout figure img {max-height: 100% !important;
}

/* Spacing inside standard blocks on home */
.home-blocks > .blocks .block { margin-bottom: 1.25rem; }
.home-blocks > .blocks .block:last-child { margin-bottom: 0; }
.home-blocks > .blocks figure { max-width:100%; margin: 1.25rem 0; overflow:hidden; }

@media (max-width: 768px) {
  .home-blocks > section.grid,
  .home-blocks > .blocks {
    width: 95%;
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
  }
}

/* ==========================================================================
   GLOBAL FORMBLOCK STYLE (except contacts template)
   ========================================================================== */

body:not(.template-contacts) .formblock {
  --form-accent: var(--brand-primary, #478913);
  --form-bg: #ffffff;
  --form-border: #dbe3ea;
  --form-text: #12212f;
  --form-muted: var(--brand-primary);
  --form-radius: 14px;
  display: grid;
  gap: 1rem;
  max-width: min(720px, 100%);
  margin: 1.25rem 0;
  padding: 1.15rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(246, 250, 244, .95));
  border: 1px solid rgba(71, 137, 19, .16);
  border-radius: 20px;
  box-shadow: 0 16px 36px -24px rgba(18, 33, 47, .45);
  font-family: var(--font-primary);
}

body:not(.template-contacts) .formblock_field__label,
body:not(.template-contacts) .formblock__option__container legend {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .45rem;
  font-size: .79rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--form-muted);
}

body:not(.template-contacts) .formfield__label__required {
  color: var(--form-accent);
  font-weight: 900;
}

body:not(.template-contacts) .formfield__input,
body:not(.template-contacts) .formfield__textarea,
body:not(.template-contacts) .formfield__select,
body:not(.template-contacts) .formfield__file {
  width: 100%;
  padding: .85rem .95rem;
  border-radius: var(--form-radius);
  border: 1px solid var(--form-border);
  background: var(--form-bg);
  color: var(--form-text);
  font-family: var(--font-primary);
  font-size: .96rem;
  line-height: 1.45;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}

body:not(.template-contacts) .formfield__textarea {
  min-height: 132px;
  resize: vertical;
}

body:not(.template-contacts) .formfield__input:focus,
body:not(.template-contacts) .formfield__textarea:focus,
body:not(.template-contacts) .formfield__select:focus,
body:not(.template-contacts) .formfield__file:focus {
  border-color: var(--form-accent);
  box-shadow: 0 0 0 4px rgba(71, 137, 19, .14);
  outline: none;
  transform: translateY(-1px);
}

body:not(.template-contacts) .formfield__container[data-valid="false"] .formfield__input,
body:not(.template-contacts) .formfield__container[data-valid="false"] .formfield__textarea,
body:not(.template-contacts) .formfield__container[data-valid="false"] .formfield__select,
body:not(.template-contacts) .formfield__container[data-valid="false"] .formfield__file,
body:not(.template-contacts) .formfield__container[data-valid="false"] .formblock__option__container {
  border-color: #d64242;
  box-shadow: 0 0 0 3px rgba(214, 66, 66, .12);
}

body:not(.template-contacts) .formfield__container[data-valid="true"] .formfield__input,
body:not(.template-contacts) .formfield__container[data-valid="true"] .formfield__textarea,
body:not(.template-contacts) .formfield__container[data-valid="true"] .formfield__select,
body:not(.template-contacts) .formfield__container[data-valid="true"] .formfield__file,
body:not(.template-contacts) .formfield__container[data-valid="true"] .formblock__option__container {
  border-color: var(--form-accent);
  box-shadow: 0 0 0 3px rgba(71, 137, 19, .12);
}

body:not(.template-contacts) .formfield__option {
  margin: 0 0 .55rem;
}

body:not(.template-contacts) .formfield__option__label {
  padding-left: 2rem;
  line-height: 1.45;
  font-weight: 600;
  color: #243444;
}

body:not(.template-contacts) .formfield__checkbox__check,
body:not(.template-contacts) .formfield__radio__check {
  height: 18px;
  width: 18px;
  top: 1px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
}

body:not(.template-contacts) .formfield__radio__check,
body:not(.template-contacts) .formfield__radio__check:before {
  border-radius: 999px;
}

body:not(.template-contacts) .formfield__checkbox:checked ~ .formfield__checkbox__check,
body:not(.template-contacts) .formfield__radio:checked ~ .formfield__radio__check {
  border-color: var(--form-accent);
  background: rgba(71, 137, 19, .08);
}

body:not(.template-contacts) .formfield__checkbox:checked ~ .formfield__checkbox__check:before,
body:not(.template-contacts) .formfield__radio:checked ~ .formfield__radio__check:before {
  color: var(--form-accent);
  background: var(--form-accent);
}

body:not(.template-contacts) .formfield__file::file-selector-button,
body:not(.template-contacts) .formblock__submit > input {
  border: 1px solid var(--form-accent);
  border-radius: 12px;
  background: var(--form-accent);
  color: #fff;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: .93rem;
  letter-spacing: .01em;
  padding: .7rem 1.2rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

body:not(.template-contacts) .formblock__submit {
  width: 100%;
  margin-left: 0;
  text-align: left;
}

body:not(.template-contacts) .formblock__submit > input {
  width: 100%;
  min-height: 46px;
  box-shadow: 0 10px 22px -14px rgba(71, 137, 19, .85);
}

body:not(.template-contacts) .formblock__submit > input:hover,
body:not(.template-contacts) .formfield__file::file-selector-button:hover {
  filter: brightness(.95);
  transform: translateY(-1px);
}

body:not(.template-contacts) .formblock__submit__bar {
  border-radius: 10px;
  background: rgba(255, 255, 255, .25);
  mix-blend-mode: soft-light;
}

body:not(.template-contacts) .formblock__message--error,
body:not(.template-contacts) .formblock__message--success {
  border-radius: 12px;
  padding: .72rem .9rem;
  font-size: .92rem;
  line-height: 1.45;
  margin-top: .35rem;
}

body:not(.template-contacts) .formblock__message--error[data-form="form_error"] {
  background: #fff1f1;
  border: 1px solid #f3c7c7;
  color: #8b2323;
}

body:not(.template-contacts) .formblock__message--success[data-form="form_success"] {
  background: rgba(71, 137, 19, .12);
  border: 1px solid rgba(71, 137, 19, .35);
  color: #1f4f07;
}

@media (max-width: 640px) {
  body:not(.template-contacts) .formblock {
    padding: .9rem;
    border-radius: 16px;
  }
}
