/*
Theme Name: vashfindir
Text Domain: vashfindir
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Author: vashfindir
*/

/* =========================================================
   Base tokens / reset / typography
   ========================================================= */

:root{
    /* Brand */
    --vf-brand:#0A1548;
    --vf-brand-2:#0d1c63;
    --brand-blue: #0A1548;
    --brand-blue-hover: #0d1c63;
    --brand-red: #B00020;
    --brand-red-hover: #8E001A;
    --cta-padding-y: 14px;
    --cta-padding-x: 22px;

    /* Text */
    --vf-text:#0b1020;
    --vf-muted:#5c677d;

    /* Typography */
    --vf-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
    --vf-fs-body: 16px;
    --vf-lh-body: 1.55;
    --vf-fs-h1: clamp(34px, 3.2vw, 52px);
    --vf-lh-h1: 1.08;
    --vf-ls-h1: -0.03em;
    --vf-fs-h2: clamp(26px, 2.4vw, 34px);
    --vf-lh-h2: 1.15;
    --vf-ls-h2: -0.02em;
    --vf-fs-h3: clamp(20px, 1.6vw, 24px);
    --vf-lh-h3: 1.2;
    --vf-fs-small: 14px;
    --vf-lh-small: 1.45;

    /* Surfaces */
    --vf-bg:#f5f6f8;
    --vf-card:#ffffff;

    /* UI */
    --vf-border: rgba(10,21,72,.14);
    --vf-radius: 6px;
    --vf-shadow: 0 10px 30px rgba(10,21,72,.08);
    --vf-btn-height: 2.3rem;

    /* Layout */
    --vf-content-max: 1320px;
    --vf-grid-columns: 12;
    --vf-grid-gap: 24px;
}

*,
*::before,
*::after{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
    margin: 0;
    padding: 0;
    font-family: var(--vf-font-sans);
    font-size: var(--vf-fs-body);
    background: var(--vf-bg);
    color: var(--vf-text);
    line-height: var(--vf-lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a{ color: inherit; }

.container{
    max-width: var(--vf-content-max);
    margin: 0 auto;
    padding: 0 16px;
}

.vf-grid-12{
    display: grid;
    grid-template-columns: repeat(var(--vf-grid-columns), minmax(0, 1fr));
    gap: var(--vf-grid-gap);
}

@media (min-width: 1200px) and (max-width: 1399.98px){
    :root{ --vf-content-max: 1140px; }
}

@media (min-width: 992px) and (max-width: 1199.98px){
    :root{ --vf-content-max: 960px; }
}

@media (min-width: 768px) and (max-width: 991.98px){
    :root{ --vf-content-max: 720px; }
}

@media (min-width: 576px) and (max-width: 767.98px){
    :root{ --vf-content-max: 540px; }
}

@media (max-width: 575.98px){
    :root{ --vf-content-max: 100%; }
}

.site-container{
    min-height: 100%;
}

/* Typo defaults */
h1, h2, h3, h4, h5, h6{
    margin: 0 0 12px;
    color: var(--vf-text);
    line-height: 1.15;
    letter-spacing: -0.02em;
}
p{ margin: 0 0 12px; }

small{ color: var(--vf-muted); }

h1{
    font-size: var(--vf-fs-h1);
    line-height: var(--vf-lh-h1);
    letter-spacing: var(--vf-ls-h1);
}

h2{
    font-size: var(--vf-fs-h2);
    line-height: var(--vf-lh-h2);
    letter-spacing: var(--vf-ls-h2);
}

h3{
    font-size: var(--vf-fs-h3);
    line-height: var(--vf-lh-h3);
}

/* =========================================================
   Section typography (shared)
   ========================================================= */

/* Page title (H1 utility) */
.page-title{
    margin: 0;
    font-weight: 900;
    font-size: var(--vf-fs-h1);
    line-height: var(--vf-lh-h1);
    letter-spacing: var(--vf-ls-h1);
    color: var(--vf-brand);
}

.section-title{
    margin: 0;
    font-weight: 900;
    font-size: var(--vf-fs-h2);
    line-height: var(--vf-lh-h2);
    letter-spacing: var(--vf-ls-h2);
    color: var(--vf-brand);
}

.section-subtitle{
    margin: .5rem auto 0;
    max-width: 60ch;
    color: var(--vf-muted);
    font-size: var(--vf-fs-body);
    line-height: var(--vf-lh-body);
}

/* =========================================================
   Spacing utilities
   ========================================================= */

.vf-section-pad-lg{
    padding: clamp(28px, 4vw, 56px) 0;
}

/* =========================================================
   Buttons (shared)
   ========================================================= */

.vf-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height: var(--vf-btn-height);
    padding: .65rem 1rem;
    border-radius: var(--vf-radius);
    font-weight: 900;
    text-decoration:none;
    border: 1px solid transparent;
    line-height: 1;
    cursor: pointer;
}

.vf-cta-btn-primary{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-blue);
    color: #fff;
    padding: var(--cta-padding-y) var(--cta-padding-x);
    border-radius: var(--vf-radius);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, transform .05s ease;
}

.vf-cta-btn-primary:hover{
    background: var(--brand-blue-hover);
    color: #fff;
}

.vf-cta-btn-primary:active{
    transform: translateY(1px);
}

.vf-cta-btn-secondary{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-red);
    color: #fff;
    padding: var(--cta-padding-y) var(--cta-padding-x);
    border-radius: var(--vf-radius);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, transform .05s ease;
}

.vf-cta-btn-secondary:hover{
    background: var(--brand-red-hover);
    color: #fff;
}

.vf-cta-btn-secondary:active{
    transform: translateY(1px);
}

/* CTA — outline (secondary) */
.vf-cta-btn-outline{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--brand-blue);
    padding: var(--cta-padding-y) var(--cta-padding-x);
    border-radius: var(--vf-radius);
    border: 2px solid var(--brand-blue);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .05s ease;
}

.vf-cta-btn-outline:hover{
    background: var(--brand-blue);
    color: #fff;
}

.vf-cta-btn-outline:active{
    transform: translateY(1px);
}

.vf-btn--primary{
    background: var(--vf-brand-2);
    border-color: var(--vf-brand-2);
    color:#fff;
    box-shadow: 0 12px 28px rgba(10,21,72,.18);
}

.vf-btn--primary:hover{
    background: var(--vf-brand);
    border-color: var(--vf-brand);
    color:#fff;
}

.vf-btn--secondary{
    background:#fff;
    border: 1px solid rgba(10,21,72,.22);
    color: var(--vf-brand-2);
}

.vf-btn--secondary:hover{
    background: rgba(10,21,72,.04);
    border-color: rgba(10,21,72,.35);
    color: var(--vf-brand-2);
}

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

.btn-cta{
    background: var(--cta);
    border-color: var(--cta);
    color: #fff;
    font-weight: 900;
    border-radius: var(--radius-control);
    padding: .65rem 1rem;
}
.btn-cta:hover{
    background: var(--cta-hover);
    border-color: var(--cta-hover);
    color:#fff;
}
.btn-cta-secondary{
    background: #fff;
    border: 1px solid rgba(10,21,72,.22);
    color: var(--brand-2);
    font-weight: 900;
    border-radius: var(--radius-control);
    padding: .65rem 1rem;
}
.btn-cta-secondary:hover{
    border-color: rgba(10,21,72,.35);
    color: var(--cta-secondary-hover);
    background: rgba(10,21,72,.04);
}

/* =========================================================
   Components (shared)
   ========================================================= */

.vf-surface{
    border: 1px solid var(--vf-surface-border, var(--vf-border));
    border-radius: var(--vf-surface-radius, var(--vf-radius));
    background: var(--vf-surface-bg, var(--vf-card));
    overflow: hidden;
}

/* =========================================================
   Enterprise Header (responsive)
   ========================================================= */

.vf-header{
    background:#fff;
    border-bottom:1px solid rgba(10,21,72,.08);
}

.vf-header__inner{
    max-width: var(--vf-content-max);
    margin: 0 auto;
    padding: 12px 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
}

/* Base brand (badge + name legacy) */
.vf-brand{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    white-space: nowrap;
}

.vf-brand__badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width: 36px;
    height: 24px;
    border-radius: 999px;
    background: rgba(10,21,72,.06);
    border:1px solid rgba(10,21,72,.10);
    color: var(--vf-brand);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .02em;
}

.vf-brand__name{
    color: var(--vf-brand);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.vf-nav{
    display:none;
    gap: 16px;
    align-items:center;
}

.vf-header__actions{
    display:none;
    align-items:center;
    gap: 10px;
}

/* Burger */
.vf-burger{
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(10,21,72,.18);
    border-radius: var(--vf-radius);
    background:#fff;
    padding: 10px 12px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.vf-burger:active{
    transform: translateY(1px);
}

.vf-burger__lines{
    display:block;
    width: 18px;
    height: 2px;
    background: var(--vf-brand);
    position: relative;
}

.vf-burger__lines::before,
.vf-burger__lines::after{
    content:"";
    position:absolute;
    left:0;
    width: 18px;
    height: 2px;
    background: var(--vf-brand);
}

.vf-burger__lines::before{ top: -6px; }
.vf-burger__lines::after{ top: 6px; }

/* Mobile drawer */
.vf-mobile{
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.vf-mobile__backdrop{
    position:absolute;
    inset:0;
    background: rgba(11,16,32,.35);
    z-index: 0; /* backdrop BELOW panel */
}

.vf-mobile__panel{
    position: absolute;
    top:0; right:0;
    width: min(360px, 92vw);
    height: 100%;
    background: #fff;
    border-left: 1px solid rgba(10,21,72,.10);
    box-shadow: var(--vf-shadow);
    padding: 14px;
    display:flex;
    flex-direction:column;
    z-index: 1; /* panel ABOVE backdrop */
}

.vf-mobile__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(10,21,72,.08);
}

.vf-mobile__title{
    font-weight: 900;
    color: var(--vf-brand);
}

.vf-mobile__close{
    border: 1px solid rgba(10,21,72,.14);
    border-radius: var(--vf-radius);
    background:#fff;
    padding: 6px 10px;
    font-weight: 900;
}

.vf-mobile__links{
    display:flex;
    flex-direction:column;
    padding: 12px 0;
    gap: 8px;
}

.vf-mobile__link{
    padding: 10px 10px;
    border-radius: var(--vf-radius);
    text-decoration:none;
    color: var(--vf-brand);
    font-weight: 900;
    border: 1px solid rgba(10,21,72,.10);
    background: rgba(10,21,72,.02);
}

.vf-mobile__actions{
    margin-top: auto;
    display:grid;
    gap: 10px;
}

/* Desktop */
@media (min-width: 992px){
    .vf-burger{ display:none; }
    .vf-nav{ display:flex; }
    .vf-header__actions{ display:flex; }

    /* стабильная высота + воздух */
    .vf-header__inner{
        min-height: 72px;
        gap: 28px;
    }

    /* чтобы пункты меню не переносились */
    .vf-nav{
        gap: 14px;
    }
}

/* =========================================================
   Footer (enterprise) — FIXED hierarchy
   ========================================================= */

.vf-footer{
    margin-top: 56px;
    background: var(--vf-brand);
    color: rgba(255,255,255,.78);
    border-top: 1px solid rgba(255,255,255,.12);
}

.vf-footer__inner{
    max-width: var(--vf-content-max);
    margin: 0 auto;
    padding: 44px 16px 28px;
}

.vf-footer__grid{
    display:grid;
    grid-template-columns: 1fr;
    gap: 26px;
}

@media (min-width: 900px){
    .vf-footer__grid{
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 40px;
    }
}

.vf-footer__brand{
    color:#fff;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: 18px;
}

.vf-footer__logo-link{
    display:inline-flex;
    align-items:center;
    text-decoration:none;
    line-height:1;
    margin-bottom: 12px;
}

.vf-footer__logo{
    display:block;
    height:28px;
    width:auto;
}

@media (max-width: 768px){
    .vf-footer__logo{ height:24px; }
}

.vf-footer__title{
    color: rgba(255,255,255,.72);
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 1.45;
    margin: 0 0 10px;
}

.vf-footer__text{
    margin: 12px 0 0;
    color: rgba(255,255,255,.68);
    max-width: 48ch;
    font-size: 13px;
    line-height: 1.55;
}

.vf-footer__bullets{
    margin: 14px 0 0;
    padding-left: 18px;
    color: rgba(255,255,255,.66);
    font-size: 13px;
    line-height: 1.55;
}

.vf-footer__nav{
    display:flex;
    flex-direction:column;
    gap: 10px;
}

/* links */
.vf-footer__link{
    color: rgba(255,255,255,.72);
    text-decoration:none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
}

.vf-footer__link:hover{
    color: rgba(255,255,255,.92);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

.vf-footer__linkSoft{
    color: rgba(255,255,255,.66);
    text-decoration:none;
    font-weight: 600;
}

.vf-footer__linkSoft:hover{
    color: rgba(255,255,255,.88);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vf-footer__linkStrong{
    color: rgba(255,255,255,.94);
    text-decoration:none;
    font-weight: 700;
    font-size: 14px;
}

.vf-footer__linkStrong:hover{
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

.vf-footer__kv{ margin: 10px 0; }

.vf-footer__k{
    color: rgba(255,255,255,.52);
    font-size: 12px;
    margin-bottom: 4px;
}

.vf-footer__note{
    margin-top: 12px;
    color: rgba(255,255,255,.66);
    font-size: 13px;
    line-height: 1.45;
}

/* Social */
.vf-social{
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.vf-social__item{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    text-decoration:none;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.vf-social__item:hover{
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.28);
    transform: translateY(-1px);
}

.vf-social__icon{
    width: 18px;
    height: 18px;
    display:block;
    fill: rgba(255,255,255,.88);
}

.vf-social__item:hover .vf-social__icon{
    fill: #ffffff;
}

.vf-footer__bottom{
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.12);
    display:flex;
    flex-direction:column;
    gap: 12px;
}

@media (min-width: 900px){
    .vf-footer__bottom{
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
    }
}

.vf-footer__meta{
    color: rgba(255,255,255,.62);
    font-size: 13px;
    line-height: 1.45;
}

.vf-footer__legal{
    display:flex;
    flex-wrap:wrap;
    gap: 10px;
    align-items:center;
    font-size: 13px;
}

.vf-footer__dot{ color: rgba(255,255,255,.35); }
.vf-footer__copy{ color: rgba(255,255,255,.62); }

/* =========================================================
   MENU PATCH (reference: menu-underline-offset)
   - affects ONLY: .vf-nav__link and .vf-mobile__link (+ dividers)
   ========================================================= */

/* -------- Desktop / tablet: underline-only, offset, reveal -------- */
.vf-nav__link{
    position: relative;
    display: inline-block;
    padding: .35rem .65rem;
    line-height: 1.2;
    color: var(--vf-brand);
    font-weight: 800;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    white-space: nowrap; /* не переносим */
}

.vf-nav__link::after{
    content:"";
    position:absolute;
    left: .65rem;
    right: .65rem;
    bottom: -5px;
    height: 2px;
    background: rgba(13,28,99,.72);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .22s ease;
    border-radius: 2px;
}

.vf-nav__link:hover::after,
.vf-nav__link:focus-visible::after,
.vf-nav__link[aria-current="page"]::after{
    transform: scaleX(1);
}

.vf-nav__link:hover,
.vf-nav__link:focus-visible{
    outline: none;
}

/* -------- Mobile drawer: flush list + underline on hover -------- */
.vf-mobile__links{
    gap: 0;
}

.vf-mobile__link{
    display:block;
    padding: .75rem .75rem;
    border: 0;
    border-bottom: 1px solid rgba(10,21,72,.08);
    border-radius: 0;
    background: transparent;
    text-decoration: none;
    color: var(--vf-brand);
    font-weight: 900;
}

.vf-mobile__link:first-child{
    border-top: 1px solid rgba(10,21,72,.08);
}

.vf-mobile__link:hover,
.vf-mobile__link:focus-visible{
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 7px;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(13,28,99,.55);
    outline: none;
}

.vf-mobile__link[aria-current="page"]{
    text-decoration: underline;
    text-underline-offset: 7px;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(13,28,99,.55);
}

/* =========================================================
   Logo (real PNG) + a11y — single source of truth
   ========================================================= */

.vf-sr-only{
    position:absolute;
    width:1px;height:1px;
    padding:0;margin:-1px;
    overflow:hidden;clip:rect(0,0,0,0);
    white-space:nowrap;border:0;
}

/* Вариант бренда, где внутри только картинка-лого (если используешь .vf-brand__logo) */
.vf-brand.vf-brand__logo{
    gap: 0;
    line-height: 1;
}

/* Лого: управляем дизайном через CSS (HTML width/height оставляем для CLS) */
.vf-logo{
    display:block;
    height:32px;
    width:auto;
}

@media (max-width: 768px){
    .vf-logo{ height:28px; }
}

/* На будущее — переключение для темного фона (если добавишь второй img) */
.vf-logo--dark{ display:none; }

.vf-header--dark .vf-logo--light,
body.vf-dark-header .vf-logo--light{ display:none; }

.vf-header--dark .vf-logo--dark,
body.vf-dark-header .vf-logo--dark{ display:block; }

/* Breadcrumbs (VF) — page-level, reusable */
.vf-breadcrumbs{
  background: var(--vf-card);
  border-bottom: 1px solid rgba(10,21,72,.08);
  padding: 12px 0;
}

.vf-breadcrumbs__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--vf-muted);
}

.vf-breadcrumbs__item{
  display:flex;
  align-items:center;
  color: var(--vf-muted);
}

.vf-breadcrumbs__item + .vf-breadcrumbs__item::before{
  content:"/";
  display:inline-block;
  margin:0 10px;
  color: rgba(10,21,72,.28);
}

.vf-breadcrumbs__link{
  color: var(--vf-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .16s ease, border-color .16s ease;
}

.vf-breadcrumbs__link:hover,
.vf-breadcrumbs__link:focus-visible{
  color: var(--vf-brand, var(--vf-text));
  border-bottom-color: rgba(13,28,99,.45);
  outline: none;
}

.vf-breadcrumbs__item[aria-current="page"] .vf-breadcrumbs__current{
  color: var(--vf-text);
}

.vf-breadcrumbs__link:focus-visible{
  box-shadow: 0 0 0 3px rgba(10,21,72,.12);
  border-radius: 4px;
  padding-left: 4px;
  padding-right: 4px;
  margin-left: -4px;
  margin-right: -4px;
}

@media (max-width: 575.98px){
  .vf-breadcrumbs__item + .vf-breadcrumbs__item::before{ margin:0 8px; }
}
