/* CSS Variables from original site */
:root {
    /* Primary colors from original site */
    --primary-green: #1a5d36;
    --primary-green-light: #2d7a47;
    --light-green: #70a987;
    --light-green-bg: #f3fcf7;

    /* Text colors */
    --text-black: #000000;
    --text-white: #ffffff;
    --text-gray: #64748b;

    /* Background colors */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;

    /* Accent colors */
    --accent-red: #ff6b6b;
    --accent-red-hover: #ff5252;

    /* Border colors */
    --border-light: #cbd5e1;
    --border-green: #1a5d36;

    /* Additional colors from original */
    --border-color: #70a987;
    --dark-bg: #111111;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-black);
    background-color: var(--bg-white);
}

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

/* Header */
.header {
    background: var(--primary-green);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: auto;
}

.nav-brand h1 {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.hero {
    position: relative;
    color: var(--text-white);
    padding: 120px 0 80px;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 93, 54, 0.8) 0%, rgba(45, 122, 71, 0.8) 100%);
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.cta-button {
    background: var(--text-white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: none;
    border-style: solid !important;
    white-space: normal;
}

.cta-button:hover {
    background: var(--primary-green);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition-duration: 0.2s;
    transition-property: background-color, color, border-color, box-shadow, opacity, transform;
    transition-timing-function: ease-in-out;
}

.telegram-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-black);
}

/* Principle Section */
.principle {
    background: var(--primary-green);
    color: var(--text-white);
    padding: 80px 0;
}

.principle h2 {
    color: var(--text-white);
    margin-bottom: 20px;
}

.principle p {
    color: var(--text-white);
    max-width: 741px;
    margin: 0 auto 105px;
    text-align: center;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 3rem;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.step-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.step-icon-img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.step-arrow {
    position: absolute;
    top: 40px;
    right: -30px;
    z-index: 10;
}

.step-arrow svg {
    width: 60px;
    height: auto;
}

.step-arrow .st0 {
    stroke: #ffffff;
    stroke-width: 2;
}

.step-arrow .st1 {
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
}

.step-item:last-child .step-arrow {
    display: none;
}

.step-text h3 {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

/* Responsive design for steps */
@media screen and (max-width: 960px) {
    .principle p {
        margin-bottom: 50px;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .step-arrow {
        display: none;
    }
    
    .step-item {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 20px;
    }
    
    .step-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }
}



/* Examples Section */
.examples {
    background: var(--bg-white);
}

.examples h2 {
    color: var(--text-black);
    margin-bottom: 40px;
}

.examples p {
    color: var(--text-black);
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.6;
}

@media screen and (max-width: 960px) {
    .examples h2 {
        margin-bottom: 20px;
    }
    
    .examples p {
        margin-bottom: 0;
    }
}

/* Example Sections */
.example-section {
    margin: 4rem 0;
    padding: 2rem 0;
}

.example-section.first-example {
    margin-top: 1rem;
}

.example-section-title {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    text-align: center;
}

/* Before Images Gallery */
.example-before-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.example-before-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.example-before-item:hover {
    transform: scale(1.05);
}

.example-before-item:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0;
    z-index: 2;
}

.example-before-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tilda image styles */
.t-img {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.t-img:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Show zoom cursor on hover for zoomable images */
[data-zoomable="yes"] {
    cursor: zoom-in;
}

[data-zoomable="yes"]:hover {
    cursor: zoom-in;
}

/* After Images Gallery */
.example-after-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.example-after-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.example-after-item:hover {
    transform: scale(1.05);
}

.example-after-item:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0;
    z-index: 2;
}

.example-after-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.lightbox-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Pricing Section */
.pricing {
    background: var(--light-green-bg);
}

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

/* Center last pricing card when grid has an odd number of items */
#pricing .pricing-grid > .pricing-card:last-child {
    grid-column: 2;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 9px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
}

.pricing-card.free {
    box-shadow: 0px 0px 20px rgba(0,0,0,0.1);
}

.pricing-card.free {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: var(--text-white);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.pricing-card.free h3 {
    color: var(--text-white);
}

.pricing-description {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.pricing-card.free .pricing-description {
    color: rgba(255,255,255,0.9);
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.pricing-card.free .price {
    color: var(--text-white);
}

.pricing-details {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.pricing-card.free .pricing-details {
    color: rgba(255,255,255,0.8);
}

/* CTA Card specific styles */
.pricing-card.cta-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.pricing-card.cta-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-green);
}

.pricing-card.cta-card .cta-button {
    margin-top: 0;
}

/* Pricing CTA Section */
.pricing-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

/* Advantages Section */
.advantages {
    background: var(--light-green-bg);
}

.advantages-list {
    list-style: none;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.advantage-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-green);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
}

.advantage-item:last-child {
    margin-bottom: 0;
}

.advantage-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-green);
    border-radius: 50%;
    padding: 12px;
}

.advantage-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.advantage-content {
    flex: 1;
}

.advantage-content h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.advantage-content p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Reviews Section */
.reviews {
    background: var(--primary-green);
    color: var(--text-white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.review::before {
    content: '"';
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
}

.review p {
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--text-white);
    line-height: 1.6;
}

.review-author {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-white);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.footer-text {
    flex: 1;
    text-align: left;
}

.footer-social {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.contact-list li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-list li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list li a:hover {
    color: var(--accent-color);
}

.contact-person,
.contact-inn {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0.25rem 0;
}

.contact-person a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-person a:hover {
    color: var(--accent-color);
}

.contact-offer {
    margin: 0.25rem 0;
}

.contact-offer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-offer a:hover {
    color: var(--text-white);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.social-icon {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .footer-text {
        text-align: center;
    }

    .social-links {
        gap: 0.5rem;
        margin-top: 1.5rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }
}

.contact-info a {
    color: var(--accent-red);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer developer link */
.footer-developer a {
    transition: color 0.3s ease;
}

.footer-developer a:hover {
    color: rgba(255,255,255,1) !important;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 960px) {
    .principle p {
        margin-bottom: 50px;
    }

    .steps-container {
        flex-direction: column;
        gap: 40px;
    }

    .step-arrow {
        display: none;
    }

    .step-item {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 20px;
    }

    .step-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .examples h2 {
        margin-bottom: 20px;
    }

    .examples p {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* On tablets: make the last card span two columns to center it */
    #pricing .pricing-grid > .pricing-card:last-child {
        grid-column: 1 / -1;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .advantages-list {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .example-before-gallery {
        grid-template-columns: repeat(2, 1fr);
        max-width: 300px;
    }

    .example-after-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: -50px;
    }

    .lightbox-next {
        right: -50px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav {
        padding: 1rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    section {
        padding: 60px 0;
    }

    .pricing-card,
    .review,
    .advantage-item {
        padding: 1.5rem;
    }

    .advantage-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .advantage-icon {
        align-self: center;
        width: 50px;
        height: 50px;
        padding: 10px;
    }

    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .step-text h3 {
        font-size: 0.9rem;
    }

    .example-section-title {
        font-size: 1.2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}