/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Inter:wght@300;400;500&display=swap');

:root {
    --primary-color: #1a4332;
    --primary-light: #2d5a45;
    --secondary-color: #4caf50;
    --accent-color: #d4af37;
    --text-dark: #1a1a1a;
    --text-light: #444;
    --bg-cream: #fcfbf7;
    --bg-white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.logo span {
    color: var(--secondary-color);
}

header.scrolled .logo {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: var(--transition);
}

header.scrolled .nav-links a {
    color: var(--text-dark);
    text-shadow: none;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

header.scrolled .nav-links a:hover {
    color: var(--secondary-color);
}

.btn-nav {
    background: var(--secondary-color);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-shadow: none !important;
}

header.scrolled .btn-nav {
    background: var(--primary-color);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* --- Mobile Menu Styles --- */
.menu-toggle {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 1.8rem;
    transition: var(--transition);
}

header.scrolled .menu-toggle {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26, 67, 50, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    padding-top: 2rem;
}

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-text-side {
    text-align: left;
    color: white;
}

.hero-text-side h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 800;
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-text-side p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
}

.hero-form-card {
    background: #ffffff !important;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    color: #111111 !important;
    border: 1px solid #ffffff;
    max-width: 850px !important;
}

.hero-form-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    font-weight: 800;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #333 !important;
}

.form-group input, .form-group textarea {
    background: #fdfdfd;
    border: 1.5px solid #eee !important;
    color: #333 !important;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background: #43a047;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid white;
    transition: var(--transition);
}

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

/* --- Section Styling --- */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title .divider {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    display: block;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.feature-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* --- Why Choose Section --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.why-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.why-card:hover {
    transform: translateY(-10px);
    background: var(--primary-color);
    color: white;
}

.why-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.why-card:hover i {
    color: white;
}

.why-card h3 {
    margin-bottom: 1rem;
}

.why-card p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* --- Catalog Section --- */
.catalog-content {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    box-shadow: var(--shadow);
}

.catalog-img-container {
    height: 500px;
}

.catalog-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-info {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.catalog-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.catalog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tag {
    background: var(--bg-cream);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
    color: var(--text-light);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.faq-toggle {
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

/* --- Results Section --- */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.result-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.result-card img {
    width: 100%;
    display: block;
}

.result-info {
    padding: 2rem;
}

/* --- Registration Form Section --- */
.register-section {
    background: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.register-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.register-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.form-card {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    color: var(--text-dark);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

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

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.btn-form {
    width: 100%;
    padding: 1.2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-form:hover {
    background: #43a047;
    transform: translateY(-2px);
}

/* --- Footer --- */
footer {
    background: #0d221a;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
/* --- Responsive Overhaul (Premium Mobile Experience) --- */

@media (max-width: 1200px) {
    .container { padding: 0 1.5rem; }
    .hero-grid { gap: 2rem; grid-template-columns: 1.1fr 1fr; }
    .hero-text-side h1 { font-size: 3rem; }
}

@media (max-width: 992px) {
    section { padding: 80px 0; }
    .about-grid, .catalog-content, .register-container { grid-template-columns: 1fr; }
    .catalog-img-container { height: 350px; }
    .catalog-info { padding: 2.5rem; }
    .why-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    header { padding: 1rem 1.5rem; }
    .menu-toggle { display: block; z-index: 1001; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        padding-top: 50px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: white !important;
        font-size: 1.4rem;
        margin-bottom: 2rem;
        text-shadow: none;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        letter-spacing: 1px;
    }

    .btn-nav {
        background: var(--secondary-color) !important;
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }

    .section-title { margin-bottom: 3rem; }
    .section-title h2 { font-size: 2rem; }
    
    .hero { 
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 3rem; 
    }
    
    .hero-text h1 { font-size: 2.4rem; margin-bottom: 1rem; }
    .hero-text p { font-size: 1.1rem; margin-bottom: 2rem; }
    .hero-btns { flex-direction: column; gap: 1rem; }
    .hero-btns a { width: 100%; text-align: center; }
    
    .hero-form-card { padding: 2rem 1.2rem; border-radius: 20px; }
    
    .why-grid, .results-grid { grid-template-columns: 1fr; }
    
    .about-img { margin-bottom: 2rem; }
    .about-text h3 { font-size: 1.6rem; text-align: center; }
    .about-text p { text-align: center; }
    .feature-item { justify-content: center; }

    .catalog-content { border-radius: 20px; }
    .catalog-info h3 { font-size: 1.6rem; text-align: center; }
    .catalog-tags { justify-content: center; }
    .catalog-info a { text-align: center; display: block; }

    .faq-question { font-size: 0.95rem; line-height: 1.3; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .footer-col { display: flex; flex-direction: column; align-items: center; }
    .logo { justify-content: center; }
}

@media (max-width: 480px) {
    section { padding: 60px 0; }
    .hero-text h1 { font-size: 2rem; }
    .section-title h2 { font-size: 1.8rem; }
    .hero-form-card { padding: 1.5rem 1rem; }
}

/* --- Final Form Grid Layout (Premium & Balanced) --- */
.form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

.captcha-group {
    grid-column: span 2;
    margin-top: 0.5rem;
}

.captcha-group > div {
    background: #f7f9f8 !important;
    border: 1px solid #eee !important;
    padding: 1.5rem !important;
    border-radius: 20px !important;
}

@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-grid > div {
        grid-column: span 1 !important;
    }
    .hero-form-card {
        padding: 2rem 1.5rem !important;
        margin-top: 3rem;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
}
