/* ================== BASE ================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #ffffff;
    color: #111;
    overflow-x: hidden;
}

/* ================== SECTIONS ================== */
.section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
    background: #dddddd;
    border-radius: 24px;
}

/* ================== TYPOGRAPHY ================== */
.section h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.section p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

/* ================== HERO ================== */
.hero {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px 30px;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    width: 100%;
    max-width: 460px;
    border-radius: 20px;
    display: block;
    margin-left: auto;
}

/* ================== BUTTONS ================== */
.actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn {
    background: #112f59;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 47, 89, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.phone {
    display: inline-flex;
    align-items: center;
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: 600;
    color: #112f59;
    white-space: nowrap;
    text-decoration: none;
}

/* ================== TYPES SECTION ================== */
.types-bg {
    background-image: url("website_img/beckgraund_second_conteyner_rev2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 24px;
    padding: 40px 30px;
    color: white;
}

.types-bg h1,
.types-bg p {
    color: white;
}

.types-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.types-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 10px;
}

.type-card {
    position: relative;
    width: 100%;
    min-height: 180px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    text-align: center;
    padding: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.type-card:hover {
    transform: scale(1.02);
}

.type-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
}

.type-card span {
    position: relative;
    z-index: 2;
}

.vinyl { background-image: url("website_img/vinyl.png"); }
.laminate { background-image: url("website_img/laminate.png"); }
.wood { background-image: url("website_img/wood.png"); }
.baseboard { background-image: url("website_img/baseboard.png"); }
.leveling { background-image: url("website_img/leveling.png"); }

/* ================== GALLERY ================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #000;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ================== CTA ================== */
.cta {
    background: #1f3a5f;
    color: white;
    text-align: center;
    padding: 60px 30px;
    border-radius: 24px 24px 0 0;
}

.cta h2 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    margin: 0 0 16px 0;
}

.cta p {
    margin: 12px 0;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.cta .btn {
    background: white;
    color: #1f3a5f;
}

.cta .phone {
    color: white;
}

.footer-info {
    margin-top: 32px; 
    font-size: clamp(14px, 2.5vw, 17px);
}

/* ================== WhatsAPP ================== */


.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icon img {
    width: 22px;
    height: 22px;
}

.social-icon:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

/* Цвета */
.social-icon.whatsapp {
    background: #25D366;
}

.social-icon.instagram {
    background: radial-gradient(
        circle at 30% 107%,
        #fdf497 0%,
        #fdf497 5%,
        #fd5949 45%,
        #d6249f 60%,
        #285AEB 90%
    );
}



/* ================== instagram ================== */

/* ================== ANIMATIONS ================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================== TABLET BREAKPOINT ================== */
@media (min-width: 768px) and (max-width: 991px) {
    .section {
        padding: 40px 30px;
        margin: 50px auto;
    }
    .hero { padding: 40px 20px; }
    .types-layout { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .type-card { min-height: 160px; }
}

/* ================== DESKTOP BREAKPOINT ================== */
@media (min-width: 992px) {
    .section {
        margin: 80px auto;
        padding: 60px 50px;
        border-radius: 32px;
    }
    .hero { padding: 50px 40px; }
    .types-bg { padding: 60px 50px; }
    .types-layout {
        grid-template-columns: 1.2fr 1fr 1fr;
        grid-template-rows: 200px 200px;
        gap: 30px;
    }
    .types-header {
        grid-column: 1;
        grid-row: 1 / span 2;
        text-align: left;
        padding-right: 20px;
    }
    .vinyl { grid-column: 2; grid-row: 1; }
    .laminate { grid-column: 3; grid-row: 1; }
    .baseboard { grid-column: 1; grid-row: 2; }
    .wood { grid-column: 2; grid-row: 2; }
    .leveling { grid-column: 3; grid-row: 2; }
    .gallery { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
    .cta { padding: 80px 40px; }
}

/* ================== MOBILE BREAKPOINT ================== */
@media (max-width: 767px) {
    .section { margin: 30px 16px; padding: 30px 20px; border-radius: 20px; }
    .hero { flex-direction: column; gap: 24px; padding: 30px 20px; text-align: center; }
    .hero-text { order: 2; }
    .hero-image { order: 1; text-align: center; }
    .hero-image img { margin: 0 auto; max-width: 100%; }
    .actions { justify-content: center; width: 100%; }
    .btn { flex: 1; min-width: 140px; max-width: 200px; }
    .phone { flex: 1; justify-content: center; min-width: 140px; }
    .types-bg { padding: 30px 20px; border-radius: 20px; }
    .types-layout { grid-template-columns: 1fr; gap: 16px; }
    .types-header { margin-bottom: 8px; }
    .type-card { min-height: 140px; }
    .gallery { grid-template-columns: 1fr; gap: 16px; }
    .gallery-item { height: 220px; }
    .cta { padding: 40px 20px; border-radius: 20px 20px 0 0; }
    .cta-actions { flex-direction: column; gap: 12px; }
    .cta .btn, .cta .phone { width: 100%; max-width: 280px; justify-content: center; }
}

/* ================== EXTRA SMALL MOBILE ================== */
@media (max-width: 374px) {
    .section h1 { font-size: 1.5rem; }
    .type-card { min-height: 120px; font-size: 14px; }
    .gallery-item { height: 180px; }
}