/* ========================================
   GC Glass Строй - Responsive Styles
   Адаптивная верстка для всех устройств
   ======================================== */

/* === Tablets (1024px and below) === */
@media screen and (max-width: 1024px) {
    :root {
        --section-padding: 60px;
    }

    .container {
        padding: 0 30px;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 32px;
    }

    .header-nav {
        margin: 0 20px;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-menu a {
        font-size: 13px;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .calculator-widget {
        padding: 40px;
    }

    .calculator-results {
        grid-template-columns: repeat(2, 1fr);
    }

    .guarantee-content {
        gap: 30px;
    }

    .location-info {
        gap: 30px;
    }

    /* Gallery Section */
    .gallery-main {
        height: 500px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }

    /* Office Map Tablet */
    .office-map iframe {
        height: 600px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* === Small Tablets (768px and below) === */
@media screen and (max-width: 768px) {
    :root {
        --section-padding: 50px;
        --mobile-padding: 30px;
    }

    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    /* Hero Section Mobile */
    .hero {
        padding: var(--mobile-padding) 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Calculator Mobile */
    .calculator-widget {
        padding: 30px 20px;
    }

    .calculator-results {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .result-item {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 15px;
        padding: 20px;
    }

    .result-icon {
        font-size: 40px;
        width: 60px;
        height: 60px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    /* Clients Gallery Mobile */
    .clients-main {
        height: 500px;
    }

    .clients-thumb-item {
        flex: 0 0 calc((100% - 45px) / 4);
        min-width: 120px;
    }

    .clients-thumb {
        padding: 0;
    }

    .clients-name {
        font-size: 12px;
    }

    /* Map Stats Mobile */
    .map-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    /* Process Timeline Mobile */
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

    .process-timeline::before {
        display: none;
    }

    .timeline-number {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .timeline-content {
        padding: 18px 12px;
    }

    .timeline-content h3 {
        font-size: 16px;
    }

    .timeline-content p {
        font-size: 13px;
    }

    /* Gallery Mobile */
    .gallery-main {
        height: 400px;
        border-radius: 12px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-nav .material-icons {
        font-size: 28px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-counter {
        font-size: 14px;
        padding: 8px 16px;
        bottom: 15px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
        max-height: 180px;
    }

    .gallery-thumb {
        border: 2px solid transparent;
    }

    .gallery-cta {
        margin-top: 30px;
    }

    /* Office Map Mobile */
    .office-map iframe {
        height: 600px;
    }

    /* Guarantee Content Mobile */
    .guarantee-content {
        grid-template-columns: 1fr;
    }

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

    /* Promo Section Mobile */
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .promo-buttons {
        flex-direction: column;
    }

    #timer {
        font-size: 28px;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-messenger {
        padding: 10px 18px;
        font-size: 15px;
    }

    .footer-messenger svg {
        width: 19px;
        height: 19px;
    }

    /* Modal Mobile */
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        padding: 30px 20px;
    }

    .modal-title {
        font-size: 24px;
    }

    .timer-display {
        font-size: 36px;
    }

    .modal-contact-links {
        flex-direction: column;
    }

    .contact-link {
        justify-content: center;
    }

    .location-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .location-map iframe {
        height: 300px;
    }

    .image-modal-close {
        top: -45px;
        width: 45px;
        height: 45px;
        font-size: 30px;
    }

    .privacy-body h2 {
        font-size: 24px;
    }

    .privacy-body h3 {
        font-size: 18px;
    }
}

/* === Mobile Phones (480px and below) === */
@media screen and (max-width: 480px) {
    :root {
        --section-padding: 40px;
        --mobile-padding: 25px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 16px;
    }

    /* Hero Mobile */
    .hero-logo {
        height: 60px;
    }

    .company-slogan {
        font-size: 14px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-benefits li {
        font-size: 14px;
        padding: 10px 0 10px 25px;
    }

    .hero-benefits li::before {
        font-size: 16px;
    }

    /* Section Titles Mobile */
    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    /* Calculator Mobile */
    .calculator-widget {
        padding: 25px 15px;
    }

    .calculator-control label {
        font-size: 16px;
    }

    #area-value {
        font-size: 16px;
    }

    .result-item {
        flex-direction: column;
        text-align: center;
    }

    .result-icon {
        font-size: 36px;
        width: 70px;
        height: 70px;
    }

    .result-value {
        font-size: 20px;
    }

    .result-description {
        font-size: 12px;
    }

    /* Clients Gallery Mobile */
    .clients-main {
        height: 400px;
    }

    .clients-nav {
        width: 40px;
        height: 40px;
    }

    .clients-nav .material-icons {
        font-size: 28px;
    }

    .clients-prev {
        left: 10px;
    }

    .clients-next {
        right: 10px;
    }

    .clients-counter {
        font-size: 14px;
        padding: 8px 16px;
    }

    .clients-thumb-item {
        flex: 0 0 calc((100% - 30px) / 3);
        min-width: 100px;
    }

    .clients-thumb {
        padding: 0;
    }

    .clients-thumbnails-wrapper {
        padding: 0 50px;
    }

    .clients-name {
        font-size: 11px;
    }

    .clients-thumb-nav {
        width: 40px;
        height: 40px;
    }

    .clients-thumb-prev {
        left: 5px;
    }

    .clients-thumb-next {
        right: 5px;
    }

    .clients-thumb-nav .material-icons {
        font-size: 24px;
    }

    /* Gallery Mobile Small */
    .gallery-main {
        height: 300px;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
    }

    .gallery-nav .material-icons {
        font-size: 24px;
    }

    .gallery-prev {
        left: 5px;
    }

    .gallery-next {
        right: 5px;
    }

    .gallery-counter {
        font-size: 12px;
        padding: 6px 12px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 6px;
        max-height: 150px;
    }

    .gallery-cta {
        margin-top: 25px;
    }

    /* Office Map Mobile */
    .office-map iframe {
        height: 400px;
    }

    /* Map Stats Mobile */
    .map-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 20px;
    }

    .stat-number {
        font-size: 24px;
    }

    /* Process Timeline Mobile */
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .process-timeline::before {
        display: none;
    }

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

    .timeline-content {
        padding: 15px;
    }

    .timeline-content h3 {
        font-size: 16px;
    }

    .timeline-content p {
        font-size: 13px;
    }

    .timeline-duration {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Guarantee Section Mobile */
    .guarantee-text li {
        font-size: 14px;
        padding: 10px 0 10px 25px;
    }

    .guarantee-certificates {
        grid-template-columns: 1fr;
    }

    /* Promo Section Mobile */
    .promo-timer {
        font-size: 18px;
    }

    #timer {
        font-size: 24px;
    }

    .promo-item h3 {
        font-size: 16px;
        padding: 15px;
    }

    .promo-item p {
        font-size: 14px;
        padding: 0 15px 15px;
    }

    /* Footer Mobile */
    .footer {
        padding: 40px 0 15px;
    }

    .footer-section h3 {
        font-size: 16px;
    }

    .footer-logo img {
        height: 50px;
    }

    .footer-description,
    .footer-contacts,
    .footer-nav {
        font-size: 13px;
    }

    .footer-messenger {
        padding: 8px 16px;
        font-size: 14px;
    }

    .footer-messenger svg {
        width: 18px;
        height: 18px;
    }

    .footer-legal p,
    .footer-links a {
        font-size: 11px;
    }

    /* Modal Mobile */
    .modal-close {
        width: 35px;
        height: 35px;
        top: 15px;
        right: 15px;
        font-size: 20px;
    }

    .modal-body {
        padding: 40px 15px 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-subtitle {
        font-size: 14px;
    }

    .timer-display {
        font-size: 32px;
    }

    .form-group input {
        padding: 12px 16px;
        font-size: 15px;
    }

    .form-group-checkbox label {
        font-size: 12px;
    }

    .modal-contacts {
        font-size: 14px;
    }

    .contact-link {
        font-size: 13px;
        padding: 10px 15px;
    }

    .location-details h3 {
        font-size: 18px;
    }

    .location-details h4 {
        font-size: 16px;
    }

    .location-details p {
        font-size: 14px;
    }
}

/* === Very Small Phones (360px and below) === */
@media screen and (max-width: 360px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 20px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .calculator-widget {
        padding: 20px 12px;
    }

    .result-item {
        padding: 15px;
    }

    .office-map iframe {
        height: 350px;
    }

    .clients-main {
        height: 300px;
    }

    .clients-nav {
        width: 36px;
        height: 36px;
    }

    .clients-nav .material-icons {
        font-size: 24px;
    }

    .clients-prev {
        left: 5px;
    }

    .clients-next {
        right: 5px;
    }

    .clients-counter {
        font-size: 12px;
        padding: 6px 12px;
    }

    .clients-thumb-item {
        flex: 0 0 calc((100% - 15px) / 2);
        min-width: 80px;
    }

    .clients-thumb {
        padding: 0;
    }

    .clients-thumbnails-wrapper {
        padding: 0 45px;
    }

    .clients-name {
        font-size: 10px;
        margin-top: 5px;
    }

    .clients-thumb-nav {
        width: 36px;
        height: 36px;
    }

    .clients-thumb-prev {
        left: 5px;
    }

    .clients-thumb-next {
        right: 5px;
    }

    .clients-thumb-nav .material-icons {
        font-size: 20px;
    }

    .timeline-number {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .modal-body {
        padding: 35px 12px 15px;
    }

    .image-modal-content {
        max-width: 98vw;
        max-height: 98vh;
    }

    .image-modal-close {
        top: 5px;
        right: 5px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}

/* === Landscape Orientation for Mobile === */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-benefits {
        margin: 20px 0;
    }

    .hero-buttons {
        margin: 20px 0;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-body {
        padding: 30px 20px;
    }

    .image-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}

/* === Print Styles === */
@media print {
    .header,
    .mobile-menu-toggle,
    .hero-buttons,
    .btn,
    .modal,
    .footer-messengers {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    h1 {
        font-size: 24pt;
    }

    h2 {
        font-size: 20pt;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}
