﻿:root {
  --color-black: #1C1C1C;
  --color-carbon: #333333;
  --color-warm-white: #ECEBE8;
  --color-walnut: #8A5A3B;
  --color-oak: #C8A27A;
  --color-caramel: #967B5C;
  --color-birch: #D1C4A3;
  --color-steel: #C4C4C4;
  --color-silver: #AFAFAF;
  --font-display: 'Bebas Neue', 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --shadow-brutal: 12px 12px 0px rgba(0, 0, 0, 0.8);
  --shadow-heavy: 8px 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-medium: 4px 4px 16px rgba(0, 0, 0, 0.4);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-black);
  color: var(--color-warm-white);
  line-height: 1.6;
  overflow-x: hidden;
}


h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 8vw, 8rem);
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: var(--spacing-sm);
}

h4 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--color-oak);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-walnut);
}


.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-black);
  border-bottom: 2px solid var(--color-carbon);
  z-index: 1000;
  padding: 1.5rem 3rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  color: var(--color-warm-white);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-menu a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--color-warm-white);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  border-bottom-color: var(--color-walnut);
}


.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: var(--color-warm-white);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}


.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1200px;
  padding: var(--spacing-lg);
}

.hero-title {
  font-size: clamp(4rem, 10vw, 10rem);
  margin-bottom: var(--spacing-md);
  animation: slideUpFade 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--color-oak);
  margin-bottom: var(--spacing-lg);
  animation: slideUpFade 1.2s ease-out;
}


.blueprint-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.1;
  background-image: 
    linear-gradient(var(--color-steel) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-steel) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: blueprintScroll 20s linear infinite;
}

@keyframes blueprintScroll {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}


.grid-brutal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
}

.grid-asymmetric {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl) var(--spacing-lg);
}

.grid-masonry {
  column-count: 3;
  column-gap: var(--spacing-md);
  padding: var(--spacing-lg);
}

.grid-masonry-item {
  break-inside: avoid;
  margin-bottom: var(--spacing-md);
}


.section {
  padding: var(--spacing-xl) var(--spacing-lg);
  position: relative;
}

.section-dark {
  background: var(--color-black);
}

.section-carbon {
  background: var(--color-carbon);
}

.section-light {
  background: var(--color-warm-white);
  color: var(--color-carbon);
}

.container {
  max-width: 1600px;
  margin: 0 auto;
}


.block {
  background: var(--color-carbon);
  padding: var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.block-walnut {
  background: var(--color-walnut);
}

.block-steel {
  background: linear-gradient(135deg, var(--color-steel) 0%, var(--color-silver) 100%);
  color: var(--color-carbon);
}

.block-shadow {
  box-shadow: var(--shadow-brutal);
}


.wood-texture {
  position: relative;
}

.wood-texture::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      90deg,
      rgba(138, 90, 59, 0.1) 0px,
      transparent 1px,
      transparent 2px,
      rgba(138, 90, 59, 0.1) 3px
    );
  pointer-events: none;
  opacity: 0.6;
}


.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 3px solid var(--color-walnut);
  background: transparent;
  color: var(--color-warm-white);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-walnut);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn:hover {
  color: var(--color-warm-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-primary {
  background: var(--color-walnut);
  border-color: var(--color-walnut);
}

.btn-primary::before {
  background: var(--color-oak);
}


.card {
  background: var(--color-carbon);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-brutal);
}

.card-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

.card-content {
  padding: var(--spacing-md);
}

.card-title {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-warm-white);
}

.card-text {
  color: var(--color-birch);
  font-size: 1rem;
}


.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

.split-panel {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-panel-left {
  background: var(--color-carbon);
}

.split-panel-right {
  background: var(--color-black);
}


.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--color-silver);
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}


.rotated-heading {
  transform: rotate(-2deg);
  display: inline-block;
  background: var(--color-walnut);
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--color-warm-white);
}


.overlap-container {
  position: relative;
  padding: var(--spacing-xl);
}

.overlap-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 80%;
  background: var(--color-carbon);
  z-index: 1;
}

.overlap-front {
  position: relative;
  z-index: 2;
  margin-left: 10%;
  margin-top: 10%;
  background: var(--color-walnut);
  padding: var(--spacing-lg);
}


.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
}

.material-sample {
  aspect-ratio: 1;
  background: var(--color-carbon);
  border: 3px solid var(--color-steel);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
}

.material-sample:hover {
  transform: scale(1.05);
  border-color: var(--color-walnut);
  box-shadow: var(--shadow-heavy);
}

@media (max-width: 768px) {
  .material-sample:hover {
    transform: scale(1.02);
  }
}

@media (max-width: 320px) {
  .material-sample:hover {
    transform: none;
  }
}

.material-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-sm);
  background: rgba(28, 28, 28, 0.9);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--color-warm-white);
  z-index: 2;
}


.process-timeline {
  position: relative;
  padding: var(--spacing-xl) 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--color-steel);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  align-items: center;
}

.timeline-content {
  padding: var(--spacing-md);
  background: var(--color-carbon);
  border: 2px solid var(--color-walnut);
}

.timeline-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-walnut);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-warm-white);
  position: relative;
  z-index: 10;
  border: 4px solid var(--color-black);
}

.timeline-content-left {
  text-align: right;
}

.timeline-content-right {
  text-align: left;
}


.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: var(--spacing-xs);
  color: var(--color-oak);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 1rem;
  background: var(--color-carbon);
  border: 2px solid var(--color-steel);
  color: var(--color-warm-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-walnut);
  box-shadow: 0 0 0 3px rgba(138, 90, 59, 0.2);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}


.footer {
  background: var(--color-black);
  border-top: 3px solid var(--color-walnut);
  padding: var(--spacing-xl) var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
  color: var(--color-oak);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-carbon);
  color: var(--color-silver);
  font-size: 0.9rem;
}


@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}


.stagger-item {
  animation: slideUpFade 0.8s ease-out backwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }


.metallic-shine {
  position: relative;
  overflow: hidden;
}

.metallic-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.metallic-shine:hover::after {
  transform: translateX(100%);
}


.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-carbon);
  border-top: 3px solid var(--color-walnut);
  padding: var(--spacing-md);
  z-index: 9999;
  display: none;
  animation: slideUpFade 0.5s ease-out;
}

.cookie-consent.active {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
}

.cookie-text {
  flex: 1;
  font-size: 0.95rem;
}

.cookie-buttons {
  display: flex;
  gap: var(--spacing-sm);
}


@media (max-width: 1024px) {
  .grid-asymmetric {
    grid-template-columns: 1fr;
  }
  
  .grid-masonry {
    column-count: 2;
  }
  
  .split-layout {
    grid-template-columns: 1fr;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
  }
  
  .timeline-line {
    left: 40px;
  }
  
  .timeline-number {
    grid-row: 1;
  }
  
  .timeline-content-left,
  .timeline-content-right {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .card-image {
    height: 200px;
  }
  
  ul, ol {
    padding-left: 1.5rem;
  }
  
  ul li, ol li {
    margin-bottom: 0.5rem;
  }
  
  h2 {
    margin-top: 2rem;
  }
  
  h3 {
    margin-top: 1.5rem;
  }
  .main-nav {
    padding: 1rem 1.5rem;
  }
  
  .logo {
    font-size: 1.25rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--color-black);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--spacing-lg);
    transition: left 0.3s ease;
    border-top: 2px solid var(--color-carbon);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu a {
    font-size: 1.1rem;
    padding: 1rem 0;
  }
  
  .hamburger {
    display: flex;
    z-index: 1001;
  }
  
  .nav-container {
    width: 100%;
  }
  
  body.nav-open {
    overflow: hidden;
  }
  
  .grid-masonry {
    column-count: 1;
  }
  
  .grid-brutal {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
  }
  
  .grid-asymmetric {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
  }
  
  .split-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .split-panel {
    padding: var(--spacing-md);
  }
  
  .split-panel-left,
  .split-panel-right {
    padding: var(--spacing-md);
  }
  
  .split-panel h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
  
  .split-panel h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .split-panel p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .split-panel a {
    font-size: 1rem;
  }
  
  .section {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .section-dark,
  .section-light,
  .section-carbon {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .container {
    padding: 0 var(--spacing-sm);
    max-width: 100%;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .hero {
    margin-top: 70px;
    min-height: 50vh;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-item {
    aspect-ratio: 1;
  }
  
  .portfolio-overlay {
    padding: var(--spacing-sm);
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  .portfolio-title {
    font-size: 1.25rem;
    text-align: center !important;
    width: 100%;
  }
  
  .portfolio-details {
    font-size: 0.85rem;
    text-align: center !important;
    width: 100%;
  }
  
  .material-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
  }
  
  .material-sample {
    min-height: 200px;
  }
  
  .material-sample img {
    width: 100%;
    height: 100%;
  }
  
  .rotated-heading {
    transform: rotate(0deg);
    display: block;
    margin-bottom: 1rem;
  }
  
  .hero-content {
    padding: var(--spacing-md);
  }
  
  .block {
    padding: var(--spacing-md);
  }
  
  .card-tilt {
    transform: none !important;
  }
  
  .thank-you-container {
    padding: var(--spacing-md);
  }
  
  .error-404 {
    padding: var(--spacing-md);
  }
  
  .error-code {
    font-size: 4rem;
  }
  
  .filter-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
  }
  
  .timeline-line {
    left: 30px;
  }
  
  .timeline-number {
    grid-row: 1;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .timeline-content-left,
  .timeline-content-right {
    text-align: left;
  }
  
  .card-content {
    padding: var(--spacing-sm);
  }
  
  .card-title {
    font-size: 1.25rem;
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .material-sample {
    position: relative;
  }
  
  .material-sample img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .material-sample > div[style*="background"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  
  .material-sample > div.material-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
  }
  
  .material-sample > div:not(.material-label):not([style*="background"]) {
    font-size: 0.9rem;
  }
  
  .wood-texture img {
    width: 100%;
    height: auto;
    min-height: 300px;
  }
  
  .grid-asymmetric img {
    width: 100%;
    height: auto;
    min-height: 300px;
  }
  
  .section section-light h2 {
    font-size: 1.75rem;
  }
  
  .section section-light p {
    font-size: 1rem;
  }
  
  .block-walnut {
    padding: var(--spacing-md);
  }
  
  .block-walnut h3 {
    font-size: 1.25rem;
  }
  
  .block-walnut p {
    font-size: 0.95rem;
  }
  
  .thank-you-container p {
    font-size: 1rem;
  }
  
  .thank-you-container div p {
    font-size: 0.9rem;
  }
  
  .error-404 h2 {
    font-size: 1.5rem;
  }
  
  .error-404 p {
    font-size: 1rem;
  }
  
  .footer-bottom p {
    font-size: 0.8rem;
    line-height: 1.6;
  }
  
  .footer-bottom a {
    display: inline-block;
    margin: 0 0.25rem;
  }
  
  .cookie-consent {
    padding: var(--spacing-sm);
  }
  
  .cookie-text {
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .cookie-buttons {
    flex-direction: row;
    gap: var(--spacing-xs);
  }
  
  .cookie-buttons .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
  
  .filter-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
  }
  
  .stagger-item {
    animation-delay: 0s;
  }
  
  .card-tilt:hover {
    transform: translateY(-4px);
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  .card-image {
    width: 100%;
    object-fit: cover;
  }
  
  .portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  [style*="font-size: 1.25rem"] {
    font-size: 1rem !important;
  }
  
  [style*="font-size: 1.125rem"] {
    font-size: 0.95rem !important;
  }
  
  [style*="margin-top: 2rem"] {
    margin-top: 1.5rem !important;
  }
  
  [style*="margin-top: 3rem"] {
    margin-top: 2rem !important;
  }
  
  [style*="margin-top: 4rem"] {
    margin-top: 2.5rem !important;
  }
  
  [style*="margin-bottom: 3rem"] {
    margin-bottom: 2rem !important;
  }
  
  [style*="margin-bottom: 4rem"] {
    margin-bottom: 2.5rem !important;
  }
  
  [style*="padding: 3rem"] {
    padding: 2rem !important;
  }
  
  [style*="width: 60px"] {
    width: 50px !important;
  }
  
  [style*="height: 60px"] {
    height: 50px !important;
  }
  
  [style*="font-size: 2rem"] {
    font-size: 1.5rem !important;
  }
  
  [style*="gap: 1.5rem"] {
    gap: 1rem !important;
  }
  
  [style*="height: 300px"] {
    height: 200px !important;
  }
  
  .block-walnut[style*="padding"] {
    padding: 2rem !important;
  }
}

@media (max-width: 320px) {
  .card-image {
    height: 150px;
  }
  
  ul, ol {
    padding-left: 1.25rem;
    font-size: 0.875rem;
  }
  
  ul li, ol li {
    margin-bottom: 0.5rem;
  }
  
  h2 {
    margin-top: 1.5rem;
    font-size: 1.25rem;
  }
  
  h3 {
    margin-top: 1rem;
    font-size: 1.1rem;
  }
  .main-nav {
    padding: 0.75rem 1rem;
    height: auto;
    min-height: 48px;
    position: relative;
    z-index: 1000;
  }
  
  .logo {
    font-size: 1rem;
    line-height: 1.2;
  }
  
  .nav-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .nav-menu {
    position: fixed;
    top: 48px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 48px);
    background: var(--color-black);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--spacing-md);
    transition: left 0.3s ease;
    border-top: none;
    margin-top: 0;
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hamburger {
    position: relative;
    z-index: 1001;
  }
  
  .nav-menu a {
    font-size: 1rem;
    padding: 0.75rem 0;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid var(--color-carbon);
  }
  
  .hamburger {
    z-index: 1001;
  }
  
  body.nav-open {
    overflow: hidden;
  }
  
  .hero {
    margin-top: 60px;
    min-height: 40vh;
    padding: var(--spacing-sm);
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .hero-subtitle {
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
  }
  
  .section {
    padding: var(--spacing-sm);
  }
  
  .section-dark,
  .section-light,
  .section-carbon {
    padding: var(--spacing-sm) var(--spacing-xs);
  }
  
  .container {
    padding: 0 var(--spacing-xs);
    max-width: 100%;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  h4 {
    font-size: 1rem;
  }
  
  p {
    font-size: 0.875rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
  }
  
  .grid-brutal {
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
  }
  
  .grid-asymmetric {
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
  }
  
  .split-panel {
    padding: var(--spacing-sm);
  }
  
  .split-panel-left,
  .split-panel-right {
    padding: var(--spacing-sm);
  }
  
  .split-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .split-panel h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .split-panel p {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  
  .split-panel a {
    font-size: 0.875rem;
  }
  
  .block {
    padding: var(--spacing-sm);
  }
  
  .card-content {
    padding: var(--spacing-xs);
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .card-text {
    font-size: 0.8rem;
  }
  
  .material-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xs);
  }
  
  .material-sample {
    min-height: 150px;
  }
  
  .material-sample img {
    width: 100%;
    height: 100%;
  }
  
  .material-label {
    font-size: 0.8rem;
    padding: var(--spacing-xs);
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .portfolio-item {
    aspect-ratio: 1;
    width: 100%;
  }
  
  .portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .portfolio-overlay {
    padding: var(--spacing-xs);
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box;
  }
  
  .portfolio-title {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    line-height: 1.2;
    text-align: center !important;
    width: 100%;
    padding: 0 var(--spacing-xs);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  .portfolio-details {
    font-size: 0.65rem;
    line-height: 1.3;
    margin-bottom: 0.2rem;
    text-align: center !important;
    width: 100%;
    padding: 0 var(--spacing-xs);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  .portfolio-item {
    overflow: hidden;
  }
  
  section[style*="margin-top: 80px"] {
    margin-top: 50px !important;
  }
  
  section[style*="padding: 6rem 2rem"] {
    padding: 2rem 1rem 1.5rem !important;
  }
  
  section[style*="padding: 0"] {
    padding: 0 !important;
  }
  
  [style*="font-size: 1.5rem"] {
    font-size: 1rem !important;
  }
  
  [style*="margin-bottom: 3rem"] {
    margin-bottom: 1.5rem !important;
  }
  
  [style*="margin-top: 3rem"] {
    margin-top: 1.5rem !important;
  }
  
  [style*="display: flex"][style*="flex-wrap: wrap"] {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }
  
  .filter-btn {
    width: 100%;
    margin: 0 !important;
    font-size: 0.7rem;
    padding: 0.5rem 0.75rem;
  }
  
  [style*="text-align: center"][style*="padding: 6rem 2rem"] {
    padding: 2rem 1rem !important;
  }
  
  [style*="font-size: 1.25rem"] {
    font-size: 0.875rem !important;
  }
  
  .section-black {
    padding: 0 !important;
  }
  
  .section-carbon {
    padding: 2rem 1rem !important;
  }
  
  .section-carbon h2 {
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
  }
  
  .section-carbon p {
    font-size: 0.875rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .section-carbon .btn {
    width: 100%;
    font-size: 0.8rem;
    padding: 0.75rem 1rem;
  }
  
  .rotated-heading {
    transform: rotate(0deg);
    display: block;
    margin-bottom: 0.75rem;
    padding: var(--spacing-xs);
  }
  
  .hero-content {
    padding: var(--spacing-sm);
  }
  
  .block {
    padding: var(--spacing-sm);
  }
  
  .card-tilt {
    transform: none !important;
  }
  
  .thank-you-container {
    padding: var(--spacing-sm);
  }
  
  .thank-you-container h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  .error-404 {
    padding: var(--spacing-sm);
  }
  
  .error-code {
    font-size: 3rem;
  }
  
  .filter-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    margin: 0.25rem;
  }
  
  .split-layout {
    min-height: auto;
  }
  
  .split-panel {
    min-height: auto;
  }
  
  .timeline-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .timeline-line {
    left: 20px;
  }
  
  .timeline-content {
    padding: var(--spacing-xs);
  }
  
  .overlap-container {
    padding: var(--spacing-sm);
  }
  
  .overlap-back {
    width: 100%;
    height: 50%;
  }
  
  .overlap-front {
    margin-left: 0;
    margin-top: 0;
    padding: var(--spacing-md);
  }
  
  .vertical-text {
    display: none;
  }
  
  .rotated-heading {
    transform: rotate(0deg);
    display: block;
    margin-bottom: 1rem;
    padding: var(--spacing-sm);
  }
  
  .block {
    padding: var(--spacing-md);
  }
  
  .block-walnut,
  .block-steel {
    padding: var(--spacing-md);
  }
  
  .wood-texture {
    padding: var(--spacing-md);
  }
  
  .form-group {
    margin-bottom: var(--spacing-md);
  }
  
  .form-label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    width: 100%;
  }
  
  .thank-you-container {
    padding: var(--spacing-md);
  }
  
  .error-404 {
    padding: var(--spacing-md);
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .pricing-card {
    padding: var(--spacing-md);
  }
  
  .pricing-card h3 {
    font-size: 1.5rem;
  }
  
  .pricing-card .price {
    font-size: 2rem;
  }
  
  .legal-content {
    padding: var(--spacing-md);
  }
  
  .legal-content h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }
  
  .legal-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .legal-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .legal-content ul,
  .legal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .legal-content li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }
  
  .footer {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .footer-section {
    margin-bottom: var(--spacing-md);
  }
  
  .footer-section h4 {
    font-size: 1rem;
  }
  
  .footer-links {
    font-size: 0.875rem;
  }
  
  .footer-bottom {
    font-size: 0.75rem;
  }
  
  .form-group {
    margin-bottom: var(--spacing-sm);
  }
  
  .form-label {
    font-size: 0.8rem;
    margin-bottom: var(--spacing-xs);
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    padding: 0.625rem;
    font-size: 0.875rem;
  }
  
  .form-textarea {
    min-height: 100px;
  }
  
  .portfolio-title {
    font-size: 1rem;
  }
  
  .portfolio-details {
    font-size: 0.75rem;
  }
  
  .timeline-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .timeline-content {
    padding: var(--spacing-xs);
  }
  
  .error-code {
    font-size: 3rem;
  }
  
  .error-404 h2 {
    font-size: 1.25rem;
  }
  
  .error-404 p {
    font-size: 0.875rem;
  }
  
  .cookie-content {
    padding: var(--spacing-xs);
  }
  
  .cookie-text {
    font-size: 0.75rem;
    margin-bottom: var(--spacing-xs);
  }
  
  .cookie-buttons {
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-xs);
  }
  
  .cookie-buttons .btn {
    width: 100%;
    font-size: 0.75rem;
    padding: 0.5rem;
  }
  
  .material-sample {
    position: relative;
  }
  
  .material-sample img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .material-sample > div[style*="background"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  
  .material-sample > div.material-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    font-size: 0.7rem;
    padding: 0.4rem;
  }
  
  .material-sample > div:not(.material-label):not([style*="background"]) {
    font-size: 0.75rem;
  }
  
  .wood-texture img {
    width: 100%;
    height: auto;
    min-height: 250px;
  }
  
  .grid-asymmetric img {
    width: 100%;
    height: auto;
    min-height: 250px;
  }
  
  .section section-light h2 {
    font-size: 1.5rem;
  }
  
  .section section-light p {
    font-size: 0.875rem;
  }
  
  .block-walnut {
    padding: var(--spacing-sm);
  }
  
  .block-walnut h3 {
    font-size: 1.1rem;
  }
  
  .block-walnut p {
    font-size: 0.85rem;
  }
  
  .thank-you-container p {
    font-size: 0.9rem;
  }
  
  .thank-you-container div p {
    font-size: 0.8rem;
  }
  
  .footer-bottom p {
    font-size: 0.7rem;
    line-height: 1.5;
  }
  
  .footer-bottom a {
    display: inline-block;
    margin: 0 0.15rem;
  }
  
  .filter-btn {
    font-size: 0.7rem;
    padding: 0.4rem 0.75rem;
    margin: 0.2rem;
  }
  
  .stagger-item {
    animation-delay: 0s;
  }
  
  .card-tilt:hover {
    transform: translateY(-2px);
  }
  
  .rotated-heading {
    font-size: 1.1rem;
    padding: var(--spacing-xs);
  }
  
  .hero-subtitle br {
    display: none;
  }
  
  .split-panel h2 {
    font-size: 1.5rem;
  }
  
  .split-panel h3 {
    font-size: 1.1rem;
  }
  
  .split-panel p {
    font-size: 0.875rem;
  }
  
  .timeline-line {
    left: 20px;
  }
  
  .overlap-container {
    padding: var(--spacing-xs);
  }
  
  .overlap-back {
    width: 100%;
    height: 40%;
  }
  
  .overlap-front {
    margin-left: 0;
    margin-top: 0;
    padding: var(--spacing-sm);
  }
  
  .vertical-text {
    display: none;
  }
  
  .rotated-heading {
    transform: rotate(0deg);
    display: block;
    margin-bottom: 0.75rem;
    padding: var(--spacing-xs);
    font-size: 1.1rem;
  }
  
  .block {
    padding: var(--spacing-sm);
  }
  
  .block-walnut,
  .block-steel {
    padding: var(--spacing-sm);
  }
  
  .wood-texture {
    padding: var(--spacing-sm);
  }
  
  .form-group {
    margin-bottom: var(--spacing-sm);
  }
  
  .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    width: 100%;
    font-size: 0.875rem;
  }
  
  .thank-you-container {
    padding: var(--spacing-sm);
  }
  
  .error-404 {
    padding: var(--spacing-sm);
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .pricing-card {
    padding: var(--spacing-sm);
  }
  
  .pricing-card h3 {
    font-size: 1.25rem;
  }
  
  .pricing-card .price {
    font-size: 1.5rem;
  }
  
  .legal-content {
    padding: var(--spacing-sm);
  }
  
  .legal-content h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .legal-content h3 {
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .legal-content p {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
  
  .legal-content ul,
  .legal-content ol {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .legal-content li {
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
  }
  
  .card-tilt {
    transform: none !important;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  .card-image {
    width: 100%;
    object-fit: cover;
  }
  
  .portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  [style*="font-size: 1.25rem"] {
    font-size: 0.875rem !important;
  }
  
  [style*="font-size: 1.125rem"] {
    font-size: 0.8rem !important;
  }
  
  [style*="margin-top: 2rem"] {
    margin-top: 1rem !important;
  }
  
  [style*="margin-top: 3rem"] {
    margin-top: 1.5rem !important;
  }
  
  [style*="margin-top: 4rem"] {
    margin-top: 2rem !important;
  }
  
  [style*="margin-bottom: 3rem"] {
    margin-bottom: 1.5rem !important;
  }
  
  [style*="margin-bottom: 4rem"] {
    margin-bottom: 2rem !important;
  }
  
  [style*="padding: 3rem"] {
    padding: 1.5rem !important;
  }
  
  [style*="width: 60px"] {
    width: 40px !important;
  }
  
  [style*="height: 60px"] {
    height: 40px !important;
  }
  
  [style*="font-size: 2rem"] {
    font-size: 1.25rem !important;
  }
  
  [style*="gap: 1.5rem"] {
    gap: 0.75rem !important;
  }
  
  [style*="height: 300px"] {
    height: 150px !important;
  }
  
  .block-walnut[style*="padding"] {
    padding: 1.5rem !important;
  }
  
  [style*="display: flex"][style*="align-items: center"] {
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  [style*="text-align: center"] {
    text-align: left !important;
  }
}


.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 0;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-carbon);
  border: 1px solid var(--color-black);
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 28, 28, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: var(--spacing-md);
  text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-title {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-warm-white);
  text-align: center;
  width: 100%;
}

.portfolio-details {
  color: var(--color-oak);
  font-size: 0.95rem;
  text-align: center;
  width: 100%;
}


.error-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-lg);
}

.error-code {
  font-size: clamp(6rem, 15vw, 15rem);
  color: var(--color-carbon);
  margin-bottom: var(--spacing-md);
  text-shadow: 4px 4px 0 var(--color-walnut);
}


.thank-you-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl);
}

.checkmark {
  width: 120px;
  height: 120px;
  border: 6px solid var(--color-walnut);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  animation: scaleIn 0.6s ease-out;
}

.checkmark::before {
  content: 'вњ“';
  font-size: 4rem;
  color: var(--color-walnut);
  font-weight: bold;
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


@media print {
  .main-nav,
  .hamburger,
  .cookie-consent,
  .btn {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}
