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

body {
    font-family: 'Roboto Condensed', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 50px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* ===== Sections ===== */
.section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-content {
    background: white;
    padding: 88px 40px 64px;
    min-height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-content h2 {
    font-size: 40px;
    color: #333;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #F07820;
    border-radius: 2px;
}

#services .container > h2 {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
    padding: 36px max(20px, calc((100vw - 1200px) / 2)) 26px;
    background: rgb(37, 37, 37);
    color: #f2f2f2;
}

#services.section-content {
    padding-top: 0;
    padding-bottom: 0;
}

/* ===== Carousel ===== */
#home {
    padding: 0;
    margin-top: 0;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #111;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s linear;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
}

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

.carousel-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(180px, 29vw);
    height: auto;
    opacity: 0;
    transform: translate(-50%, -35%) scale(0.9);
    z-index: 5;
    filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.7)) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

.carousel.carousel-ready .carousel-item.active .carousel-logo {
    animation: carouselLogoIn 4.6s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.carousel-caption {
    position: absolute;
    left: 50%;
    top: calc(50% + 110px);
    width: min(900px, 86vw);
    color: white;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, 24px);
    z-index: 5;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.75);
    filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.7)) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

.carousel.carousel-ready .carousel-item.active .carousel-caption {
    animation: carouselCaptionIn 4.6s cubic-bezier(0.16, 1, 0.3, 1) 2s forwards;
}

@keyframes carouselLogoIn {
    from {
        opacity: 0;
        transform: translate(-50%, -35%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes carouselCaptionIn {
    from {
        opacity: 0;
        transform: translate(-50%, 24px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.carousel-caption-primary {
    font-size: clamp(22px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.12;
}

.carousel-caption-secondary {
    margin-top: 10px;
    font-size: clamp(15px, 1.8vw, 26px);
    font-weight: 400;
    line-height: 1.25;
}

/* Carousel navigation buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

/* Carousel navigation dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Service block layout */
.service-block {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 80px;
}

.service-block:last-child {
    margin-bottom: 0;
}

.service-block-reverse {
    flex-direction: row-reverse;
}

.service-block-image {
    flex: 0 0 55%;
    min-height: 400px;
}

.service-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.service-block-content {
    flex: 1;
}

.services-intro {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
    padding: 36px max(20px, calc((100vw - 1200px) / 2));
    background: rgb(37, 37, 37);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.services-intro-item h3 {
    font-size: 22px;
    line-height: 1.25;
    color: #f2f2f2;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.services-intro-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.services-intro-icon {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.services-intro-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

.services-intro-item p {
    font-size: 14px;
    line-height: 1.7;
    color: #e3e3e3;
    margin-bottom: 16px;
}

.services-intro-link {
    display: block;
    width: fit-content;
    font-size: 14px;
    color: #f2f2f2;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    margin-bottom: 8px;
}

.services-intro-link:hover {
    color: #ffffff;
}

#services .service-block.service-block-collect {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
    padding: 36px max(20px, calc((100vw - 1200px) / 2)) 36px 0;
    background: rgb(205, 180, 100);
}

#services .service-block.service-block-collect .service-block-content {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

#services .service-block.service-block-collect .service-block-content p {
    font-size: 16px;
}

#services .service-block.service-block-collect .service-block-image img {
    box-shadow: none;
}

#services .service-block.service-block-photos {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
    padding: 36px 0 36px max(20px, calc((100vw - 1200px) / 2));
    background: rgb(37, 39, 38);
}

#services .service-block.service-block-photos .service-block-content {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

#services .service-block.service-block-photos .service-block-content h3,
#services .service-block.service-block-photos .service-block-content p {
    color: #f2f2f2;
}

#services .service-block.service-block-photos .service-block-content p {
    font-size: 16px;
}

#services .service-block.service-block-photos .service-block-image img {
    box-shadow: none;
}

#services .service-block.service-block-books {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 36px max(20px, calc((100vw - 1200px) / 2)) 36px 0;
    background: rgb(112, 112, 112);
}

#services .service-block.service-block-books .service-block-content {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

#services .service-block.service-block-books .service-block-content h3,
#services .service-block.service-block-books .service-block-content p {
    color: #f2f2f2;
}

#services .service-block.service-block-books .service-block-content p {
    font-size: 16px;
}

#services .service-block.service-block-books .service-block-image img {
    box-shadow: none;
}

.service-block-content h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
}

.service-block-content p {
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}

/* ===== Portfolio ===== */
#portfolio.section-content {
    background: rgb(37, 37, 37);
    padding-top: 40px;
}

#portfolio .container > h2,
#portfolio .portfolio-recent-title,
#portfolio .portfolio-all-title {
    color: #f2f2f2;
}

#portfolio .portfolio-all-section {
    border-top-color: rgba(255, 255, 255, 0.2);
}

#portfolio .portfolio-search,
#portfolio .portfolio-sort {
    background: #2f2f2f;
    border-color: #5a5a5a;
    color: #f2f2f2;
}

#portfolio .portfolio-search::placeholder {
    color: #b8b8b8;
}

#portfolio .portfolio-list-item {
    background: #2b2b2b;
    border-color: #4a4a4a;
}

#portfolio .portfolio-list-title {
    color: #f2f2f2;
}

#portfolio .portfolio-list-date {
    color: #b3b3b3;
}

#portfolio .portfolio-list-desc {
    color: #d0d0d0;
}

#portfolio .pagination-btn {
    background: #2b2b2b;
    border-color: #5a5a5a;
    color: #f2f2f2;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-placeholder span {
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
}

.portfolio-placeholder-small span {
    font-size: 32px;
}

.portfolio-overlay h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    font-size: 14px;
}

/* Extended portfolio layout */
.portfolio-recent-title {
    font-size: 20px;
    font-weight: 700;
    color: #666;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.portfolio-all-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid #eee;
}

.portfolio-all-title {
    font-size: 20px;
    font-weight: 700;
    color: #666;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.portfolio-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.portfolio-search {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.portfolio-search:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.portfolio-sort {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    background: white;
}

.portfolio-sort:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.portfolio-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.portfolio-list-item[hidden] {
    display: none !important;
}

.portfolio-list-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
    transform: translateX(5px);
}

.portfolio-list-thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.portfolio-list-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-list-content {
    flex: 1;
    min-width: 0;
}

.portfolio-list-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.portfolio-list-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.portfolio-list-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.pagination-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.pagination-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Contacts ===== */
#contacts.section-content {
    background: rgb(37, 37, 37);
    padding-top: 24px;
}

#contacts .container > h2,
#contacts .contact-item h4,
#contacts .contact-item p {
    color: #f2f2f2;
}

#contacts .contact-item a {
    color: #d7d7d7;
}

#contacts .contact-item a:hover {
    color: #ffffff;
}

#contacts .contacts-info-primary .contact-item {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.contacts-wrapper {
    max-width: 520px;
    margin: 0 auto;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contacts-wrapper > .contacts-info:not(.contacts-info-primary),
.contacts-wrapper > .contact-form {
    display: none;
}

.contacts-info-primary .contact-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 0;
    border-bottom: 1px solid #eee;
}

.contacts-info-primary {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 9px;
}

.contacts-info-primary .contact-item:last-child {
    border-bottom: 0;
}

.contact-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(102, 126, 234, 0.28);
    border-radius: 50%;
    color: #F07820;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.06);
}

.contact-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-item h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 18px;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #764ba2;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== Team ===== */
#team.section-content {
    background: rgb(37, 37, 37);
    padding-top: 12px;
}

#team .container {
    max-width: 100%;
}

#team .container > h2,
#team .team-text p,
#team .team-member figcaption {
    color: #f2f2f2;
}

#team .container > h2 {
    margin-bottom: 30px;
}

.team-wrapper {
    display: grid;
    grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) minmax(120px, 190px);
    gap: 36px;
    align-items: stretch;
    width: 100%;
}

.team-text p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.65;
    color: #333;
}

.team-text p:last-child {
    margin-bottom: 0;
}

.team-member {
    margin: 0;
}

.team-member img {
    display: block;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.team-member figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: #333;
}

.team-member-top {
    align-self: start;
}

.team-member-bottom {
    align-self: end;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* ===== Project page ===== */
.project-back-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 30px;
    transition: color 0.3s;
}

.project-back-link:hover {
    color: #764ba2;
}

.project-header {
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 30px;
}

.project-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
    color: #333;
    text-transform: uppercase;
}

.project-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 14px;
}

.project-date {
    display: flex;
    align-items: center;
}

.project-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 60px;
}

.project-content h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
}

.project-content h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.project-content p {
    margin-bottom: 15px;
}

.project-content img {
    display: block;
    width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 10px;
}

.project-content figure.img-screen-70 {
    margin: 30px auto;
    width: min(70vw, 100%);
}

.project-content figure.img-screen-70 img {
    width: 100%;
    height: auto;
    margin: 0;
}

.project-content ul,
.project-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.project-content li {
    margin-bottom: 8px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 3/2;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.project-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.project-nav-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.project-nav-row-top {
    margin: 16px 0 26px;
}

.project-nav-row-bottom {
    gap: 20px;
}

.project-nav-link {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.project-nav-link-prev {
    justify-self: start;
}

.project-nav-link-center {
    justify-self: center;
}

.project-nav-link-next {
    justify-self: end;
}

.project-nav-link:hover {
    color: #764ba2;
}

.project-nav-link-placeholder {
    visibility: hidden;
    pointer-events: none;
}

.project-nav-row .btn-back {
    justify-self: center;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-back:hover {
    background: #764ba2;
}

/* ===== Footer ===== */
.footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 30px;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 240px));
        justify-content: center;
        gap: 22px;
    }

    .service-block {
        gap: 32px;
    }

    .service-block-image {
        flex-basis: 58%;
    }

    .team-wrapper {
        grid-template-columns: minmax(100px, 150px) minmax(0, 1fr) minmax(100px, 150px);
        gap: 20px;
    }

    .services-intro {
        gap: 24px;
        padding-top: 32px;
        padding-bottom: 32px;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-menu li {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-container {
        padding: 15px 20px;
    }

    .section-content {
        padding: 88px 18px 40px;
    }

    #services.section-content {
        padding-top: 0;
    }

    #team.section-content {
        padding-top: 10px;
    }

    #contacts.section-content {
        padding-top: 16px;
    }

    #portfolio.section-content {
        padding-top: 24px;
    }


    .section-content h2 {
        font-size: 26px;
        margin-bottom: 34px;
    }

    .contacts-wrapper {
        max-width: 100%;
    }

    .contacts-info-primary {
        grid-template-columns: 1fr;
        row-gap: 9px;
    }

    .carousel-button {
        padding: 10px 15px;
        font-size: 18px;
    }

    .carousel-button.prev {
        left: 10px;
    }

    .carousel-button.next {
        right: 10px;
    }

    .carousel-caption {
        top: calc(50% + 82px);
        width: 88vw;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .carousel-dots {
        bottom: 15px;
        gap: 8px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 156px));
        justify-content: center;
        gap: 14px;
    }

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

    .services-intro {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: -1px;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .services-intro-item h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .services-intro-item {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
    }

    .services-intro-icon img {
        width: 30px;
        height: 30px;
    }

    .services-intro-item p,
    .services-intro-link {
        font-size: 14px;
    }

    .portfolio-item {
        border-radius: 10px;
    }

    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.74));
        justify-content: flex-end;
        padding: 12px 8px;
    }

    .portfolio-overlay h3 {
        font-size: 14px;
        line-height: 1.2;
        margin-bottom: 4px;
    }

    .portfolio-overlay p {
        font-size: 12px;
    }

    .service-block {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 34px;
    }

    .service-block:last-child {
        margin-bottom: 0;
    }

    .service-block-reverse {
        flex-direction: column;
    }

    .service-block-image {
        flex: 1;
        min-height: 240px;
    }

    #services .service-block.service-block-collect,
    #services .service-block.service-block-photos,
    #services .service-block.service-block-books {
        padding-left: 18px;
        padding-right: 18px;
    }

    .service-block-content h3 {
        font-size: 21px;
        margin-bottom: 16px;
    }

    .service-block-content p {
        font-size: 14px;
    }

    .team-wrapper {
        grid-template-columns: 1fr;
        gap: 26px;
        align-items: start;
    }

    .team-text p {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .team-member figcaption {
        font-size: 15px;
    }

    .team-member img {
        width: 78%;
        margin: 0 auto;
    }

    .team-member figcaption {
        width: 78%;
        margin: 10px auto 0;
        text-align: left;
    }

    .team-member-top,
    .team-member-bottom {
        align-self: start;
    }

    .portfolio-filters {
        flex-direction: column;
    }

    .portfolio-all-section {
        margin-top: 48px;
        padding-top: 36px;
    }

    .portfolio-list-item {
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }

    .portfolio-list-thumbnail {
        width: 96px;
        height: 96px;
    }

    .project-header h1 {
        font-size: 28px;
    }

    .project-content {
        font-size: 14px;
    }

    .project-content h2 {
        font-size: 22px;
    }

    .project-content h3 {
        font-size: 18px;
    }

    .project-nav-row {
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
    }

    .project-nav-row-top {
        margin: 12px 0 20px;
    }

    .project-nav-link {
        font-size: 11px;
        letter-spacing: 0;
    }

    .project-nav-link-prev,
    .project-nav-link-center,
    .project-nav-link-next {
        justify-self: center;
    }

    .project-nav-link-prev {
        justify-self: start;
    }

    .project-nav-link-next {
        justify-self: end;
    }

    .project-nav-row .btn-back {
        font-size: 11px;
        padding: 8px 10px;
        white-space: nowrap;
    }

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

@media (max-width: 420px) {
    .section-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, calc((100vw - 42px) / 2)));
        gap: 10px;
    }

    .portfolio-overlay {
        padding: 10px 6px;
    }

    .portfolio-overlay h3 {
        font-size: 12px;
    }

    .portfolio-overlay p {
        font-size: 11px;
    }

    .portfolio-list-item {
        gap: 10px;
        padding: 12px;
    }

    .portfolio-list-thumbnail {
        width: 82px;
        height: 82px;
    }

    .contact-item p {
        font-size: 16px;
        overflow-wrap: anywhere;
    }
}

