/* Global Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --page-width: 1024px; /* Landscape A4 width approximately */
}

/* Base Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 2rem 0;
    background-color: #e9ecef;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-container {
    width: 100%;
    max-width: var(--page-width);
    min-height: 100vh;
    background-color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    margin: 125px auto 0;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: calc(var(--page-width) - 40px);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--page-width);
    height: 125px;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1000;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.header .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 100%;
}

.logo h1 {
    margin: 0;
    color: #ffffff !important;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.contact-info {
    display: flex;
    align-items: center;
}

.contact-btn {
    background-color: transparent !important;
    border: 2px solid #FFD700 !important;
    color: #ffffff !important;
    padding: 0.8rem 2rem !important;
    font-weight: bold !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: #FFD700 !important;
    color: #000000 !important;
    transform: translateY(-2px);
}

/* Политика */
 .policy-section a {
    text-decoration: none;
    color: inherit;
}
.policy-section a:hover {
    text-decoration: underline;
    color: gray;
}


/* Contacts Section */
.contacts-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.contacts-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.contacts-grid {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.contacts-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1.5rem;
}

.contacts-table td {
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-label {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.messenger-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.messenger-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    color: inherit;
    transition: all 0.3s ease;
    min-width: 180px;
    background-color: transparent;
}

.messenger-link.whatsapp {
    color: #25D366;
    border: 2px solid #25D366;
}

.messenger-link.whatsapp:hover {
    background-color: rgba(37, 211, 102, 0.1);
}

.messenger-link.telegram {
    color: #0088cc;
    border: 2px solid #0088cc;
}

.messenger-link.telegram:hover {
    background-color: rgba(0, 136, 204, 0.1);
}

.contact-value.email {
    color: #e74c3c;
    background-color: transparent;
    border: 2px solid #e74c3c;
}

.contact-value.email:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

.messenger-link:hover,
.contact-value:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-form h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    body {
        padding: 0;
    }

    .page-container {
        box-shadow: none;
    }

    .header {
        background-size: cover;
        background-position: center;
    }

    .logo h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .contact-info {
        flex-direction: column;
        width: 100%;
    }

    .contacts-table td {
        display: block;
        margin-bottom: 1rem;
    }

    .messenger-links {
        flex-direction: column;
        gap: 1rem;
    }

    .messenger-link {
        width: 100%;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .header {
        height: auto;
        min-height: 100px;
        padding: 1rem 0;
        background-size: cover !important;
    }

    .navbar {
        flex-direction: column;
        gap: 0.8rem;
    }

    .logo h1 {
        font-size: 1.5rem;
        padding: 0 1rem;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }

    .contact-info {
        width: auto;
    }

    .contact-btn {
        padding: 0.6rem 1.5rem !important;
        font-size: 0.9rem;
    }

    .messenger-link {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        min-height: 90px;
        background-size: cover !important;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .contact-btn {
        padding: 0.5rem 1.2rem !important;
        font-size: 0.85rem;
    }
}

/* Section Styles */
section {
    padding: 2rem 0;
}

section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: bold;
}

/* Price */
.prices-container {
    width: 80%;
    margin: 2rem auto;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.prices-heading {
    text-align: center;
    color: #4c4e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.prices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.prices-table th, .prices-table td {
    padding: 12px;
    text-align: left;
    border: 2px solid #2c3e50; /* Dark grey borders */
}

.prices-table th {
    background-color: #666b6e;
    color: #fff;
}

.prices-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.prices-table th, .prices-table td {
    border: 2px solid #4d4f52; /* Явный цвет */
}

/* Map Section */
.map-section {
    background-color: white;
    padding: 3rem 0;
}

.map-container {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.map-wrapper {
    flex: 1;
    min-width: 0;
}

#map {
    width: 100%;
    height: 490px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.address-wrapper {
    flex: 1;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.address-wrapper h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.address-details {
    font-size: 1.1rem;
    line-height: 1.8;
}

.address-details p {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.address-details i {
    color: var(--primary-color);
    margin-top: 0.3rem;
}

@media (max-width: 992px) {
    .map-container {
        flex-direction: column;
    }

    .map-wrapper,
    .address-wrapper {
        width: 100%;
    }

    #map {
        height: 300px;
    }
}

/* Certificates Section */
.certificates-section {
    padding: 3rem 0;
    background-color: var(--light-bg);
}

.certificates-carousel {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.carousel-inner {
    text-align: center;
}

.carousel-item {
    text-align: center;
    cursor: pointer;
}

.carousel-item img {
    display: inline-block;
    max-width: 300px;
    height: 400px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    margin: 0 auto;
}

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

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

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

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

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    bottom: -40px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.5;
}

.carousel-indicators button.active {
    opacity: 1;
}

/* Modal для увеличенного изображения */
.modal-certificate .modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
}

.modal-certificate .modal-content {
    background: transparent;
    border: none;
}

.modal-certificate img {
    max-width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

@media (max-width: 768px) {
    .certificates-carousel {
        padding: 1rem;
    }

    .carousel-item img {
        max-width: 250px;
        height: 350px;
    }

    .carousel-control-prev {
        left: 5px;
    }

    .carousel-control-next {
        right: 5px;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

.footer p {
    color: #ffffff;
    margin: 0;
    font-size: 1rem;
}

/* Products Section */
.products-section {
    padding: 4rem 0;
    background-color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-frame {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
}

.product-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 1rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 0.5rem;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
} 