/* ============================================
   PRO BAU - Premium Construction Website
   Colors: #213051 (primary), #c19a39 (gold), #fff
   Fonts: Montserrat (headings), Inter (body)
   ============================================ */

/* --- Font Face --- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* --- CSS Custom Properties --- */
:root {
  --primary: #213051;
  --primary-dark: #1a2640;
  --primary-light: #2c3f6b;
  --accent: #c19a39;
  --accent-light: #d4af5a;
  --accent-dark: #a6832e;
  --white: #ffffff;
  --light-bg: #f7f7f7;
  --lighter-bg: #fafafa;
  --text: #333333;
  --text-light: #5a5a5a;
  --text-muted: #888888;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.3s ease;
  --header-height: 80px;
  --container: 1240px;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--gray {
  background: var(--light-bg);
}

/* --- Diagonal Sections --- */
.diagonal {
  position: relative;
  margin-top: -1px;
  overflow: hidden;
}

.diagonal::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: skewY(-3deg);
  transform-origin: 50% 0;
  backface-visibility: hidden;
  outline: 1px solid transparent;
}

.section.diagonal {
  padding-top: calc(100vw * tan(3deg) / 2 + 100px);
  padding-bottom: calc(100vw * tan(3deg) / 2 + 100px);
  background: transparent;
}

.diagonal > .container {
  position: relative;
  z-index: 1;
}

.diagonal--light::before {
  background: var(--light-bg);
}

.diagonal--primary::before {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* Diagonal Motto / Accent Section */
.diagonal-motto {
  position: relative;
  padding: calc(100vw * tan(3deg) / 2 + 80px) 0;
  margin-top: -1px;
  overflow: hidden;
}

.diagonal-motto::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: skewY(-3deg);
  transform-origin: 50% 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  backface-visibility: hidden;
  outline: 1px solid transparent;
}

.diagonal-motto .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.diagonal-motto__line {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 24px;
}

.diagonal-motto h2 {
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-style: italic;
  font-weight: 700;
  margin-bottom: 16px;
}

.diagonal-motto p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 24px auto 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193, 154, 57, 0.35);
}

.btn--outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--primary);
}

.btn--white:hover {
  background: var(--light-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.btn--lg {
  padding: 18px 44px;
  font-size: 1.05rem;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  height: var(--header-height);
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: var(--border);
  height: 70px;
}

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

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo img {
  height: 62px;
  width: auto;
  transition: height var(--transition);
}

.header.scrolled .header__logo img {
  height: 52px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--primary);
  letter-spacing: 0.3px;
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
}

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

.nav__cta {
  margin-left: 16px;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav__cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(193, 154, 57, 0.3);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(33, 48, 81, 0.92) 0%,
    rgba(33, 48, 81, 0.75) 40%,
    rgba(33, 48, 81, 0.5) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  padding-top: var(--header-height);
}

.hero__accent {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 24px;
  font-style: italic;
}

.hero__text {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Page Banner (Subpages) --- */
.page-banner {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary);
  margin-top: var(--header-height);
}

.page-banner__bg {
  position: absolute;
  inset: 0;
}

.page-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(33, 48, 81, 0.85) 0%,
    rgba(33, 48, 81, 0.7) 100%
  );
}

.page-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 1px;
}

.page-banner h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 20px auto 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

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

.breadcrumb span {
  color: var(--accent);
}

/* --- Service Cards (Homepage) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all var(--transition);
  border-top: 3px solid transparent;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--accent);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.service-card:hover .service-card__icon {
  background: var(--accent);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  transition: stroke var(--transition);
}

.service-card:hover .service-card__icon svg {
  stroke: var(--white);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Project Type Cards (Homepage) --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 320px;
  cursor: pointer;
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card__img {
  transform: scale(1.08);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(33, 48, 81, 0.9) 0%,
    rgba(33, 48, 81, 0.2) 50%,
    transparent 100%
  );
  transition: background var(--transition);
}

.project-card:hover .project-card__overlay {
  background: linear-gradient(
    to top,
    rgba(33, 48, 81, 0.95) 0%,
    rgba(33, 48, 81, 0.4) 60%,
    rgba(33, 48, 81, 0.2) 100%
  );
}

.project-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 24px;
  z-index: 2;
}

.project-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.project-card__line {
  width: 40px;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.project-card:hover .project-card__line {
  width: 60px;
}

/* --- Why PRO BAU Section --- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

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

.advantage-item__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.advantage-item:hover .advantage-item__icon {
  background: var(--accent);
}

.advantage-item__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  transition: stroke var(--transition);
}

.advantage-item:hover .advantage-item__icon svg {
  stroke: var(--white);
}

.advantage-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.advantage-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: var(--primary);
}

.cta-section__bg {
  position: absolute;
  inset: 0;
}

.cta-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(33, 48, 81, 0.88);
}

.cta-section__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 32px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.cta-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cta-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 1.2rem;
  font-family: var(--font-heading);
  font-weight: 500;
  transition: color var(--transition);
}

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

.cta-contact svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* --- About Page --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.about-text p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-quote {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  font-style: italic;
  border-left: 4px solid var(--accent);
  padding-left: 24px;
  margin-top: 32px;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 80px;
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

/* --- Services Page --- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block:nth-child(even) .service-block__image {
  order: -1;
}

.service-block__content {
  padding: 20px 0;
}

.service-block__number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: var(--light-bg);
  line-height: 1;
  margin-bottom: 8px;
  -webkit-text-stroke: 1px var(--border);
}

.service-block h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.service-block h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
}

.service-block p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-top: 24px;
}

.service-block__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-block__image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-block:hover .service-block__image img {
  transform: scale(1.03);
}

/* --- Projects/Gallery Page --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(33, 48, 81, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.gallery-item:hover .gallery-item__overlay {
  background: rgba(33, 48, 81, 0.4);
}

.gallery-item__overlay svg {
  width: 40px;
  height: 40px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition);
}

.gallery-item:hover .gallery-item__overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* Make some gallery items span 2 columns/rows for visual interest */
.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
}

.lightbox__close svg {
  width: 32px;
  height: 32px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  transition: stroke var(--transition);
}

.lightbox__close:hover svg {
  stroke: var(--accent);
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
  transform: scale(0.95);
  transition: transform var(--transition);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__nav svg {
  width: 32px;
  height: 32px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  transition: stroke var(--transition);
}

.lightbox__nav:hover svg {
  stroke: var(--accent);
}

.lightbox__prev {
  left: 24px;
}

.lightbox__next {
  right: 24px;
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-block {
  padding: 48px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  color: var(--white);
}

.contact-info-block h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 32px;
}

.contact-info-block h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-top: 12px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(193, 154, 57, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

.contact-item__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item__value {
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 500;
}

.contact-item__value a {
  color: var(--white);
  transition: color var(--transition);
}

.contact-item__value a:hover {
  color: var(--accent);
}

.contact-details-card {
  padding: 48px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-details-card h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.contact-details-card h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-top: 12px;
}

.company-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.company-detail:last-child {
  border-bottom: none;
}

.company-detail__label {
  font-weight: 600;
  color: var(--primary);
  min-width: 120px;
}

.company-detail__value {
  color: var(--text-light);
}

.contact-cta {
  margin-top: 40px;
  text-align: center;
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 80px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  padding-right: 20px;
}

.footer__logo {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer__links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}

.footer__links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.footer__contact-item a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

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

.footer__bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* --- Mobile Menu Overlay --- */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Responsive Design --- */

/* Tablet & below */
@media (max-width: 1024px) {
  .services-grid,
  .projects-grid,
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .about-content {
    gap: 40px;
  }

  .service-block {
    gap: 40px;
  }

  .contact-layout {
    gap: 40px;
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .section {
    padding: 70px 0;
  }

  .section.diagonal {
    padding-top: calc(100vw * tan(3deg) / 2 + 70px);
    padding-bottom: calc(100vw * tan(3deg) / 2 + 70px);
  }

  .diagonal-motto {
    padding: calc(100vw * tan(3deg) / 2 + 56px) 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  /* Mobile Navigation */
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
    z-index: 999;
    overflow-y: auto;
  }

  .nav.active {
    right: 0;
  }

  .mobile-overlay {
    display: block;
  }

  .mobile-overlay.active {
    display: block;
  }

  .nav__link {
    padding: 14px 0;
    width: 100%;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 16px;
    text-align: center;
    justify-content: center;
    width: 100%;
  }

  /* Hero */
  .hero {
    min-height: 90vh;
  }

  .header__logo img {
    height: 52px;
  }

  .header.scrolled .header__logo img {
    height: 46px;
  }

  .hero__content {
    padding-top: calc(var(--header-height) + 20px);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    text-align: center;
    justify-content: center;
  }

  /* Page Banner */
  .page-banner {
    height: 300px;
  }

  /* Grids */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .advantages-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  /* About */
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image::after {
    display: none;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 50px;
  }

  /* Services */
  .service-block {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0;
  }

  .service-block:nth-child(even) .service-block__image {
    order: 0;
  }

  .service-block__image img {
    height: 280px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  .gallery-item--tall {
    grid-row: span 1;
    aspect-ratio: 4/3;
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info-block,
  .contact-details-card {
    padding: 32px;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__brand {
    padding-right: 0;
  }

  /* CTA */
  .cta-contacts {
    flex-direction: column;
    gap: 20px;
  }

  .cta-contact {
    font-size: 1rem;
  }
}

/* Mobile small */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section.diagonal {
    padding-top: calc(100vw * tan(3deg) / 2 + 56px);
    padding-bottom: calc(100vw * tan(3deg) / 2 + 56px);
  }

  .diagonal-motto {
    padding: calc(100vw * tan(3deg) / 2 + 40px) 0;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

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

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

  .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  .btn--lg {
    padding: 14px 32px;
  }

  .page-banner {
    height: 240px;
  }

  .service-card {
    padding: 30px 24px;
  }

  .stat-item {
    padding: 30px 16px;
  }

  .stat-item__number {
    font-size: 2rem;
  }
}

/* Large screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1360px;
  }
}

/* --- Modern Upgrade Additions --- */
.hero {
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  right: -120px;
  top: 14%;
  background: radial-gradient(circle, rgba(193, 154, 57, 0.22), transparent 70%);
}

.hero::after {
  width: 500px;
  height: 500px;
  left: -180px;
  bottom: -160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 72%);
}

.hero__overlay {
  background:
    linear-gradient(112deg, rgba(21, 31, 54, 0.92) 0%, rgba(27, 42, 72, 0.8) 45%, rgba(21, 31, 54, 0.56) 100%),
    radial-gradient(circle at 76% 20%, rgba(193, 154, 57, 0.22), transparent 48%);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  margin-bottom: 16px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
}

.hero h1 {
  max-width: 850px;
}

.hero h1 span {
  color: var(--accent);
}

.hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.hero__highlights span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
}

.hero__stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 780px;
}

.hero-stat {
  padding: 16px 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1.1;
  margin-bottom: 6px;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  line-height: 1.35;
}

.trust-strip {
  position: relative;
  z-index: 5;
  padding: 18px 0 22px;
  background: var(--white);
}

.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
}


.process-section {
  position: relative;
  overflow: hidden;
}

.process-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.process-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: rgba(193, 154, 57, 0.35);
  box-shadow: var(--shadow);
}

.process-card__step {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(193, 154, 57, 0.12);
  color: var(--accent-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.process-card h3 {
  margin-bottom: 10px;
  font-size: 1.06rem;
}

.process-card p {
  color: var(--text-light);
  font-size: 0.94rem;
  line-height: 1.65;
}

.process-grid--centered .process-card {
  text-align: center;
}

.process-grid--centered .process-card__step {
  margin-left: auto;
  margin-right: auto;
}

.project-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.project-story-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: var(--shadow-card);
}

.project-story-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.project-story-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-intro-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: -20px 0 42px;
}

.contact-intro-point {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(33, 48, 81, 0.07);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 600;
}

.contact-note {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}

.contact-note h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.contact-note p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.about-pillars {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-pillar {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.about-pillar h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.about-pillar p {
  color: var(--text-light);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* --- Scroll Image Scale Section --- */
.impact-scale-section {
  position: relative;
  height: 220vh;
  background: var(--white);
}

.impact-scale-sticky {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.impact-scale {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.impact-divider {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(33, 48, 81, 0.12);
  transform: translateX(-0.5px);
  z-index: 3;
}

.impact-scale__left {
  position: relative;
  z-index: 5;
  width: 50%;
  padding-left: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  padding-right: clamp(24px, 4vw, 72px);
  padding-top: 18vh;
}

.impact-scale__topline {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.impact-scale__left h2 {
  margin-bottom: 28px;
  font-size: clamp(2.4rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--primary);
  transition: color 0.35s ease;
}

.impact-scale__left p {
  max-width: 52ch;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
}

.impact-scale__number {
  color: var(--accent);
}

.impact-scale__right {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 2;
  transform-origin: center right;
  overflow: hidden;
}

.impact-scale__right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: bottom center;
}

.impact-box {
  position: absolute;
  z-index: 4;
  background: var(--white);
  border-color: rgba(33, 48, 81, 0.12);
  border-style: solid;
  pointer-events: none;
}

.impact-box--one {
  top: 0;
  left: 50%;
  width: 50%;
  height: 50%;
  border-width: 0 0 1px 0;
  transform-origin: top center;
  transform: scaleY(0);
}

.impact-box--two {
  top: 50%;
  left: 75%;
  width: 25%;
  height: 50%;
  border-width: 0 0 0 1px;
  transform-origin: right center;
  transform: scaleX(0);
}

.impact-box--three {
  top: 50%;
  left: 50%;
  width: 25%;
  height: 50%;
  transform-origin: bottom center;
  transform: scaleY(0);
}

.impact-box--four {
  top: 50%;
  left: 50%;
  width: 12.5%;
  height: 25%;
  transform-origin: left center;
  transform: scaleX(0);
}

@media (max-width: 1024px) {
  .hero__stats,
  .process-grid,
  .project-story-grid,
  .about-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-scale-section {
    height: 180vh;
  }

  .impact-scale__left {
    width: 62%;
    padding-top: 12vh;
    padding-left: 24px;
    padding-right: 24px;
  }

  .impact-scale__right {
    width: 48%;
  }
}

@media (max-width: 768px) {
  .hero__highlights {
    margin-bottom: 24px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .process-grid,
  .project-story-grid,
  .about-pillars {
    grid-template-columns: 1fr;
  }

  .contact-intro-points {
    justify-content: flex-start;
    margin: -12px 0 30px;
  }

  .impact-scale-section {
    height: auto;
  }

  .impact-scale-sticky {
    position: relative;
    top: 0;
    height: auto;
    min-height: 84vh;
  }

  .impact-scale {
    min-height: 84vh;
  }

  .impact-scale__left {
    width: 100%;
    padding: 54px 0 42px;
    text-align: left;
  }

  .impact-scale__left h2 {
    font-size: clamp(2.1rem, 16vw, 4.2rem);
    line-height: 1;
  }

  .impact-divider,
  .impact-box {
    display: none;
  }

  .impact-scale__right {
    width: 100%;
    right: auto;
    left: 0;
    opacity: 0.28;
  }
}

/* --- Scroll Enter Effects --- */
.section-reveal-block {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.section-reveal-block.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-child {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--reveal-delay, 0) * 70ms + 120ms);
}

.section-reveal-block.in-view .reveal-child {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- Extra Hover Micro-Interactions --- */
.nav__link:hover {
  transform: translateY(-1px);
}

.section-header,
.company-detail,
.contact-intro-point,
.footer__contact-item,
.footer__links a,
.stat-item,
.project-story-card,
.about-pillar {
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition);
}

.stat-item:hover,
.project-story-card:hover,
.about-pillar:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.company-detail:hover {
  transform: translateX(4px);
}

.contact-intro-point:hover {
  transform: translateY(-3px);
  background: rgba(193, 154, 57, 0.16);
}

.footer__contact-item:hover {
  transform: translateX(3px);
}

.footer__links a:hover {
  transform: translateX(3px);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .section-reveal-block,
  .reveal-child,
  .fade-up,
  .btn,
  .service-card,
  .project-card,
  .gallery-item,
  .process-card,
  .stat-item,
  .about-pillar,
  .project-story-card,
  .footer__contact-item,
  .footer__links a,
  .nav__link {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }

  .section-reveal-block,
  .reveal-child,
  .fade-up {
    opacity: 1 !important;
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

/* No scroll when mobile menu open */
body.menu-open {
  overflow: hidden;
}

/* ============================================
   COOKIE BANNER & MODAL
   ============================================ */

/* --- Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #fff;
  box-shadow: 0 -4px 32px rgba(33, 48, 81, 0.14);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 3px solid var(--accent);
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.cookie-banner__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-banner__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}

.cookie-banner__text {
  flex: 1;
  min-width: 0;
}

.cookie-banner__text h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 6px;
}

.cookie-banner__text p {
  font-size: 0.875rem;
  color: #555;
  margin: 0;
  line-height: 1.55;
}

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

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

.cookie-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn--accept {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.cookie-btn--accept:hover {
  background: #a8832e;
  border-color: #a8832e;
}

.cookie-btn--reject {
  background: transparent;
  color: var(--primary);
  border-color: #ccc;
}

.cookie-btn--reject:hover {
  border-color: var(--primary);
  background: var(--light-bg);
}

.cookie-btn--settings {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
  padding: 10px 14px;
  text-decoration: underline;
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
}

.cookie-btn--settings:hover {
  background: var(--light-bg);
  border-color: transparent;
  transform: none;
}

.cookie-btn--save {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cookie-btn--save:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* --- Modal --- */
.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(10, 18, 38, 0.65);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cookie-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9200;
  transform: translate(-50%, -40%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 90%;
  max-width: 560px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(33, 48, 81, 0.25);
  overflow: hidden;
}

.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.cookie-modal__header {
  background: var(--primary);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-modal__header h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.cookie-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.cookie-modal__close:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.cookie-modal__close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.cookie-modal__body {
  padding: 8px 0;
  max-height: 60vh;
  overflow-y: auto;
}

.cookie-modal__body::-webkit-scrollbar {
  width: 4px;
}

.cookie-modal__body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.cookie-modal__body::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

.cookie-category {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category__info {
  flex: 1;
}

.cookie-category__info strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.cookie-category__info p {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.cookie-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--light-bg);
  color: var(--primary);
  margin-top: 6px;
}

/* Toggle switch */
.cookie-toggle {
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle label {
  display: block;
  width: 44px;
  height: 24px;
  background: #ccc;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background 0.25s;
}

.cookie-toggle label::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.cookie-toggle input:checked + label {
  background: var(--accent);
}

.cookie-toggle input:checked + label::after {
  left: 23px;
}

.cookie-toggle input:disabled + label {
  background: var(--accent);
  cursor: not-allowed;
  opacity: 0.85;
}

.cookie-modal__footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* --- Floating reopen button --- */
.cookie-reopen {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 8900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(33, 48, 81, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.cookie-reopen.visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-reopen:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(33, 48, 81, 0.4);
}

.cookie-reopen svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
}

.cookie-reopen__tooltip {
  position: absolute;
  left: 56px;
  bottom: 50%;
  transform: translateY(50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.cookie-reopen__tooltip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: var(--primary);
}

.cookie-reopen:hover .cookie-reopen__tooltip {
  opacity: 1;
}

/* Responsive cookie banner */
@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 20px;
  }

  .cookie-banner__icon {
    display: none;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cookie-btn--settings {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cookie-btn--accept,
  .cookie-btn--reject {
    flex: 1;
    justify-content: center;
  }

  .cookie-modal {
    width: 95%;
  }

  .cookie-reopen {
    bottom: 16px;
    left: 16px;
  }
}
