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

/* ===== ФОН С ИЗОБРАЖЕНИЕМ ===== */
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #1f2b3a;
    line-height: 1.5;
    background-image: url('../foto/bg.webp');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    padding-bottom: 70px
}

/* Полупрозрачный слой поверх фона для читаемости текста */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 247, 252, 0.88);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px
}

:root {
    --primary: #0f3b5e;
    --accent: #5aa9a5
}

h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block
}

h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-top: 10px;
    border-radius: 2px
}

.hero {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #f0f7fc 0, #fff 100%)
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
    font-size: 1rem
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 8px 16px -6px rgba(15, 59, 94, .2)
}

.btn-primary:hover {
    background-color: #2b5c84;
    transform: translateY(-2px)
}

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

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap
}

.hero-content {
    flex: 1
}

.hero-image {
    flex: 1;
    border-radius: 32px;
    min-height: 340px;
    background-size: cover;
    background-position: center
}

.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none
}

.nav-menu {
    display: flex;
    gap: 32px;
    font-weight: 500;
    flex-wrap: wrap
}

.nav-menu a {
    text-decoration: none;
    color: #1f2b3a
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 24px
}

.header-contacts .phone {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.2rem
}

.section {
    padding: 80px 0
}

.section-bg {
    background-color: rgba(248, 250, 253, 0.92);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px
}

.card {
    background: white;
    border-radius: 28px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: .2s ease;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    text-align: center
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(15, 59, 94, 0.1)
}

.card i {
    font-size: 2.4rem;
    color: var(--accent);
    margin-bottom: 20px
}

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

.card p {
    font-size: .9rem;
    color: #4b5f73
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center
}

.stat-item {
    flex: 1;
    min-width: 140px
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1
}

.stat-desc {
    color: #4b5f73;
    margin-top: 8px
}

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

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #e8f0f5 0, #d4e2ea 100%);
    aspect-ratio: 4/3
}

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

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

.testimonial-card {
    background: white;
    border-radius: 32px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid #e2e8f0
}

.testimonial-card p {
    font-style: italic;
    line-height: 1.6
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 56px;
    background: #cbd5e1;
    background-size: cover
}

.author-info h4 {
    font-weight: 700
}

.author-info p {
    color: #4b5f73;
    font-size: .9rem
}

.contact-row {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap
}

.contact-details {
    flex: 1
}

.contact-details i {
    color: var(--accent);
    width: 28px
}

.contact-details p {
    margin: 16px 0;
    display: flex;
    gap: 12px;
    align-items: center
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: #1f2b3a;
    transition: all .3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05)
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--accent)
}

.contact-card i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: inline-block
}

.contact-card .card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px
}

.contact-card .card-desc {
    font-size: .8rem;
    color: #4b5f73
}

.contact-card.phone i {
    color: var(--primary)
}

.contact-card.vk i {
    color: #4680C2
}

.contact-card.max i {
    color: #6200EA
}

.contact-card.callback i {
    color: var(--accent)
}

.main-footer {
    background: var(--primary);
    color: white;
    padding: 32px 0 24px;
    margin-top: 60px;
    border-radius: 40px 40px 0 0
}

.main-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px
}

.footer-left {
    flex-shrink: 0
}

.footer-left .logo {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 8px
}

.footer-description {
    font-size: .8rem;
    opacity: .7;
    line-height: 1.4;
    margin-top: 4px
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end
}

.footer-address {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right
}

.address-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    font-size: .8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75)
}

.address-item i {
    color: var(--accent);
    font-size: .85rem;
    margin-top: 2px;
    flex-shrink: 0
}

.address-item span {
    max-width: 350px;
    text-align: right
}

.address-item a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none
}

.address-item a:hover {
    color: white
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 24px;
    padding-top: 20px;
    text-align: center;
    font-size: .75rem;
    color: rgba(255, 255, 255, 0.5)
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none
}

.footer-bottom a:hover {
    color: white
}

.fixed-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e2e8f0;
    padding: 12px 0;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08)
}

.fixed-action-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap
}

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

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all .2s ease;
    cursor: pointer;
    border: none
}

.action-btn i {
    font-size: 1.2rem
}

.action-btn-call {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(15, 59, 94, 0.3)
}

.action-btn-call:hover {
    background-color: #2b5c84;
    transform: translateY(-2px)
}

.action-btn-vk {
    background-color: #4680C2;
    color: white
}

.action-btn-vk:hover {
    background-color: #3a6ca8;
    transform: translateY(-2px)
}

.action-btn-max {
    background: linear-gradient(135deg, #07F 0, #6200EA 100%);
    color: white
}

.action-btn-max:hover {
    background: linear-gradient(135deg, #06d 0, #50c 100%);
    transform: translateY(-2px)
}

.action-btn-callback {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(90, 169, 165, 0.3)
}

.action-btn-callback:hover {
    background-color: #6bb5be;
    transform: translateY(-2px)
}

.work-info {
    font-size: .85rem;
    color: #4b5f73;
    text-align: right
}

.work-info i {
    color: var(--accent);
    margin-right: 6px
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 59, 94, 0.98);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform .4s ease-in-out;
    border-top: 2px solid var(--accent)
}

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

.cookie-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap
}

.cookie-text {
    flex: 1;
    font-size: .95rem;
    line-height: 1.5
}

.cookie-text i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-right: 12px;
    vertical-align: middle
}

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

.cookie-text a:hover {
    color: white
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    border: none;
    font-size: .9rem
}

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

.cookie-btn-accept:hover {
    background-color: #4a8f8b;
    transform: scale(1.02)
}

.cookie-btn-decline {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3)
}

.cookie-btn-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease
}

.modal.show {
    display: flex;
    opacity: 1
}

.modal__content {
    position: relative;
    max-width: 500px;
    width: 90%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform .3s ease
}

.modal.show .modal__content {
    transform: scale(1)
}

/* Фон модального окна — используем то же изображение */
.modal__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../foto/bg.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.modal__bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.88);
    z-index: 1;
}

.modal__form {
    position: relative;
    z-index: 2;
    padding: 40px 32px
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #4b5f73;
    transition: color .2s;
    z-index: 3
}

.modal__close:hover {
    color: var(--primary)
}

.modal__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    text-align: center
}

.modal__subtitle {
    text-align: center;
    color: #4b5f73;
    font-size: .9rem;
    margin-bottom: 28px
}

.modal__field {
    margin-bottom: 20px
}

.modal__field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2b3a
}

.modal__field input,
.modal__field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all .2s;
    outline: none
}

.modal__field input:focus,
.modal__field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(90, 169, 165, 0.2)
}

.modal__field textarea {
    resize: vertical;
    min-height: 100px
}

.modal__btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all .2s;
    margin-top: 8px
}

.modal__btn:hover {
    background-color: #2b5c84;
    transform: translateY(-2px)
}

.modal__privacy {
    font-size: .7rem;
    text-align: center;
    color: #4b5f73;
    margin-top: 20px
}

.modal__privacy a {
    color: var(--accent);
    text-decoration: none
}

.modal__privacy a:hover {
    text-decoration: underline
}

.modal__success {
    display: none;
    text-align: center;
    padding: 40px 32px
}

.modal__success.show {
    display: block
}

.modal__success i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 16px
}

.modal__success h3 {
    color: var(--primary);
    margin-bottom: 8px
}

.modal__success p {
    color: #4b5f73;
    font-size: .9rem
}

#successClose {
    cursor: pointer
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px 30px;
    margin-top: 20px
}

.specialist-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
    border: 1px solid #e2e8f0;
    cursor: pointer
}

.specialist-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px -16px rgba(15, 59, 94, 0.2)
}

.specialist-photo {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #e8f0f5 0, #d4e2ea 100%);
    overflow: hidden
}

.specialist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease
}

.specialist-card:hover .specialist-photo img {
    transform: scale(1.02)
}

.specialist-info {
    padding: 20px 22px 24px 22px;
    background: white
}

.specialist-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    border-left: 4px solid var(--accent);
    padding-left: 12px
}

.specialist-desc {
    font-size: .95rem;
    color: #4b5f73;
    line-height: 1.5
}

.specialist-desc i {
    color: var(--accent);
    width: 20px;
    margin-right: 6px
}

.badge-experience {
    display: inline-block;
    background: #eef2fa;
    color: var(--primary);
    font-size: .8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 30px;
    margin-top: 12px
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 43, 58, 0.72);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000
}

.lightbox.hidden {
    display: none
}

.lightbox__content {
    position: relative;
    max-width: min(1100px, 100%);
    max-height: min(80vh, 100%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center
}

.lightbox__img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.6)
}

.lightbox__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 44px;
    height: 44px;
    border-radius: 44px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 59, 94, 0.75);
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, background .15s ease
}

.lightbox__close:hover {
    transform: translateY(-1px);
    background: rgba(43, 92, 132, 0.85)
}

.lightbox__caption {
    margin-top: 16px;
    color: white;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 600px
}

.form-card {
    background: white;
    border-radius: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    padding: 32px
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.form-field label {
    font-weight: 600;
    color: #1f2b3a
}

.input,
.textarea,
.select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: white;
    font: inherit;
    color: #1f2b3a;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease
}

.textarea {
    min-height: 140px;
    resize: vertical
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: rgba(90, 169, 165, 0.9);
    box-shadow: 0 0 0 4px rgba(90, 169, 165, 0.18)
}

.help-text {
    color: #4b5f73;
    font-size: .95rem
}

.form-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px
}

.alert {
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafd;
    color: #1f2b3a
}

.alert-success {
    border-color: rgba(90, 169, 165, 0.55);
    background: rgba(90, 169, 165, 0.12)
}

.hidden {
    display: none !important
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4b5f73;
    font-size: .95rem
}

.checkbox-row input {
    margin-top: 3px
}

.text-accent {
    color: var(--accent)
}

.mb-2 {
    margin-bottom: .5rem
}

.mt-4 {
    margin-top: 2rem
}

.badge {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: .9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px
}

@media(max-width:900px) {
    h1 {
        font-size: 2.5rem
    }

    h2 {
        font-size: 2rem
    }

    .header .container {
        flex-direction: column;
        gap: 16px
    }

    .nav-menu {
        justify-content: center;
        gap: 20px
    }

    .hero .container {
        flex-direction: column
    }

    .hero-image {
        width: 100%;
        min-height: 280px
    }

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

    .contact-row {
        flex-direction: column
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .cookie-banner .container {
        flex-direction: column;
        text-align: center
    }

    .cookie-buttons {
        justify-content: center
    }

    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px
    }

    .contact-card {
        padding: 16px 12px
    }

    .contact-card i {
        font-size: 1.8rem
    }

    .contact-card .card-title {
        font-size: .9rem
    }
}

@media(max-width:768px) {
    body {
        padding-bottom: 160px
    }

    .header {
        padding: 10px 0
    }

    .header .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px
    }

    .logo {
        font-size: 1.2rem;
        gap: 6px
    }

    .logo i {
        font-size: 1.4rem
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 12px;
        margin-top: 8px;
        flex-wrap: wrap
    }

    .nav-menu a {
        font-size: .75rem;
        padding: 4px 0
    }

    .header-contacts {
        gap: 6px
    }

    .header-contacts .phone {
        font-size: .75rem
    }

    .header-contacts .phone i {
        display: none
    }

    .btn-outline {
        padding: 4px 10px !important;
        font-size: .7rem
    }

    .main-footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px
    }

    .footer-right {
        justify-content: center
    }

    .footer-address {
        text-align: center
    }

    .address-item {
        justify-content: center
    }

    .address-item span {
        text-align: center
    }

    .fixed-action-bar .container {
        flex-direction: column;
        text-align: center
    }

    .work-info {
        text-align: center
    }

    .action-buttons {
        justify-content: center
    }

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

    .cookie-banner {
        padding: 8px 0
    }

    .cookie-banner .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px
    }

    .cookie-text {
        font-size: .65rem;
        text-align: left;
        line-height: 1.3
    }

    .cookie-text i {
        font-size: .8rem;
        margin-right: 4px
    }

    .cookie-text br {
        display: none
    }

    .cookie-buttons {
        gap: 6px;
        flex-shrink: 0
    }

    .cookie-btn {
        padding: 4px 10px;
        font-size: .65rem
    }

    .fixed-action-bar {
        padding: 6px 0
    }

    .fixed-action-bar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px
    }

    .action-buttons {
        gap: 6px;
        flex-wrap: nowrap
    }

    .action-btn {
        padding: 6px 12px;
        font-size: .7rem
    }

    .action-btn i {
        font-size: .85rem;
        margin-right: 4px
    }

    .work-info {
        font-size: .6rem;
        text-align: right;
        white-space: nowrap
    }

    .work-info i {
        font-size: .7rem;
        margin-right: 3px
    }

    .work-info br {
        display: none
    }

    .work-info span {
        display: inline;
        font-size: .55rem
    }

    .lightbox__caption {
        font-size: .7rem;
        padding: 10px 12px;
        word-wrap: break-word;
        white-space: normal;
        line-height: 1.4;
        max-height: 35vh;
        overflow-y: auto
    }

    .lightbox__img {
        max-height: 50vh;
        object-fit: contain
    }

    .lightbox__content {
        max-width: 95%;
        max-height: 90vh;
        display: flex;
        flex-direction: column
    }
}

@media(max-width:600px) {
    .gallery {
        grid-template-columns: 1fr
    }

    .stats-grid {
        flex-direction: column;
        gap: 20px
    }

    .modal__form {
        padding: 32px 24px
    }

    .modal__title {
        font-size: 1.5rem
    }
}

@media(max-width:480px) {
    .action-btn span {
        display: none
    }

    .action-btn {
        padding: 6px 10px;
        gap: 0
    }

    .action-btn i {
        margin-right: 0;
        font-size: 1rem
    }

    .work-info {
        white-space: normal;
        text-align: center;
        max-width: 100px
    }

    .work-info span {
        display: none
    }

    .cookie-text {
        font-size: .6rem
    }

    .cookie-btn {
        padding: 3px 8px;
        font-size: .6rem
    }

    .lightbox__caption {
        font-size: .6rem;
        padding: 8px 10px;
        max-height: 30vh
    }

    .lightbox__img {
        max-height: 45vh
    }
}

.footer-legal {
    text-align: center
}

.legal-info {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
    font-size: .7rem;
    color: rgba(255, 255, 255, 0.5)
}

.legal-info span {
    letter-spacing: .3px
}

@media(max-width:600px) {
    .legal-info {
        flex-direction: column;
        gap: 4px
    }
}

.footer-links {
    margin-top: 8px;
    font-size: .75rem
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none
}

.footer-links a:hover {
    color: white
}

@media(max-width:768px) {
    .main-footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px
    }

    .footer-right {
        justify-content: center
    }

    .footer-address {
        text-align: center
    }

    .address-item {
        justify-content: center
    }

    .address-item span {
        text-align: center
    }
}