/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

:root {
    --navy:       #0b1f3a;
    --navy-mid:   #132d52;
    --blue:       #1a56db;
    --blue-lt:    #2563eb;
    --gold:       #c9a84c;
    --gold-lt:    #e0bc6a;
    --text:       #1a1a2e;
    --text-mid:   #3d4a5c;
    --text-light: #6b7a8d;
    --bg:         #ffffff;
    --bg-off:     #f8f9fc;
    --bg-dark:    #0b1f3a;
    --border:     #dde3ed;
    --radius-sm:  4px;
    --radius:     6px;
    --radius-lg:  12px;
    --shadow-sm:  0 2px 8px rgba(11,31,58,.08);
    --shadow:     0 8px 32px rgba(11,31,58,.12);
    --shadow-lg:  0 24px 64px rgba(11,31,58,.18);
    --tr:         .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

/* ============ CONTAINER ============ */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ============ TOPBAR ============ */
.topbar {
    background: var(--navy);
    color: rgba(255,255,255,.55);
    font-size: .78rem;
    letter-spacing: .03em;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.topbar__left { display: flex; gap: 24px; align-items: center; }
.topbar__item { display: flex; align-items: center; gap: 6px; }
.topbar__item svg { opacity: .55; flex-shrink: 0; }
.topbar a { color: rgba(255,255,255,.6); }
.topbar a:hover { color: var(--gold-lt); }

/* ============ HEADER ============ */
.header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(0,0,0,.04), var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 72px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo__img { height: 46px; width: auto; object-fit: contain; }

.nav { display: flex; gap: 4px; flex: 1; }
.nav__link {
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--text-mid);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--tr);
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .08em;
}
.nav__link:hover {
    color: var(--navy);
    background: var(--bg-off);
}

/* ============ LANG SWITCHER ============ */
.lang-switcher { display: flex; gap: 4px; flex-shrink: 0; }
.lang-switcher__btn {
    padding: 5px 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--text-light);
    transition: all var(--tr);
    text-transform: uppercase;
}
.lang-switcher__btn:hover { border-color: var(--navy); color: var(--navy); }
.lang-switcher__btn--active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* ============ BURGER ============ */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}
.burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--tr);
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
    color: #fff;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: .22;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(11,31,58,.96) 0%,
        rgba(11,31,58,.82) 50%,
        rgba(11,31,58,.55) 100%
    );
}

.hero__inner {
    position: relative;
    z-index: 1;
    padding: 100px 0 80px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}
.hero__eyebrow::before {
    content: '';
    display: block;
    width: 32px; height: 1px;
    background: var(--gold);
}

.hero__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 24px;
    color: #fff;
}
:lang(ky) .hero__title,
:lang(ky) .section__title {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -.01em;
}
.hero__title em {
    font-style: normal;
    color: var(--gold-lt);
}

.hero__sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.65);
    margin-bottom: 44px;
    max-width: 500px;
    line-height: 1.75;
    font-weight: 300;
}

.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
    display: flex;
    gap: 32px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,.1);
}
.hero__stat-num {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}
.hero__stat-label {
    font-size: .78rem;
    color: rgba(255,255,255,.5);
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Hero right — image card */
.hero__visual {
    position: relative;
}
.hero__img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,.08);
    aspect-ratio: 4/3;
}
.hero__img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .9;
}
.hero__badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--gold);
    color: var(--navy);
    border-radius: var(--radius);
    padding: 16px 22px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    box-shadow: var(--shadow);
    line-height: 1.4;
}
.hero__badge span { display: block; font-size: 1.3rem; font-weight: 700; letter-spacing: 0; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--tr);
}
.btn--primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.btn--primary:hover {
    background: var(--gold-lt);
    border-color: var(--gold-lt);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,168,76,.35);
}
.btn--outline {
    background: transparent;
    color: rgba(255,255,255,.85);
    border-color: rgba(255,255,255,.3);
}
.btn--outline:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.6);
    color: #fff;
    transform: translateY(-2px);
}
.btn--dark {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.btn--dark:hover {
    background: var(--navy-mid);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11,31,58,.3);
}
.btn--full { width: 100%; justify-content: center; }

/* ============ SECTION BASE ============ */
.section { padding: 96px 0; }
.section--dark { background: var(--navy); color: #fff; }
.section--off { background: var(--bg-off); }

.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}
.section__eyebrow::before {
    content: '';
    display: block;
    width: 28px; height: 1px;
    background: var(--gold);
}

.section__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--navy);
}
.section--dark .section__title { color: #fff; }
.section__title--center { text-align: center; }

.section__lead {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 640px;
    margin-bottom: 56px;
    font-weight: 300;
    line-height: 1.8;
}
.section--dark .section__lead { color: rgba(255,255,255,.6); }
.section__lead--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============ DIVIDER ============ */
.divider {
    width: 48px; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-lt));
    margin-bottom: 24px;
    border-radius: 2px;
}
.divider--center { margin-left: auto; margin-right: auto; }

/* ============ ABOUT / FEATURES ============ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

.feature {
    padding: 40px 36px;
    background: #fff;
    border: 1px solid var(--border);
    position: relative;
    transition: box-shadow var(--tr), transform var(--tr);
}
.feature:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    z-index: 1;
}
.feature__icon-wrap {
    width: 52px; height: 52px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    transition: all var(--tr);
}
.feature:hover .feature__icon-wrap {
    background: var(--navy);
    border-color: var(--navy);
}
.feature:hover .feature__icon-wrap svg { color: #fff; }
.feature__icon-wrap svg { color: var(--navy); transition: color var(--tr); }
.feature__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--navy);
    letter-spacing: .01em;
}
.feature__text { font-size: .9rem; color: var(--text-light); line-height: 1.7; }

/* ============ BRAND SECTIONS ============ */
.brand-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 540px;
}
.brand-block--reverse { direction: rtl; }
.brand-block--reverse > * { direction: ltr; }

.brand-block__image {
    position: relative;
    overflow: hidden;
    background: var(--navy);
}
.brand-block__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .7;
    transition: transform .8s ease, opacity .5s ease;
}
.brand-block:hover .brand-block__image img {
    transform: scale(1.04);
    opacity: .8;
}
.brand-block__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,31,58,.6), rgba(11,31,58,.2));
}
.brand-block__logo-badge {
    position: absolute;
    top: 32px; left: 32px;
    background: rgba(255,255,255,.95);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.5px;
}
.brand-block__logo-badge--ubiquiti { color: #0057b8; }
.brand-block__logo-badge--mikrotik { color: #c0392b; }

.brand-block__content {
    padding: 72px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}
.section--dark .brand-block__content { background: var(--navy-mid); }

.brand-block__content .section__title { margin-bottom: 8px; }
.brand-block__tagline {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 28px;
    font-weight: 300;
}
.brand-block__text {
    font-size: .95rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 16px;
}
.section--dark .brand-block__text { color: rgba(255,255,255,.65); }

.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 36px; }
.tag {
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: all var(--tr);
}
.tag:hover { border-color: var(--navy); color: var(--navy); background: var(--bg-off); }

/* ============ CONTACT ============ */
.contact-section {
    background: var(--navy);
    color: #fff;
    padding: 96px 0;
}
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact__info { display: flex; flex-direction: column; gap: 0; }
.contact__item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.contact__item:first-child { padding-top: 0; }
.contact__icon-wrap {
    width: 44px; height: 44px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
}
.contact__item strong {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 6px;
}
.contact__item p, .contact__item a {
    font-size: .98rem;
    color: rgba(255,255,255,.85);
    line-height: 1.6;
}
.contact__item a:hover { color: var(--gold-lt); }

.contact__form {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: 44px;
}
.contact__form-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}
.contact__form-sub {
    font-size: .85rem;
    color: rgba(255,255,255,.4);
    margin-bottom: 28px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }

.form-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    margin-bottom: 8px;
}
.form-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-sm);
    font-size: .93rem;
    font-family: inherit;
    color: #fff;
    transition: border-color var(--tr), background var(--tr);
}
.form-input::placeholder { color: rgba(255,255,255,.25); }
.form-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,.09);
}
.form-textarea { resize: vertical; min-height: 110px; }

.form-notice {
    margin-top: 14px;
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 500;
}
.form-notice--ok  { background: rgba(34,197,94,.12); color: #86efac; border: 1px solid rgba(34,197,94,.25); }
.form-notice--err { background: rgba(239,68,68,.12); color: #fca5a5; border: 1px solid rgba(239,68,68,.25); }

/* ============ FOOTER ============ */
.footer {
    background: #060f1c;
    color: rgba(255,255,255,.5);
    padding: 56px 0 28px;
    border-top: 1px solid rgba(255,255,255,.05);
}

.footer__inner {
    display: grid;
    grid-template-columns: 280px 1fr 1fr auto;
    gap: 56px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    margin-bottom: 28px;
}

.footer__logo {
    height: 42px;
    width: auto;
    margin-bottom: 16px;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 5px 12px;
}
.footer__brand p {
    font-size: .85rem;
    line-height: 1.8;
    color: rgba(255,255,255,.4);
}

.footer__col-title {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-bottom: 20px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
    font-size: .88rem;
    color: rgba(255,255,255,.5);
    transition: color var(--tr);
}
.footer__links a:hover { color: var(--gold-lt); }

.footer__info p {
    font-size: .88rem;
    line-height: 1.9;
    color: rgba(255,255,255,.5);
}
.footer__info a { color: rgba(255,255,255,.5); }
.footer__info a:hover { color: var(--gold-lt); }

.footer__langs { display: flex; flex-direction: column; gap: 6px; }
.footer__langs .lang-switcher__btn {
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.45);
}
.footer__langs .lang-switcher__btn:hover,
.footer__langs .lang-switcher__btn--active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,168,76,.08);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.footer__copy { font-size: .8rem; }
.footer__credits { font-size: .8rem; }

/* ============ MOBILE NAV ============ */
.nav--open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #fff;
    padding: 20px 28px;
    box-shadow: 0 16px 40px rgba(0,0,0,.14);
    z-index: 199;
    gap: 4px;
    border-top: 1px solid var(--border);
}

/* Lang switcher inside mobile menu */
.nav__lang-mobile {
    display: none !important;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    gap: 8px;
}
.nav--open .nav__lang-mobile {
    display: flex !important;
}
.nav--open .nav__lang-mobile .lang-switcher__btn {
    flex: 1;
    text-align: center;
    padding: 9px 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; gap: 48px; }
    .hero__visual { display: none; }
    .hero__inner { padding: 80px 0 60px; }
    .brand-block { grid-template-columns: 1fr; min-height: auto; }
    .brand-block__image { min-height: 300px; }
    .brand-block__content { padding: 52px 40px; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .topbar { display: none; }
    .features { grid-template-columns: 1fr; gap: 0; }
    .contact__grid { grid-template-columns: 1fr; gap: 48px; }
    .brand-block--reverse { direction: ltr; }
    .form-row { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; text-align: center; }
    .section { padding: 64px 0; }
    .contact-section { padding: 64px 0; }
}

@media (max-width: 640px) {
    .nav { display: none; }
    .burger { display: flex; }
    .lang-switcher { display: none; }
    .hero__stats { gap: 20px; flex-wrap: wrap; }
    .hero__inner { padding: 60px 0 48px; }
    .brand-block__content { padding: 40px 28px; }
    .contact__form { padding: 32px 24px; }
}
