/* ============================================
   INFO PAGES - Информационные страницы
   ============================================ */

.infoPage {
    padding: 80px 20px 40px;
    min-height: calc(100vh - 200px);
}

.infoPage_container {
    max-width: 1200px;
    margin: 0 auto;
}

.infoPage_title {
    font-family: 'Unbounded', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 60px;
}

.infoPage_content {
    background: #fff;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* ============================================
   SECTIONS
   ============================================ */

.infoSection {
    margin-bottom: 50px;
}

.infoSection:last-child {
    margin-bottom: 0;
}

.infoSection_title {
    font-family: 'Unbounded', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.infoSection_intro {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.infoSection_content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.infoSection_content p {
    margin-bottom: 16px;
}

.infoList {
    list-style: none;
    padding: 0;
}

.infoList li {
    padding-left: 30px;
    margin-bottom: 16px;
    position: relative;
}

.infoList li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.infoLink {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s;
}

.infoLink:hover {
    color: #45a049;
    text-decoration: underline;
}

/* ============================================
   GALLERY - Галерея работ
   ============================================ */

.gallery-section {
    margin: 60px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #f5f5f5;
    aspect-ratio: 1 / 1;
}

/* Разные размеры для галереи - более сбалансированные */
.gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1 / 1;
}

.gallery-item--wide {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

.gallery-item--tall {
    grid-row: span 2;
    aspect-ratio: 1 / 2;
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

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

.gallery-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

/* ============================================
   LEGAL INFO - Юридическая информация
   ============================================ */

.legal-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #e0e0e0;
}

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

.legal-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.legal-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.legal-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* ============================================
   CONTACTS - Контакты
   ============================================ */

.contacts-section {
    margin-top: 30px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.contact-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.15);
    transform: translateY(-4px);
}

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

.contact-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.contact-value {
    font-size: 16px;
    color: #4CAF50;
    font-weight: 500;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.contact-value:hover {
    color: #45a049;
}

.contact-desc {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 12px 0;
}

.social-link {
    color: #4CAF50;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #4CAF50;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.social-link:hover {
    background: #4CAF50;
    color: #fff;
}

.work-schedule {
    margin: 12px 0;
}

.work-schedule p {
    margin: 8px 0;
    color: #333;
}

/* Map */
.map-section {
    margin-top: 60px;
}

.map-image-container {
    margin-top: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   DELIVERY - Доставка
   ============================================ */

.alert {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.alert-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-danger {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.delivery-zones {
    margin-bottom: 60px;
}

.delivery-map {
    margin: 40px 0;
}

.delivery-map-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* Zones table */
.zones-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.zone-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.zone-row:last-child {
    border-bottom: none;
}

.zone-header {
    background: #4CAF50;
    color: #fff;
    font-weight: 600;
}

.zone-cell {
    display: flex;
    align-items: center;
}

.zone-name {
    font-weight: 500;
    color: #333;
}

.zone-price {
    color: #4CAF50;
    font-weight: 600;
    font-size: 18px;
}

.zone-time {
    color: #666;
}

/* Terms */
.delivery-terms {
    margin: 60px 0;
}

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

.term-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

.term-number {
    width: 60px;
    height: 60px;
    background: #4CAF50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.term-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.term-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Info blocks */
.delivery-info {
    margin: 60px 0;
}

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

.info-block {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 16px;
}

.info-block h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.info-block ul {
    list-style: none;
    padding: 0;
}

.info-block ul li {
    padding-left: 24px;
    margin-bottom: 12px;
    position: relative;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.info-block ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.delivery-contact {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 16px;
    text-align: center;
}

.delivery-contact p {
    margin: 8px 0;
}

.delivery-contact a {
    color: #4CAF50;
    text-decoration: none;
}

.delivery-contact a:hover {
    text-decoration: underline;
}

/* ============================================
   OFERTA - Оферта
   ============================================ */

.oferta-section {
    text-align: center;
}

.oferta-intro {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: left;
}

.oferta-download {
    margin: 60px 0;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 24px 40px;
    background: #4CAF50;
    color: #fff;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.download-button:hover {
    background: #45a049;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

.download-icon {
    font-size: 48px;
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.download-text strong {
    font-size: 18px;
    font-weight: 600;
}

.download-text small {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
}

.oferta-info,
.oferta-contact {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.oferta-info h2,
.oferta-contact h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.oferta-info ul {
    list-style: none;
    padding: 0;
}

.oferta-info ul li {
    padding-left: 30px;
    margin-bottom: 12px;
    position: relative;
    line-height: 1.6;
}

.oferta-info ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-size: 24px;
    line-height: 1;
}

.oferta-contact p {
    margin: 8px 0;
}

.oferta-contact a {
    color: #4CAF50;
    text-decoration: none;
}

.oferta-contact a:hover {
    text-decoration: underline;
}

/* ============================================
   AGREEMENTS - Соглашения
   ============================================ */

.agreement-section {
    max-width: 900px;
    margin: 0 auto;
}

.agreement-note {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.agreement-content {
    margin: 40px 0;
}

.agreement-article {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.agreement-article:last-child {
    border-bottom: none;
}

.agreement-article h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.agreement-article p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}

.agreement-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
    color: #666;
}

.agreement-footer p {
    margin: 12px 0;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .infoPage {
        padding: 60px 15px 30px;
    }

    .infoPage_title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .infoPage_content {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .infoSection_title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .infoSection_intro {
        font-size: 16px;
    }

    .infoSection_content {
        font-size: 15px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item--large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item--wide {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item--tall {
        grid-column: span 1;
        grid-row: span 2;
    }

    /* Legal */
    .legal-info {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Contacts */
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Delivery */
    .zone-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .zone-cell {
        justify-content: space-between;
    }

    .zone-cell:before {
        content: attr(data-label);
        font-weight: 600;
        color: #999;
        font-size: 13px;
    }

    .terms-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .info-blocks {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Oferta */
    .download-button {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        text-align: center;
    }

    .download-text {
        align-items: center;
        text-align: center;
    }

    .download-icon {
        font-size: 36px;
    }

    .download-text strong {
        font-size: 16px;
    }

    /* Agreements */
    .agreement-article h2 {
        font-size: 18px;
    }

    .agreement-article p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .infoPage_title {
        font-size: 26px;
    }

    .infoPage_content {
        padding: 20px 15px;
    }

    .infoSection_title {
        font-size: 20px;
    }

    /* Gallery - одна колонка */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-item--large,
    .gallery-item--wide,
    .gallery-item--tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-icon {
        font-size: 36px;
    }

    .term-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .zone-price {
        font-size: 16px;
    }
}
