/* --- VARIABLES --- */
:root {
  /* Palette: Swiss Style (High Contrast) */
  --color-bg: #ffffff;
  --color-text-primary: #0f172a; /* Deep Charcoal */
  --color-text-secondary: #475569;
  --color-accent: #2563eb; /* International Blue */
  --color-accent-hover: #1d4ed8;
  --color-border: #e2e8f0;
  --color-light-bg: #f8fafc;

  /* Typography */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing & Sizes */
  --container-width: 1400px;
  --header-height: 80px;
  --border-width: 1px;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: --font-body;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
img {
  max-width: 100%;
  display: block;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- TYPOGRAPHY UTILS --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: var(--border-width) solid var(--color-border);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header__logo-img {
  height: 32px;
  width: auto;
}

.header__nav {
  display: none;
}

@media (min-width: 992px) {
  .header__nav {
    display: block;
  }
}

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

.header__link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

/* Micro-interaction: Underline Slide */
.header__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__cta {
  display: none;
  background-color: var(--color-text-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--color-text-primary);
  /* Strict geometry: No border-radius */
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .header__cta {
    display: inline-block;
  }
}

.header__cta:hover {
  background-color: transparent;
  color: var(--color-text-primary);
  box-shadow: 4px 4px 0px var(--color-accent);
  transform: translate(-2px, -2px);
}

.header__burger {
  display: block;
  color: var(--color-text-primary);
}

@media (min-width: 992px) {
  .header__burger {
    display: none;
  }
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--color-bg);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  border-top: 1px solid var(--color-border);
  padding: 2rem;
}

.mobile-menu.is-active {
  transform: translateX(0);
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.mobile-menu__cta {
  display: block;
  text-align: center;
  background-color: var(--color-accent);
  color: #fff;
  padding: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--color-light-bg);
  border-top: var(--border-width) solid var(--color-border);
  padding: 4rem 2rem 2rem;
  margin-top: auto;
}

.footer__grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2rem;
  }
}

.footer__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  display: block;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.footer__desc {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 300px;
}

.footer__copyright {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: auto;
}

.footer__title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
  display: inline-block;
}

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

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-style: normal;
}

.footer__contact-item a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

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

.footer__note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  display: inline-block;
  color: var(--color-text-secondary);
  background: #fff;
}

/* --- HERO SECTION --- */
.hero {
  /* Accounting for fixed header */
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 992px) {
  .hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 2rem;
  }
}

/* Badges */
.hero__badges {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  opacity: 0; /* Hidden for animation */
  flex-wrap: wrap;
}

.hero__badge {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-text-primary);
  font-weight: 600;
}

.hero__badge--accent {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* Typography */
.hero__title {
  font-size: 3rem; /* Mobile */
  line-height: 1;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 4.5rem;
  }
}

@media (min-width: 1200px) {
  .hero__title {
    font-size: 5.5rem;
  }
}

/* Text Reveal Masking */
.hero__line-mask {
  overflow: hidden; /* Key for the reveal effect */
}

.hero__line-mask span {
  display: block;
  transform: translateY(100%); /* Initial state: pushed down */
}

.text-outline {
  /* Style variant: outlined text */
  -webkit-text-stroke: 1px var(--color-text-primary);
  color: transparent;
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 500px;
  margin-bottom: 3rem;
  opacity: 0;
}

/* Buttons */
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 4rem;
  opacity: 0;
}

@media (min-width: 576px) {
  .hero__actions {
    flex-direction: row;
  }
}

.hero__btn-primary {
  background-color: var(--color-text-primary);
  color: #fff;
  padding: 1.2rem 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: 1px solid var(--color-text-primary);
}

.hero__btn-primary:hover {
  background-color: transparent;
  color: var(--color-text-primary);
  gap: 15px; /* Arrow moves */
}

.hero__btn-secondary {
  padding: 1.2rem 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  text-align: center;
  transition: all 0.3s ease;
}

.hero__btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: rgba(37, 99, 235, 0.05);
}

/* Stat Block */
.hero__stat {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  opacity: 0;
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.hero__stat-text {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Visual / Image Area */
.hero__visual {
  position: relative;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0; /* Animated */
  transform: scale(0.95);
}

.hero__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: grayscale(100%); /* Strict BW style */
  border: 1px solid var(--color-text-primary);
  position: relative;
  z-index: 2;
}

/* Geometric Decorations */
.hero__deco-box {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  background-color: var(--color-accent);
  z-index: 1;
}

.hero__deco-line {
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 1px;
  background-color: var(--color-text-primary);
  z-index: 1;
}

/* --- METHODOLOGY SECTION --- */
.methodology {
  padding: 6rem 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

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

.methodology__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 992px) {
  .methodology__wrapper {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start; /* Важно для sticky эффекта */
  }
}

/* Sticky Header Side */
.methodology__header {
  position: relative;
}

@media (min-width: 992px) {
  .methodology__header {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }
}

.methodology__title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

@media (min-width: 768px) {
  .methodology__title {
    font-size: 3.5rem;
  }
}

.methodology__subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 300px;
  margin-bottom: 2rem;
  border-left: 2px solid var(--color-accent);
  padding-left: 1rem;
}

.methodology__deco-square {
  width: 60px;
  height: 60px;
  background: repeating-linear-gradient(
    45deg,
    var(--color-text-primary),
    var(--color-text-primary) 2px,
    transparent 2px,
    transparent 8px
  );
  opacity: 0.5;
}

/* Steps List */
.methodology__steps {
  display: flex;
  flex-direction: column;
}

.step-card {
  border-top: 1px solid var(--color-text-primary);
  padding: 3rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  transition: all 0.4s ease;
  cursor: default;
}

.step-card:last-child {
  border-bottom: 1px solid var(--color-text-primary);
}

/* Hover Effect: Invert Colors */
.step-card:hover {
  background-color: var(--color-light-bg);
  padding-left: 2rem; /* Sligth shift */
  padding-right: 2rem;
}

.step-card__num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-text-primary);
  line-height: 1;
}

.step-card:hover .step-card__num {
  color: var(--color-accent);
  -webkit-text-stroke: 0px;
}

.step-card__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-card__title {
  font-size: 1.5rem;
  text-transform: uppercase;
}

.step-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  max-width: 450px;
}

.step-card__action {
  display: none;
}

@media (min-width: 768px) {
  .step-card {
    grid-template-columns: 80px 1fr auto;
  }

  .step-card__action {
    display: flex;
    align-items: flex-start;
    padding-top: 0.5rem;
    color: var(--color-text-primary);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
  }

  .step-card:hover .step-card__action {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- MENTORS SECTION --- */
.mentors {
  padding: 6rem 0;
  background-color: var(--color-bg);
}

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

.mentors__top {
  display: flex;
  flex-direction: column;
  margin-bottom: 4rem;
  gap: 2rem;
  border-bottom: 2px solid var(--color-text-primary);
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .mentors__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.mentors__title {
  font-size: 3rem;
  text-transform: uppercase;
  line-height: 0.9;
}

.mentors__info {
  max-width: 400px;
}

.mentors__info p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.text-highlight {
  color: var(--color-text-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--color-accent);
}

.mentors__link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  font-size: 0.9rem;
}

.mentors__link-cta:hover {
  gap: 12px;
  text-decoration: underline;
}

/* Grid Layout "Tight Table" */
.mentors__grid {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.mentor-card {
  width: 100%; /* Mobile 1 column */
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  position: relative;
  transition: background-color 0.3s ease;
}

@media (min-width: 600px) {
  .mentor-card {
    width: 50%; /* Tablet 2 columns */
  }
}

@media (min-width: 1024px) {
  .mentor-card {
    width: 25%; /* Desktop 4 columns */
  }
}

.mentor-card:hover {
  background-color: var(--color-light-bg);
}

.mentor-card__img-box {
  width: 100%;
  aspect-ratio: 1 / 1.1; /* Portrait ratio */
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

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

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

.mentor-card__overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-bg);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid var(--color-text-primary);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.mentor-card:hover .mentor-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

.mentor-card__body {
  padding: 1.5rem;
  text-align: left;
}

.mentor-card__name {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.mentor-card__role {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.mentor-card__spec {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* --- CASES SECTION --- */
.cases {
  padding: 6rem 0;
  background-color: var(--color-light-bg); /* Contrast bg */
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

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

.cases__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.cases__title {
  font-size: 3rem;
  text-transform: uppercase;
  line-height: 0.9;
}

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

.cases__nav-btn {
  width: 50px;
  height: 50px;
  border: 1px solid var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

.cases__subtitle {
  max-width: 600px;
  color: var(--color-text-secondary);
  margin-bottom: 4rem;
}

/* Slider (Scroll Snap) */
.cases__slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2rem;
  -webkit-overflow-scrolling: touch; /* Smooth scroll iOS */
  scrollbar-width: none; /* Firefox hide scrollbar */
}

.cases__slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari hide scrollbar */
}

.case-card {
  min-width: 300px;
  max-width: 300px;
  scroll-snap-align: start;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .case-card {
    min-width: 400px;
    max-width: 400px;
  }
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.05);
}

.case-card__header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.case-card__content {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-card__name {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.case-card__quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* Stats Block */
.case-stats {
  background-color: var(--color-light-bg);
  padding: 1rem;
  border: 1px solid var(--color-border);
}

.case-stats__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
}

.case-stats__row:last-child {
  margin-bottom: 0;
}

.case-stats__row--accent {
  color: var(--color-text-primary);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  align-items: center;
}

.case-stats__val {
  margin-left: auto;
  margin-right: 10px;
}

.case-stats__icon {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

/* --- BLOG SECTION --- */
.blog {
  padding: 6rem 0;
  background-color: var(--color-bg);
}

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

.blog__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--color-text-primary);
}

.blog__title {
  font-size: 3rem;
  text-transform: uppercase;
  line-height: 0.9;
}

.blog__view-all {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: gap 0.3s ease;
}

.blog__view-all:hover {
  gap: 15px;
  color: var(--color-accent);
}

/* Blog List */
.blog__list {
  display: flex;
  flex-direction: column;
}

.blog-item {
  position: relative; /* For link overlay */
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

@media (min-width: 992px) {
  .blog-item {
    grid-template-columns: 200px 1fr 200px; /* Date/Cat | Content | Action */
    align-items: start;
    padding: 2.5rem 1rem; /* Side padding on hover */
    margin: 0 -1rem; /* Negative margin to align content */
  }
}

.blog-item:hover {
  background-color: var(--color-light-bg);
}

/* Link Overlay (Make whole row clickable) */
.blog-item__link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Meta Data */
.blog-item__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-item__date {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.blog-item__cat {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}

/* Content */
.blog-item__title {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  max-width: 700px;
  transition: color 0.3s ease;
}

.blog-item:hover .blog-item__title {
  color: var(--color-accent);
}

.blog-item__excerpt {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  display: none; /* Hidden on mobile to save space */
}

@media (min-width: 768px) {
  .blog-item__excerpt {
    display: block;
  }
}

/* Action */
.blog-item__action {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Mobile left */
  gap: 10px;
  color: var(--color-text-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
}

@media (min-width: 992px) {
  .blog-item__action {
    justify-content: flex-end; /* Desktop right */
  }
}

.blog-item__read {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.blog-item:hover .blog-item__read {
  opacity: 1;
  transform: translateX(0);
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 6rem 0;
  background-color: var(--color-bg);
}

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

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 992px) {
  .contact__grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.contact__title {
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
  line-height: 0.9;
}

.contact__desc {
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.contact__item {
  margin-bottom: 2rem;
}

.contact__label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact__link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

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

/* --- FORM STYLES --- */
.form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--color-light-bg);
  padding: 3rem;
  border: 1px solid var(--color-border);
}

.form__group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form__input {
  width: 100%;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form__input:focus {
  outline: none;
  border-color: var(--color-text-primary);
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

/* Validation Styles */
.form__input.is-invalid {
  border-color: #ef4444;
}

.form__error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: none;
}

.form__input.is-invalid + .form__error {
  display: block;
}

/* Custom Checkbox */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

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

.custom-checkbox__box {
  height: 24px;
  width: 24px;
  background-color: #fff;
  border: 1px solid var(--color-text-primary);
  position: relative;
  transition: all 0.2s;
}

/* Checkmark logic */
.custom-checkbox input:checked ~ .custom-checkbox__box {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.custom-checkbox input:checked ~ .custom-checkbox__box::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox__text {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.custom-checkbox__text a {
  text-decoration: underline;
  color: var(--color-text-primary);
}

/* Button & Loader */
.form__btn {
  background-color: var(--color-text-primary);
  color: #fff;
  padding: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--color-text-primary);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.form__btn:disabled {
  background-color: var(--color-text-secondary);
  cursor: not-allowed;
}

.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);
  }
}

.form__success {
  display: none;
  background-color: #ecfccb; /* Light green */
  border: 1px solid #84cc16;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
}

.form__success-title {
  color: #365314;
  margin-bottom: 0.5rem;
}

/* --- COOKIE POP-UP --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--color-text-primary);
  color: #fff;
  padding: 1.5rem;
  z-index: 2000;
  display: none; /* JS toggles this */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .cookie-popup {
    width: 400px;
    right: auto;
  }
}

.cookie-popup__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-popup__text {
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.cookie-popup__btn {
  background-color: #fff;
  color: var(--color-text-primary);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  align-self: flex-start;
  transition: background 0.2s;
}

.cookie-popup__btn:hover {
  background-color: var(--color-accent);
  color: #fff;
}

/* --- PAGES STYLES (Privacy, Terms etc.) --- */
/* For external pages like privacy.html */
.pages {
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background-color: var(--color-bg);
  min-height: 80vh;
}

.pages h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.pages h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.pages p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.pages ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 2rem;
  color: var(--color-text-secondary);
}

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

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