:root {
    --bg-color: #F5EFE6;
    --text-color: #483434;
    --primary-color: #6B4F4F;
    --accent-color: #EABF9F;
    --dark-bg: #483434;
    --light-bg: #FFFFFF;
    --light-text: #F5EFE6;
    --font-primary: 'Inter', sans-serif;
    --font-secondary: cursive;
    --container-width: 1200px;
    --transition-speed: 0.4s;
    --cubic-bezier: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.75rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}
a:hover {
    color: var(--accent-color);
}

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

.button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid transparent;
    border-radius: 50px;
    transition: all var(--transition-speed) var(--cubic-bezier);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) var(--cubic-bezier);
    z-index: -1;
}
.button:hover::before {
    width: 100%;
}
.button--primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
}
.button--primary:hover {
    color: var(--primary-color);
}
.button--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.button--secondary:hover {
    color: var(--light-text);
}
.button--secondary::before {
    background-color: var(--primary-color);
}

.section-divider {
    overflow: hidden;
    position: relative;
    line-height: 0;
}
.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}
.section-divider--top .shape-fill {
    fill: var(--bg-color);
}
.section-divider--bottom .shape-fill {
    fill: var(--light-bg);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background-color: #f5efe6;
    transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.header--scrolled {
    background-color: rgba(245, 239, 230, 0.9);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(8px);
}
.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header__logo {
    height: 40px;
    width: auto;
    transition: transform var(--transition-speed) ease;
}
.header__logo:hover {
    transform: scale(1.05);
}
.header__nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}
.header__nav-link {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    position: relative;
}
.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) var(--cubic-bezier);
}
.header__nav-link:hover::after,
.header__nav-link--active::after {
    width: 100%;
}
.header__burger { display: none; }

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%236B4F4F' fill-opacity='0.03'%3E%3Crect x='0' y='0' width='50' height='50'/%3E%3Crect x='50' y='50' width='50' height='50'/%3E%3C/g%3E%3C/svg%3E");
    z-index: -2;
}
.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 3rem;
}
.hero__title { color: var(--primary-color); margin-bottom: 1.5rem; }
.hero__subtitle { font-size: 1.25rem; margin-bottom: 2.5rem; opacity: 0.8; max-width: 550px; }
.hero__shape {
    justify-self: center;
    position: relative;
}
.hero__shape svg {
    width: 100%;
    max-width: 450px;
    height: auto;
    fill: var(--accent-color);
    filter: drop-shadow(0px 10px 30px rgba(107, 79, 79, 0.2));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translatey(0px); }
  50% { transform: translatey(-20px); }
  100% { transform: translatey(0px); }
}

.features {
    padding: 6rem 0;
    background-color: var(--light-bg);
}
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}
.features__item {
    padding: 2.5rem;
    text-align: center;
    position: relative;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: transform var(--transition-speed) var(--cubic-bezier), box-shadow var(--transition-speed) var(--cubic-bezier);
}
.features__item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}
.features__item--middle {
    transform: scale(1.1);
    background-color: var(--dark-bg);
    color: var(--light-text);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.features__item--middle:hover {
    transform: scale(1.1) translateY(-15px);
}
.features__item-number {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.08;
    z-index: 0;
}
.features__item--middle .features__item-number {
    color: var(--light-text);
    opacity: 0.1;
}
.features__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    position: relative;
    transition: transform var(--transition-speed) var(--cubic-bezier);
}
.features__item:hover .features__icon {
    transform: rotateY(180deg);
}
.features__item--middle .features__icon { color: var(--accent-color); }
.features__title { margin-bottom: 1rem; color: var(--primary-color); position: relative; }
.features__item--middle .features__title { color: var(--light-text); }
.features__text { position: relative; }

.about {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}
.about__container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}
.about__image-wrapper {
    position: relative;
    clip-path: polygon(0 15%, 100% 0, 85% 100%, 15% 85%);
}
.about__image { border-radius: 10px; }
.about__title { margin-bottom: 1.5rem; position: relative; display: inline-block; }
.about__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background-color: var(--accent-color);
    transform: skew(-20deg);
}
.about__text { margin-bottom: 1.5rem; }
.about__stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}
.about__stat-item { text-align: center; }
.about__stat-number {
    font-size: 2.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color);
}
.about__stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}
.about__background-shape {
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 50%;
    max-width: 600px;
    opacity: 0.05;
    z-index: -1;
    transform: rotate(15deg);
}

.process { padding: 6rem 0; background-color: var(--light-bg); }
.process__title { text-align: center; margin-bottom: 4rem; }
.process__tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
    border: none;
    gap: 1rem;
}
.process__tab-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #eee;
    background: none;
    color: var(--text-color);
    position: relative;
    transition: all var(--transition-speed) var(--cubic-bezier);
    border-radius: 50px;
}
.process__tab-button:hover {
    border-color: var(--accent-color);
    color: var(--primary-color);
}
.process__tab-button--active {
    background-color: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
}
.process__tab-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    animation: fadeIn 0.6s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.process__tab-panel--active { display: grid; }
.process__panel-image { border-radius: 10px; box-shadow: 10px 10px 0 var(--accent-color); }
.process__panel-title { margin-bottom: 1rem; color: var(--primary-color); }

.gallery {
    padding: 8rem 0;
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
}
.gallery__title-wrapper {
    position: absolute;
    top: 50%;
    left: -50px;
    transform: translateY(-50%) rotate(-90deg);
    z-index: 10;
}
.gallery__title {
    margin: 0;
    font-size: 4rem;
    color: rgba(245, 239, 230, 0.2);
    text-transform: uppercase;
    letter-spacing: 10px;
}
.gallery__swiper { width: 100%; padding-top: 50px; padding-bottom: 50px; }


.testimonials { padding: 8rem 0; position: relative; }
.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-color: var(--light-bg);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 100%);
    z-index: -1;
}
.testimonials__title { text-align: center; margin-bottom: 4rem; }
.testimonials__swiper { position: relative; }
.testimonials__slide {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    height: auto;
    position: relative;
    overflow: hidden;
}
.testimonials__slide::before {
    content: '“';
    font-family: var(--font-primary);
    font-size: 10rem;
    color: var(--accent-color);
    position: absolute;
    right: 1rem;
    top: -1rem;
    opacity: 0.1;
    line-height: 1;
}
.testimonials__text { font-style: italic; margin-bottom: 1.5rem; position: relative; font-size: 1.1rem; }
.testimonials__author { font-weight: 700; color: var(--primary-color); }
.testimonials__swiper .swiper-button-next, .testimonials__swiper .swiper-button-prev { color: var(--primary-color); }

.faq { padding: 6rem 0; background-color: var(--light-bg); }
.faq__container { max-width: 800px; margin: 0 auto; }
.faq__title { text-align: center; margin-bottom: 3rem; }
.faq__item { border-bottom: 1px solid #eee; }
.faq__item-control { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; cursor: pointer; background: none; border: none; text-align: left; }
.faq__item-title { font-size: 1.2rem; font-weight: 600; color: var(--text-color); transition: color var(--transition-speed) ease; }
.faq__item--active .faq__item-title { color: var(--primary-color); }
.faq__item-icon { width: 20px; height: 20px; transition: transform var(--transition-speed) var(--cubic-bezier); flex-shrink: 0; margin-left: 1rem; }
.faq__item--active .faq__item-icon { transform: rotate(135deg); }
.faq__item-content { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out; }
.faq__item-text { padding-bottom: 1.5rem; opacity: 0.8; }

.cta {
    padding: 6rem 0;
    background: var(--dark-bg);
    color: var(--light-text);
    text-align: center;
}
.cta__title { margin-bottom: 1.5rem; color: #fff; }
.cta__text { max-width: 600px; margin: 0 auto 2.5rem; opacity: 0.8; }
.cta .button--primary:hover { color: #222; }
.cta .button--primary::before { background-color: var(--light-text); }

.footer { background-color: #382828; color: var(--light-text); padding: 5rem 0 2rem; }
.footer__container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer__about-logo { width: 150px; height: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer__about-text { opacity: 0.8; max-width: 350px; }
.footer__title { font-size: 1.25rem; margin-bottom: 1.5rem; color: #fff; font-family: var(--font-primary); }
.footer__nav-list { list-style: none; }
.footer__nav-item { margin-bottom: 0.75rem; }
.footer__nav-link { color: var(--light-text); opacity: 0.8; position: relative; }
.footer__nav-link:hover { opacity: 1; color: var(--accent-color); }
.footer__bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.7; }

@media (max-width: 992px) {
    .hero__container { grid-template-columns: 1fr; text-align: center; }
    .hero__content { order: 2; }
    .hero__shape { order: 1; margin-bottom: 2rem; }
    .hero__subtitle { margin-left: auto; margin-right: auto; }
    .features__grid { grid-template-columns: 1fr; }
    .features__item--middle { transform: scale(1); }
    .features__item:hover { transform: translateY(-10px); }
    .features__item--middle:hover { transform: translateY(-10px); }
    .about__container { grid-template-columns: 1fr; }
    .about__image-wrapper { order: -1; }
    .process__tab-panel { grid-template-columns: 1fr; }
    .gallery__title-wrapper { display: none; }
    .footer__container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .header__nav { position: fixed; top: 0; left: -100%; width: 100%; height: 100vh; background-color: var(--bg-color); display: flex; justify-content: center; align-items: center; transition: left var(--transition-speed) var(--cubic-bezier); }
    .header__nav--active { left: 0; }
    .header__nav-list { flex-direction: column; text-align: center; }
    .header__nav-link { font-size: 1.5rem; }
    .header__burger {
        display: block; cursor: pointer; width: 30px; height: 22px; position: relative; z-index: 1001;
    }
    .header__burger-line { position: absolute; left: 0; width: 100%; height: 3px; background-color: var(--text-color); border-radius: 3px; transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease; }
    .header__burger-line:nth-child(1) { top: 0; }
    .header__burger-line:nth-child(2) { top: 50%; transform: translateY(-50%);}
    .header__burger-line:nth-child(3) { bottom: 0; }
    .header__burger--active .header__burger-line:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
    .header__burger--active .header__burger-line:nth-child(2) { opacity: 0; }
    .header__burger--active .header__burger-line:nth-child(3) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }
    .process__tabs { flex-wrap: wrap; }
    .about__stats{flex-direction: column;}
}


.page-header {
    padding: 8rem 0;
    background-color: var(--dark-bg);
    color: var(--light-text);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.1;
    z-index: 0;
}
.page-header__title {
    color: #fff;
    position: relative;
    z-index: 1;
}
.page-header__subtitle {
    max-width: 600px;
    margin: 1rem auto 0;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.mission {
    padding: 6rem 0;
}
.mission__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.mission__image-wrapper {
    position: relative;
}
.mission__image {
    border-radius: 10px;
    position: relative;
    z-index: 1;
}
.mission__image-bg-shape {
    position: absolute;
    top: -2rem;
    left: -2rem;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 10px;
    z-index: 0;
    transition: transform var(--transition-speed) var(--cubic-bezier);
}
.mission__image-wrapper:hover .mission__image-bg-shape {
    transform: translate(1rem, 1rem);
}
.mission__subtitle {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.mission__title {
    margin-bottom: 1.5rem;
}

.values {
    padding: 6rem 0;
    background-color: var(--light-bg);
}
.values__title {
    text-align: center;
    margin-bottom: 4rem;
}
.values__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}
.values__item {
    text-align: center;
}
.values__icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.values__icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) var(--cubic-bezier);
}
.values__item:hover .values__icon-wrapper::before {
    width: 100%;
}
.values__icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    transition: color var(--transition-speed) ease;
}
.values__item:hover .values__icon {
    color: var(--dark-bg);
}
.values__item-title {
    margin-bottom: 1rem;
}

.team {
    padding: 6rem 0;
}
.team__title {
    text-align: center;
    margin-bottom: 4rem;
}
.team__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}
.team__member {
    text-align: center;
}
.team__member-photo-wrapper {
    position: relative;
    margin-bottom: 2rem;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.team__member-photo {
    transition: transform var(--transition-speed) ease, filter var(--transition-speed) ease;
}
.team__member:hover .team__member-photo {
    transform: scale(1.1);
    filter: saturate(1.2);
}
.team__member-name {
    margin-bottom: 0.5rem;
}
.team__member-role {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.workshop {
    padding: 6rem 0;
    background-color: var(--dark-bg);
    color: var(--light-text);
}
.workshop__container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}
.workshop__title {
    color: #fff;
}
.workshop__text {
    opacity: 0.8;
}
.workshop__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 150px);
    gap: 1rem;
}
.workshop__gallery-item {
    overflow: hidden;
    border-radius: 10px;
}
.workshop__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.workshop__gallery-item:hover img {
    transform: scale(1.1);
}
.workshop__gallery-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
.workshop__gallery-item:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
.workshop__gallery-item:nth-child(3) { grid-column: 3 / 4; grid-row: 1 / 2; }
.workshop__gallery-item:nth-child(4) { grid-column: 2 / 4; grid-row: 2 / 3; }

.services-list {
    padding: 6rem 0;
}
.services-list__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}
.services-list__item:last-child {
    margin-bottom: 0;
}
.services-list__item:nth-child(even) .services-list__image-wrapper {
    order: 2;
}
.services-list__image {
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.services-list__number {
    font-size: 4rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.1;
}
.services-list__title {
    margin: -1rem 0 1.5rem;
}

.service-detail {
    padding: 6rem 0;
}
.service-detail__container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}
.service-detail__main-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.service-detail__sidebar {
    position: sticky;
    top: 120px;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 10px;
    border: 1px solid #eee;
}
.service-detail__sidebar-title {
    margin-bottom: 1.5rem;
}
.service-detail__key-features {
    list-style: none;
}
.service-detail__key-features li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.service-detail__key-features svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.service-gallery {
    padding-bottom: 6rem;
}
.service-gallery__title {
    text-align: center;
    margin-bottom: 3rem;
}
.service-gallery__swiper {
    border-radius: 10px;
    overflow: hidden;
}
.service-gallery__slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.service-gallery__swiper .swiper-button-next,
.service-gallery__swiper .swiper-button-prev {
    color: #fff;
}
.service-gallery__swiper .swiper-pagination-bullet {
    background-color: rgba(255,255,255,0.7);
}
.service-gallery__swiper .swiper-pagination-bullet-active {
    background-color: #fff;
}

@media (max-width: 992px) {
    .mission__container, .workshop__container { grid-template-columns: 1fr; }
    .team__grid { grid-template-columns: 1fr; gap: 3rem; }
    .services-list__item, .services-list__item:nth-child(even) { grid-template-columns: 1fr; }
    .services-list__item:nth-child(even) .services-list__image-wrapper { order: 0; }
    .service-detail__container { grid-template-columns: 1fr; }
    .service-detail__sidebar { position: static; margin-top: 3rem; }
}

@media (max-width: 768px) {
    .workshop__gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 150px);
    }
    .workshop__gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
    .workshop__gallery-item:nth-child(2) { grid-column: 1 / 2; grid-row: 2 / 3; }
    .workshop__gallery-item:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
    .workshop__gallery-item:nth-child(4) { grid-column: 1 / 3; grid-row: 3 / 4; }
}


.page-header {
    padding: 10rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(72, 52, 52, 0.6);
    z-index: 1;
}
.page-header__content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.page-header__title {
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 5rem);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.page-header__subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 1rem auto 0;
}

.timeline {
    padding: 6rem 0;
    background-color: var(--light-bg);
}
.timeline__title {
    text-align: center;
    margin-bottom: 1rem;
}
.timeline__intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    opacity: 0.8;
}
.timeline__wrapper {
    position: relative;
    padding: 2rem 0;
}
.timeline__line {
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background-color: #ddd;
}
.timeline__line-progress {
    width: 0; height: 100%;
    background-color: var(--primary-color);
    transition: width 0.5s ease;
}
.timeline__scroll-container {
    display: flex;
    gap: 4rem;
    overflow-x: auto;
    padding: 2rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.timeline__scroll-container::-webkit-scrollbar {
    display: none;
}
.timeline__item {
    flex: 0 0 320px;
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.timeline__item-dot {
    position: absolute;
    top: -2rem; left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 20px;
    border-radius: 50%;
    background-color: #fff;
    border: 4px solid var(--primary-color);
}
.timeline__item-year {
    font-size: 2rem;
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.team { padding: 6rem 0; }
.team__title { text-align: center; margin-bottom: 4rem; }
.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}
.team__member {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.team__member-photo {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.4s var(--cubic-bezier);
}
.team__member:hover .team__member-photo {
    transform: scale(1.1);
}
.team__member-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    transform: translateY(35%);
    transition: transform 0.4s var(--cubic-bezier);
}
.team__member:hover .team__member-info {
    transform: translateY(0);
}
.team__member-name { font-size: 1.75rem; }
.team__member-role {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.team__member-bio {
    opacity: 0;
    max-height: 0;
    transition: opacity 0.4s ease, max-height 0.4s ease;
}
.team__member:hover .team__member-bio {
    opacity: 1;
    max-height: 100px;
}

.services-grid {
    padding: 6rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.services-card {
    position: relative;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    cursor: pointer;
}
.services-card__bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--cubic-bezier);
}
.services-card:hover .services-card__bg {
    transform: scale(1.1);
}
.services-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
    transition: background 0.4s ease;
}
.services-card:hover::after {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
}
.services-card__content {
    position: relative;
    z-index: 2;
}
.services-card__number {
    font-size: 3rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}
.services-card__title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.services-card__link {
    display: inline-block;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.services-card:hover .services-card__link {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 992px) {
    .services-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.detail-intro {
    padding: 6rem 0;
}
.detail-intro__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.detail-intro__image {
    border-radius: 10px;
    clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
}

.process-steps {
    padding: 6rem 0;
    background-color: var(--light-bg);
}
.process-steps__title { text-align: center; margin-bottom: 4rem; }
.process-steps__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}
.process-steps__line {
    position: absolute;
    top: 50px; left: 12.5%; right: 12.5%;
    height: 2px;
    background-color: #ddd;
    z-index: 0;
}
.process-steps__item {
    text-align: center;
    position: relative;
    z-index: 1;
}
.process-steps__icon-wrapper {
    width: 100px; height: 100px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #ddd;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center; justify-content: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.process-steps__item:hover .process-steps__icon-wrapper {
    border-color: var(--primary-color);
    transform: scale(1.1);
}
.process-steps__icon {
    width: 40px; height: 40px;
    color: var(--primary-color);
}
.process-steps__item-title {
    font-size: 1.25rem;
}

.materials-showcase {
    padding: 6rem 0;
}
.materials-showcase__title { text-align: center; margin-bottom: 4rem; }
.materials-showcase__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.materials-showcase__item {
    position: relative;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
}
.materials-showcase__image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.materials-showcase__item:hover .materials-showcase__image {
    transform: scale(1.1);
}
.materials-showcase__name {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
}

.scope-grid {
    padding: 6rem 0;
    background-color: var(--light-bg);
}
.scope-grid__title { text-align: center; margin-bottom: 4rem; }
.scope-grid__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.scope-grid__item {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.scope-grid__item:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.scope-grid__icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    color: var(--primary-color);
}
.scope-grid__item-title {
    font-size: 1.2rem;
    margin: 0;
}

.case-study {
    padding: 6rem 0;
}
.case-study__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.case-study__title {
    margin-bottom: 1.5rem;
}

.comparison-slider {
    padding: 6rem 0;
    background-color: var(--light-bg);
}
.comparison-slider__title { text-align: center; margin-bottom: 4rem; }
.comparison-slider__container {
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    user-select: none;
}
.comparison-slider__image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.comparison-slider__image--after {
    clip-path: inset(0 0 0 50%);
}
.comparison-slider__handle {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #fff;
    cursor: ew-resize;
    z-index: 10;
}
.comparison-slider__handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.5);
}

@media (max-width: 992px) {
    .detail-intro__container, .case-study__container { grid-template-columns: 1fr; }
    .process-steps__grid { grid-template-columns: 1fr 1fr; }
    .process-steps__line { display: none; }
}

.legal-page {
    padding: 6rem 0;
}
.legal-page__container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
    align-items: flex-start;
}
.legal-page__sidebar {
    position: sticky;
    top: 120px;
}
.legal-page__nav-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}
.legal-page__nav {
    list-style: none;
}
.legal-page__nav-item {
    margin-bottom: 1rem;
}
.legal-page__nav-link {
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
    position: relative;
    padding-left: 20px;
}
.legal-page__nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
    background-color: #ccc;
    transition: width 0.3s ease, background-color 0.3s ease;
}
.legal-page__nav-link:hover {
    opacity: 1;
}
.legal-page__nav-link--active {
    color: var(--primary-color);
    opacity: 1;
}
.legal-page__nav-link--active::before {
    width: 20px;
    background-color: var(--primary-color);
}
.legal-page__content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}
.legal-page__content h2:first-of-type {
    margin-top: 0;
}
.legal-page__content p, .legal-page__content li {
    line-height: 1.7;
    opacity: 0.9;
}
.legal-page__content ul {
    list-style-position: inside;
    padding-left: 1rem;
}
.legal-page__content strong {
    color: var(--primary-color);
}

.studio-intro {
    padding: 6rem 0;
    text-align: center;
}
.studio-intro__title { margin-bottom: 1rem; }
.studio-intro__text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.8;
}
.studio-editor {
    padding: 2rem 0 6rem;
}
.studio-editor__container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.studio-editor__controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.studio-editor__control-group {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 10px;
}
.studio-editor__control-group-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}
.studio-editor__control-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.studio-editor__slider {
    width: 100%;
    cursor: pointer;
}
.studio-editor__finish-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.studio-editor__finish-button {
    width: 100%;
    height: 50px;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: border-color 0.3s ease;
}
.studio-editor__finish-button--active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}
.studio-editor__actions .button {
    width: 100%;
    margin-bottom: 0.5rem;
}
.studio-editor__canvas-wrapper {
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid #eee;
}
.studio-editor__canvas {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    cursor: crosshair;
    touch-action: none; 
}

@media (max-width: 992px) {
    .legal-page__container, .values__grid, .team__grid, .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
    .legal-page__sidebar {
        position: static;
        margin-bottom: 3rem;
        border-bottom: 2px solid #eee;
        padding-bottom: 2rem;
    }
    .studio-editor__container {
        grid-template-columns: 1fr;
    }
    .studio-editor__controls {
        order: 2;
    }
}


.testimonials {
    padding: 6rem 0;
    background-color: var(--light-bg);
}
.testimonials__title {
    text-align: center;
    margin-bottom: 4rem;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.testimonials-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonials-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.testimonials-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.testimonials-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-color);
}
.testimonials-card__name {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}
.testimonials-card__source {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}
.testimonials-card__text {
    font-style: italic;
    flex-grow: 1;
    margin: 0 0 1.5rem 0;
    line-height: 1.7;
}
.testimonials-card__text::before {
    content: '“';
    float: left;
    font-size: 3rem;
    font-family: var(--font-primary);
    color: var(--accent-color);
    line-height: 0.5;
    margin-right: 0.5rem;
}
.testimonials-card--hidden {
    display: none;
}
.testimonials__actions {
    text-align: center;
    margin-top: 3rem;
}


.page-header--services {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/12-1.webp") no-repeat center center/cover;
}
.page-header--service-detail-1 {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/12-2.webp") no-repeat center center/cover;
}
.page-header--service-detail-2 {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/12-3.webp") no-repeat center center/cover;
}
.page-header--service-detail-3 {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/12-4.webp") no-repeat center center/cover;
}
.page-header--studio {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/12-5.webp") no-repeat center center/cover;
}

.studio-editor__finish-button--walnut {
    background-image: url('images/26.webp');
}
.studio-editor__finish-button--oak {
    background-image: url('images/27.webp');
}
.studio-editor__finish-button--cherry {
    background-image: url('images/28.webp');
}
.studio-editor__finish-button--maple {
    background-image: url('images/29.webp');
}