:root {
    /* Colors */
    --clr-bg: #FAF9F6;
    --clr-bg-alt: #F0F4F1;
    --clr-primary: #8ABCA0;     /* Soft sage green */
    --clr-primary-light: #A3C9A8;
    --clr-primary-dark: #6B9C82;
    --clr-secondary: #EBA89C;   /* Soft warm peach/coral */
    --clr-secondary-light: #F2B5D4;
    --clr-text: #3E4C59;        /* Soft dark blue/grey */
    --clr-text-light: #6A7A89;
    --clr-white: #FFFFFF;
    
    /* Typography */
    --font-main: 'Nunito', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 4px 6px rgba(138, 188, 160, 0.1);
    --shadow-md: 0 10px 30px rgba(138, 188, 160, 0.15);
    --shadow-lg: 0 20px 40px rgba(138, 188, 160, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Layout */
    --border-radius: 20px;
    --border-radius-lg: 40px;
    --section-padding: 5rem 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    color: var(--clr-text);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--clr-text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.bg-light {
    background-color: var(--clr-bg-alt);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.btn-primary:hover {
    background-color: var(--clr-primary-dark);
}

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

.btn-secondary:hover {
    background-color: #d99689;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 249, 246, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(138, 188, 160, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-primary-dark);
}

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

.nav-link {
    font-weight: 600;
    color: var(--clr-text);
}

.nav-link:hover {
    color: var(--clr-primary);
}

/* --- Hero Section --- */
.hero {
    padding: 180px 0 100px;
    background: radial-gradient(circle at top right, #eef7f0 0%, var(--clr-bg) 60%);
    position: relative;
    overflow: hidden;
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(138, 188, 160, 0.2);
    color: var(--clr-primary-dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--clr-text);
}

.hero-title .highlight {
    color: var(--clr-primary);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(235, 168, 156, 0.4);
    z-index: -1;
    border-radius: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--clr-text-light);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
}

.blob-shape {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 120%;
    height: 120%;
    background-color: var(--clr-primary-light);
    opacity: 0.2;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blob-bounce 8s infinite alternate;
    z-index: -1;
}

@keyframes blob-bounce {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg); }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(10deg); }
}

.hero-image {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    width: 100%;
    aspect-ratio: 4/5;
}

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

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--clr-white);
    padding: 1.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-secondary);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--clr-text-light);
}

.about-content .section-title {
    text-align: left;
}

.about-text {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.features-list {
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.features-list .check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border-radius: 50%;
    font-size: 0.8rem;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--clr-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(138, 188, 160, 0.05));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--clr-text);
}

.service-desc {
    color: var(--clr-text-light);
    font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info .section-title {
    text-align: left;
}

.contact-subtitle {
    text-align: left;
    margin-bottom: 2.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.method-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background-color: var(--clr-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.method-details {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 0.9rem;
    color: var(--clr-text-light);
    font-weight: 600;
}

.method-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-text);
}

.method-value[href]:hover {
    color: var(--clr-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: var(--clr-bg-alt);
    color: var(--clr-text);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.social-link:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background-color: var(--clr-white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

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

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--clr-text-light);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox a {
    color: var(--clr-primary-dark);
    text-decoration: underline;
}

.form-checkbox a:hover {
    color: var(--clr-primary);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--clr-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--clr-bg-alt);
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px; /* 16px prevents iOS auto-zoom */
    transition: var(--transition);
    background-color: var(--clr-bg-alt);
    -webkit-appearance: none; /* Removes default iOS styling */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    background-color: var(--clr-white);
}

.form-disclaimer {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--clr-text-light);
    text-align: center;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--clr-white);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* --- Toast Notification --- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--clr-primary);
    color: white;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(244, 114, 182, 0.4);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    z-index: 9999;
    pointer-events: none;
    font-size: 1.1rem;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* --- Responsive Design --- */

/* Laptops and smaller desktops */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-container,
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        order: 2;
        text-align: center;
    }
    
    .hero-image-wrapper {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-subtitle {
        margin: 0 auto 2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-content .section-title,
    .contact-info .section-title,
    .contact-subtitle {
        text-align: center;
    }
    
    .features-list li {
        justify-content: center;
    }
    
    .contact-method {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Devices */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--clr-primary-dark);
    border-radius: 3px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-btn {
        display: none;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(250, 249, 246, 0.98);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }
    
    /* Toggle Animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .experience-badge {
        padding: 1rem;
    }
    
    .experience-badge .number {
        font-size: 2rem;
    }
}

/* --- Mobile Audited Fixes --- */
/* логотип */
.logo { font-size: clamp(1rem, 4.5vw, 1.5rem); line-height: 1.2; min-width: 0; }

/* круги не сжимаются */
.check, .method-icon { flex-shrink: 0; }
.features-list li { align-items: flex-start; }

/* слои: возвращаем блоб и подчёркивание */
.hero, .hero-title .highlight { isolation: isolate; }

/* сетка без переполнения на 320px */
.services-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.form-checkbox { align-items: flex-start; }

@media (max-width: 992px) {
    /* единое выравнивание влево */
    .about-content .section-title,
    .contact-info .section-title,
    .contact-subtitle { text-align: left; }
    .features-list li,
    .contact-method { justify-content: flex-start; }

    /* фото компактнее, чтобы заголовок был виден сразу */
    .hero-image-wrapper { max-width: 360px; margin: 0 auto; }
    .hero-image { aspect-ratio: 4 / 3; }
}

@media (max-width: 768px) {
    .nav { height: 100dvh; }
    .experience-badge { right: 0; }
    
    /* Компактные карточки услуг на телефоне */
    .service-card {
        padding: 1.5rem;
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 1.2rem;
        align-items: start;
    }
    .service-icon {
        font-size: 2.2rem;
        margin-bottom: 0;
        grid-column: 1;
        grid-row: 1 / span 2;
        margin-top: -0.2rem;
    }
    .service-title {
        margin-bottom: 0.2rem;
        grid-column: 2;
        grid-row: 1;
        font-size: 1.1rem;
    }
    .service-desc {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* hover только там, где он есть */
@media (hover: none) {
    .service-card:hover, .btn:hover { transform: none; }
}
