/*
Theme Name: Ortho Smile
Theme URI: https://orto-kapa.store/
Author: OpenAI
Description: Легкая стоматологическая тема для сайта ортодонта: главная, страницы, аккуратная типографика, мягкая медицинская палитра и базовая мультиязычность.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: ortho-smile
*/

:root{
  --bg:#f6fbfb;
  --card:#ffffff;
  --text:#17313b;
  --muted:#56707b;
  --line:#d8e7eb;
  --primary:#0f8b8d;
  --primary-dark:#0b6a6c;
  --accent:#dff6f2;
  --accent-2:#eef7ff;
  --shadow:0 16px 40px rgba(19,49,59,.08);
  --radius:22px;
  --container:min(1160px, calc(100% - 32px));
}

body[data-theme="night"]{
  --bg:#0d1620;
  --card:#132331;
  --text:#edf7ff;
  --muted:#a8bfce;
  --line:#264052;
  --primary:#6fd9df;
  --primary-dark:#9aecef;
  --accent:#183446;
  --accent-2:#132a3b;
  --shadow:0 18px 48px rgba(0,0,0,.28);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Arial,Helvetica,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top right, rgba(223,246,242,.9), transparent 30%),
    linear-gradient(180deg,#fbffff 0%, var(--bg) 100%);
  line-height:1.65;
  transition:background .35s ease,color .35s ease;
}
body[data-theme="night"]{
  background:
    radial-gradient(circle at top right, rgba(111,217,223,.10), transparent 30%),
    linear-gradient(180deg,#0f1c28 0%, var(--bg) 100%);
}
img{max-width:100%;height:auto}
a{color:var(--primary);text-decoration:none;transition:color .2s ease}
a:hover{color:var(--primary-dark)}
.container{width:var(--container);margin:0 auto}
.screen-reader-text{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;
  clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;
}
.site-header{
  position:sticky;top:0;z-index:20;
  backdrop-filter:blur(14px);
  background:rgba(255,255,255,.78);
  border-bottom:1px solid rgba(216,231,235,.8);
  transition:background .35s ease,border-color .35s ease;
}
body[data-theme="night"] .site-header{
  background:rgba(12,22,32,.8);
  border-bottom:1px solid rgba(38,64,82,.95);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;padding:16px 0;
}
.brand{display:flex;flex-direction:column;gap:2px}
.brand-title{font-size:24px;font-weight:800;color:var(--text);letter-spacing:.02em}
.brand-sub{font-size:13px;color:var(--muted)}
.header-right{
  display:flex;align-items:center;justify-content:flex-end;gap:18px;flex:1;
}
.top-nav ul{
  display:flex;gap:20px;list-style:none;margin:0;padding:0;flex-wrap:wrap;align-items:center;justify-content:flex-end
}
.top-nav a{font-weight:600;color:var(--text)}
.header-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.header-phone{white-space:nowrap;font-weight:700;color:var(--primary)}
.language-switcher-form{margin:0}
.language-switcher{
  appearance:none;
  min-width:164px;
  height:44px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--card);
  color:var(--text);
  padding:0 40px 0 16px;
  font-weight:700;
  box-shadow:var(--shadow);
  cursor:pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 18px,
    calc(100% - 14px) 18px;
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
}
.theme-toggle{
  width:44px;height:44px;border-radius:999px;border:1px solid var(--line);
  background:var(--card);color:var(--text);cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow);transition:transform .2s ease,background .3s ease,border-color .3s ease;
}
.theme-toggle:hover{transform:translateY(-1px)}
.theme-toggle-icon{font-size:20px;line-height:1}
.hero{padding:68px 0 34px}
.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:center}
.badge{display:inline-flex;padding:8px 14px;border-radius:999px;background:var(--accent);color:var(--primary-dark);font-size:13px;font-weight:700;margin-bottom:14px}
h1,h2,h3{line-height:1.15;margin:0 0 14px}
h1{font-size:clamp(38px,6vw,66px);letter-spacing:-.03em}
h2{font-size:clamp(28px,4vw,42px);letter-spacing:-.02em}
h3{font-size:24px}
.lead{font-size:18px;color:var(--muted);max-width:760px}
.hero-card,.card{
  background:var(--card);border:1px solid rgba(216,231,235,.95);box-shadow:var(--shadow);border-radius:var(--radius);transition:background .35s ease,border-color .35s ease,box-shadow .35s ease
}
body[data-theme="night"] .hero-card,
body[data-theme="night"] .card,
body[data-theme="night"] .entry,
body[data-theme="night"] .site-footer{border-color:var(--line)}
.hero-card{padding:28px}
.hero-list{margin:18px 0 0;padding:0;list-style:none}
.hero-list li{padding:10px 0 10px 28px;position:relative;border-top:1px solid var(--line)}
.hero-list li:first-child{border-top:0}
.hero-list li:before{content:"✓";position:absolute;left:0;top:10px;font-weight:800;color:var(--primary)}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 22px;border-radius:999px;font-weight:700;transition:.2s ease; border:1px solid transparent}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-dark);color:#082029;transform:translateY(-1px)}
body[data-theme="day"] .btn-primary:hover{color:#fff}
.btn-secondary{background:var(--card);border-color:var(--line);color:var(--text)}
.btn-secondary:hover{border-color:var(--primary);color:var(--primary)}
.section{padding:34px 0}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.card{padding:24px}
.kicker{color:var(--primary);font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:12px;margin-bottom:10px}
.muted{color:var(--muted)}
.steps .card{position:relative;overflow:hidden}
.step-num{display:inline-flex;width:42px;height:42px;border-radius:50%;background:var(--accent);align-items:center;justify-content:center;font-weight:800;color:var(--primary-dark);margin-bottom:14px}
.pricing{background:linear-gradient(180deg,#ffffff 0%, #f4fbff 100%)}
body[data-theme="night"] .pricing{background:linear-gradient(180deg,#122131 0%, #0f1b28 100%)}
.price{font-size:30px;font-weight:800;margin:10px 0 6px}
.site-footer{margin-top:40px;padding:34px 0;border-top:1px solid var(--line);background:#fff;transition:background .35s ease,border-color .35s ease}
.footer-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}
.page-hero{padding:44px 0 18px}
.entry{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:28px;transition:background .35s ease,border-color .35s ease}
.article-entry h2,.article-entry h3{margin-top:28px}
.notice{padding:14px 18px;background:var(--accent-2);border:1px solid #d9eaff;border-radius:16px}
body[data-theme="night"] .notice{border-color:var(--line)}
@media (max-width: 980px){
  .header-inner,.header-right{align-items:flex-start;flex-direction:column}
  .top-nav ul,.header-tools{justify-content:flex-start}
}
@media (max-width: 900px){
  .hero-grid,.grid-3,.grid-2,.footer-grid{grid-template-columns:1fr}
}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:22px;
}
.section-head-actions{display:flex;align-items:center}
.article-archive-grid .card,
.article-preview-card{height:100%}
@media (max-width: 900px){
  .section-head{align-items:flex-start;flex-direction:column}
}

.article-preview-card{
  overflow:hidden;
  padding:0;
  display:flex;
  flex-direction:column;
}
.article-card-image{
  display:block;
  aspect-ratio: 16 / 10;
  overflow:hidden;
  background:var(--accent-2);
}
.article-card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.article-card-body{
  padding:22px 24px 24px;
}
.article-hero-image{
  margin:0 0 22px;
  border-radius:18px;
  overflow:hidden;
  background:var(--accent-2);
}
.article-hero-image img{
  display:block;
  width:100%;
  height:auto;
}

.article-preview-card{
  overflow:hidden;
  padding:0;
  display:flex;
  flex-direction:column;
}
.article-card-body{padding:22px 24px 24px}
.article-thumb-link{display:block;line-height:0}
.article-thumb{
  width:100%;
  aspect-ratio: 4 / 3;
  object-fit:cover;
  display:block;
  border-bottom:1px solid var(--line);
}
.article-featured-image-wrap{margin:-6px 0 24px}
.article-featured-image{
  width:100%;
  height:auto;
  display:block;
  border-radius:18px;
}
