/*
Theme Name: Строим сами
Theme URI: https://savik-krepeg.ru/
Description: Лёгкая тема для сайта о строительстве и ремонте.
Author: Строим сами
Version: 1.0.0
Text Domain: stroim-sami
*/

:root {
  --green: #174f3b;
  --green-dark: #103a2b;
  --orange: #e97924;
  --cream: #f6f3eb;
  --ink: #17201d;
  --muted: #627069;
  --line: #dce3df;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(16, 58, 43, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fbfcfb; font-family: Arial, Helvetica, sans-serif; line-height: 1.65; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; padding: 10px; background: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--green-dark); text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand-text { display: grid; line-height: 1.15; }
.brand-title { font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.brand-tagline { color: var(--muted); font-size: 12px; margin-top: 4px; }
.main-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.main-nav a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--green); background: #edf5f1; }
.hero { padding: 64px 0 42px; background: linear-gradient(135deg, var(--cream), #eef6f1); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 820px; margin: 0 0 12px; color: var(--green-dark); font-size: clamp(34px, 5vw, 58px); line-height: 1.08; letter-spacing: -.04em; }
.hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 18px; }
.section { padding: 54px 0 70px; }
.section-heading { margin: 0 0 28px; font-size: clamp(28px, 4vw, 40px); line-height: 1.18; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-thumb { display: block; aspect-ratio: 16/10; background: #e8eeeb; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card:hover .card-thumb img { transform: scale(1.025); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.card-category { margin-bottom: 9px; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.card h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.28; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--green); }
.card-excerpt { color: var(--muted); font-size: 15px; }
.read-more { align-self: flex-start; margin-top: auto; padding-top: 15px; color: var(--green); font-weight: 800; text-decoration: none; }
.read-more::after { content: " →"; color: var(--orange); }
.pagination { margin-top: 38px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--green); border-color: var(--green); }
.content-wrap { width: min(850px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 72px; }
.breadcrumbs { margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--muted); }
.entry-title { margin: 0 0 28px; color: var(--green-dark); font-size: clamp(32px, 5vw, 50px); line-height: 1.12; letter-spacing: -.035em; }
.entry-thumbnail { margin: 0 0 34px; overflow: hidden; border-radius: var(--radius); }
.entry-content { font-size: 18px; }
.entry-content h2, .entry-content h3 { color: var(--green-dark); line-height: 1.25; }
.entry-content h2 { margin-top: 2em; font-size: 30px; }
.entry-content h3 { margin-top: 1.6em; font-size: 23px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: #edf5f1; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-nav a { display: block; padding: 16px; background: var(--cream); border-radius: 12px; text-decoration: none; font-weight: 700; }
.site-footer { padding: 34px 0; color: #dbe9e2; background: var(--green-dark); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer a { color: #fff; }
@media (max-width: 920px) { .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .header-inner { align-items: flex-start; flex-direction: column; padding-block: 14px; } .site-header { position: static; } }
@media (max-width: 620px) { .container, .content-wrap { width: min(100% - 28px, 1180px); } .brand-tagline { display: none; } .main-nav ul { gap: 2px; } .main-nav a { padding: 8px; font-size: 13px; } .hero { padding: 38px 0 30px; } .section { padding: 36px 0 52px; } .post-grid { grid-template-columns: 1fr; } .entry-content { font-size: 17px; } .entry-content table { display: block; overflow-x: auto; } .post-nav { grid-template-columns: 1fr; } .footer-inner { align-items: flex-start; flex-direction: column; } }
