/* ===========================================
   ТехАвтозапчасть - Адаптивные стили
   =========================================== */

:root {
    --primary-color: rgba(0, 0, 0, 0.8);
    --accent-color: #e94560;
    --text-dark: #333;
    --text-medium: #555;
    --text-light: #777;
    --bg-light: #f5f5f5;
    --bg-white: #fff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    margin: 0;
    padding: 0;
    background: #e8e8e8;
    line-height: 1.6;
}

/* ===========================================
   HEADER
   =========================================== */
header {
    display: flex;
    justify-content: space-between;
    background-color: var(--primary-color);
    color: white;
    padding: 1em;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-details {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
    justify-content: space-between;
    margin-right: 2%;
}

#brand-name {
    font-size: 2em;
    font-family: 'Courier New', Courier, monospace;
}

.header-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: 'Courier New', Courier, monospace;
}

.work-hours {
    margin-left: auto;
    margin-right: 1%;
    text-align: right;
}

#phones {
    font-family: 'Roboto Mono', monospace;
    font-weight: 300;
    font-size: 1.5em;
}

#phones a {
    color: white;
    text-decoration: none;
}

#phones a:hover {
    text-decoration: underline;
}

.header-contacts {
    font-size: 1.5em;
}

.nav-button {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    margin: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: white;
    color: black;
}

.phone-icon {
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    transition: transform 0.2s;
}

.phone-icon:hover {
    transform: scale(1.1);
}

.header-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-icons a {
    display: flex;
    align-items: center;
}

/* ===========================================
   MAIN CONTENT
   =========================================== */
main {
    width: 85%;
    max-width: 1400px;
    margin: auto;
}

/* ===========================================
   INTRO / HERO SECTION
   =========================================== */
#intro {
    color: white;
    text-shadow: 2px 5px 7px black;
    font-size: 4em;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-bottom: 10vh;
    padding-top: 10vh;
    padding-left: 50px;
    padding-right: 50px;
}

#intro-content {
    text-align: center;
    width: 100%;
}

#intro-content h1 {
    margin-top: 15%;
    font-size: 1em;
    margin-block-start: 0;
    margin-block-end: 0;
}

#intro-content .tagline {
    font-size: 24px;
    color: white;
    text-shadow: 2px 3px 5px black;
    margin-top: 20px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

.cta-button:hover {
    background-color: #ff6b6b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.5);
}

/* ===========================================
   SECTIONS BASE
   =========================================== */
#categories, #banner1, #text1, #banner2, #text2, #banner3, #text3 {
    background-size: cover;
    background-position: center;
    padding: 50px 40px;
}

/* ===========================================
   TEXT1 - INFO SECTION
   =========================================== */
#text1 {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 50px 40px;
}

#text1 h1 {
    font-size: 2.2em;
    color: var(--text-dark);
    margin-bottom: 15px;
}

#text1 p {
    font-size: 1.1em;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 20px;
}

.info-container {
    display: flex;
    flex-direction: column;
}

.info-text {
    margin-bottom: 30px;
}

.tech-categories {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
    margin-top: 20px;
}

.tech-category, .brands {
    flex: 1;
    min-width: 0;
}

.tech-category h2, .brands h2 {
    font-size: 1.4em;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.tech-category ul {
    list-style-type: none;
    padding-left: 0;
}

.tech-category li {
    font-size: 1.05em;
    color: var(--text-medium);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.tech-category li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.brands p {
    font-size: 1.1em;
    color: var(--text-medium);
    line-height: 1.6;
}

.brands .brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.brand-tag {
    background: #1a1a2e;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95em;
}

/* ===========================================
   BANNERS
   =========================================== */
#intro, #banner1, #banner2, #banner3 {
    background-attachment: fixed;
}

#banner1, #banner2, #banner3 {
    padding-bottom: 0;
}

#banner2 {
    height: 25vh;
    min-height: 150px;
}

#banner3 {
    height: 40vh;
    min-height: 200px;
}

.banner-content {
    padding: 60px 20px;
    text-align: center;
}

.banner-content h2 {
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    font-size: 2.5em;
    margin: 0;
}

/* ===========================================
   CATEGORIES SECTION
   =========================================== */
#categories {
    display: flex;
    flex-direction: column;
    gap: 25px;
    background-color: var(--bg-white);
    border-radius: 12px;
}

.category {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.category img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.categories-content {
    flex: 1;
}

.categories-content h3 {
    font-size: 1.3em;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.categories-content p {
    font-size: 1em;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.6;
}

/* ===========================================
   CONTACT SECTION (TEXT3)
   =========================================== */
#text3 {
    background-color: var(--bg-white);
    border-radius: 12px;
    text-align: center;
    padding: 60px 40px;
}

#text3 h2 {
    font-size: 2em;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.manager {
    text-align: center;
}

.manager strong {
    font-size: 1.3em;
    color: var(--text-dark);
    display: block;
    margin-bottom: 10px;
}

.manager p {
    margin: 5px 0;
}

.manager a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
}

.manager a:hover {
    text-decoration: underline;
}

.messaging-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.messaging-icons span {
    font-weight: 500;
    color: var(--text-medium);
}

.messaging-icons a {
    display: flex;
    align-items: center;
}

.messaging-icons .phone-icon {
    width: 2em;
    height: 2em;
}

.address {
    font-size: 1.1em;
    color: var(--text-dark);
    margin-top: 20px;
}

.address strong {
    color: var(--accent-color);
}

/* ===========================================
   FOOTER
   =========================================== */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1em;
    text-align: center;
}

#footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

#contact-info {
    text-align: left;
    line-height: 1.8;
}

#contact-info a {
    color: white;
    text-decoration: none;
}

#contact-info a:hover {
    text-decoration: underline;
}

#copyright {
    opacity: 0.8;
    font-size: 0.9em;
}

#developer-info {
    text-align: right;
    opacity: 0.7;
    font-size: 0.85em;
}

/* ===========================================
   FLOATING CALL BUTTON (Mobile)
   =========================================== */
.floating-call {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.floating-call svg {
    width: 28px;
    height: 28px;
    fill: white;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(233, 69, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0); }
}

/* ===========================================
   MOBILE STYLES
   =========================================== */
@media screen and (max-width: 992px) {
    main {
        width: 95%;
    }
    
    .tech-categories {
        flex-direction: column;
        gap: 25px;
    }
    
    .tech-category, .brands {
        width: 100%;
    }
    
    .contact-info {
        gap: 40px;
    }
}

@media screen and (max-width: 768px) {
    /* Disable parallax on mobile - it breaks on iOS */
    #intro, #banner1, #banner2, #banner3 {
        background-attachment: scroll;
    }
    
    /* Header Mobile */
    header {
        padding: 0.8em;
    }
    
    .header-details {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    #brand-name {
        font-size: 1.3em;
        order: 1;
        width: 100%;
        text-align: center;
    }
    
    .work-hours {
        display: none;
    }
    
    .header-block.header-contacts:not(#phones) {
        display: none;
    }
    
    #phones {
        font-size: 1em;
        order: 2;
    }
    
    .header-icons {
        order: 3;
    }
    
    nav {
        order: 4;
    }
    
    .nav-button {
        padding: 10px 16px;
        font-size: 0.9em;
    }
    
    /* Main Mobile */
    main {
        width: 100%;
    }
    
    /* Intro Mobile */
    #intro {
        font-size: 1em;
        padding: 50px 20px;
    }
    
    #intro-content h1 {
        font-size: 2.2em;
        margin-top: 30px;
    }
    
    #intro-content .tagline {
        font-size: 1.1em;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 1em;
    }
    
    /* Sections Mobile */
    #categories, #text1, #text3 {
        padding: 30px 20px;
        border-radius: 0;
    }
    
    #text1 h1 {
        font-size: 1.7em;
    }
    
    .banner-content h2 {
        font-size: 1.8em;
    }
    
    /* Categories Mobile */
    .category {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .category img {
        width: 100%;
        max-width: 200px;
        height: auto;
        margin: 0 auto;
    }
    
    .categories-content h3 {
        font-size: 1.2em;
    }
    
    /* Contact Mobile */
    #text3 h2 {
        font-size: 1.5em;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Footer Mobile */
    #footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    #contact-info, #developer-info {
        text-align: center;
    }
    
    /* Floating Call Button - Show on Mobile */
    .floating-call {
        display: flex;
    }
    
    /* Brands tags mobile */
    .brands .brand-list {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    #intro-content h1 {
        font-size: 1.8em;
        margin-top: 20px;
    }
    
    #intro-content .tagline {
        font-size: 1em;
    }
    
    #text1 h1 {
        font-size: 1.4em;
    }
    
    .tech-category h2, .brands h2 {
        font-size: 1.2em;
    }
    
    .banner-content h2 {
        font-size: 1.4em;
    }
    
    .category img {
        max-width: 150px;
    }
    
    .brand-tag {
        padding: 6px 12px;
        font-size: 0.85em;
    }
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */
p, ul {
    font-size: 1em;
    color: var(--text-medium);
}

b {
    color: var(--text-dark);
}
