/* VARIABLES & RESET */
:root {
  --color-bg: #f4f4f0;
  --color-text: #1a1a1a;
  --color-accent: #ff3300; /* Swiss Red/Orange */
  --color-grey: #8e8e8e;
  --color-border: #1a1a1a;

  --font-main: "Inter", sans-serif;

  --container-width: 1400px;
  --spacing-unit: 1rem;
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* UTILITIES */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-bg);
  border-bottom: 2px solid var(--color-text);
  z-index: 1000;
  padding: 1.5rem 0;
}

.header__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__logo-icon {
  width: 24px;
  height: 24px;
  /* Placeholder style for SVG if not loaded */
  background-color: var(--color-accent);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.header__menu {
  display: flex;
  gap: 2rem;
}

.header__link {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  position: relative;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.header__link:hover::after {
  width: 100%;
}

.header__cta {
  background-color: var(--color-text);
  color: var(--color-bg);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  border: 1px solid var(--color-text);
  transition: var(--transition);
}

.header__cta:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

/* Burger Menu */
.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.header__burger-line {
  width: 30px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition);
}

/* FOOTER */
.footer {
  background-color: var(--color-text);
  color: var(--color-bg);
  padding: 4rem 0 2rem;
  border-top: 10px solid var(--color-accent);
}

.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.5rem;
}

.footer__desc {
  color: #ccc;
  margin-bottom: 2rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__socials i {
  cursor: pointer;
  transition: var(--transition);
}

.footer__socials i:hover {
  color: var(--color-accent);
  transform: scale(1.1);
}

.footer__title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-grey);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-grey);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer__list li {
  margin-bottom: 0.75rem;
}

.footer__link {
  color: #ccc;
  font-size: 0.95rem;
}

.footer__link:hover {
  color: var(--color-accent);
  padding-left: 5px; /* Micro-animation: shift */
}

.footer__address {
  font-style: normal;
  color: #ccc;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer__icon {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.footer__note {
  font-size: 0.75rem;
  color: var(--color-grey);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
}

.footer__bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 2rem;
  font-size: 0.875rem;
  color: var(--color-grey);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer__container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 72px; /* Header height approx */
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background-color: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    border-top: 2px solid var(--color-text);
  }

  .header__nav.active {
    transform: translateX(0);
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .header__burger {
    display: flex;
  }

  .footer__container {
    grid-template-columns: 1fr;
  }
}

/* BUTTONS (Global Component) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

/* Swiss Style Button: Sharp corners, high contrast */
.btn--primary {
  background-color: var(--color-text);
  color: #fff;
  border: 1px solid var(--color-text);
}

.btn--primary:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.15);
}

.text-accent {
  color: var(--color-accent);
}

/* HERO SECTION STYLES */
.hero {
  min-height: 90vh; /* Almost full screen */
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem; /* Top padding accounts for fixed header */
  position: relative;
  overflow: hidden;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero__badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--color-text);
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  background: transparent;
}

/* Typography & Animation Setup */
.hero__title {
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 2.5rem;
  color: var(--color-text);
}

.hero__line {
  display: block;
  overflow: hidden; /* Mask for text reveal */
}

.hero__line span {
  display: block;
  transform: translateY(100%); /* Start hidden (pushed down) */
  opacity: 0;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.hero__description-wrapper {
  overflow: hidden;
  margin-bottom: 3rem;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: #444;
  max-width: 500px;
  line-height: 1.6;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
  transition-delay: 0.4s;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s ease;
  transition-delay: 0.6s;
}

.hero__note {
  font-size: 0.75rem;
  color: var(--color-grey);
  font-style: italic;
}

/* Visual Part */
.hero__visual {
  position: relative;
  height: 600px;
  width: 100%;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Grayscale filter for serious corporate look */
  filter: grayscale(100%);
  position: relative;
  z-index: 2;
  border: 1px solid var(--color-text); /* Sharp border */
}

.hero__shape {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-accent);
  z-index: 1;
  transition: transform 0.1s ease-out;
}

/* Animation Trigger State */
.hero.animated .hero__line span {
  transform: translateY(0);
  opacity: 1;
}

.hero.animated .hero__subtitle {
  transform: translateY(0);
  opacity: 1;
}

.hero.animated .hero__actions {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero__visual {
    height: 400px;
    order: -1; /* Image on top for mobile */
    margin-bottom: 2rem;
  }

  .hero__actions {
    align-items: center;
  }
}

/* GLOBAL SECTION STYLES */
.section-padding {
  padding: 8rem 0;
}

.section-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
  padding-left: 2rem;
  border-left: 4px solid var(--color-accent);
}

.section-desc {
  max-width: 600px;
  font-size: 1.125rem;
  color: #444;
  margin-bottom: 4rem;
  line-height: 1.6;
}

/* STRATEGY GRID */
.strategy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 колонки */
  grid-auto-rows: minmax(300px, auto);
  border-top: 2px solid var(--color-text);
  border-left: 2px solid var(--color-text);
}

.strategy__item {
  border-right: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  background-color: var(--color-bg);
}

/* Grid Layout Spans */
.strategy__item--large {
  grid-column: span 3; /* На всю ширину */
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  align-items: flex-start;
}

.strategy__item--accent {
  background-color: var(--color-text);
  color: var(--color-bg);
}

/* Typography inside cards */
.strategy__num {
  font-size: 4rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-text); /* Outline text effect */
  line-height: 1;
  opacity: 0.5;
  transition: var(--transition);
}

.strategy__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.strategy__text {
  font-size: 1rem;
  line-height: 1.5;
  color: inherit;
  opacity: 0.8;
}

/* Icon Box for the large item */
.strategy__icon-box i {
  width: 64px;
  height: 64px;
  stroke-width: 1;
  color: var(--color-accent);
}

/* Link with Arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
}

.link-arrow:hover {
  gap: 1rem; /* Animation: expand gap */
}

/* HOVER EFFECTS (Micro-animations) */
.strategy__item:not(.strategy__item--accent):hover {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.strategy__item:hover .strategy__num {
  -webkit-text-stroke: 1px var(--color-bg);
  opacity: 1;
  transform: scale(1.1) translateX(10px);
}

.strategy__item--large:hover .strategy__icon-box i {
  color: #fff;
  transform: rotate(15deg) scale(1.2);
  transition: var(--transition);
}

.strategy__item--accent:hover {
  background-color: var(--color-accent);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .strategy__grid {
    grid-template-columns: 1fr 1fr;
  }

  .strategy__item--large {
    grid-column: span 2;
    grid-template-columns: 1fr; /* Stack vertically on tablet */
    gap: 1.5rem;
  }
}

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

  .strategy__item--large {
    grid-column: span 1;
  }

  .strategy__num {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .section-title {
    padding-left: 0;
    border-left: none;
    border-top: 4px solid var(--color-accent);
    padding-top: 1rem;
  }
}

/* DARK SECTION UTILITIES */
.section-dark {
  background-color: var(--color-text); /* Black */
  color: var(--color-bg); /* Light paper */
  padding: 8rem 0;
  position: relative;
}

.section-title--light {
  color: var(--color-bg);
  border-left-color: var(--color-accent);
}

.section-desc--light {
  color: #aaa;
}

/* BUTTONS LIGHT */
.btn--outline-light {
  background: transparent;
  color: var(--color-bg);
  border: 1px solid var(--color-bg);
  padding: 1rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn--outline-light:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.link-simple {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.875rem;
  border-bottom: 1px solid transparent;
}

.link-simple:hover {
  border-bottom-color: var(--color-accent);
}

/* ANALYTICS LAYOUT */
.analytics__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.analytics__actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}

/* STATS GRID */
.analytics__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  position: relative;
}

.stat-item {
  border-top: 1px solid #333;
  padding-top: 1rem;
}

.stat-item__value {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-feature-settings: "tnum"; /* Tabular numbers for alignment */
}

/* Decor for 98% and minutes */
.stat-item:nth-child(1) .stat-item__value::after {
  content: "%";
  font-size: 2rem;
}
.stat-item:nth-child(2) .stat-item__value::before {
  content: "+";
  font-size: 2rem;
  vertical-align: top;
}
.stat-item:nth-child(3) .stat-item__value::after {
  content: "м";
  font-size: 2rem;
}

.stat-item__label {
  font-size: 0.875rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* ABSTRACT BAR CHART DECOR */
.analytics__graph {
  grid-column: span 2;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  height: 100px;
  margin-top: 2rem;
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
}

.graph-bar {
  flex: 1;
  background-color: #333;
  height: 0; /* Animated via JS or simple CSS keyframes */
  transition: height 1s ease-out;
}

.analytics.animated .graph-bar {
  height: var(--h);
}

.graph-bar.active {
  background-color: var(--color-accent);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .analytics__container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .analytics__stats {
    margin-top: 2rem;
  }
}

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

  .analytics__graph {
    grid-column: span 1;
  }

  .analytics__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* CASES HEADER */
.cases__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.cases__controls {
  display: flex;
  gap: 1rem;
}

.nav-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-text);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.nav-btn:hover {
  background-color: var(--color-text);
  color: #fff;
}

/* HORIZONTAL SCROLL LAYOUT */
.cases__wrapper {
  width: 100%;
  overflow-x: auto;
  /* Hide scrollbar for cleaner look, strictly custom controls or drag */
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  border-top: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
}

.cases__wrapper::-webkit-scrollbar {
  display: none;
}

.cases__wrapper:active {
  cursor: grabbing;
}

.cases__track {
  display: flex;
  width: max-content; /* Allow content to stretch */
}

/* CARD STYLES */
.case-card {
  width: 450px; /* Fixed width for consistent rhythm */
  border-right: 2px solid var(--color-text);
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  transition: background-color 0.3s ease;
}

.case-card:hover {
  background-color: #ebebe6; /* Slight darken on hover */
}

.case-card__img-box {
  height: 280px;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--color-text);
}

.case-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: grayscale(100%);
}

.case-card:hover .case-card__img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.case-card__overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--color-accent);
  color: #fff;
  padding: 0.25rem 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
}

.case-card__content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.case-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.case-card__category {
  font-size: 0.75rem;
  color: var(--color-grey);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.case-card__desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}

/* CTA Card Variation */
.case-card--cta {
  background-color: var(--color-text);
  color: var(--color-bg);
  justify-content: center;
  border-right: none; /* Last item */
}

.case-card--cta .case-card__content {
  justify-content: center;
  align-items: flex-start;
}

.case-card--cta .case-card__title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.case-card--cta .case-card__desc {
  color: #ccc;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .case-card {
    width: 85vw; /* Almost full width on mobile */
  }

  .cases__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* CONTACT SECTION */
.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact__list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}

.contact__list i {
  color: var(--color-accent);
}

/* FORM WRAPPER */
.contact__form-wrapper {
  position: relative;
  background-color: #fff;
  border: 2px solid var(--color-text);
  padding: 3rem;
  /* Offset decoration effect */
  box-shadow: 15px 15px 0px var(--color-text);
}

/* INPUTS */
.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-grey);
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-text);
  transition: var(--transition);
  outline: none;
  border-radius: 0; /* Strict square */
}

.form-input:focus {
  border-color: var(--color-accent);
  background-color: #fff;
}

.form-input.error {
  border-color: red;
  background-color: #fff0f0;
}

.error-msg {
  position: absolute;
  bottom: -20px;
  left: 0;
  font-size: 0.75rem;
  color: red;
  opacity: 0;
  transition: var(--transition);
}

.form-input.error + .error-msg {
  opacity: 1;
}

/* CUSTOM CHECKBOX */
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 24px;
  width: 24px;
  background-color: #eee;
  border: 1px solid var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

/* Checkmark icon (hidden by default) */
.checkmark::after {
  content: "";
  width: 12px;
  height: 12px;
  background-color: var(--color-accent);
  display: none;
}

.custom-checkbox input:checked ~ .checkmark::after {
  display: block;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #fff;
  border-color: var(--color-accent);
}

.checkbox-text {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #444;
}

.checkbox-text a {
  text-decoration: underline;
  color: var(--color-text);
}

/* CAPTCHA BOX */
.form-group--captcha {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.captcha-box {
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px; /* Slight radius only here for 'standard captcha look' */
}

.checkbox-text--bold {
  font-weight: 600;
}

.captcha-icon {
  color: #aaa;
  width: 32px;
  height: 32px;
}

.custom-checkbox input:checked ~ .checkmark + .checkbox-text--bold {
  color: var(--color-accent);
}

/* BUTTON LOADER */
.btn--full {
  width: 100%;
}

.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loader {
  display: inline-block;
}

/* SUCCESS MESSAGE */
.contact__success {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-text); /* Black overlay */
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.contact__success.active {
  opacity: 1;
  pointer-events: all;
}

.success-icon {
  width: 80px;
  height: 80px;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.success-icon i {
  width: 40px;
  height: 40px;
}

.success-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.success-text {
  margin-bottom: 2rem;
  color: #ccc;
  max-width: 300px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .contact__container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact__form-wrapper {
    padding: 2rem;
    box-shadow: 8px 8px 0px var(--color-text);
  }
}

/* COOKIE POPUP */
.cookie-popup {
  position: fixed;
  bottom: -100%; /* Hidden by default */
  left: 0;
  width: 100%;
  background-color: var(--color-bg);
  border-top: 2px solid var(--color-text);
  padding: 1.5rem 0;
  z-index: 9999;
  transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.cookie-popup.active {
  bottom: 0;
}

.cookie-popup__content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-popup__text {
  font-size: 0.875rem;
  color: var(--color-text);
}

.cookie-popup__text a {
  text-decoration: underline;
  font-weight: 600;
}

.btn--small {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

/* LEGAL PAGES STYLES (Privacy, Terms, etc.) */
/* Цей клас використовувати для <section> на окремих сторінках */
.pages {
  padding: 8rem 0 4rem;
  min-height: 60vh;
}

.pages .container {
  max-width: 800px; /* Readability limit */
}

.pages h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  margin-bottom: 3rem;
  text-transform: uppercase;
  padding-bottom: 1.5rem;
  border-bottom: 4px solid var(--color-accent);
}

.pages h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.pages p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #333;
}

.pages ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.pages li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.pages a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Responsive for Cookie */
@media (max-width: 768px) {
  .cookie-popup__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .btn--small {
    width: 100%;
  }
}
