.example-project {
    background-color: var(--color-white);
    padding: clamp(2rem, 4vw, 4rem) 0;
}

.example-header {
    max-width: min(1425px, 95%);
    margin: 0 auto clamp(2rem, 4vw, 4rem);
    padding: 0 clamp(1.25rem, 2.5vw, 2.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(1rem, 1.25vw, 1.25rem);
}

.example-container {
    max-width: min(1425px, 95%);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 2.5vw, 2.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.example-text-above {
    display: none !important;
    width: 100%;
    margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
}

.example-image-wrapper {
    position: relative;
    width: 100vw;
    height: clamp(20rem, 37.5vw, 37.5rem);
    background-image: url('../../assets/images/primer.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.example-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.example-image-content {
    position: relative;
    text-align: center;
    color: var(--color-white);
    width: 100%;
    max-width: min(800px, 90%);
    padding: clamp(1rem, 2vw, 2rem);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.example-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
    box-sizing: border-box;
}

.example-gallery-item {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.example-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.example-title {
    font-size: clamp(1.5rem, 3.438vw, 3.438rem);
    font-weight: 500;
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1.223;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
    margin: 0;
    text-align: left;
}

.example-title-black {
    color: #000000;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500;
}

.example-title-beige {
    color: #D9CAAB;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500;
}

.example-arrow {
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.example-arrow svg {
    width: clamp(1.25rem, 1.75vw, 1.75rem);
    height: clamp(1.25rem, 1.75vw, 1.75rem);
}

.example-arrow:hover {
    transform: translateX(clamp(0.5rem, 0.625vw, 0.625rem));
}


/* На мобильных устройствах */
body.mobile-only .example-image-wrapper,
html.mobile-only .example-image-wrapper {
    height: clamp(15rem, 40vw, 20rem) !important;
    /* margin-bottom установлен в global.css */
    margin-top: 0 !important;
    border-radius: 0 !important;
}

body.mobile-only .example-image-overlay,
html.mobile-only .example-image-overlay {
    display: none !important;
}

body.mobile-only .example-image-content,
html.mobile-only .example-image-content,
body.mobile-only .example-image-wrapper .example-image-content,
html.mobile-only .example-image-wrapper .example-image-content {
    display: none !important;
}

body.mobile-only .example-text-above,
html.mobile-only .example-text-above {
    display: block !important;
    margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
    width: 100%;
}

body.mobile-only .example-gallery,
html.mobile-only .example-gallery {
    display: none !important;
}

body.mobile-only .example-text-above .example-description,
html.mobile-only .example-text-above .example-description {
    text-align: center;
    color: var(--color-black) !important;
    text-shadow: none !important;
    margin-bottom: clamp(1rem, 1.25vw, 1.25rem);
    padding: 0;
}

body.mobile-only .example-text-above .example-description:last-child,
html.mobile-only .example-text-above .example-description:last-child {
    margin-bottom: 0;
}

body.mobile-only .example-btn,
html.mobile-only .example-btn {
    /* Отступы установлены в global.css */
}

.example-description {
    font-size: clamp(0.875rem, 1.25vw, 1.25rem);
    font-weight: 300;
    font-family: 'Commissioner', sans-serif !important;
    letter-spacing: clamp(0.1px, 0.188vw, 0.188px);
    line-height: 1.6;
    color: var(--color-white);
    text-shadow: 0 clamp(0.125rem, 0.125vw, 0.125rem) clamp(0.25rem, 0.25vw, 0.25rem) rgba(0, 0, 0, 0.5);
    max-width: 100%;
    width: 100%;
    margin: 0 0 clamp(1rem, 1.25vw, 1.25rem) 0;
    padding: 0 clamp(1rem, 2vw, 2rem);
    box-sizing: border-box;
    text-align: center;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.example-description:last-child {
    margin-bottom: 0;
}

.example-btn {
    background-color: #D9CAAB !important;
    color: var(--color-white) !important;
    border: none !important;
    border-radius: clamp(0.5rem, 0.75vw, 0.75rem);
    padding: clamp(1rem, 1.25vw, 1.25rem) clamp(2rem, 3.75vw, 3.75rem);
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    font-weight: 400;
    font-family: Commissioner, sans-serif;
    text-decoration: none !important;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    margin-top: 0;
    width: fit-content;
}

.example-btn:hover {
    background-color: #C9BA9B;
    transform: translateY(clamp(-0.125rem, -0.125vw, -0.125rem));
    box-shadow: 0 clamp(0.25rem, 0.25vw, 0.25rem) clamp(0.75rem, 0.75vw, 0.75rem) rgba(217, 202, 171, 0.3);
}

.example-btn:active {
    transform: translateY(0);
    box-shadow: 0 clamp(0.125rem, 0.125vw, 0.125rem) clamp(0.375rem, 0.375vw, 0.375rem) rgba(217, 202, 171, 0.2);
}



