/* Base Styles */
:root {
    --brand-green: #127640;
    --brand-green-dark: #0e6134;
    --text-color: #0b1f16;
    --text-muted: #5d6b64;
    --bg-white: #ffffff;
    --bg-soft: #f5fbf7;
    --container-width: 1120px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
}

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

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

a:hover {
    color: var(--brand-green-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    text-align: center;
}

p {
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--brand-green-dark);
    color: white;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 1rem 0;
}

/* Language Switcher */
.lang-switch {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: rgba(231, 245, 236, 0.5);
    padding: 4px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(18,118,64,0.1);
}

.lang-btn {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--brand-green);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: rgba(231, 245, 236, 0.8);
    transform: translateY(-1px);
}

.lang-btn[aria-pressed="true"], .lang-btn.active {
    background: var(--brand-green);
    color: #fff;
    border-color: var(--brand-green);
    box-shadow: 0 2px 5px rgba(18,118,64,0.2);
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header__logo img {
    height: 40px;
    width: auto;
}

.header__brand {
    font-weight: 700;
    font-size: 1.2rem;
}

.header__nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.header__nav a {
    color: var(--text-color);
    font-weight: 600;
}

.header__nav a:hover {
    color: var(--brand-green);
}

/* Hero (Logo Lab) */
.hero {
    background-color: var(--bg-soft);
    padding: 5rem 0;
}

.hero__content {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 2rem;
    align-items: center;
}

.hero__text {
    max-width: 720px;
}

.eyebrow {
    display: block;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--brand-green);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero__logo-lab {
    position: relative;
}

.logo-lab__container {
    position: relative;
    width: clamp(220px, 24vw, 440px);
    height: clamp(220px, 24vw, 440px);
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.logo-lab__logo {
    position: relative;
    z-index: 3;
    width: 60%;
    height: auto;
}

.logo-lab__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/2.webp');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) opacity(0.2);
    z-index: 1;
}

.logo-lab__grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(18, 118, 64, 0.1) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(18, 118, 64, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 2;
}

.logo-lab__scan-line {
    display: none; /* Removed as per requirement */
}

@keyframes scan {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

.logo-lab__chips {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

.chip {
    padding: 4px 10px;
    background-color: var(--brand-green);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}

/* About */
.about {
    background-color: var(--bg-white);
}

.about__content {
    
    margin: 0 auto;
    text-align: center;
}

/* Gallery */
.gallery {
    background-color: var(--bg-soft);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery__item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: var(--transition);
}

.gallery__item:hover {
    transform: scale(1.03);
}

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

.gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__content {
    position: relative;
    width: 80%;
    max-width: 1000px;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox__image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    color: var(--brand-green);
}

.lightbox__close {
    top: -40px;
    right: 0;
}

.lightbox__prev {
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
}

/* Benefits — new stylish look */
.benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
}

.benefit {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #eaf3ee;
    background: linear-gradient(180deg, #ffffff 0%, #f9fdfb 100%);
    box-shadow: 0 10px 30px rgba(18,118,64,0.15);
    transition: transform .2s ease, box-shadow .2s ease;
}

.benefit:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(18,118,64,0.18);
}

.benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e7f5ec;
    color: var(--brand-green);
    flex-shrink: 0;
}

.benefit-body {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.35;
}

.benefit-body strong {
    color: var(--brand-green);
}

.lead {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}

.form {
    
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid #eaf3ee;
    box-shadow: 0 10px 30px rgba(18,118,64,0.15);
}

label {
    display: block;
    font-weight: 600;
    margin: 10px 0 6px;
}

input[type="text"], input[type="tel"], input[type="email"], input[type="file"], textarea, select {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid #cfe5da;
    outline: none;
    transition: box-shadow .15s ease, border-color .15s ease;
    font: inherit;
    background: #fff;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 4px rgba(18,118,64,.12);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.help {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.note {
    font-size: 13px;
    color: var(--text-muted);
}

.form__error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1.2em;
}

.form__status {
    margin-top: 1rem;
    font-weight: 600;
    min-height: 1.5em;
}

.form__status.success {
    color: var(--brand-green);
}

.form__status.error {
    color: #e74c3c;
}

/* Estimate */
.estimate {
    background-color: var(--bg-soft);
}

/* Contact */
.contact {
    background-color: var(--bg-white);
}

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

.footer__content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

.footer__logo-badge {
    background-color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__logo-badge img {
    height: 60px;
    width: auto;
}

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer__contacts p {
    margin-bottom: 0.5rem;
}

.telegram-link {
    display: inline-block;
}

.telegram-link svg {
    background-color: white;
    border-radius: 50%;
    padding: 3px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 900px;
    }
}

@media (max-width: 900px) {
    .container {
        max-width: 700px;
    }

    .hero__content {
        grid-template-columns: 1.4fr 0.6fr;
    }

    .hero__logo-lab {
        order: -1;
        margin: 0 auto;
    }

    .logo-lab__container {
        width: min(92vw, 520px);
    }

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

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__logo-badge {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header__content {
        flex-direction: column;
        gap: 1rem;
    }

    .header__nav ul {
        gap: 1rem;
    }
}

@media (max-width: 560px) {
    section {
        padding: 3rem 0;
    }

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

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

    .chip {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .lightbox__prev {
        left: 10px;
    }

    .lightbox__next {
        right: 10px;
    }
}

/* --- From styles-1.css --- */
/* === ОРИГІНАЛЬНА БАЗА (повернуто) ===================================== */
:root {
  --green: #127640;
  --green-2: #0e6134;
  --text: #0b1f16;
  --muted: #5d6b64;
  --bg: #ffffff;
  --bg-soft: #f5fbf7;
  --maxw: 1120px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(18,118,64,0.15);
  /* sizes */
  --brand-logo-h: 32px;
  --brand-logo-h-d: 40px;
  --footer-logo-h: 36px;
  --footer-logo-h-d: 40px;
}
@media (min-width: 992px) { :root { --brand-logo-h: var(--brand-logo-h-d); --footer-logo-h: var(--footer-logo-h-d); } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans"; color: var(--text); background: var(--bg); }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header (оригінал) */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid #eaf3ee; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: var(--brand-logo-h); width: auto; object-fit: contain; vertical-align: middle; display:block; }
.brand-text { font-weight: 800; letter-spacing: .2px; color: var(--green); font-size: clamp(16px, 2.2vw, 22px); line-height: 1; white-space: nowrap; }
.links { display: flex; align-items: center; gap: 22px; }
.links a { font-weight: 500; color: var(--text); }
.right-actions { display: flex; align-items: center; gap: 10px; }
.cta { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; border: 0; padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 600; cursor: pointer; }
.cta:hover { background: var(--green-2); }

/* Додано: перемикач мов (візуально як у скріні) */
.lang-switch{display:inline-flex;gap:6px;align-items:center;background:#e7f5ec;padding:4px;border-radius:999px;box-shadow:0 8px 20px rgba(18,118,64,.15)}
.lang-btn{appearance:none;border:1px solid transparent;background:transparent;color:var(--green);padding:6px 10px;border-radius:999px;font-weight:800;cursor:pointer;line-height:1;transition:all .2s}
.lang-btn[aria-pressed="true"],.lang-btn.active{background:var(--green);color:#fff;border-color:var(--green)}

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(0deg, var(--bg) 0%, var(--bg) 40%, var(--bg-soft) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.5fr 0.5fr; gap: 32px; align-items: center; padding: 48px 0 24px; }
.eyebrow { display: inline-block; background: #e7f5ec; color: var(--green); font-weight: 600; padding: 6px 10px; border-radius: 999px; margin-bottom: 16px; font-size: 13px; }
.hero h1 { margin: 0 0 16px; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; max-width: 900px; }
.subtitle { color: var(--muted); font-size: clamp(16px, 2vw, 18px); max-width: 820px; }
.hero-cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.card { background: #fff; border: 1px solid #eaf3ee; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Logo Lab (точково) */
.illustration { aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid #eaf3ee; position: relative; display: grid; place-items: center; padding: 18px; background: linear-gradient(180deg, #f4fbf7 0%, #ffffff 100%); min-height: 320px; }
.illus-chip { position: absolute; top: 16px; right: 16px; background: #e7f5ec; color: var(--green); padding: 6px 10px; border-radius: 999px; font-weight: 600; font-size: 12px; z-index: 3; }
.hero-images { display: grid; width: 100%; height: 100%; }
.logo-block { display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; }
.hero-logo { display:block; max-height: clamp(140px, 22vw, 220px); max-width: 78%; margin: 8px auto 4px; object-fit: contain; z-index:4; }

.logo-lab-wrap { overflow:hidden; }
.logo-lab-wrap .equip-bg {
  position:absolute; inset:0;
  background: url('images/bg-equipment.jpg') center/cover no-repeat;
  filter: grayscale(100%) opacity(.18);
  z-index:1;
}
.logo-lab { position: relative; z-index: 2; display:grid; place-items:center; width:100%; height:100%; }
.logo-lab-grid {
  position:absolute; inset:0;
  background-image: linear-gradient(to right, rgba(18,118,64,.1) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(18,118,64,.1) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events:none;
  z-index:2;
}
.logo-lab-chips { position:absolute; bottom:14px; left:0; right:0; display:flex; gap:8px; justify-content:center; z-index:4; }
.logo-lab-chips .chip { background:#e7f5ec; color:var(--green); padding:6px 10px; border-radius:999px; font-weight:700; }

/* Секції */
section { padding: 64px 0; }
section h2 { margin: 0 0 10px; font-size: clamp(24px, 3.2vw, 34px); text-align:center; }
.lead { color: var(--muted); margin-bottom: 24px; text-align:center; }

/* Галерея — як у скріні: темна плашка-підпис унизу */
.gallery { padding: 48px 0; }
.gallery-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.gallery figure { margin:0; border-radius: 12px; overflow:hidden; border: 1px solid #eaf3ee; box-shadow: var(--shadow); background:#fff; position:relative; }
.gallery img { width:100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; display:block; background:#eef7f1; }
.gallery figcaption { position:absolute; left:0; right:0; bottom:0; background:#3f4745; color:#fff; padding:10px 14px; font-weight:700; letter-spacing:.1px; }
.gallery figcaption span{ display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Benefits, Forms, Footer — як було */
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.benefit { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px; border-radius: 16px; border: 1px solid #eaf3ee; background: linear-gradient(180deg, #ffffff 0%, #f9fdfb 100%); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.benefit:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(18,118,64,0.18); }
.benefit-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #e7f5ec; color: var(--green); flex-shrink: 0; }
.benefit-body { font-size: 16px; color: var(--text); line-height: 1.35; }
.benefit-body strong { color: var(--green); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form { padding: 20px; }
label { display: block; font-weight: 600; margin: 10px 0 6px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="file"], textarea, select { width: 100%; padding: 12px 12px; border-radius: 12px; border: 1px solid #cfe5da; outline: none; transition: box-shadow .15s ease, border-color .15s ease; font: inherit; background: #fff; }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(18,118,64,.12); }
textarea { min-height: 120px; resize: vertical; }
.help { font-size: 12px; color: var(--muted); margin-top: 6px; }
.actions { margin-top: 14px; display: flex; gap: 10px; align-items: center; }
.note { font-size: 13px; color: var(--muted); }

.footer { background: #0f2e1c; color: #e6f4ec; padding: 32px 0; }
.footer a { color: #c6f0d9; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; align-items: center; }
.copy { border-top: 1px solid #2c4b3a; margin-top: 24px; padding-top: 16px; font-size: 13px; color: #b7cec2; }
.footer .brand-logo { height: var(--footer-logo-h); filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 6px rgba(255,255,255,.45)); }
.footer .brand-text { color: #d8f3e6; }

.contact-list { list-style: none; padding: 0; margin: 8px 0 0 0; display: grid; gap: 10px; }
.contact-item { display: flex; align-items: center; gap: 10px; }
.icon { width: 18px; height: 18px; color: #c6f0d9; }
.icon.telegram { width: 26px; height: 26px; } /* тільки Telegram більший */
.footer .contact-item a { color: #c6f0d9; }

/* Адаптив */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 28px; }
  .benefits, .form-grid, .foot-grid { grid-template-columns: 1fr; }
  .links { display: none; }
}

/* --- Overrides --- */
.lang-btn{font-weight:500 !important;}


/* === Screenshot form tune === */
.card.form {
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(18,118,64,.16), 0 4px 12px rgba(18,118,64,.06);
  border: 1px solid #eaf3ee;
}

.card.form h2 { font-size: clamp(26px,3vw,34px); }
.card.form .lead { font-size: 16px; }

.cta { border-radius: 999px; padding: 10px 18px; }

/* Footer like screenshot */
.footer { background: #0f2e1c; color: #e6f4ec; padding: 32px 0; }
.footer__content { display:grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items:start; }
.footer__brand { display:flex; align-items:center; gap:12px; margin: 6px 0 10px 0; }
.brand-badge { width:40px; height:40px; border-radius:12px; background:#fff; display:grid; place-items:center; box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.brand-badge img { width:26px; height:26px; object-fit:contain; }
.brand-title { font-weight: 800; color:#fff; font-size: 20px; }
.footer__heading { font-weight: 700; margin-bottom: 8px; color:#c6f0d9; }
.footer__contacts { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.footer__contacts a { color:#c6f0d9; }
.footer__copy { border-top:1px solid #2c4b3a; margin-top: 20px; padding-top:12px; font-size:13px; color:#b7cec2; }
.icon { width:18px; height:18px; color:#c6f0d9; }
.icon.telegram { width:26px; height:26px; }


/* Make forms wider and centered like screenshot */
.card.form {  }
.form-grid { grid-template-columns: 1fr 1fr; gap: 24px; }


/* Forms full-width like benefits (use container width) */
.card.form {
  max-width: 100%;
}

/* Background animation for hero */
.hero {
  background: linear-gradient(120deg, #f5fbf7, #ffffff, #f5fbf7);
  background-size: 200% 200%;
  animation: bgAnim 12s ease infinite;
}
@keyframes bgAnim {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card.form{width:100%;}

/* wide form tune */
.card.form{padding:28px;}
.form-grid{grid-template-columns:1fr 1fr; gap:24px;}
@media (max-width: 700px){
  .form-grid{grid-template-columns:1fr; gap:14px;}
}

/* hero animated background */
.hero{
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::before{
  content:"";
  position:absolute; inset:-20% -10% auto -10%;
  height:120%;
  background:
    radial-gradient(40% 30% at 20% 30%, rgba(18,118,64,.10), transparent 60%),
    radial-gradient(35% 25% at 80% 20%, rgba(18,118,64,.08), transparent 60%),
    radial-gradient(50% 40% at 60% 80%, rgba(18,118,64,.10), transparent 60%);
  filter: blur(20px);
  animation: heroFloat 28s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events:none;
}
@keyframes heroFloat{
  0%   { transform: translateY(-6%) translateX(-2%) scale(1.0); opacity:.9;}
  50%  { transform: translateY(4%) translateX(3%)  scale(1.05); opacity:.95;}
  100% { transform: translateY(8%) translateX(-1%) scale(1.08); opacity:.9;}
}
@media (prefers-reduced-motion: reduce){
  .hero::before{ animation: none; }
}
/* keep hero inner content above the animation */
.hero > .container, .hero__content, .hero-inner{ position: relative; z-index: 1; }

/* Logo animation */
.logo-lab__logo{
  animation: logoFloat 7s ease-in-out infinite alternate, logoGlow 4s ease-in-out infinite alternate;
  transform-origin: 50% 50%;
  will-change: transform, filter;
}
@keyframes logoFloat{
  0%{ transform: translateY(0) scale(1); }
  50%{ transform: translateY(-4px) scale(1.015); }
  100%{ transform: translateY(2px) scale(1.01); }
}
@keyframes logoGlow{
  0%{ filter: drop-shadow(0 2px 0 rgba(18,118,64,.10)); }
  100%{ filter: drop-shadow(0 6px 10px rgba(18,118,64,.25)); }
}
@media (prefers-reduced-motion: reduce){
  .logo-lab__logo{ animation: none; }
}

/* pretty form */
.card.form{
  background: linear-gradient(180deg,#ffffff 0%, #fbfefc 100%);
  border: 1px solid #e3f1ea;
  box-shadow: 0 24px 60px rgba(18,118,64,.12), 0 4px 14px rgba(0,0,0,.06);
  border-radius: 18px;
}
.card.form h2{ letter-spacing: .2px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="file"], textarea, select{
  background: #fff;
  border: 1px solid #cfe5da;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
input:focus, textarea:focus, select:focus{
  border-color: var(--green);
  box-shadow: 0 0 0 5px rgba(18,118,64,.12);
}
.btn, .cta{ border-radius: 999px; }

/* abstract bg v2 */
.hero::after{
  content:"";
  position:absolute; inset:0;
  background:
    conic-gradient(from 0deg at 20% 30%, rgba(18,118,64,.06), transparent 30%),
    conic-gradient(from 180deg at 80% 20%, rgba(18,118,64,.05), transparent 40%),
    radial-gradient(50% 40% at 60% 80%, rgba(18,118,64,.08), transparent 60%);
  mix-blend-mode: multiply;
  animation: swirl 42s linear infinite;
  opacity:.9;
  z-index:0;
  pointer-events:none;
}
@keyframes swirl{
  0%{ transform: rotate(0deg) scale(1); }
  100%{ transform: rotate(1turn) scale(1.02); }
}


/* === Enhanced abstract hero background (multi-layer, animated) === */
.hero{
  --blob1x: 20%; --blob1y: 30%;
  --blob2x: 80%; --blob2y: 25%;
  --blob3x: 60%; --blob3y: 75%;
  position: relative;
  overflow: hidden;
}
.hero::before{
  content: "";
  position: absolute; inset: -10% -10% -10% -10%;
  background:
    radial-gradient(30% 26% at var(--blob1x) var(--blob1y), rgba(18,118,64,.12), transparent 60%),
    radial-gradient(26% 22% at var(--blob2x) var(--blob2y), rgba(18,118,64,.10), transparent 60%),
    radial-gradient(36% 32% at var(--blob3x) var(--blob3y), rgba(18,118,64,.12), transparent 60%),
    conic-gradient(from 0deg at 50% 50%, rgba(18,118,64,.04), transparent 25%, rgba(18,118,64,.05), transparent 50%, rgba(18,118,64,.04), transparent 75%);
  animation: blobsMove 28s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0; filter: blur(14px);
}
@keyframes blobsMove{
  0%   { --blob1x: 18%; --blob1y: 28%; --blob2x: 82%; --blob2y: 22%; --blob3x: 62%; --blob3y: 78%; transform: rotate(0deg) scale(1); }
  50%  { --blob1x: 24%; --blob1y: 34%; --blob2x: 76%; --blob2y: 28%; --blob3x: 58%; --blob3y: 70%; transform: rotate(2deg) scale(1.02); }
  100% { --blob1x: 20%; --blob1y: 32%; --blob2x: 80%; --blob2y: 26%; --blob3x: 60%; --blob3y: 74%; transform: rotate(-2deg) scale(1.01); }
}
/* grain overlay */
.hero::after{
  content: ""; position: absolute; inset:0; pointer-events:none; z-index: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="220" height="220" viewBox="0 0 220 220"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" opacity="0.04" filter="url(%23n)"/></svg>');
  mix-blend-mode: multiply;
}

/* Ensure hero content stays above animation */
.hero > .container, .hero__content, .hero-inner{ position: relative; z-index: 1; }

/* === Logo pleasant float + glow === */
.logo-lab__logo{
  animation: logoFloat 8s ease-in-out infinite alternate, logoGlow 5s ease-in-out infinite alternate;
  transform-origin: 50% 50%;
  will-change: transform, filter, opacity;
}
@keyframes logoFloat{ 0%{ transform: translateY(0) } 50%{ transform: translateY(-5px) } 100%{ transform: translateY(3px) } }
@keyframes logoGlow{ 0%{ filter: drop-shadow(0 2px 0 rgba(18,118,64,.10)); } 100%{ filter: drop-shadow(0 10px 18px rgba(18,118,64,.28)); } }
@media (prefers-reduced-motion: reduce){ .logo-lab__logo{ animation: none; } }

/* === Form visual polish === */
.card.form{
  background: radial-gradient(120% 100% at 0% 0%, #ffffff 0%, #fbfefc 60%, #f7fcf9 100%);
  border: 1px solid #e3f1ea;
  box-shadow: 0 28px 90px rgba(18,118,64,.14), 0 8px 18px rgba(18,118,64,.06);
  border-radius: 20px;
}
input[type="text"], input[type="tel"], input[type="email"], input[type="file"], textarea{
  transition: border-color .15s ease, box-shadow .15s ease, background-color .2s ease;
}
input:focus, textarea:focus{
  background-color: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 6px rgba(18,118,64,.10);
}
.actions .cta{ padding: 12px 20px; font-weight: 700; }


/* --- Clickability fixes --- */
.header{ position: sticky; top:0; z-index: 3000; }
.right-actions, .lang-switch{ position: relative; z-index: 4000; pointer-events: auto; }
.lang-btn{ pointer-events: auto; }

/* any hero overlays must not capture clicks */
.hero::before, .hero::after{ pointer-events: none; }
.logo-lab__grid, .logo-lab__bg, .logo-lab__scan-line{ pointer-events: none; }


/* Footer contact colors: enforce white text for contacts */
.footer .contact-list .contact-item,
.footer .contact-list .contact-item a,
.footer .contact-list .contact-item span { color: #ffffff; }
.footer .contact-list .contact-item a:hover { opacity: .9; text-decoration: underline; }
.footer .icon { color: #ffffff; }
.footer .footer__heading { color: #ffffff; }
.footer .footer__description { color: #e6f4ec; }
.footer .copy { color: #ffffff; border-top-color: rgba(255,255,255,.25); }


/* ===== Mobile responsiveness improvements ===== */
.menu-toggle{display:none;position:relative;width:40px;height:40px;background:transparent;border:none;cursor:pointer}
.menu-toggle span{display:block;width:22px;height:2px;background:#1c2a24;margin:5px auto;transition:transform .2s ease,opacity .2s ease}
@media (max-width: 900px){
  .menu-toggle{display:block;order:0}
  .nav{gap:10px}
  .links{position:absolute;top:76px;left:0;right:0;background:#ffffff;border-bottom:1px solid #eaf3ee;display:none;flex-direction:column;padding:10px 16px}
  .links.open{display:flex}
  .links a{padding:10px 4px}
  .right-actions{margin-left:auto}
  .brand-logo{height:34px}
}
@media (max-width: 720px){
  section{padding:42px 0}
  .hero__content{grid-template-columns:1.4fr 0.6fr;gap:20px}
  .logo-lab__container{width:min(86vw,420px);height:min(86vw,420px)}
  .btn.btn-primary,.cta{width:100%;justify-content:center}
  .gallery__grid{grid-template-columns:repeat(2,1fr)}
  .form-grid{grid-template-columns:1fr}
  .footer__content{grid-template-columns:1fr}
  .brand-text{display:none}
}
@media (max-width: 420px){
  .eyebrow{font-size:12px}
  .hero h1{font-size:24px;line-height:1.2}
  .subtitle{font-size:15px}
  .gallery__grid{grid-template-columns:1fr}
  .brand-logo{height:30px}
}
/* Improve touch targets */
button, .cta, .btn{min-height:44px}
input, textarea, select{min-height:44px}


/* -- Strong mobile overrides for menu -- */
@media (max-width: 900px){
  .menu-toggle{ z-index: 1001; }
  .links{ z-index: 1000; position: absolute; top: 76px; left: 0; right: 0; }
}


/* ===== Background animation (lightweight, CSS-only) ===== */
.bgfx{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(1200px 800px at 10% 20%, rgba(18,118,64,.10), transparent 60%),
              radial-gradient(900px 700px at 80% 10%, rgba(18,118,64,.10), transparent 60%),
              linear-gradient(120deg, #f6fbf8, #ffffff 28%, #f1faf5 60%, #ffffff 100%);
  background-size: 200% 200%;
  animation: bg-pan 18s ease-in-out infinite alternate;
}
@keyframes bg-pan{
  0%{ background-position: 0% 0%; filter: hue-rotate(0deg); }
  100%{ background-position: 100% 100%; filter: hue-rotate(-6deg); }
}

/* Soft floating blobs (use transforms only) */
.bgfx::before,
.bgfx::after{
  content: "";
  position: absolute;
  width: 46vmin; height: 46vmin;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(18,118,64,.15), rgba(18,118,64,.05) 60%, transparent 70%);
  filter: blur(20px);
  opacity: .75;
  will-change: transform;
}
.bgfx::before{
  top: 10%; left: -6%;
  animation: blobA 22s ease-in-out infinite alternate;
}
.bgfx::after{
  bottom: -8%; right: -4%;
  width: 54vmin; height: 54vmin;
  animation: blobB 26s ease-in-out infinite alternate;
}
@keyframes blobA{
  0%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(12%, -6%) scale(1.08) rotate(8deg); }
  100%{ transform: translate(4%, 8%) scale(0.98); }
}
@keyframes blobB{
  0%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-10%, 6%) scale(1.06) rotate(-6deg); }
  100%{ transform: translate(-4%, -4%) scale(0.97); }
}

/* Keep content above background */
header, main, footer{ position: relative; z-index: 1; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .bgfx{ animation: none; background-size: 100% 100%; }
  .bgfx::before, .bgfx::after{ animation: none; }
}


/* ===== Abstract hero layer ("абстракція") ===== */
.hero{ position: relative; }
.afx{
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.afx-grid{
  position: absolute; inset: -10% -10% -10% -10%;
  width: 120%; height: 120%;
  transform: rotate(0deg);
  animation: afx-rotate 36s linear infinite;
  will-change: transform;
}
@keyframes afx-rotate{
  from{ transform: rotate(0deg) scale(1); }
  to{ transform: rotate(360deg) scale(1); }
}

/* floating dots */
.afx-dot{
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(18,118,64,.9), rgba(18,118,64,.25));
  filter: blur(0.2px);
  opacity: .7;
  transform: translateZ(0);
}
.afx-dot--a{ left: 6%; top: 26%; animation: afx-float-a 14s ease-in-out infinite; }
.afx-dot--b{ right: 10%; top: 18%; width: 12px; height: 12px; animation: afx-float-b 18s ease-in-out infinite; }
.afx-dot--c{ left: 32%; bottom: 12%; width: 8px; height: 8px; animation: afx-float-c 16s ease-in-out infinite; }

@keyframes afx-float-a{
  0%{ transform: translate(0,0); opacity:.6 }
  50%{ transform: translate(18px,-10px); opacity:.9 }
  100%{ transform: translate(6px,12px); opacity:.6 }
}
@keyframes afx-float-b{
  0%{ transform: translate(0,0) }
  50%{ transform: translate(-12px,8px) }
  100%{ transform: translate(-6px,-8px) }
}
@keyframes afx-float-c{
  0%{ transform: translate(0,0) }
  50%{ transform: translate(14px,-6px) }
  100%{ transform: translate(6px,8px) }
}

/* Keep actual hero content above */
.hero .container, .hero .hero__content{ position: relative; z-index: 1; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .afx-grid{ animation: none }
  .afx-dot{ animation: none }
}
.hero .logo-lab__container.--plain{
    background: none !important;
    box-shadow: none !important;
    border-radius: 0;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 32px);
}

/* саме лого по центру, без тіней */
.logo-lab__logo{
    width: min(80%, 460px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    filter: none;
}

/* прибираємо усе зайве, якщо залишилось у верстці/стилях */
.logo-lab__bg,
.logo-lab__grid,
.logo-lab__chips,
.logo-lab__scan-line{ display:none !important; }

@media (max-width: 960px){
    .hero__logo-lab{ order:-1; }
    .logo-lab__logo{ width: 72%; }
}
/* HERO: текст ~70% (ліворуч), лого ~30% (праворуч) */
.hero__content{
    display: grid;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    grid-template-areas: "text logo";
    grid-template-columns: 1.4fr 0.6fr; /* 70% | 30% */
}

.hero__text{ grid-area: text; }
.hero__logo-lab{
    grid-area: logo;
    justify-self: center; /* або end; якщо треба прилипити праворуч */
}

/* Мобільно: стекаємо — спочатку текст, потім лого */
@media (max-width: 960px){
    .hero__content{
        grid-template-columns: 1.4fr 0.6fr;
        grid-template-areas:
      "text"
      "logo";
    }
}

/* === Directions visual refresh & muted text === */
.directions-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:16px;
  margin-top:12px;
}
.direction-card{
  display:flex;
  gap:12px;
  align-items:flex-start;
  background: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 14px 16px;
}
.direction-card .dir-title,
.direction-card .dir-desc{
  color: var(--text-muted);
}
.direction-card .dir-title{ font-weight: 600; }
.direction-card .dir-icon{ flex:0 0 36px; display:flex; align-items:center; justify-content:center; }
.direction-card .dir-icon svg{ width:22px; height:22px; background: transparent; padding: 0; border-radius: 0; display:block; }

/* About lead to match global muted style */
#about .lead{ color: var(--text-muted); }

/* Benefits: keep icons crisp and not stretched */
.benefit-icon svg{ width:24px; height:24px; display:block; background: transparent; padding:0; border-radius:0; }
.benefit{ align-items:center; }


.benefit-body{ color: var(--text-muted); }


/* Custom file field */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}
.file-field{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.file-field .file-name{font-size:14px;color:var(--text-muted);}
.file-field .file-btn{width:auto;margin:4px 0;}


.about__directions-title{ text-align:center; margin:22px 0 18px; }

section h3 { text-align:center; }

@media (max-width: 768px){ .file-field{ justify-content:center; } }


/* Static directions list */
.directions-alt .dir-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:12px}
@media (max-width: 1024px){ .directions-alt .dir-list{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width: 640px){ .directions-alt .dir-list{grid-template-columns:1fr;} }
.directions-alt .dir-item{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:16px;box-shadow:0 1px 0 rgba(0,0,0,.02)}
.directions-alt .dir-icon{width:36px;height:36px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:var(--bg-soft)}
.directions-alt .dir-title{font-weight:700;margin:2px 0 6px}
.directions-alt .dir-desc{color:var(--text-muted);line-height:1.5}



/* === Inline validation errors === */
.field-error{
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 6px;
}
.is-invalid{
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 4px rgba(231,76,60,.12) !important;
}

/* i18n switch UX */
form [role="status"]:empty { display: none !important; }
.field-error { color: #e74c3c; font-size: 0.85rem; margin-top: 6px; }
