/* =======================
   RESET
======================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1f1f1f;
    background-color: #f9f9f9;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =======================
   HEADER
======================= */

header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    padding: 20px 0;
    z-index: 10;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 26px;
    font-weight: 700;
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    opacity: 0.7;
}

/* =======================
   HERO SECTION
======================= */

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Параллакс + zoom */
.hero::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: url('../images/hero.jpg') center/cover no-repeat;
    animation: slowZoom 25s ease-in-out infinite alternate;
    z-index: 0;
}

/* Затемнение + лёгкий blur */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    animation: fadeUp 1.5s ease-out;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 35px;
}

/* =======================
   BUTTONS
======================= */

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    background: white;
    color: #1b3d2f;
    transition: 0.3s;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    opacity: 0.9;
}

/* =======================
   FEATURES
======================= */

.features {
    padding: 100px 0;
    background: white;
    text-align: center;
}

.features h3 {
    font-size: 36px;
    margin-bottom: 60px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: #f3f3f3;
    padding: 40px 30px;
    border-radius: 12px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
}

.card h4 {
    margin-bottom: 15px;
    font-size: 20px;
}

/* =======================
   CONTACT
======================= */

.contact-preview {
    padding: 80px 0;
    background: #1b3d2f;
    color: white;
    text-align: center;
}

.contact-preview h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

.contact-preview p {
    margin-bottom: 25px;
}

/* =======================
   FOOTER
======================= */

footer {
    padding: 20px 0;
    text-align: center;
    background: #111;
    color: #ccc;
    font-size: 14px;
}

/* =======================
   ANIMATIONS
======================= */

@keyframes slowZoom {
    from {
        transform: scale(1) translateY(0px);
    }
    to {
        transform: scale(1.1) translateY(-20px);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =======================
   RESPONSIVE
======================= */

@media (max-width: 768px) {

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    nav {
        display: none;
    }

}
/* =======================
   SMALL HERO (About)
======================= */

.small-hero {
    height: 60vh;
}

/* =======================
   ABOUT SECTION
======================= */

.about-section {
    padding: 100px 0;
    background: #ffffff;
}

.about-block {
    max-width: 800px;
    margin-bottom: 60px;
}

.about-block h2 {
    margin-bottom: 20px;
    font-size: 32px;
}

.about-block p {
    line-height: 1.8;
    color: #555;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-card {
    background: #f7f7f7;
    padding: 40px;
    border-radius: 20px;
    transition: 0.3s;
}

.about-card:hover {
    transform: translateY(-6px);
}

.about-card h3 {
    margin-bottom: 15px;
}

.about-card p {
    color: #555;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* =======================
   GLOBAL SOLID HEADER
======================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(11, 46, 38, 0.92); /* #0b2e26 */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    padding: 22px 0;
}

/* Layout */

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.nav-menu a {
    margin-left: 30px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

.nav-menu a:hover {
    opacity: 0.7;
}

/* Active link underline */

.nav-menu a.active {
    position: relative;
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: white;
}

/* Layout */

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.nav-menu a {
    margin-left: 30px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

.nav-menu a:hover {
    opacity: 0.7;
}

/* Active link underline */

.nav-menu a.active {
    position: relative;
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: white;
}
/* PRODUCTS SECTION */

.products-section {
    padding: 100px 0;
    background: #ffffff;
}

.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.prod-card {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.prod-card:hover {
    transform: translateY(-6px);
}

.prod-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
}

.prod-card h4 {
    margin-top: 15px;
    font-weight: 600;
}

/* MODAL */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 40px;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f7f9f8;
    color: #1b2b25;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */

.main-header {
    position: sticky;
    top: 0;
    background: rgba(5, 40, 30, 0.95);
    padding: 20px 0;
    color: white;
}

.logo {
    font-weight: 500;
}

/* HERO */

.contact-hero {
    padding: 80px 0;
    text-align: center;
}

.contact-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.contact-hero p {
    font-size: 18px;
    color: #4b5c55;
}

/* CONTACT SECTION */

.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
}

/* LEFT INFO */

.info-card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h4 {
    margin-bottom: 8px;
    font-weight: 500;
}

/* FORM */

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.contact-form h3 {
    margin-bottom: 25px;
    font-weight: 500;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    margin-bottom: 15px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    font-family: inherit;
    font-size: 14px;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0f5c47;
}

.contact-form button {
    padding: 15px;
    background: #0f5c47;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #0b3d30;
}

/* WHY SECTION */

.why-section {
    padding: 80px 0;
    text-align: center;
}

.why-section h2 {
    margin-bottom: 40px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.why-card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.why-card:hover {
    background: #0f5c47;
    color: white;
}

/* FOOTER */

footer {
    background: #05281e;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.search-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.search-container {
    position: relative;
    width: 420px;
    max-width: 90%;
}

.search-container input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border-radius: 50px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-container input:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.2);
}

.search-container input::placeholder {
    color: #aaa;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #888;
    pointer-events: none;
}