
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

:root {
    --primary: #1A5276;
    --secondary: #E67E22;
    --dark: #2C3E50;
    --light: #F4F6F7;
    --gray: #7F8C8D;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
body { color: var(--dark); background-color: #fff; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }

header { background-color: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: flex;  flex-direction: column; min-height: 10vh;}
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 50px; max-width: 100%; width: 100%; margin: 0 auto; }
.logo { font-size: 24px; font-weight: 800; color: var(--primary); text-decoration: none; display: flex; align-items: center;}
.logo span { color: var(--secondary); }
nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0;}
nav ul li a { text-decoration: none; color: var(--dark); font-weight: 600; transition: color 0.3s; }
nav ul li a:hover, nav ul li a.active { color: var(--secondary); }

.hero { 
position: relative;
height: 60vh; 
display: flex; 
align-items: center; 
justify-content: center;  
overflow: hidden;
background-color: black;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Всі слайди спочатку невидимі */
    z-index: 1;
    animation: fadeSlider 10s infinite linear;
}

.hero-slide::after {
    content: '';
    position: absolute;
	top: 0;
	left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 82, 118, 0.7), rgba(44, 62, 80, 0.7));
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 3s; }
.hero-slide:nth-child(3) { animation-delay: 7s; }

.hero-content {
    position: relative;
    z-index: 10; /* Текст ЗАВЖДИ зверху всіх слайдів */
    color: white;
    text-align: center;
	max-width: 900px;
}

@keyframes fadeSlider {
    0% { opacity: 0; }
    10% { opacity: 1; }  /* Плавно з'являється за 1.2 сек */
    33% { opacity: 1; }  /* Тримається видимим */
    43% { opacity: 0; }  /* Плавно зникає */
    100% { opacity: 0; }
}

.hero h1 { font-size: 42px; margin-bottom: 20px; text-transform: uppercase; }
.hero p { font-size: 18px; margin-bottom: 30px; max-width: 800px; margin-left: auto; margin-right: auto; }

main { max-width: 1200px; margin: 50px auto; padding: 0 20px; flex: 1; width: 100%; }
h2 { font-size: 25px; color: var(--primary); text-align: center; margin-bottom: 40px; }
h2 span { border-bottom: 3px solid var(--secondary); padding-bottom: 10px; }

.btn { background-color: var(--secondary); color: white; padding: 10px 15px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; min-width: 120px; text-align: center; display: inline-block; text-decoration: none; }
.btn:hover { background-color: #D35400; transform: translateY(-2px); }
.btn-kl, .btn-st, .btn-kl-pl, .btn-kr, .btn-dn { background-color: var(--secondary); color: white; padding: 12px 25px; border: none; border-radius: 5px; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.3s; margin-top: 30px; width: max-content; } 
.pagination { display: flex; margin: 30px 0; width: 100%; gap: 15px; flex-wrap: wrap; justify-content: center;}
.act {
	background-color: #A0522D; /* Темніший колір */
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.2); 
    cursor: default;
    transform: none;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--light); padding: 10px; border-radius: 10px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 250px; object-fit: cover; border-radius: 5px; margin-bottom: 20px; }
.card h3 { color: var(--primary); margin-bottom: 10px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info p { margin-bottom: 15px; font-size: 18px; }
form { display: flex; flex-direction: column; gap: 15px; }
input, textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; }

footer { background-color: var(--dark); color: white; text-align: center; padding: 20px; margin-top: auto; }

.contact-widget {
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.btn-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
    background-color: var(--primary);
}

.tg { background: url('img/telegram.png'); background-position: center; background-size: contain; background-repeat: no-repeat; background-color: transparent;  }
.vb { background: url('img/viber.png'); background-position: center; background-size: contain; background-repeat: no-repeat; background-color: transparent; }
.ph { background: url('img/phone.png'); background-position: center; background-size: contain; background-repeat: no-repeat; background-color: transparent; }

.grid1 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 1000px; margin: 0 auto;}
.card-septic { background: var(--light); padding: 15px; border-radius: 10px; text-align: left; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s; margin-bottom: 15px;}
.septic-image { object-fit: cover; height: 420px; width: 100%; border-radius: 5px; margin-bottom: 0; }
.septic-image1 { object-fit: cover; height: 250px; width: 100%; border-radius: 5px; margin-bottom: 0; }
.card-septic h2 { color: var(--primary); margin-bottom: 0; text-align: left; margin-top: -15px; }
.septic-features {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 15px;
    margin: 20px 0; 
    text-align: left; 
}

.feature-item {
    display: flex;
    align-items: center; 
    gap: 10px; 
}

.feature-icon {
    font-size: 20px;
    color: #e67e22; 
}

.feature-text {
    display: flex;
    flex-direction: column; 
}

.feature-label {
    font-size: 14px;
    color: #888; 
    margin-bottom: 2px;
}

.feature-value {
    font-size: 16px;
    font-weight: bold;
    color: #333; 
}
.card-body {
    padding: 15px 20px;
    text-align: left;
}

.gallery {display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px;}
.card-gallery {
  background: var(--light); 
  padding: 15px; 
  border-radius: 10px; 
  text-align: left; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
  transition: transform 0.3s;
  max-width: 400px;
}
.card-gallery h3 {color: var(--primary); padding: 10px 15px; text-align: center; display: block; margin: 0; width: 100% }
.collage-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; 
  gap: 4px;
  padding: 4px;
  overflow: hidden; 
}
.collage-grid a.item {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none; 
}

.collage-grid a.item img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  border-radius: 8px; 
  transition: transform 0.3s ease; 
}

.collage-grid a.item:hover img {
  transform: scale(1.02);
}

.collage-grid a.item.main {
  grid-column: 1 / 2;
}

.collage-grid.three-photos {
  grid-template-rows: repeat(2, 150px); 
  height: 304px; 
}

.collage-grid.three-photos a.item.main {
  grid-row: span 2; 
}
.collage-grid.four-photos {
  grid-template-rows: repeat(3, 100px); 
  height: 308px; 
}
.collage-grid.four-photos a.item.main {
  grid-row: span 3;
}
.gallery1 {display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; margin-bottom: 30px; margin-top: 30px;}
.card-gallery1 {
  background: var(--light); 
  padding: 15px; 
  border-radius: 10px; 
  text-align: left; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
  transition: transform 0.3s;
  width: 100%;
}
.collage-grid.two-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: 304px; 
    gap: 4px; 
	width: 100%;
}

.collage-grid.two-photos a.item {
    width: 100%;
    height: 100%;
    overflow: hidden;
	cursor: default !important;
}

.collage-grid.two-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.card-info {
  padding: 15px;
  text-align: center;
}

.card-info h3 {
  margin: 0;
  color: #003366;
  font-size: 1.1rem;
}
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh; 
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    object-fit: contain; 
    border: 3px solid #fff;
    border-radius: 10px;
}
.close-modal {
    position: absolute;
    top: 20px; right: 35px;
    color: white;
    font-size: 50px;
    cursor: pointer;
}
.collage-grid img {
    cursor: zoom-in;
    transition: 0.3s;
}

.collage-grid img:hover {
    opacity: 0.8;
}
.burger {
    display: none; 
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}
.burger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    transition: 0.3s;
}

#table-wrapper {
    width: 100%;
    margin: 40px auto;
    overflow-x: auto; 
    background-color: #fff;
    max-width: 1200px; 
}
.product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.product-table th {
    background-color: #87CEEB; 
    color: black;
    padding: 15px;
    border: 1px solid #ddd;
    font-weight: 600;
    text-align: center;
}
.product-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
    color: #333;
}
.product-table .name-col {
    text-align: left;
    padding-left: 20px;
    font-weight: 600;
}
.product-table tr:nth-child(even) {
    background-color: #fafafa;
}
#collage-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 40px auto;
    max-width: 1200px;
}
.collage-item {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: 0.3s;
}
.descriptions-container {
    max-width: 100%;
    margin: 30px auto;
    padding: 0 20px;
    line-height: 1.7;
    color: #333;
}

.product-desc h2 {
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

.product-desc p {
    margin-bottom: 15px;
    text-align: justify; /* Щоб великий текст виглядав рівно */
	width: 100%;
}

.product-desc ul {
    margin-left: 20px;
    margin-bottom: 20px;
}
/* Секція переваг */
.advantages-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.advantage-card {
    background: rgba(255, 255, 255, 0.6); 
    border: 1px solid rgba(0, 0, 0, 0.1); 
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}
.advantage-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}
.advantage-card h3 {
    color: #000;
    margin-bottom: 10px;
}
.advantage-card p {
    color: #333; 
}
.tiktok-link-container {
    text-align: center;
    margin-top: -10px; 
    margin-bottom: 25px;
}
.tiktok-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #00457C; 
    font-weight: 500;
    transition: opacity 0.3s;
}
.tiktok-link:hover {
    opacity: 0.8;
}
.tiktok-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}
.reviews-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.review-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    width: 300px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.user-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.serv-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.serv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.serv-card {
    background: rgba(255, 255, 255, 0.6); 
    border: 1px solid rgba(0, 0, 0, 0.1); 
    padding: 30px 20px;
    border-radius: 8px; 
    text-align: left;
    transition: all 0.3s ease;
}
.serv-card:hover {
    background: rgba(255, 255, 255, 0.9); 
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}
.serv-card h3 {
    color: #000;
    margin-bottom: 10px;
}
.serv-card p {
    color: #333; 
}
.two-columns {
  column-count: 2;
  column-gap: 20px; 
}
.three-columns {
  column-count: 3;
  column-gap: 20px;
}

@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
	.pagination {flex-direction: row; gap: 10px; justify-content: center;}
	.contact-widget { 
		right: 15px;
        bottom: 0;
        width: auto;
		display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        padding: 12px;

    }
    .btn-item {
        width: 50px;
        height: 50px;
    }
	.btn {
		flex: 1 1 40%;
		font-size: 13px;
		padding: 10px 5px;
	}
	.burger {
        display: flex; 
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 70%; 
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s;
        z-index: 1000;
        padding-top: 80px;
    }
    nav.active {
        right: 0; 
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .nav-container {
        padding: 15px 25px;
        flex-direction: row !important; 
    }
    .burger.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .burger.toggle span:nth-child(2) { opacity: 0; }
    .burger.toggle span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

	.product-table th, .product-table td {
        padding: 8px;
        font-size: 13px;
    }
	.advantages-grid {
        grid-template-columns: 1fr;
    }
	.grid1 {
		grid-template-columns: 1fr;
	}
	.two-columns, .three-columns {
    column-count: 1;
  }

.serv-card p {
  margin-top: 0;
  margin-bottom: 10px;
  break-inside: avoid; 
}
    footer {
        padding-bottom: 20px !important;
    }
	
}