/*
Theme Name: dds_clever-wedding.ru
Author: Анна Соколова
Description: Мультитематический lifestyle-блог об осознанной повседневной жизни — отношения, дом, финансы и технологии.
Version: 1.1
Text Domain: cleverwedding
*/

:root{
  --maxw: 1180px;
  --cream: #f5f0e8;
  --cream-2: #efe8dd;
  --sand: #e0d5c5;
  --sage: #7c8e74;
  --sage-d: #5a6b54;
  --clay: #c18a6e;
  --gold: #c6a86e;
  --ink: #2c2f2b;
  --ink-soft: #555b50;
  --line: #ddd3c4;
  --white: #fffdf9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(60,66,52,.10);
  --serif: Georgia, "Times New Roman", "PT Serif", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

a{ color: var(--sage-d); text-decoration: none; }
a:hover{ color: var(--clay); }

h1,h2,h3,h4{ font-family: var(--serif); line-height: 1.25; color: var(--ink); font-weight: 600; }
h1{ font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 .5em; }
h2{ font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .6em; }
h3{ font-size: 1.3rem; margin: 0 0 .5em; }
p{ margin: 0 0 1.1em; }

/* ---- Shell: single width container ---- */
.shell{ width: min(92%, var(--maxw)); margin-inline: auto; }

/* ---- Header ---- */
.site-header{
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  flex-wrap: wrap;
}
.brand{ display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo{ display: block; width: 52px; height: 52px; flex: 0 0 auto; }
.brand-text{ min-width: 0; }
.brand-name{
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
  line-height: 1.3;
}
.brand-desc{
  font-size: .82rem;
  color: var(--ink-soft);
  display: block;
  max-width: 52ch;
}
.main-nav ul{
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center;
}
.main-nav a{
  color: var(--ink);
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover{ color: var(--sage-d); border-bottom-color: var(--gold); }
.menu-toggle{
  display: none;
  background: var(--sage-d); color: var(--white);
  border: 0; border-radius: 8px; padding: 9px 14px;
  font-size: .95rem; cursor: pointer;
}

/* ---- Layout ---- */
.site-main{ padding: 36px 0 48px; }
.layout-with-sidebar{
  display: grid;
  grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
  gap: 40px;
  align-items: start;
}
.layout-single{ display: block; }
.layout-single .content-area{
  width: 85%;
  margin-left: auto; margin-right: auto;
}
.content-area{ min-width: 0; }

/* ---- Breadcrumbs ---- */
.breadcrumbs{
  font-size: .85rem; color: var(--ink-soft);
  margin: 0 0 22px; padding: 0;
}
.breadcrumbs a{ color: var(--sage-d); }
.breadcrumbs .sep{ margin: 0 6px; color: var(--gold); }

/* ---- Cards ---- */
.card-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.card{
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-thumb{ display: block; }
.card-thumb img{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.card-body{ flex: 1; display: flex; flex-direction: column; padding: 20px 22px 24px; }
.card-title{ font-size: 1.25rem; margin: 0 0 .4em; }
.card-title a{ color: var(--ink); }
.card-title a:hover{ color: var(--clay); }
.card-meta{ font-size: .8rem; color: var(--ink-soft); margin: 0 0 .7em; }
.card-excerpt{ color: var(--ink-soft); }
.card-excerpt p{ margin: 0 0 .5em; background: none; }
.card-more{
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  color: var(--sage-d);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

/* ---- Single / Page content ---- */
.entry{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px clamp(20px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.entry-header{ margin-bottom: 18px; }
.entry-meta{ font-size: .85rem; color: var(--ink-soft); }
.entry-thumb{ margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; }
.entry-thumb img{ display: block; width: 100%; object-fit: cover; }
.entry-content img{ border-radius: 10px; }
.entry-content h2{ margin-top: 1.4em; }
.entry-content blockquote{
  margin: 1.4em 0; padding: 14px 22px;
  border-left: 4px solid var(--gold);
  background: var(--cream-2); color: var(--ink);
  border-radius: 0 10px 10px 0;
}
.entry-content table{
  width: 100%; border-collapse: collapse; margin: 1.2em 0;
}
.entry-content table, .entry-content th, .entry-content td{
  border: 1px solid var(--line);
}
.entry-content th, .entry-content td{ padding: 9px 12px; text-align: left; }
.entry-content th{ background: var(--cream-2); }

/* ---- Sidebar ---- */
.sidebar{ min-width: 0; }
.widget{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 24px;
}
.widget-title{
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 14px;
  color: var(--ink);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
}
.widget ul{ list-style: none; margin: 0; padding: 0; }
.widget li{ padding: 7px 0; border-bottom: 1px dashed var(--line); }
.widget li:last-child{ border-bottom: 0; }
.widget a{ color: var(--ink); }
.widget a:hover{ color: var(--clay); }
.widget .post-date{ display: block; font-size: .78rem; color: var(--ink-soft); }

/* ---- Search form ---- */
.search-form{ display: flex; gap: 8px; }
.search-form .search-field{
  flex: 1; min-width: 0;
  padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--white); color: var(--ink);
  font-size: .95rem;
}
.search-form .search-submit{
  border: 0; border-radius: 8px; cursor: pointer;
  background: var(--sage-d); color: var(--white);
  padding: 10px 16px; font-size: .95rem;
}
.search-form .search-submit:hover{ background: var(--sage); }

/* ---- Pagination ---- */
.pagination{
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 34px 0 0; justify-content: center;
}
.pagination .page-numbers{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); color: var(--ink); font-weight: 500;
}
.pagination a.page-numbers:hover{ background: var(--cream-2); border-color: var(--gold); }
.pagination .page-numbers.current{
  background: var(--sage-d); color: var(--white); border-color: var(--sage-d);
}
.pagination .page-numbers.dots{ border: 0; background: none; }

/* ---- Front page sections ---- */
.section{ padding: 16px 0; margin-bottom: 8px; }
.section-head{ text-align: center; max-width: 64ch; margin: 0 auto 26px; }
.section-head p{ color: var(--ink-soft); margin: 0; }

/* hero */
.hero{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.hero img{ display: block; width: 100%; height: clamp(280px, 42vw, 460px); object-fit: cover; }
.hero-overlay{
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(24px, 6vw, 70px);
  background: linear-gradient(90deg, rgba(44,47,43,.62), rgba(44,47,43,.18));
  color: var(--white);
}
.hero-overlay h1{ color: var(--white); max-width: 18ch; }
.hero-overlay p{ color: rgba(255,255,255,.9); max-width: 40ch; margin: 0; }

/* split: text + illustration */
.split{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px; align-items: center;
}
.split.reverse .split-media{ order: -1; }
.split-media img{ display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-text h2{ margin-top: 0; }

/* feature grid */
.feature-grid{
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.feature{
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; text-align: center;
}
.feature-ico{ width: 56px; height: 56px; margin: 0 auto 14px; display: block; }
.feature h3{ margin: 0 0 .4em; }
.feature p{ margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* steps */
.steps{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.step{ background: var(--cream-2); border-radius: var(--radius); padding: 24px 20px; position: relative; }
.step-num{
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sage-d); color: var(--white);
  font-family: var(--serif); font-size: 1.25rem; margin-bottom: 12px;
}
.step h3{ font-size: 1.1rem; margin: 0 0 .35em; }
.step p{ margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* quote */
.quote{
  background: var(--sage-d); color: var(--white);
  border-radius: var(--radius); padding: clamp(30px, 6vw, 60px);
  text-align: center;
}
.quote blockquote{
  margin: 0; font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.45;
}
.quote cite{ display: block; margin-top: 16px; font-style: normal; font-size: .95rem; color: var(--gold); }

/* facts */
.facts{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; text-align: center; }
.fact{ background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 16px; }
.fact-num{ font-family: var(--serif); font-size: 2.2rem; color: var(--clay); display: block; }
.fact-label{ font-size: .9rem; color: var(--ink-soft); }

/* faq */
.faq details{
  background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; padding: 4px 18px; margin-bottom: 12px;
}
.faq summary{
  cursor: pointer; font-weight: 600; padding: 14px 0;
  font-family: var(--serif); font-size: 1.08rem; list-style: none;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{ content: "＋"; float: right; color: var(--gold); }
.faq details[open] summary::after{ content: "－"; }
.faq details p{ margin: 0 0 14px; color: var(--ink-soft); }

/* gallery */
.gallery-grid{
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.gallery-grid img{
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 12px;
}

/* cta */
.cta{
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.cta img{ display: block; width: 100%; height: clamp(220px, 30vw, 320px); object-fit: cover; }
.cta-overlay{
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 0 24px; background: rgba(44,47,43,.5); color: var(--white);
}
.cta-overlay h2{ color: var(--white); }
.cta-overlay p{ max-width: 52ch; color: rgba(255,255,255,.92); }
.btn{
  display: inline-block; background: var(--gold); color: var(--ink);
  font-weight: 600; padding: 13px 28px; border-radius: 30px;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.btn:hover{ background: var(--cream); color: var(--ink); }

/* latest posts on front */
.latest-wrap{ margin-top: 4px; }

/* ---- Footer ---- */
.site-footer{ background: var(--ink); color: #d9d4c8; margin-top: 30px; }
.footer-cols{
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px; padding: 48px 0 36px;
}
.footer-col{ min-width: 0; }
.site-footer .widget{ background: none; border: 0; padding: 0; margin: 0; }
.site-footer .widget-title{ color: #fff; border-bottom-color: var(--gold); }
.site-footer p, .site-footer li{ color: #cfc9bc; }
.site-footer a{ color: #e6e0d4; }
.site-footer a:hover{ color: var(--gold); }
.site-footer .widget li{ border-bottom-color: rgba(255,255,255,.12); }
.site-footer .widget .post-date{ color: #aaa496; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 18px 0; font-size: .85rem; color: #b3ad9f; text-align: center;
}
.footer-contacts a{ color: var(--gold); }

/* ---- Cookie banner ---- */
.cookie-banner[hidden]{ display: none !important; }
.cookie-banner{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  justify-content: center;
  background: rgba(44,47,43,.97); color: #f1ece1;
  padding: 16px 22px; font-size: .92rem;
  box-shadow: 0 -6px 20px rgba(0,0,0,.2);
}
.cookie-banner p{ margin: 0; max-width: 70ch; }
.cookie-banner a{ color: var(--gold); }
.cookie-accept{
  border: 0; border-radius: 24px; cursor: pointer;
  background: var(--gold); color: var(--ink); font-weight: 600;
  padding: 10px 24px; font-size: .92rem;
}
.cookie-accept:hover{ background: #d8bd84; }

/* ---- 404 ---- */
.notfound{ text-align: center; padding: 30px 0; }
.notfound .err-code{ font-family: var(--serif); font-size: clamp(4rem, 14vw, 8rem); color: var(--sage); line-height: 1; }
.notfound .search-form{ max-width: 460px; margin: 22px auto; }

/* ---- Comments ---- */
.comments-area{ margin-top: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px clamp(20px,4vw,40px); }
.comment-list{ list-style: none; margin: 0 0 24px; padding: 0; }
.comment-list li{ margin-bottom: 18px; }
.comment-body{ background: var(--cream-2); border-radius: 10px; padding: 14px 18px; }
.comment-meta{ font-size: .82rem; color: var(--ink-soft); margin-bottom: 6px; }
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea{
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--white); font-family: inherit; font-size: .95rem;
}
.comment-form textarea{ min-height: 120px; }
.comment-form .submit{
  border: 0; border-radius: 24px; cursor: pointer;
  background: var(--sage-d); color: var(--white); font-weight: 600;
  padding: 11px 26px; margin-top: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 960px){
  .layout-with-sidebar{ grid-template-columns: minmax(0,1fr); }
  .feature-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .facts{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-cols{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px){
  body{ font-size: 16px; }
  .menu-toggle{ display: inline-block; }
  .main-nav{ display: none; width: 100%; }
  .main-nav.open{ display: block; }
  .main-nav ul{ flex-direction: column; gap: 0; }
  .main-nav li{ border-bottom: 1px solid var(--line); }
  .main-nav a{ display: block; padding: 12px 0; }
  .card-grid{ grid-template-columns: minmax(0,1fr); }
  .split{ grid-template-columns: minmax(0,1fr); }
  .split.reverse .split-media{ order: 0; }
  .feature-grid, .steps, .facts{ grid-template-columns: minmax(0,1fr); }
  .gallery-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-cols{ grid-template-columns: minmax(0,1fr); gap: 28px; }
  .layout-single .content-area{ width: 100%; }
}
