/*
Theme Name: Bylytsia Premium Theme
Author: Ihor Tarnarutskiy
Description: Ще не придумав опис.
Version: 1.0.0
*/

:root {
  --navy-deep: #0a1338;
  --navy: #0e1a4a;
  --navy-light: #16245e;
  --navy-pale: #22306b;
  --black: #15171b;
  --black-soft: #1c1e23;
  --white: #ffffff;
  --cream: #faf8f3;
  --ink: #11131a;
  --muted: #7d84a8;
  --gold-1: #caa55e;
  --gold-2: #e7d09f;
  --gold-3: #9c7a3c;
  --gold-grad: linear-gradient(135deg, #9c7a3c 0%, #e7d09f 45%, #caa55e 75%, #a1813f 100%);
  --font-d: 'Playfair Display', serif;
  --font-b: 'Inter', sans-serif;
  --r-lg: 28px;
  --r-md: 18px;
  --shadow: 0 20px 45px -15px rgba(10, 19, 56, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 56px; }

.eyebrow-rule { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .04em; font-weight: 600; }
.eyebrow-rule::before { content: ""; width: 34px; height: 1px; background: var(--gold-1); }

h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 700; line-height: 1.12; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 17px 34px; border-radius: 50px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-grad); color: var(--navy-deep); box-shadow: 0 14px 30px -10px rgba(202, 165, 94, 0.55); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-ghost-dark { border-color: rgba(17, 19, 26, 0.25); color: var(--ink); }
.btn-ghost-dark:hover { background: rgba(17, 19, 26, 0.05); }

.arrow-nav { display: flex; gap: 10px; }
.arrow-btn {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(17, 19, 26, 0.15); cursor: pointer; background: var(--white); transition: .25s; flex-shrink: 0;
}
.arrow-btn.gold { border-color: var(--gold-1); color: var(--gold-3); }
.arrow-btn.gold:hover { background: var(--gold-grad); color: var(--navy-deep); }
.arrow-btn.dim:hover { background: #f1efe9; }
.arrow-btn svg { width: 17px; height: 17px; }

/* HEADER / HERO  */
.hero-section {
  position: relative;
  background: radial-gradient(120% 140% at 85% 0%, #14225c 0%, var(--navy) 38%, var(--navy-deep) 100%);
  color: var(--white);
  overflow: hidden;
  padding-top: 100px
}

.deco-lines { position: absolute; pointer-events: none; z-index: 0; }
.deco-tl { top: -60px; left: -160px; width: 520px; opacity: .55; }
.deco-br { bottom: -120px; right: -120px; width: 520px; opacity: .5; }
.deco-tr-hero { top: 0; right: 0; width: 430px; opacity: .85; }

header.site-nav {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 34px 56px 0;
  max-width: 1280px; margin: 0 auto;
}

.logo-block .logo-word { font-family: var(--font-d); font-size: 30px; font-weight: 700; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .01em; }
.logo-block .logo-sub { font-size: 11.5px; letter-spacing: .06em; color: #b9c0e0; margin-top: 2px; }

nav.main-links { display: flex; align-items: center; gap: 42px; }
nav.main-links a { font-size: 15px; font-weight: 500; color: #e9ecf8; display: flex; align-items: center; gap: 6px; position: relative; padding-bottom: 6px; }
nav.main-links a.active { color: var(--white); }
nav.main-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-grad); }
nav.main-links a svg { width: 10px; height: 10px; }

.nav-toggle { display: none; background: none; border: none; color: var(--white); cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

.hero-body {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center;
  max-width: 1280px; margin: 0 auto; padding: 62px 56px 0;
}

.hero-copy h1 { font-size: 51px; color: var(--white); letter-spacing: -.01em; }
.hero-copy h1 .accent { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p { margin-top: 24px; font-size: 16.5px; line-height: 1.75; color: #c4cae6; max-width: 480px; }

.hero-actions { display: flex; gap: 18px; margin-top: 38px; }

.hero-photo { position: relative; }
.hero-photo .frame {
  position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 4/4.6;
  box-shadow: 0 35px 70px -20px rgba(0, 0, 0, 0.55);
}
.hero-photo .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(.92) contrast(1.04); }
.hero-photo .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 19, 56, .55) 0%, rgba(10, 19, 56, 0) 38%); }

.hero-photo .gold-tag {
  position: absolute; left: -26px; bottom: 46px; background: var(--white); color: var(--navy-deep);
  padding: 16px 22px; border-radius: 16px; box-shadow: var(--shadow); font-family: var(--font-b);
  display: flex; align-items: center; gap: 12px; max-width: 230px;
}
.gold-tag .num { font-family: var(--font-d); font-size: 24px; font-weight: 700; color: var(--gold-3); }
.gold-tag .label { font-size: 12px; line-height: 1.4; color: #3a4060; font-weight: 500; }

.hero-bottom-space { height: 74px; }

/* SERVICES */
.section-pad { padding: 108px 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; gap: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: 42px; color: var(--ink); }
.section-head .head-text { max-width: 560px; }
.section-head .lede { margin-top: 14px; font-size: 15.5px; color: var(--muted); line-height: 1.7; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  border-radius: var(--r-lg); padding: 34px 30px; min-height: 300px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; transition: transform .35s ease;
}
.svc-card:hover { transform: translateY(-6px); }
.svc-card.navy { background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); }
.svc-card.black { background: linear-gradient(155deg, #22242b 0%, var(--black) 100%); color: var(--white); }
.svc-card.cream { background: var(--white); color: var(--ink); border: 1px solid #ece8de; }

.svc-card .ic {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(202, 165, 94, 0.16); color: var(--gold-1); margin-bottom: auto;
}
.svc-card.cream .ic { background: #f3eee2; color: var(--gold-3); }
.svc-card .ic svg { width: 26px; height: 26px; }

.svc-card h3 { font-size: 23px; margin-top: 18px; }
.svc-card.cream h3 { color: var(--ink); }
.svc-card p { font-size: 14.5px; line-height: 1.65; margin-top: 10px; opacity: .82; max-width: 88%; }

.svc-card .bg-photo { position: absolute; inset: 0; z-index: 0; }
.svc-card .bg-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-card .bg-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 16, 42, .92) 8%, rgba(10, 16, 42, .35) 62%, rgba(10, 16, 42, .05) 100%); }

.svc-card .content-z { position: relative; z-index: 1; }

/*ABOUT*/
.about-section { background: var(--white); position: relative; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-copy p { font-size: 15.5px; line-height: 1.85; color: #454c6c; margin-bottom: 18px; }
.about-copy .eyebrow-rule { margin-top: 8px; color: var(--gold-3); }
.about-right { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }

.practice-card {
  grid-column: 1/2; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--r-lg); padding: 30px 28px; color: var(--white); position: relative; overflow: hidden;
}
.practice-card .ic { width: 48px; height: 48px; border-radius: 12px; background: rgba(202, 165, 94, 0.18); display: flex; align-items: center; justify-content: center; color: var(--gold-1); }
.practice-card .ic svg { width: 24px; height: 24px; }
.practice-card h4 { font-size: 20px; margin-top: 16px; }
.practice-card p { font-size: 13.5px; color: #b9c0e0; margin-top: 8px; line-height: 1.6; }
.practice-card .eyebrow-rule { margin-top: 18px; font-size: 12.5px; color: var(--gold-2); }

.logo-card {
  grid-column: 2/3; background: var(--cream); border: 1px solid #ece8de; border-radius: var(--r-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px;
}
.logo-card svg { width: 54px; height: 54px; }
.logo-card .lc-word { font-family: var(--font-d); font-weight: 700; font-size: 21px; color: var(--navy-deep); }

.stat-card { border-radius: var(--r-lg); padding: 26px 24px; color: var(--white); background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }
.stat-card.gold-num .num { font-family: var(--font-d); font-size: 36px; color: var(--gold-1); font-weight: 700; }
.stat-card .num { font-family: var(--font-d); font-size: 30px; font-weight: 700; }
.stat-card .lbl { font-size: 13px; color: #b9c0e0; margin-top: 6px; line-height: 1.5; }
.stat-duo { grid-column: 1/3; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-duo .num-row { display: flex; gap: 26px; }

/* TEAM */
.team-section { background: var(--cream); position: relative; }
.team-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 50px; align-items: end; }
.team-intro p { font-size: 15.5px; color: var(--muted); line-height: 1.75; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3/3.85; box-shadow: var(--shadow); }
.team-card img { width: 100%; height: 100%; object-fit: cover; }
.team-card.bw img { filter: grayscale(1) contrast(1.05); }
.team-card .overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 13, 38, .92) 0%, rgba(8, 13, 38, .15) 55%, rgba(8, 13, 38, 0) 75%); }
.team-card .tc-text { position: absolute; left: 22px; bottom: 20px; right: 22px; color: var(--white); }
.team-card .tc-text .nm { font-family: var(--font-d); font-size: 19px; font-weight: 700; }
.team-card .tc-text .role { font-size: 12.5px; color: var(--gold-2); margin-top: 4px; }
.team-card .tc-text .spec { font-size: 11.5px; color: #aab1d4; margin-top: 2px; }
.team-card.feature { grid-row: 1/3; aspect-ratio: auto; }
.team-card.feature img { object-position: top center; }

/*  BLOG  */
.blog-section { background: var(--white); }
.blog-grid { display: grid; grid-template-columns: .86fr 1fr 1fr 1fr; gap: 22px; }

.author-card { display: flex; flex-direction: column; }
.author-card .ph { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3/3.1; margin-bottom: 18px; box-shadow: var(--shadow); }
.author-card .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.author-card .nm { font-family: var(--font-d); font-size: 19px; font-weight: 700; }
.author-card .role { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.author-card .date { font-size: 12px; color: var(--gold-3); margin-top: 14px; font-weight: 600; letter-spacing: .03em; }

.blog-card {
  border-radius: var(--r-lg); position: relative; overflow: hidden; min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 30px 26px; color: var(--white);
}
.blog-card .bg { position: absolute; inset: 0; z-index: 0; }
.blog-card .bg img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 15, 42, .55) 0%, rgba(9, 15, 42, .96) 100%); }
.blog-card .z { position: relative; z-index: 1; }
.blog-card .tag { font-size: 11.5px; letter-spacing: .06em; font-weight: 600; color: var(--gold-2); text-transform: uppercase; }
.blog-card h3 { font-size: 25px; margin-top: 12px; line-height: 1.18; }
.blog-card p { font-size: 13.5px; line-height: 1.6; margin-top: 12px; color: #c4cae6; }
.blog-card .rl { margin-top: 22px; font-size: 12.5px; color: var(--gold-2); }

.blog-card.dim { padding: 26px 22px; min-height: 380px; }
.blog-card.dim h3 { font-size: 21px; }

/*  CONTACT FORM  */
.contact-section { background: var(--cream); }
.contact-card {
  position: relative; overflow: hidden; border-radius: 46px;
  background: radial-gradient(120% 160% at 0% 100%, #142152 0%, var(--navy-deep) 55%, #070c26 100%);
  padding: 74px 64px; display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center;
}
.contact-card h2 { color: var(--white); font-size: 36px; line-height: 1.25; max-width: 420px; }
.contact-form { display: flex; flex-direction: column; }
.field { border-bottom: 1px solid rgba(255, 255, 255, 0.22); padding: 16px 2px; margin-bottom: 2px; }
.field input, .field textarea {
  width: 100%; background: transparent; border: none; outline: none; color: var(--white);
  font-family: var(--font-b); font-size: 15px; resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa1c6; }
.field textarea { min-height: 64px; }
.contact-form .btn-gold { margin-top: 30px; align-self: flex-start; padding: 18px 46px; }
.contact-card .deco { position: absolute; left: -30px; bottom: -30px; width: 340px; opacity: .85; z-index: 0; }
.contact-card .deco-r { position: absolute; right: -60px; top: -60px; width: 260px; opacity: .4; }

/* FOOTER  */
footer { background: linear-gradient(180deg, var(--navy-deep) 0%, #060a22 100%); color: #c4cae6; position: relative; overflow: hidden; }
.footer-top { padding: 90px 0 56px; display: grid; grid-template-columns: 1.3fr .9fr .9fr .9fr; gap: 40px; }

.footer-logo .logo-word { font-family: var(--font-d); font-size: 30px; font-weight: 700; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-logo .logo-sub { font-size: 12px; color: #9aa1c6; margin-top: 4px; }
.footer-logo p.desc { margin-top: 20px; font-size: 13.5px; line-height: 1.7; color: #8b93b8; max-width: 300px; }

.footer-col h5 { font-size: 14px; color: var(--white); font-weight: 600; margin-bottom: 20px; letter-spacing: .02em; }
.footer-col li { margin-bottom: 13px; font-size: 14px; color: #a6ace2; }
.footer-col a:hover { color: var(--gold-2); }

.f-contact-row { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; font-size: 14px; }
.f-contact-row svg { width: 16px; height: 16px; color: var(--gold-1); flex-shrink: 0; }

.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(202, 165, 94, 0.4); display: flex; align-items: center; justify-content: center; color: var(--gold-1); transition: .25s; }
.social-row a:hover { background: var(--gold-grad); color: var(--navy-deep); }
.social-row svg { width: 16px; height: 16px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 26px 0; display: flex; justify-content: space-between; font-size: 13px; color: #7d84a8; flex-wrap: wrap; gap: 10px; }
.footer-star { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60px; opacity: .5; }

/* responsive */
@media (max-width:1100px) {
  .wrap { padding: 0 32px; }
  header.site-nav { padding: 28px 32px 0; }
  .hero-body { padding: 48px 32px 0; grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 380px; margin: 0 auto 10px; }
  .hero-copy h1 { font-size: 38px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .team-intro { grid-template-columns: 1fr; gap: 16px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card.feature { grid-row: auto; aspect-ratio: 3/3.85; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; padding: 50px 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  nav.main-links { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width:680px) {
  .wrap { padding: 0 20px; }
  header.site-nav { padding: 24px 20px 0; }
  .hero-body { padding: 34px 20px 0; }
  .hero-copy h1 { font-size: 30px; }
  .hero-actions { flex-direction: column; }
  .section-pad { padding: 70px 0; }
  .section-head h2 { font-size: 30px; }
  .services-grid { grid-template-columns: 1fr; }
  .stat-duo { grid-template-columns: 1fr; }
  .about-right { grid-template-columns: 1fr; }
  .practice-card, .logo-card { grid-column: 1/2; }
  .team-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 40px 22px; border-radius: 30px; }
  .contact-card h2 { font-size: 27px; }
  .footer-top { grid-template-columns: 1fr; padding: 60px 0 40px; }
}
/* СТИЛІЗУЄМО FLUENT FORMS */
.fluentform .ff-el-group {
    margin-bottom: 2px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
    padding: 16px 2px !important;
}

.fluentform .ff-el-form-control {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: var(--white) !important;
    font-family: var(--font-b) !important;
    font-size: 15px !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Колір плейсхолдерів (підказок) */
.fluentform .ff-el-form-control::placeholder { color: #9aa1c6 !important; }
.fluentform textarea.ff-el-form-control { min-height: 64px !important; resize: none !important; }

/* Ховаємо стандартні підписи над полями, бо ми використовуємо плейсхолдери */
.fluentform .ff-el-input--label { display: none !important; }

/* Золота кнопка відправки */
.fluentform .ff-btn-submit {
    background: var(--gold-grad) !important;
    color: var(--navy-deep) !important;
    box-shadow: 0 14px 30px -10px rgba(202, 165, 94, 0.55) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px 46px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    transition: transform .25s ease, box-shadow .25s ease !important;
    margin-top: 30px !important;
}

.fluentform .ff-btn-submit:hover { transform: translateY(-2px) !important; }

/* СТИЛІ ДЛЯ СТОРІНКИ ЧИТАННЯ СТАТТІ*/
.single-post-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333a4d;
}
.single-post-content p {
    margin-bottom: 24px;
}
.single-post-content h2, .single-post-content h3 {
    color: var(--navy-deep);
    margin-top: 48px;
    margin-bottom: 20px;
    line-height: 1.3;
}
.single-post-content h2 { font-size: 32px; }
.single-post-content h3 { font-size: 26px; }
.single-post-content ul, .single-post-content ol {
    margin-bottom: 24px;
    padding-left: 20px;
}
.single-post-content li {
    margin-bottom: 10px;
}
.single-post-content img {
    border-radius: 16px;
    margin: 32px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.single-post-content blockquote {
    border-left: 4px solid var(--gold-1);
    padding: 10px 0 10px 24px;
    margin: 32px 0;
    font-size: 20px;
    font-style: italic;
    color: var(--navy-deep);
    background: var(--cream);
    border-radius: 0 12px 12px 0;
}
/*  СТИЛІ ДЛЯ ТЕГІВ У СТАТТІ  */
.post-tag {
    background: var(--cream);
    color: var(--navy-deep);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #ece8de;
    transition: all 0.3s ease;
    display: inline-block;
}
.post-tag a {
    color: inherit;
}
.post-tag:hover {
    background: var(--gold-grad);
    color: var(--navy-deep);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(202, 165, 94, 0.3);
}
/*  СІТКА БЛОГУ ТА САЙДБАР  */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 340px; /* Стаття займає залишок, сайдбар - 340px */
    gap: 70px;
    align-items: start;
}

.featured-img-wrap {
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 40px;
    position: relative;
    z-index: 5;
    box-shadow: var(--shadow);
}
.featured-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.single-sidebar {
    padding-top: 20px;
}

/* Віджети сайдбару */
.widget {
    margin-bottom: 50px;
}
.widget-title {
    font-family: var(--font-d);
    font-size: 24px;
    color: var(--navy-deep);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #ece8de;
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background: var(--gold-1);
}

/* Список категорій та послуг */
.widget-list li {
    margin-bottom: 14px;
    font-size: 15.5px;
    border-bottom: 1px solid #f5f3ec;
    padding-bottom: 14px;
    font-weight: 500;
}
.widget-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.widget-list li a {
    color: #454c6c;
    transition: color 0.3s ease;
}
.widget-list li a:hover {
    color: var(--gold-3);
}

/* Останні записи */
.recent-post-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
}
.recent-post-item:hover h5 {
    color: var(--gold-3);
}
.rp-thumb {
    width: 85px;
    height: 85px;
    border-radius: 14px;
    flex-shrink: 0;
    overflow: hidden;
}
.rp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rp-info h5 {
    font-family: var(--font-b);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--navy-deep);
    margin-bottom: 8px;
    transition: color 0.3s;
}
.rp-date {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.rp-date::before {
    content: "🗓";
    font-size: 10px;
}

/* Позначки (Теги) */
.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.widget-tags a {
    background: var(--cream);
    color: var(--navy-deep);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #ece8de;
    transition: all 0.3s;
}
.widget-tags a span {
    color: var(--muted);
    margin-left: 4px;
}
.widget-tags a:hover {
    background: var(--gold-grad);
    color: var(--navy-deep);
    border-color: transparent;
}
.widget-tags a:hover span {
    color: var(--navy-deep);
}

/* Адаптивність (На мобільних сайдбар падає вниз) */
@media (max-width: 991px) {
    .single-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .featured-img-wrap {
        margin-top: -30px;
    }
}
/* НАВІГАЦІЯ МІЖ СТАТТЯМИ*/
.post-navigation {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #eaeaea;
}
.nav-links {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}
.nav-link {
    flex: 1;
    background: var(--cream);
    padding: 24px 30px;
    border-radius: var(--r-md); /* 18px */
    border: 1px solid #ece8de;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
}
.nav-link.empty {
    background: transparent;
    border: none;
    pointer-events: none;
}
.nav-link.nav-prev {
    text-align: left;
    align-items: flex-start;
}
.nav-link.nav-next {
    text-align: right;
    align-items: flex-end;
}
.nav-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}
.nav-title {
    font-family: var(--font-d);
    font-size: 18px;
    color: var(--navy-deep);
    line-height: 1.35;
    margin: 0;
    transition: color 0.3s;
}

.nav-link:hover {
    background: var(--white);
    border-color: var(--gold-1);
    box-shadow: 0 10px 25px rgba(202, 165, 94, 0.15);
    transform: translateY(-4px);
}
.nav-link:hover .nav-label, .nav-link:hover .nav-title {
    color: var(--gold-3);
}

@media (max-width: 680px) {
    .nav-links { flex-direction: column; }
    .nav-link { width: 100%; }
    .nav-link.nav-prev, .nav-link.nav-next { text-align: left; align-items: flex-start; }
    .nav-link.nav-next .nav-label { flex-direction: row-reverse; }
}
/*  АРХІВ БЛОГУ ТА КАТЕГОРІЇ  */
.archive-categories-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.archive-categories-nav a {
    padding: 10px 22px;
    background: var(--white);
    color: var(--muted);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #e4e0d5;
    transition: all 0.3s ease;
}
.archive-categories-nav a:hover,
.archive-categories-nav a.active {
    background: var(--navy-deep);
    color: var(--gold-2);
    border-color: var(--navy-deep);
    box-shadow: 0 8px 20px rgba(10, 19, 56, 0.15);
}

/* Сітка карток */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Сама картка (Equal height налаштування) */
.archive-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(10,19,56,0.04);
    display: flex;
    flex-direction: column; /* Дозволяє розтягувати контент */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.archive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(10,19,56,0.08);
}

/* ОБГОРТКА ДЛЯ КАРТИНОК (ПАЗЛИ / ПЕЛЮСТКИ) */
.ac-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}
.ac-img-wrap img, .ac-img-wrap .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ac-img-wrap .placeholder-img { background: #e4e0d5; }
.archive-card:hover .ac-img-wrap img { transform: scale(1.05); }

/* МАГІЯ ФОРМ (Тільки для ПК) */
@media (min-width: 992px) {
    /* Перша колонка: форма краплі/пелюстки вліво */
    .archive-card:nth-child(3n+1) .ac-img-wrap {
        border-radius: 0 0 120px 0;
    }
    /* Друга колонка: купол */
    .archive-card:nth-child(3n+2) .ac-img-wrap {
        border-radius: 0 0 60px 60px;
    }
    /* Третя колонка: форма краплі/пелюстки вправо */
    .archive-card:nth-child(3n+3) .ac-img-wrap {
        border-radius: 0 0 0 120px;
    }
}

/* Контент картки */
.ac-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Змушує контент займати весь залишок висоти */
}
.ac-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}
.ac-cat {
    color: var(--navy-deep);
    font-weight: 600;
}
.ac-title {
    font-family: var(--font-d);
    font-size: 22px;
    color: var(--navy-deep);
    line-height: 1.3;
    margin-bottom: 16px;
    /* Жорстке обмеження у 3 рядки */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ac-excerpt {
    font-size: 14.5px;
    color: #5c627e;
    line-height: 1.6;
    margin-bottom: 24px;
    /* Жорстке обмеження у 3 рядки */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Кнопка (Притискається до низу картки) */
.ac-read-more {
    margin-top: auto; /* Ось це притискає кнопку до низу незалежно від тексту! */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}
.ac-read-more svg { transition: transform 0.3s; }
.archive-card:hover .ac-read-more { color: var(--gold-1); }
.archive-card:hover .ac-read-more svg { transform: translateX(5px); }

/* Пагінація */
.archive-pagination {
    margin-top: 60px;
    text-align: center;
}
.archive-pagination .nav-links {
    display: inline-flex;
    gap: 8px;
    justify-content: center;
}
.archive-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    color: var(--navy-deep);
    font-weight: 600;
    border: 1px solid #e4e0d5;
    transition: all 0.3s ease;
}
.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
    background: var(--navy-deep);
    color: var(--gold-2);
    border-color: var(--navy-deep);
}

/* Адаптивність */
@media (max-width: 991px) {
    .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .ac-img-wrap { border-radius: 0; } /* На планшеті відключаємо пазли */
}
@media (max-width: 680px) {
    .archive-grid { grid-template-columns: 1fr; }
    .archive-categories-nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 10px; }
    .archive-categories-nav a { flex-shrink: 0; }
}
/*  ОНОВЛЕНИЙ БЛОГ НА ГОЛОВНІЙ (З АВТОРОМ ТА КАРОСЕЛЛЮ)  */
.home-blog-grid {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

/* Картка автора */
.h-author-card {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 24px;
    padding: 34px 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.h-author-card .ph {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 0 24px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(10, 19, 56, 0.12);
}
.h-author-card .ph img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: grayscale(100%); 
}
.h-author-card .nm { font-family: var(--font-d); font-size: 22px; color: var(--navy-deep); margin-bottom: 8px; }
.h-author-card .role { font-size: 13px; color: #5c627e; margin-bottom: 24px; line-height: 1.4; }
.h-author-card .date { 
    font-size: 11px; 
    font-weight: 700; 
    color: #9c772b; 
    text-transform: uppercase; 
    line-height: 1.4; 
}

/* Карусель та витягнуті картки статей */
.h-blog-carousel {
    display: flex;
    gap: 24px;
    flex-grow: 1;
}
.h-blog-card {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.h-blog-card:hover { transform: translateY(-8px); }

/* Картинка та синє затемнення */
.h-bg-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 0.5s;
}
.h-blog-card:hover .h-bg-img { transform: scale(1.05); }
.h-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(10,19,56,0.05) 0%, rgba(10,19,56,0.95) 75%, rgba(10,19,56,1) 100%);
    z-index: 2;
}

/* Контент картки */
.h-content {
    position: relative; z-index: 3; padding: 30px 24px;
}
.h-cat {
    font-size: 11px; font-weight: 700; color: var(--gold-2); text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.08em;
}
.h-title {
    font-family: var(--font-d); 
    font-size: 24px; 
    color: var(--white); 
    margin-bottom: 12px; 
    line-height: 1.25;
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
    min-height: 90px; 
}
.h-exc {
    font-size: 14px; 
    color: #c4cae6; 
    margin-bottom: 24px; 
    line-height: 1.5;
    /* Фіксуємо висоту рівно на 3 рядки тексту */
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
    min-height: 63px;
}

/* Кнопка Читати з лінією */
.h-read {
    display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--white); transition: color 0.3s;
}
.h-line { display: block; width: 40px; height: 1px; background: var(--gold-2); transition: width 0.3s; }
.h-blog-card:hover .h-read { color: var(--gold-2); }
.h-blog-card:hover .h-line { width: 60px; }

/* КНОПКИ СЛАЙДЕРА  */
.blog-slider-nav { display: flex; gap: 12px; }
.bs-btn {
    width: 54px; 
    height: 54px; 
    border-radius: 50%;
    border: 1px solid #ece8de; 
    background: transparent;
    color: var(--navy-deep); 
    display: flex; 
    justify-content: center; 
    align-items: center;
    cursor: pointer; 
    transition: all 0.3s ease;
}
.bs-btn:hover { 
    background: var(--white); 
    border-color: var(--gold-2); 
    color: var(--gold-2); 
    box-shadow: 0 8px 20px rgba(202, 165, 94, 0.15); 
}

/* МОБІЛЬНА КАРУСЕЛЬ (1 КАРТКА) */
@media (max-width: 991px) {
    .h-author-card { display: none; }
    .h-blog-carousel {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }
    .h-blog-carousel::-webkit-scrollbar { display: none; }
    .h-blog-card {
        min-width: 100%; 
        flex: 0 0 100%;
        scroll-snap-align: start;
        min-height: 440px;
    }
}
/* ТОКЕНИ ДЛЯ НОВОГО ХЕДЕРА */
:root {
  --nav-sp-1: 8px;
  --nav-sp-3: 24px;
  --nav-sp-5: 40px;
  --nav-sp-6: 48px;
  --nav-grad-gold: linear-gradient(135deg, #7a5c29 0%, #caa55e 40%, #e7d09f 65%, #a87c3a 100%);
  --nav-ease: cubic-bezier(.25,.8,.25,1);
}

/* СТИЛІ ШАПКИ З МАКЕТУ (ПОСИЛЕНІ) */
body .navbar {
  position: fixed !important; 
  top: 0 !important; 
  left: 0 !important; 
  right: 0 !important; 
  z-index: 99999 !important;
  padding: var(--nav-sp-3) 0 !important;
  background: linear-gradient(180deg, rgba(7,12,34,.95) 60%, rgba(7,12,34,0)) !important;
  backdrop-filter: blur(14px) !important; 
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  transition: background .3s var(--nav-ease), padding .3s var(--nav-ease) !important;
}

body .nav-inner { 
  display: flex !important; 
  align-items: center !important; 
  justify-content: space-between !important; 
  gap: var(--nav-sp-6) !important; 
}

body .logo-mark { display: block !important; }
body .logo-mark .word { 
  font-family: 'Playfair Display', serif !important; 
  font-size: 26px !important; 
  font-weight: 700 !important; 
  background: var(--nav-grad-gold) !important; 
  -webkit-background-clip: text !important; 
  background-clip: text !important; 
  color: transparent !important; 
}

body .logo-mark .sub { 
  font-size: 12px !important; 
  color: #8991b5 !important; 
  letter-spacing: .04em !important; 
  margin-top: 2px !important; 
  text-transform: none !important; 
}

body .nav-links { 
  display: flex !important; 
  align-items: center !important; 
  gap: var(--nav-sp-5) !important; 
}

body .nav-links a { 
  font-size: 14px !important; 
  font-weight: 500 !important; 
  color: rgba(255,255,255,.75) !important; 
  padding-bottom: 4px !important; 
  position: relative !important; 
  transition: color .2s !important; 
  display: inline-block !important;
}

body .nav-links a:hover, 
body .nav-links a.active { 
  color: #ffffff !important; 
}

body .nav-links a.active::after { 
  content: "" !important; 
  position: absolute !important; 
  bottom: 0 !important; 
  left: 0 !important; 
  right: 0 !important; 
  height: 1.5px !important; 
  background: var(--nav-grad-gold) !important; 
}

body .nav-cta { 
  display: flex !important; 
  align-items: center !important; 
  gap: 16px !important; 
}

body .hamburger { 
  display: none !important; 
  background: none !important; 
  border: 1px solid rgba(255,255,255,.18) !important; 
  border-radius: 8px !important; 
  padding: var(--nav-sp-1) !important; 
  color: #ffffff !important; 
}

body .hamburger svg { width: 20px !important; height: 20px !important; display: block !important; }

body .btn-sm { 
  padding: 11px 24px !important; 
  font-size: 13px !important; 
  min-height: 42px !important; 
  font-weight: 600 !important; 
  border-radius: 999px !important; 
  display: inline-flex !important; 
  align-items: center !important; 
}

body .btn-outline { 
  background: transparent !important; 
  border: 1px solid rgba(255,255,255,.22) !important; 
  color: #ffffff !important; 
  backdrop-filter: blur(8px) !important; 
  transition: all 0.2s var(--nav-ease) !important; 
}

body .btn-outline:hover { 
  background: rgba(255,255,255,.08) !important; 
  border-color: #caa55e !important; 
  color: #e7d09f !important; 
}

/* ОПТИМІЗОВАНІ МЕДІА-ЗАПИТИ ДЛЯ АДАПТИВНОГО МЕНЮ */
@media (max-width: 1100px) {
  body .navbar .nav-links { display: none !important; }
  body .navbar .nav-cta .btn-outline { display: none !important; }
  body .navbar .hamburger { display: flex !important; }
  
  /* Активація випадаючого вікна при перемиканні класу */
  body .navbar.menu-open .nav-links {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 74px !important;
    right: 20px !important;
    background: rgba(7, 12, 34, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 24px 28px !important;
    border-radius: 16px !important;
    gap: 20px !important;
    z-index: 99999 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5) !important;
  }
}