/* Путеводители evisa.kz (Claude, 13.11.2026). Общий стиль + темы стран через переменные.
   Тема страны задаётся на корне: <div class="evg" data-c="kr">. */
/* шрифт как в статьях сайта; ссылки не берут Verdana 14px из темы CS-Cart */
.evg :where(a,button,summary){font-family:inherit;font-size:inherit;line-height:inherit}
/* блоки темы красят div в чёрный — наследуем цвет (правило стоит первым, классы ниже его перекрывают) */
.evg :where(div,section,article,aside,nav,header,span,p,li,ul,details,summary,b,strong){color:inherit}
.evg{font-family:Inter,system-ui,-apple-system,'Segoe UI',Arial,sans-serif}
.evg{--ink:#06324a;--muted:#4a6878;--line:#d6e4e8;--mist:#e3f0f0;--leaf:#7cc424;--sun:#f5c518;--white:#fff;
 --deep:#06324a;--a1:#0b4561;--a2:#0b4561;--a3:#0b4561;--a4:#f5c518;--pat:none;
 color:var(--ink);font-size:16px;line-height:1.55;max-width:1200px;margin:0 auto}
.evg *{box-sizing:border-box}
.evg a{color:var(--a2)}
.evg h1,.evg h2,.evg h3{color:inherit;margin:0;text-wrap:balance;font-weight:800;letter-spacing:-.01em}
.evg h2{font-size:26px;line-height:32px}
.evg h3{font-size:19px;line-height:26px}
.evg-lbl{font-size:12px;line-height:16px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.evg-sec{margin:40px 0 0;display:flex;flex-direction:column;gap:16px}
.evg-sec-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.evg-more{font-weight:800;font-size:15px;text-decoration:none}

/* шапка */
.evg-hero{position:relative;background:var(--deep);color:#fff;border-radius:20px;overflow:hidden;padding:34px 32px 30px;display:flex;flex-wrap:wrap;gap:28px;align-items:flex-end}
.evg-hero::before{content:"";position:absolute;inset:0 0 auto 0;height:14px;background:var(--pat)}
.evg-hero-l{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:12px;position:relative}
.evg-hero .evg-lbl{color:#cfe3ea;display:flex;gap:10px;align-items:center}
.evg-hero .evg-lbl img{width:24px;height:24px;border-radius:50%;object-fit:cover;background:#fff}
.evg-local{position:absolute;right:0;top:-6px;font-size:40px;font-weight:800;opacity:.22;line-height:1;pointer-events:none}
.evg-hero h1{font-size:40px;line-height:46px}
.evg-hero p{margin:0;color:#d7e6ec;font-size:17px;line-height:26px;max-width:660px}
.evg-nav{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.evg-nav a{color:#fff;background:rgba(255,255,255,.13);text-decoration:none;font-weight:700;font-size:14px;padding:9px 14px;border-radius:999px}
.evg-nav a:first-child{background:#fff;color:var(--deep)}
.evg-entry{flex:1 1 300px;background:#fff;color:var(--ink);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:9px;position:relative}
.evg-entry .evg-lbl{color:var(--muted)}
.evg-entry b.t{font-size:17px;line-height:24px}
.evg-row{display:flex;justify-content:space-between;gap:10px;font-size:14px}
.evg-row+.evg-row{margin-top:-2px}
.evg-perf{border-top:1px dashed var(--line);padding-top:9px}
.evg-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--leaf);color:var(--ink)!important;text-decoration:none!important;font-weight:800;padding:13px 18px;border-radius:12px;min-height:44px;text-align:center}
.evg-note{font-size:13px;color:var(--muted)}

/* факты */
.evg-facts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:18px}
.evg-fact{background:var(--mist);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:2px}
.evg-fact b{font-size:22px;line-height:28px;font-weight:800}
.evg-fact span:last-child{font-size:13px;color:var(--muted);line-height:18px}

/* карточки */
.evg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.evg-card{border:1px solid var(--line);border-radius:20px;padding:18px 20px;display:flex;flex-direction:column;gap:8px;text-decoration:none;color:var(--ink)!important;background:#fff}
a.evg-card:hover{border-color:var(--a2)}
.evg-badge{align-self:flex-start;background:var(--sun);color:var(--ink);font-size:12px;font-weight:800;padding:4px 10px;border-radius:999px}
.evg-card .m{font-size:14px;color:var(--muted)}
.evg-card .d{font-size:14px;line-height:22px;border-top:1px dashed var(--line);padding-top:10px}
.evg-tags{display:flex;gap:6px;flex-wrap:wrap}
.evg-tag{font-size:12px;font-weight:800;background:var(--mist);padding:4px 10px;border-radius:999px}
.evg-tag.free{background:#e9f5dc;color:#3f6e0f}
.evg-tabs{display:flex;gap:8px;flex-wrap:wrap}
.evg-tabs span{font-size:14px;font-weight:800;padding:7px 13px;border-radius:999px;background:var(--mist)}

/* ровные карточки: строки карточек в одном ряду совпадают (subgrid) */
.evg-grid>.evg-card{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:8px;align-content:start}
.evg-grid>.evg-card--ph{grid-row:span 5}
.evg-grid>.evg-card .evg-tags{align-self:end}
.evg-grid>.evg-card .d{align-self:start}
.evg-grid>.evg-card .evg-badge{justify-self:start}
.evg-card--ph{padding-top:0;overflow:hidden}
.evg-ph{display:block;width:calc(100% + 40px);max-width:none;margin:0 -20px 6px;height:auto;aspect-ratio:16/10;object-fit:cover;background:var(--mist)}
.evg-visa .evg-ph{aspect-ratio:16/8}
/* корейское (местное) название рядом с русским */
.evg-ko{font-weight:600;color:var(--muted);font-size:.82em;margin-left:6px;white-space:nowrap}
/* еда */
.evg-food{border:1px solid var(--line);border-radius:20px;overflow:hidden}
.evg-food div{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px 18px;border-top:1px solid var(--line)}
.evg-food .w{flex:1;min-width:0}
.evg-fph{width:56px;height:56px;border-radius:12px;object-fit:cover;flex:none;background:var(--mist)}
.evg-food div:first-child{border-top:0}
.evg-food span:last-child{color:var(--muted);font-size:14px;text-align:right;flex:none;max-width:34%}

/* сезоны */
.evg-months{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:5px}
.evg-months span{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:13px;font-weight:800;padding:9px 0 7px;border-radius:10px;border:1px solid var(--line)}
.evg-months i{width:70%;height:6px;border-radius:3px;background:var(--line)}
.evg-months .ok i{background:#a6d8b0}.evg-months .good i{background:#3f6e0f}
.evg-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.evg-legend i{display:inline-block;width:18px;height:6px;border-radius:3px;margin-right:6px;vertical-align:middle}
.evg-seasons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.evg-seasons div{background:var(--mist);border-radius:16px;padding:14px 16px}

/* FAQ */
.evg-faq details{border:1px solid var(--line);border-radius:14px;padding:0 16px;background:#fff}
.evg-faq details+details{margin-top:8px}
.evg-faq summary{cursor:pointer;font-weight:800;padding:14px 0;list-style:none}
.evg-faq summary::-webkit-details-marker{display:none}
.evg-faq summary::after{content:"+";float:right;font-weight:800;color:var(--muted)}
.evg-faq details[open] summary::after{content:"–"}
.evg-faq p{margin:0 0 14px}

/* полоса визы */
.evg-band{background:var(--deep);color:#fff;border-radius:20px;padding:20px 22px;display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:center}
.evg-band .evg-lbl{color:#cfe3ea}
.evg-band b{font-size:18px;line-height:25px}

/* маршрут */
.evg-route{display:flex;flex-wrap:wrap;gap:32px;align-items:flex-start;margin-top:24px}
.evg-main{flex:999 1 620px;min-width:0;display:flex;flex-direction:column;gap:30px}
.evg-side{flex:1 1 300px;display:flex;flex-direction:column;gap:16px;position:sticky;top:90px}
.evg-day-h{display:flex;gap:12px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
.evg-day-h .pill{background:var(--deep);color:#fff;font-weight:800;font-size:14px;padding:6px 12px;border-radius:999px;display:inline-flex;align-items:center;gap:7px}
.evg-day-h .pill::before{content:"";width:14px;height:14px;border-radius:50%;background:var(--daymark);display:var(--daymark-d,none)}
.evg-day-h .city{font-size:13px;color:var(--muted);font-weight:700}
.evg-st,.evg-tr{display:flex;gap:16px}
.evg-rail{width:44px;flex:none;display:flex;flex-direction:column;align-items:center}
.evg-dot{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff;background:var(--deep);flex:none}
.evg-line{flex:1;width:3px;background:var(--deep);min-height:18px}
.evg-st:last-child .evg-line{display:none}
.evg-dash{flex:1;border-left:2px dashed var(--muted);min-height:34px}
.evg-sph{width:132px;height:84px;border-radius:12px;object-fit:cover;flex:none;background:var(--mist)}
.evg-st .b{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;padding-bottom:16px}
.evg-st .b .t{font-size:13px;font-weight:700;color:var(--muted)}
.evg-st .b b{font-size:17px}
.evg-st .b p{margin:0;font-size:14px;line-height:22px}
.evg-tr .b{flex:1;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);padding:6px 0}
.evg-tr svg{flex:none}
.evg-pre{border:1px solid var(--line);border-radius:16px;padding:14px 16px;display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;flex:1}
.evg-side .box{border:1px solid var(--line);border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:10px;background:#fff}
.evg-mini{display:flex;flex-direction:column;gap:6px;font-size:14px}
.evg-mini a{font-weight:700;text-decoration:none}

/* список мест */
.evg-list{display:flex;flex-direction:column;gap:14px}
.evg-item{border:1px solid var(--line);border-radius:20px;padding:14px;display:flex;gap:18px;align-items:center}
.evg-num{font-size:13px;font-weight:800;color:var(--a2);letter-spacing:.06em}
.evg-iph{width:220px;height:138px;border-radius:14px;object-fit:cover;flex:none;background:var(--mist)}
.evg-item .b{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.evg-item p{margin:0;font-size:15px;line-height:23px}
.evg-src{font-size:13px;color:var(--muted);margin-top:28px}
.evg-cred{margin-top:8px;font-size:12px}.evg-cred a{color:var(--muted)}

/* ===== Тема: Корея ===== */
.evg[data-c="kr"]{--deep:#0e2a47;--a1:#c8342b;--a2:#2c6fb0;--a3:#1f6f5c;--a4:#f2c14e;
 --pat:repeating-linear-gradient(90deg,#1f6f5c 0 18px,#c8342b 18px 30px,#f2c14e 30px 36px,#2c6fb0 36px 54px)}
.evg[data-c="kr"]{--daymark:conic-gradient(from 90deg,#c8342b 0 50%,#2c6fb0 50% 100%);--daymark-d:inline-block}
.evg-band{position:relative;overflow:hidden}
.evg-band::before{content:"";position:absolute;inset:0 0 auto 0;height:6px;background:var(--pat)}

@media (max-width:900px){.evg-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.evg-fact:last-child:nth-child(odd){grid-column:span 2}.evg-grid{grid-template-columns:1fr}.evg-seasons{grid-template-columns:1fr}.evg-side{position:static}}
@media (max-width:600px){.evg-hero{padding:26px 18px 20px;border-radius:0 0 20px 20px}.evg-hero h1{font-size:28px;line-height:34px}.evg-local{display:none}.evg h2{font-size:22px;line-height:28px}
 .evg-months{grid-template-columns:repeat(6,minmax(0,1fr))}.evg-btn{width:100%}.evg-food div{flex-wrap:wrap;gap:4px 12px}.evg-food .w{flex:1 1 calc(100% - 70px)}.evg-food span:last-child{text-align:left;max-width:none;flex-basis:100%;padding-left:68px}.evg-item{flex-direction:column;align-items:stretch;gap:10px}.evg-iph{width:100%;height:auto;aspect-ratio:16/10}.evg-sph{width:92px;height:62px}}

/* CS-Cart: заголовок страницы дублирует H1 путеводителя — скрываем стандартный */
.ty-mainbox-container:has(.evg)>.ty-mainbox-title{display:none!important}
.ty-mainbox-container:has(.evg) .ty-mainbox-body{margin-top:0!important}
/* тема CS-Cart красит h1/h2 в чёрный Verdana — внутри путеводителя шрифт и цвета свои */
.evg,.evg *{font-family:Manrope,Montserrat,-apple-system,"Segoe UI",Arial,sans-serif!important}
.evg h1,.evg h2,.evg h3{color:inherit!important;font-weight:800!important;margin:0!important;text-decoration:none!important}
.evg-hero h1{font-size:40px!important;line-height:46px!important}
.evg h2{font-size:26px!important;line-height:32px!important}
.evg h3{font-size:19px!important;line-height:26px!important}
.evg-tag,.evg-faq summary,.evg-food b,.evg-st .b b{color:var(--ink)}
.evg-hero .evg-tag{color:#fff}
@media (max-width:600px){.evg-hero h1{font-size:28px!important;line-height:34px!important}.evg h2{font-size:22px!important;line-height:28px!important}}
.evg-band .evg-card .evg-lbl{color:var(--muted)}
/* ===== Тема: Япония — волны сэйгайха, круг хиномару ===== */
.evg[data-c="jp"]{--deep:#1d2b4f;--a1:#bc002d;--a2:#2e5c9a;--a3:#2f6b4f;--a4:#f2c14e;
 --pat:radial-gradient(circle at 50% 100%,transparent 0 4px,#fff 4px 5px,transparent 5px 8px,#bc002d 8px 10px,transparent 10px) 0 0/20px 14px repeat-x,#1d2b4f;
 --daymark:radial-gradient(circle,#bc002d 0 45%,#fff 47%);--daymark-d:inline-block}
/* ===== Тема: США — полосы флага, звезда ===== */
.evg[data-c="us"]{--deep:#13294b;--a1:#b22234;--a2:#2a5aa8;--a3:#3c3b6e;--a4:#f2c14e;
 --pat:repeating-linear-gradient(90deg,#b22234 0 16px,#fff 16px 32px);
 --daymark:radial-gradient(circle,#fff 0 28%,#b22234 30%);--daymark-d:inline-block}
/* ===== Тема: Таиланд — золото храмов и красный ===== */
.evg[data-c="th"]{--deep:#262350;--a1:#a51931;--a2:#2d5fa0;--a3:#1f6f5c;--a4:#d4a017;
 --pat:repeating-linear-gradient(135deg,#d4a017 0 7px,#a51931 7px 14px,#262350 14px 21px);
 --daymark:radial-gradient(circle,#d4a017 0 40%,#a51931 42%);--daymark-d:inline-block}
/* ===== Тема: Сингапур — красный и белый, полумесяц ===== */
.evg[data-c="sg"]{--deep:#1b2a3a;--a1:#ee2536;--a2:#c41e2e;--a3:#1f6f5c;--a4:#f2c14e;
 --pat:linear-gradient(#ee2536 0 50%,#fff 50%);
 --daymark:radial-gradient(circle at 62% 50%,#ee2536 0 34%,transparent 36%),radial-gradient(circle,#fff 0 48%,#ee2536 50%);--daymark-d:inline-block}
/* ===== Тема: Италия — триколор, терракота ===== */
.evg[data-c="it"]{--deep:#24372c;--a1:#ce2b37;--a2:#a8431f;--a3:#009246;--a4:#e9b44c;
 --pat:repeating-linear-gradient(90deg,#009246 0 18px,#fff 18px 36px,#ce2b37 36px 54px);
 --daymark:conic-gradient(#009246 0 33%,#fff 33% 66%,#ce2b37 66%);--daymark-d:inline-block}
/* ===== Тема: Германия — чёрный, красный, золотой ===== */
.evg[data-c="de"]{--deep:#22252b;--a1:#dd0000;--a2:#b00000;--a3:#2f5d3a;--a4:#ffce00;
 --pat:linear-gradient(#000 0 33%,#dd0000 33% 66%,#ffce00 66%);
 --daymark:radial-gradient(circle,#ffce00 0 40%,#dd0000 42% 70%,#000 72%);--daymark-d:inline-block}

/* ===== Тема: Испания — красно-жёлтая, азулежу ===== */
.evg[data-c="es"]{--deep:#3a1416;--a1:#c60b1e;--a2:#b4441c;--a3:#1f6f5c;--a4:#ffc400;
 --pat:linear-gradient(#c60b1e 0 25%,#ffc400 25% 75%,#c60b1e 75%);
 --daymark:radial-gradient(circle,#ffc400 0 45%,#c60b1e 47%);--daymark-d:inline-block}
/* ===== Тема: Франция — триколор, синий ===== */
.evg[data-c="fr"]{--deep:#14213d;--a1:#ef4135;--a2:#0055a4;--a3:#2f5d3a;--a4:#e9c46a;
 --pat:repeating-linear-gradient(90deg,#0055a4 0 18px,#fff 18px 36px,#ef4135 36px 54px);
 --daymark:conic-gradient(#0055a4 0 33%,#fff 33% 66%,#ef4135 66%);--daymark-d:inline-block}
/* ===== Тема: Греция — эгейский синий и белый, меандр ===== */
.evg[data-c="gr"]{--deep:#0d3b66;--a1:#0d5eaf;--a2:#0d5eaf;--a3:#2a7f62;--a4:#f4d35e;
 --pat:repeating-linear-gradient(90deg,#0d5eaf 0 6px,#fff 6px 12px,#0d5eaf 12px 18px,#fff 18px 30px);
 --daymark:radial-gradient(circle,#fff 0 40%,#0d5eaf 42%);--daymark-d:inline-block}
/* ===== Тема: Чехия — красная черепица и синий клин ===== */
.evg[data-c="cz"]{--deep:#1e2f4a;--a1:#d7141a;--a2:#11457e;--a3:#2f5d3a;--a4:#e8b04b;
 --pat:linear-gradient(#fff 0 50%,#d7141a 50%);
 --daymark:conic-gradient(from 225deg,#11457e 0 25%,#fff 25% 62.5%,#d7141a 62.5%);--daymark-d:inline-block}
/* ===== Тема: Венгрия — паприка, белый, зелёный ===== */
.evg[data-c="hu"]{--deep:#22362b;--a1:#cd2a3e;--a2:#436f4d;--a3:#436f4d;--a4:#e9b44c;
 --pat:linear-gradient(#cd2a3e 0 33%,#fff 33% 66%,#436f4d 66%);
 --daymark:radial-gradient(circle,#fff 0 30%,#cd2a3e 32% 66%,#436f4d 68%);--daymark-d:inline-block}
/* ===== Тема: Австрия — красно-белая, альпийский ===== */
.evg[data-c="at"]{--deep:#2b2d42;--a1:#c8102e;--a2:#a4161a;--a3:#2f5d3a;--a4:#e9c46a;
 --pat:linear-gradient(#c8102e 0 33%,#fff 33% 66%,#c8102e 66%);
 --daymark:radial-gradient(circle,#fff 0 40%,#c8102e 42%);--daymark-d:inline-block}
/* ===== Тема: Швейцария — красный и белый крест ===== */
.evg[data-c="ch"]{--deep:#1f2a33;--a1:#d52b1e;--a2:#b71c1c;--a3:#2f5d3a;--a4:#f2c14e;
 --pat:repeating-linear-gradient(90deg,#d52b1e 0 22px,#fff 22px 26px);
 --daymark:linear-gradient(#fff,#fff) center/60% 20% no-repeat,linear-gradient(#fff,#fff) center/20% 60% no-repeat,#d52b1e;--daymark-d:inline-block}
/* ===== Тема: Индия — шафран, белый, зелёный ===== */
.evg[data-c="in"]{--deep:#2d1e2f;--a1:#ff9933;--a2:#c2410c;--a3:#138808;--a4:#ffcc4d;
 --pat:linear-gradient(#ff9933 0 33%,#fff 33% 66%,#138808 66%);
 --daymark:radial-gradient(circle,#000080 0 20%,#fff 22% 60%,#ff9933 62%);--daymark-d:inline-block}
/* ===== Тема: Тайвань — красные фонари и синий ===== */
.evg[data-c="tw"]{--deep:#101f45;--a1:#fe0000;--a2:#c0392b;--a3:#2f6b4f;--a4:#f5b041;
 --pat:repeating-linear-gradient(90deg,#fe0000 0 14px,#f5b041 14px 18px,#000095 18px 32px);
 --daymark:radial-gradient(circle,#fff 0 30%,#000095 32% 60%,#fe0000 62%);--daymark-d:inline-block}
/* ===== Тема: Великобритания — юнион-джек ===== */
.evg[data-c="gb"]{--deep:#012169;--a1:#c8102e;--a2:#1d4ed8;--a3:#2f5d3a;--a4:#f2c14e;
 --pat:repeating-linear-gradient(90deg,#012169 0 14px,#fff 14px 18px,#c8102e 18px 24px,#fff 24px 28px);
 --daymark:linear-gradient(#c8102e,#c8102e) center/100% 26% no-repeat,linear-gradient(#c8102e,#c8102e) center/26% 100% no-repeat,#012169;--daymark-d:inline-block}
/* ===== Тема: Канада — красный клён ===== */
.evg[data-c="ca"]{--deep:#2b1d1d;--a1:#d80621;--a2:#b91c1c;--a3:#2f5d3a;--a4:#f2c14e;
 --pat:linear-gradient(90deg,#d80621 0 25%,#fff 25% 75%,#d80621 75%);
 --daymark:radial-gradient(circle,#d80621 0 40%,#fff 42%);--daymark-d:inline-block}
