/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #f0f8ff;
    --accent-color: #2c3e50;
    --light-gray: #f5f7fa;
    --dark-gray: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-gray);
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.logo span {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--dark-gray);
}

.hero-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Products Section */
.products {
    padding: 80px 0;
    background-color: var(--white);
}

.product-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 10px 10px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition);
    color: var(--dark-gray);
}

.category-btn:hover, .category-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
  display: flex;
  flex-direction: column;
  max-width: 320px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 15px;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.product-image a {
  display: block;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 220px; /* фиксированная высота */
  object-fit: cover; /* обрезать, сохраняя пропорции */
  display: block;
  transition: transform 0.4s ease;
}


.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 15px 20px;
  flex-grow: 1; /* Заставит заголовок занимать доступное пространство */
  text-align: center;
}

.product-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
  color: #333;
  min-height: 48px;
}

.product-action {
  padding: 15px 20px 20px;
  text-align: center;
  border-top: none;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--secondary-color);
    text-align: center;
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-info {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.contact-items-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 280px;
    padding: 25px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-content {
    width: 100%;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.contact-item p {
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #25D366;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    gap: 8px;
    transition: background-color 0.3s;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

@media (max-width: 768px) {
    .contact-items-container {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        width: 100%;
        max-width: 350px;
    }
}

.whatsapp-btn i {
    margin-right: 5px;
    margin-top: 0;
    font-size: 1rem;
    color: var(--white);
}


.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* Footer */
footer {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo,
.footer-links,
.footer-hours,
.footer-social {
    margin-bottom: 30px;
    min-width: 200px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.footer-logo p {
    color: #a0aec0;
}

.footer-links h3,
.footer-hours h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-hours h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li,
.footer-hours ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #a0aec0;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-hours ul li {
    color: #a0aec0;
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .nav-toggle-label {
        display: block;
        cursor: pointer;
        position: relative;
        z-index: 2;
    }
    
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--accent-color);
        height: 2px;
        width: 25px;
        position: relative;
        transition: var(--transition);
    }
    
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }
    
    .nav-toggle-label span::before {
        bottom: 8px;
    }
    
    .nav-toggle-label span::after {
        top: 8px;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span {
        background: transparent;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg);
        bottom: 0;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo, .footer-links, .footer-hours, .footer-social {
        width: 100%;
    }
}

.advantages {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.advantage-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-card i {
    font-size: 36px;
    color: #3dbf83;
    margin-bottom: 15px;
}

.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 15px;
    color: #555;
}

.product-news {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  font-family: 'Nunito Sans', sans-serif;
  color: #333;
}

.product-news h2 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #f39c12;
  padding-bottom: 8px;
}

.product-news .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.product-news .image-container {
  flex: 1 1 300px;
  min-width: 280px;
}

.product-news .image-container img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: zoom-in;
}

.product-news .description-container {
  flex: 2 1 400px;
  min-width: 280px;
}

.product-news .description-container p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-news .description-container ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.product-news .description-container ul li {
  margin-bottom: 6px;
  font-weight: 600;
}

.product-news .btn-order {
  display: inline-block;
  padding: 12px 25px;
  background-color: #25D366;
  color: white;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.5);
  transition: background-color 0.3s ease;
}

.product-news .btn-order i {
  margin-right: 8px;
}

.product-news .btn-order:hover {
  background-color: #1ebe57;
}

.product-news .full-description {
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

.product-news .full-description h3 {
  font-weight: 600;
  margin-bottom: 15px;
  color: #f39c12;
}

.product-news .full-description p {
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Адаптив */
@media (max-width: 650px) {
  .product-news .description-container ul {
    margin-bottom: 8px;
  }
  .product-news .full-description {
    padding-top: 8px;
    border-top: none;
  }
}
