
:root{--cream:#f7f2e9;--paper:#fffdf8;--green:#0f5b4e;--green2:#e3ece3;--orange:#f0a11a;--ink:#17302b;--muted:#68736f;--line:#ddd6ca}
*{box-sizing:border-box}html,body{margin:0;background:var(--cream);font-family:Arial,"Noto Sans Georgian",sans-serif;color:var(--ink)}a{text-decoration:none;color:inherit}
.home-stage{width:100%;margin:0;position:relative;background:white}.home-stage img{display:block;width:100%;height:auto}
.hotspot{position:absolute;display:block;border-radius:18px}.hotspot:hover{box-shadow:0 0 0 3px rgba(15,91,78,.24) inset;background:rgba(255,255,255,.03)}
.page-header{position:sticky;top:0;background:#f7f2e9ee;border-bottom:1px solid var(--line);z-index:10}.wrap{width:100%;max-width:1760px;margin:auto;padding:0 44px}
.nav{height:76px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center}.brand-logo{height:38px;width:auto;display:block}.links{display:flex;gap:20px;font-weight:700;font-size:14px}
.page{padding:58px 0 80px}.kicker{color:var(--green);font-weight:800}h1{font-size:48px;line-height:1.08;margin:10px 0 16px}h2{font-size:28px}.lead{font-size:18px;color:var(--muted);max-width:760px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:28px}.two{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.card,.row{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:22px}.list{display:grid;gap:12px;margin-top:24px}.meta{color:var(--muted);font-size:14px}
.tags{display:flex;gap:8px;flex-wrap:wrap}.tag{background:var(--green2);color:var(--green);padding:7px 10px;border-radius:999px;font-size:13px}
.btn{display:inline-block;background:var(--green);color:white;padding:12px 17px;border-radius:14px;font-weight:800;margin:8px 8px 0 0}.btn.alt{background:transparent;color:var(--green);border:1px solid var(--green)}
footer{background:#123f35;color:white;padding:34px 0;margin-top:60px}
@media(max-width:820px){.links{display:none}.grid,.two{grid-template-columns:1fr}h1{font-size:38px}.page{padding-top:36px}.wrap{padding:0 18px}}


/* ===== Mobile homepage fix ===== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.home-stage {
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: relative;
  overflow: visible;
}
.home-stage img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  object-fit: contain;
}
@media (max-width: 820px) {
  .home-stage {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    overflow: visible;
  }
  .home-stage img {
    width: 100vw;
    max-width: 100vw;
    height: auto !important;
    object-fit: contain;
  }
  .hotspot { border-radius: 8px; }
}

/* ===== Real-code homepage (replaces image-based homepage) ===== */
.nav-extra{display:flex;align-items:center;gap:14px}
.icon-btn{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--paper);display:flex;align-items:center;justify-content:center;color:var(--green);cursor:pointer}
.btn-pill{display:inline-flex;align-items:center;gap:8px;background:var(--green);color:#fff;padding:10px 18px;border-radius:999px;font-weight:800;font-size:14px}

.hero{padding:56px 0 40px}
.hero-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:44px;align-items:center}
.hero h1{font-size:44px;line-height:1.14;margin:0 0 18px}
.hero h1 .accent{color:var(--green)}
.hero p{font-size:17px;color:var(--muted);max-width:520px;margin:0 0 26px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.hero-actions .btn.alt{background:var(--paper)}

.hero-visual{position:relative;border-radius:26px;overflow:hidden;min-height:340px;border:1px solid var(--line);display:flex;align-items:flex-end;padding:26px;background:#f5eee6}
.hero-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.quote-card{position:relative;z-index:2;background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:18px 20px;max-width:280px;box-shadow:0 14px 30px -18px rgba(15,48,43,.35)}
.quote-card .kicker{font-size:12px;margin-bottom:6px}
.quote-card p{margin:0;font-size:15px;line-height:1.5;color:var(--ink)}

.feature-row{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:8px}
.feature-card{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:12px}
.feature-card .dot{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;color:#fff}
.feature-card h3{margin:0;font-size:19px}
.feature-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.feature-card .go{margin-top:auto;color:var(--green);font-weight:800;font-size:14px}

.section-title-row{display:flex;align-items:center;justify-content:space-between;margin:44px 0 16px}
.section-title-row h2{margin:0;font-size:20px}
.section-title-row a{color:var(--green);font-weight:700;font-size:13px}

.split{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;align-items:start}
.specialist-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.spec-card{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:16px;text-align:center}
.avatar{width:56px;height:56px;border-radius:50%;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:18px}
.spec-card h4{margin:0;font-size:15px}
.spec-card .meta{font-size:12px;margin:2px 0 8px}
.spec-card .rate{font-size:13px;color:var(--orange);font-weight:800;margin-bottom:10px}

.activity-list{display:grid;gap:10px}
.activity-item{display:flex;align-items:center;gap:12px;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:12px 14px}
.activity-badge{width:44px;height:44px;border-radius:12px;color:#fff;font-weight:800;font-size:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1}
.activity-item b{display:block;font-size:14px}
.activity-item .meta{font-size:12px}

.stats-bar{background:#123f35;color:#fff;border-radius:20px;padding:22px 28px;display:flex;align-items:center;gap:28px;flex-wrap:wrap;margin-top:44px}
.stats-bar .stat{display:flex;align-items:center;gap:10px}
.stats-bar .stat b{font-size:20px;display:block}
.stats-bar .stat span{font-size:12px;color:#cbd9d3}
.stats-bar form{margin-left:auto;display:flex;gap:8px;flex:1;min-width:240px;max-width:360px}
.stats-bar input{flex:1;border:none;border-radius:12px;padding:11px 14px;font-family:inherit}
.stats-bar button{border:none;background:var(--orange);color:#17302b;border-radius:12px;padding:0 16px;font-weight:800;cursor:pointer}

.site-footer{background:#123f35;color:#fff;padding:36px 0;margin-top:60px}
.site-footer .wrap{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px}
.site-footer .f-links{display:flex;gap:18px;font-size:14px;flex-wrap:wrap}
.site-footer .f-links a{color:#e3ece3}
.site-footer .socials{display:flex;gap:10px}
.site-footer .socials a{width:36px;height:36px;border-radius:50%;background:#ffffff14;display:flex;align-items:center;justify-content:center;color:#fff}
.site-footer .socials a:hover{background:#ffffff2a}

@media(max-width:900px){
  .hero-grid,.split{grid-template-columns:1fr}
  .feature-row{grid-template-columns:1fr}
  .specialist-row{grid-template-columns:repeat(2,1fr)}
  .stats-bar{flex-direction:column;align-items:flex-start}
  .stats-bar form{max-width:100%;width:100%}
  .hero h1{font-size:32px}
}

/* v6 header refinement: distribute menu across the center area */
.nav{justify-content:flex-start;gap:24px}
.links{flex:1;justify-content:space-evenly;align-items:center;gap:12px;margin:0 18px}
.links a{white-space:nowrap;text-align:center}
.nav-extra{margin-left:auto;flex:0 0 auto}
.brand{flex:0 0 auto}
@media(max-width:1100px){.links{gap:10px;margin:0 8px;font-size:12px}.nav-extra{gap:8px}.btn-pill{padding:9px 12px}}


/* ===== v7: mobile text / overflow fixes only — visual structure preserved ===== */

/* Give Georgian glyphs a little more vertical room and prevent flex/grid overflow */
body{
  line-height:1.45;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
.hero-grid > *,
.feature-row > *,
.split > *,
.specialist-row > *,
.activity-item > *{
  min-width:0;
}
h1,h2,h3,h4,p,b,a,span,.meta{
  overflow-wrap:break-word;
}

/* Buttons: prevent Georgian letters from touching rounded edges */
.btn,
.btn-pill,
.feature-card .go{
  line-height:1.45;
}
.btn{
  padding-top:10px;
  padding-bottom:10px;
}
.spec-card .btn{
  width:100%;
  white-space:normal;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1.35;
}

/* Activity date badges: month must stay inside the colored badge */
.activity-badge{
  flex:0 0 58px;
  width:58px;
  min-width:58px;
  height:58px;
  min-height:58px;
  padding:5px 3px;
  border-radius:13px;
  overflow:hidden;
  font-size:15px;
  line-height:1.05;
}
.activity-badge span{
  display:block;
  width:100%;
  margin-top:3px;
  font-size:8px;
  line-height:1.15;
  font-weight:700;
  white-space:nowrap;
  text-align:center;
}
.activity-item{
  align-items:center;
  overflow:hidden;
}
.activity-item > div:last-child{
  min-width:0;
  flex:1 1 auto;
}
.activity-item b{
  line-height:1.35;
}
.activity-item .meta{
  line-height:1.4;
}

/* Cards should never push outside their column */
.feature-card,
.spec-card,
.activity-item,
.row,
.card{
  max-width:100%;
}

/* Mobile-only spacing and typography safeguards */
@media(max-width:820px){
  .wrap{
    width:100%;
    max-width:100%;
    padding-left:16px;
    padding-right:16px;
  }

  .hero{
    padding-top:28px;
  }

  .hero h1{
    line-height:1.22;
    font-size:31px;
  }

  .hero p{
    line-height:1.6;
  }

  .hero-actions{
    width:100%;
  }
  .hero-actions .btn{
    max-width:100%;
    white-space:normal;
    text-align:center;
  }

  .quote-card{
    max-width:calc(100% - 24px);
  }
  .quote-card p{
    line-height:1.6;
  }

  .feature-card{
    padding:20px;
  }
  .feature-card h3{
    line-height:1.35;
  }
  .feature-card p{
    line-height:1.6;
  }

  .specialist-row{
    gap:10px;
  }
  .spec-card{
    padding:12px 10px;
  }
  .spec-card h4{
    line-height:1.35;
    min-height:2.7em;
  }
  .spec-card .meta{
    line-height:1.35;
    min-height:2.7em;
  }

  .activity-list{
    gap:10px;
  }
  .activity-item{
    padding:10px 10px;
    gap:10px;
    border-radius:15px;
  }
  .activity-badge{
    flex-basis:58px;
    width:58px;
    min-width:58px;
  }
  .activity-item b{
    font-size:13px;
  }
  .activity-item .meta{
    font-size:11px;
  }

  /* Avoid any text being clipped by browser font metrics */
  .section-title-row h2,
  .page h1,
  .kicker,
  .links,
  .meta{
    padding-top:1px;
    padding-bottom:1px;
  }
}

@media(max-width:430px){
  .wrap{
    padding-left:12px;
    padding-right:12px;
  }

  .hero h1{
    font-size:29px;
  }

  .specialist-row{
    grid-template-columns:1fr 1fr;
  }

  .activity-badge{
    flex-basis:56px;
    width:56px;
    min-width:56px;
    height:56px;
    min-height:56px;
  }
  .activity-badge span{
    font-size:7.5px;
  }

  .activity-item b{
    font-size:12.5px;
  }
}

/* v2 live activity links */
#activitiesDynamicList .row{display:flex;align-items:center;justify-content:space-between;gap:14px}
.live-link-label{color:#155f50;font-weight:800;font-size:12px;white-space:nowrap}
@media(max-width:620px){
  #activitiesDynamicList .row{align-items:flex-start;flex-direction:column}
  .live-link-label{white-space:normal}
}

/* v3 public account link */
a.btn-pill{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}

/* v4 favorites */
.favorite-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border:1px solid #d8d0c5;background:#fffdf8;color:#155f50;
  border-radius:999px;padding:8px 11px;font-weight:800;font-size:12px;
  cursor:pointer;line-height:1.2
}
.favorite-btn.saved{background:#eef5f1;border-color:#155f50;color:#155f50}
.favorite-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.favorite-card{position:relative}
.favorite-card>.favorite-btn{position:absolute;right:14px;top:14px;z-index:2}
@media(max-width:600px){
  .favorite-card>.favorite-btn{position:static;margin-bottom:10px}
  .favorite-row{align-items:flex-start;flex-direction:column}
}

/* v5 global search */
.search-trigger{font:inherit}
.search-open{overflow:hidden}
.search-overlay{
  position:fixed;inset:0;z-index:120;
  background:rgba(15,45,38,.42);
  backdrop-filter:blur(5px);
  display:flex;align-items:flex-start;justify-content:center;
  padding:88px 18px 30px;
}
.search-overlay.hidden{display:none}
.search-panel{
  position:relative;width:min(760px,100%);
  max-height:calc(100vh - 120px);overflow:auto;
  background:var(--paper);border:1px solid var(--line);
  border-radius:24px;padding:26px;
  box-shadow:0 26px 70px rgba(15,45,38,.22);
}
.search-close{
  position:absolute;right:16px;top:12px;width:38px;height:38px;
  border:0;background:transparent;color:var(--ink);font-size:28px;cursor:pointer
}
.search-kicker{font-size:12px;font-weight:900;color:var(--green);letter-spacing:.02em}
.search-panel h2{margin:5px 0 18px;font-size:27px}
.search-box{
  display:flex;align-items:center;gap:10px;
  border:2px solid #d9d2c6;background:#fff;border-radius:15px;
  padding:0 14px
}
.search-box:focus-within{border-color:var(--green);box-shadow:0 0 0 3px rgba(15,91,78,.08)}
.search-box input{
  flex:1;border:0;outline:0;padding:15px 0;font:inherit;font-size:16px;background:transparent;color:var(--ink)
}
.search-hint{font-size:12px;color:var(--muted);margin:9px 2px 18px}
.search-state{font-size:12px;font-weight:800;color:var(--muted);margin-bottom:9px}
.search-results{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.search-result{
  display:block;background:#fff;border:1px solid var(--line);border-radius:15px;
  padding:14px;transition:.15s ease
}
.search-result:hover{border-color:#aac1b8;transform:translateY(-1px);box-shadow:0 8px 20px rgba(20,70,58,.07)}
.search-result-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}
.search-type{font-size:10px;font-weight:900;color:var(--green);background:var(--green2);border-radius:999px;padding:4px 7px}
.search-arrow{color:var(--green);font-weight:900}
.search-result strong{display:block;font-size:15px;line-height:1.35}
.search-subtitle{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.4}
.search-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}
.search-tags span{font-size:10px;padding:4px 6px;border-radius:999px;background:#f2eee6;color:#586861}
.search-empty{border:1px dashed #d6cec2;border-radius:14px;padding:18px;color:var(--muted);line-height:1.5}
.search-suggestions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
.search-suggestions button{
  border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 9px;
  color:var(--green);font-weight:800;cursor:pointer
}
@media(max-width:720px){
  .search-overlay{padding:72px 10px 12px;align-items:flex-start}
  .search-panel{padding:20px 14px;border-radius:18px;max-height:calc(100vh - 84px)}
  .search-panel h2{font-size:23px;padding-right:38px}
  .search-results{grid-template-columns:1fr}
  .search-box input{font-size:16px}
}
