:root {
    --color-primary: #9A031E; 
    --color-secondary: #F5E6CA; 
    --color-dark: #2D2A32; 
    --color-green: #1A5632; 
    --color-light-green: #2A7F4A;
    --color-text: #333333;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8F8F8;
    --color-border: #E5E5E5;
    --shadow-soft: 5px 5px 15px rgba(0, 0, 0, 0.05), -5px -5px 15px rgba(255, 255, 255, 0.9);
    --shadow-inset: inset 3px 3px 5px rgba(0, 0, 0, 0.05), inset -3px -3px 5px rgba(255, 255, 255, 0.8);
    --shadow-hover: 7px 7px 20px rgba(0, 0, 0, 0.07), -7px -7px 20px rgba(255, 255, 255, 0.95);
    --border-radius: 12px;
    --transition: all 0.3s ease-in-out;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Source Sans Pro', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header.left-aligned {
    text-align: left;
}

.section-header h2 {
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 70%;
    height: 3px;
    background-color: var(--color-primary);
    margin: 0.5rem auto 0;
}

.section-header.left-aligned h2::after {
    margin-left: 0;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--color-dark);
    opacity: 0.8;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-primary {
    background-color: var(--color-green);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background-color: var(--color-light-green);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-dark);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    background-color: #ecdbb1;
}

.btn-plan {
    width: 100%;
    background-color: var(--color-green);
    color: white;
    box-shadow: var(--shadow-soft);
    margin-top: 1.5rem;
}

.btn-plan:hover {
    background-color: var(--color-light-green);
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    flex-shrink: 0;
}

.logo img {
    border-radius: 0;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--color-dark);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    transform: scaleX(1);
}

.contact-link {
    background-color: var(--color-green);
    color: white;
    padding: 8px 15px;
    border-radius: var(--border-radius);
}

.contact-link:hover {
    background-color: var(--color-light-green);
    color: white;
}

.contact-link::after {
    display: none;
}

.hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--color-secondary);
    opacity: 0.4;
}

.hero-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%232A7F4A' opacity='0.1'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center bottom;
}

.hero-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%232A7F4A' opacity='0.1'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center top;
    transform: rotate(180deg);
}

.hero-accent-line {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 5px;
    background-color: var(--color-primary);
    border-top-left-radius: 3px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--color-dark);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    position: relative;
    transform: translateY(20px) rotateZ(2deg);
}

.hero-image img {
    box-shadow: var(--shadow-soft);
    border: 5px solid white;
}

.services {
    position: relative;
    padding: 100px 0;
    background-color: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary);
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.service-card p {
    color: var(--color-text);
    text-align: center;
}

.about {
    position: relative;
    padding: 100px 0;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    position: relative;
    transform: translateY(0px) rotate(-2deg);
}

.about-image img {
    box-shadow: var(--shadow-soft);
    border: 5px solid white;
}

.plans {
    position: relative;
    padding: 100px 0;
    background-color: var(--color-bg-alt);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.plan-card {
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.plan-card.featured {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.plan-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--color-primary);
}

.plan-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-green);
}

.plan-features {
    margin: 30px 0;
}

.plan-features li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-weight: bold;
}

.gallery {
    position: relative;
    padding: 100px 0;
}

.gallery-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.gallery-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.gallery-item img {
    transition: transform 0.5s ease;
    border-radius: var(--border-radius);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(42, 127, 74, 0.8);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.faq {
    position: relative;
    padding: 100px 0;
    background-color: var(--color-bg-alt);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.faq-item {
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
}

.faq-item h3 {
    color: var(--color-green);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.contact {
    position: relative;
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-text {
    font-size: 1.1rem;
}

.contact-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.contact-form {
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: #F9F9F9;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-inset);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(42, 127, 74, 0.2);
}

.footer {
    position: relative;
    background-color: var(--color-dark);
    color: white;
    padding-top: 80px;
}

.footer-zigzag-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L20,10 L40,0 L60,10 L80,0 L100,10 L120,0 L140,10 L160,0 L180,10 L200,0 L220,10 L240,0 L260,10 L280,0 L300,10 L320,0 L340,10 L360,0 L380,10 L400,0 L420,10 L440,0 L460,10 L480,0 L500,10 L520,0 L540,10 L560,0 L580,10 L600,0 L620,10 L640,0 L660,10 L680,0 L700,10 L720,0 L740,10 L760,0 L780,10 L800,0 L820,10 L840,0 L860,10 L880,0 L900,10 L920,0 L940,10 L960,0 L980,10 L1000,0 L1020,10 L1040,0 L1060,10 L1080,0 L1100,10 L1120,0 L1140,10 L1160,0 L1180,10 L1200,0 L1220,10 L1240,0 L1260,10 L1280,0 L1300,10 L1320,0 L1340,10 L1360,0 L1380,10 L1400,0 L1420,10 L1440,0 L1440,70 L0,70 Z' fill='%232D2A32'%3E%3C/path%3E%3C/svg%3E");
    background-size: 100% 70px;
    transform: translateY(-100%);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 40px;
}

.footer-block {
    display: flex;
    flex-direction: column;
}

.logo-block {
    grid-column: 1;
    grid-row: 1;
}

.nav-block {
    grid-column: 2;
    grid-row: 1;
}

.policy-block {
    grid-column: 1;
    grid-row: 2;
}

.contact-block {
    grid-column: 2;
    grid-row: 2;
}

.footer-logo {
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo img {
    border-radius: 0;
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-nav,
.footer-policy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a,
.footer-policy a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-nav a:hover,
.footer-policy a:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 60px;
    text-align: center;
}

.diagonal-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M1200 120L0 16.48 0 0 1200 0 1200 120z' fill='%23FFFFFF'%3E%3C/path%3E%3C/svg%3E");
    background-size: 100% 100px;
    background-position: center;
    z-index: 1;
}

.diagonal-divider.reversed {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M1200 0L0 103.52 0 120 1200 120 1200 0z' fill='%23F8F8F8'%3E%3C/path%3E%3C/svg%3E");
}

.services::before,
.plans::before,
.faq::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232A7F4A' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        transform: translateY(0) rotateZ(0);
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-header.left-aligned {
        text-align: center;
    }
    
    .section-header.left-aligned h2::after {
        margin: 0.5rem auto 0;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .about-image {
        transform: translateY(0) rotate(0);
        margin-top: 30px;
        order: 2;
    }
    
    .about-content {
        order: 1;
    }
    
    .about-text {
        text-align: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
    }
    
    .logo-block {
        grid-column: 1;
        grid-row: 1;
    }
    
    .nav-block {
        grid-column: 1;
        grid-row: 2;
    }
    
    .policy-block {
        grid-column: 1;
        grid-row: 3;
    }
    
    .contact-block {
        grid-column: 1;
        grid-row: 4;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .logo img {
        width: 140px;
    }
    
    .nav-list {
        display: none;
    }
    
    .hero {
        padding: 60px 0 80px;
    }
    
    .services, .about, .plans, .gallery, .faq, .contact {
        padding: 60px 0;
    }
    
    .gallery-grid-two, .gallery-grid-three {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .diagonal-divider {
        height: 50px;
        background-size: 100% 50px;
    }
}

@media screen and (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-card.featured {
        transform: scale(1);
    }
    
    .plan-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .contact-form {
        padding: 20px;
    }
}

@media screen and (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        justify-content: center;
    }
    
    .main-nav {
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: var(--color-bg);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        z-index: 1000;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        align-items: center;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 10px;
        width: 100%;
    }
    
    .contact-link {
        margin-top: 10px;
    }
}