/* Робинзон Landing — styles.css */

@font-face {
    font-family: 'Tektur';
    src: url('/landing/fonts/Tektur/Tektur-VariableFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.tektur-font {
    font-family: 'Tektur', sans-serif;
    color: #333;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: url('/landing/images/back.png') repeat;
    background-size: 300px 300px;
    background-attachment: scroll;
}

.content {
    position: relative;
    z-index: 1;
    font-size: 20px;
}

/* Navbar */
.navbar {
    margin-bottom: 0;
    background-color: #007bff !important;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.no-copy {
    user-select: none;
    -webkit-user-drag: none;
}

/* Hero / Jumbotron */
.jumbotron-yellow {
    background-color: #f7f7f7;
    padding: 100px 25px;
    color: #333;
}

.jumbotron-grey {
    background-color: #f7f7f7;
    padding: 100px 25px;
    color: #333;
}

/* Advantages */
.advantages {
    background: #f7f7f7;
    padding: 40px 20px;
    text-align: center;
}

.start-section {
    width: 100%;
    position: relative;
}

.about-section {
    padding: 45px 0 70px;
}

.about-section__items {
    display: flex;
    color: #444;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.about-section__item {
    max-width: 296px;
    min-width: 200px;
    flex: 1 1 200px;
}

.about-section__item-text {
    font-size: 20px;
    line-height: 32px;
}

.about-section__item-img {
    object-fit: contain;
    height: auto;
    align-self: flex-start;
}

.advantages .about-section {
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
}

.advantages .about-section__items {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.advantages .about-section__item {
    min-width: 220px;
    max-width: 270px;
    flex: 1 1 220px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.advantages .about-section__item-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.advantages .about-section__item-text {
    font-size: 16px;
    line-height: 24px;
    color: #444;
    font-weight: 500;
}

/* Services */
#services h2, #gallery h2, #contacts h2 {
    margin-bottom: 30px;
}

.service-card {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 12px;
    width: 350px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    color: #333;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
}

.service-img {
    display: block;
    margin: 0 auto;
    width: 250px;
    height: auto;
}

.service-card button {
    margin-bottom: 15px;
}

/* Gallery */
.gallery-section {
    background: #007bff;
    padding: 80px 20px;
    color: #fff;
    text-align: center;
}

.gallery-section h2 {
    font-size: 48px;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Map */
#map {
    margin-top: 20px;
}

/* Footer / правовая информация */
.landing-legal-footer {
    background-color: #e8e8e8;
    border-top: 1px solid #ccc;
    color: #333;
}

.landing-legal-footer h3 {
    color: #222;
}

.landing-legal-nav {
    font-size: 0.95rem;
    line-height: 1.8;
}

.landing-legal-nav a {
    color: #0056b3;
    text-decoration: underline;
}

.landing-legal-nav a:hover {
    color: #003d82;
}

.landing-legal-sep {
    color: #888;
    margin: 0 0.35rem;
}

@media (max-width: 576px) {
    .landing-legal-sep {
        display: none;
    }

    .landing-legal-nav a {
        display: block;
        margin: 0.25rem 0;
    }
}

/* Modal */
.modal {
    z-index: 1050 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

.modal-body p {
    font-size: 16px;
}

/* Container override */
.container {
    max-width: 1400px;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid img:nth-last-child(1):nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media only screen and (max-width: 639px) {
    .advantages {
        display: none;
    }
}

@media only screen and (max-width: 1279px) {
    .advantages .about-section__items {
        justify-content: center;
    }

    .advantages .about-section__item {
        max-width: 200px;
    }

    .advantages .about-section__item-text {
        font-size: 14px;
        line-height: 20px;
    }
}

@media only screen and (max-width: 639px) {
    .advantages .about-section__items {
        flex-direction: column;
        gap: 30px;
    }

    .advantages .about-section__item {
        max-width: 100%;
    }

    .advantages .about-section__item-img {
        width: 80px;
        height: 80px;
    }

    .advantages .about-section__item-text {
        font-size: 14px;
        line-height: 20px;
    }
}
