:root{
  --cream:#f4ead8;
  --paper:#fbf2e1;
  --ink:#211d18;
  --red:#e94b27;
  --mint:#b8c7a8;
  --mustard:#d3a13b;
  --muted:#6f6253;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--cream);
  color:var(--ink);
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.5;
}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}
.site{
  width:min(1440px,100%);
  margin:auto;
  background:var(--paper);
  border-left:1px solid var(--ink);
  border-right:1px solid var(--ink);
}
.topbar{
  min-height:60px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:10px 26px;
  border-bottom:1px solid var(--ink);
}
.logo{
  font:700 19px/1 Georgia,"Times New Roman",serif;
  white-space:nowrap;
}
.nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:20px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.nav a.active{font-weight:700;border-bottom:2px solid var(--ink)}
.top-mark{font:18px Georgia,serif}

.hero{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  border-bottom:1px solid var(--ink);
}
.hero-copy{
  min-height:590px;
  padding:65px 54px 55px;
  border-right:1px solid var(--ink);
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.kicker{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.15em;
  margin-bottom:22px;
}
.hero h1,.page-head h1{
  font:900 clamp(58px,8vw,112px)/.8 Georgia,"Times New Roman",serif;
  letter-spacing:-.075em;
  margin:0 0 25px;
}
.hero-sub{
  font:700 22px/1.1 Georgia,"Times New Roman",serif;
  max-width:500px;
  margin:0 0 18px;
}
.hero-copy p{
  max-width:520px;
  margin:0 0 28px;
  font-size:14px;
}
.button{
  display:inline-block;
  width:max-content;
  padding:13px 24px;
  background:var(--red);
  border:1px solid var(--ink);
  font-size:11px;
  font-weight:bold;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.button:hover{text-decoration:none;background:#cf3e20}
.hero-note{
  position:absolute;
  right:38px;
  bottom:34px;
  width:92px;height:92px;
  border:1px solid var(--ink);
  border-radius:50%;
  display:grid;
  place-items:center;
  text-align:center;
  padding:10px;
  font:13px/1.05 Georgia,serif;
  transform:rotate(-6deg);
}
.photo-frame{
  min-height:590px;
  padding:28px;
  background:var(--mint);
  display:flex;
  align-items:center;
  justify-content:center;
}
.photo-frame img{
  width:100%;
  height:100%;
  max-height:530px;
  aspect-ratio:4/5;
  object-fit:cover;
  object-position:center;
  border:2px solid var(--ink);
  background:var(--cream);
}
.photo-wide{
  width:100%;
  aspect-ratio:16/8;
  overflow:hidden;
  border:1px solid var(--ink);
  background:var(--cream);
}
.photo-wide img{
  width:100%;height:100%;object-fit:cover;
}

.section{padding:40px 26px;border-bottom:1px solid var(--ink)}
.section.red{background:var(--red);color:#fff8ec}
.section-title{
  font:700 48px/.9 Georgia,"Times New Roman",serif;
  margin:0 0 25px;
  letter-spacing:-.05em;
}
.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid currentColor;
  border-left:1px solid currentColor;
}
.card{
  min-height:220px;
  padding:23px;
  border-right:1px solid currentColor;
  border-bottom:1px solid currentColor;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.card .circle{
  width:58px;height:58px;
  border:1px solid currentColor;
  border-radius:50%;
  display:grid;place-items:center;
  font:11px Georgia,serif;
}
.card h2{font:700 30px/.95 Georgia,serif;margin:18px 0 8px}
.card p{font-size:12px;max-width:360px;margin:0}
.card-link{display:inline-block;margin-top:14px;font-size:10px;text-transform:uppercase;letter-spacing:.08em}

.home-info{
  display:grid;
  grid-template-columns:1fr 1.35fr;
  border-bottom:1px solid var(--ink);
}
.home-info .text{padding:40px 28px}
.home-info .text h2{
  font:700 43px/.95 Georgia,serif;
  margin:0 0 20px;
}
.home-info .text p{max-width:650px;font-size:14px}
.home-info .image{padding:22px;background:var(--mustard);border-left:1px solid var(--ink)}

.quick{
  display:grid;
  grid-template-columns:1fr 2fr;
  border-bottom:1px solid var(--ink);
}
.quick-title{
  padding:30px 25px;
  background:var(--mustard);
  font:700 31px/.95 Georgia,serif;
}
.quick-list{display:grid;grid-template-columns:repeat(2,1fr)}
.quick-list a{
  padding:22px 25px;
  border-left:1px solid var(--ink);
  border-bottom:1px solid var(--ink);
  font:700 17px/1.05 Georgia,serif;
}
.quick-list a:nth-child(3),.quick-list a:nth-child(4){border-bottom:0}

.page-head{
  padding:48px 35px 42px;
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:40px;
  align-items:end;
  border-bottom:1px solid var(--ink);
}
.page-head h1{font-size:clamp(60px,7vw,100px);margin:18px 0 0}
.page-desc{font-size:14px;max-width:450px}
.content-intro{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  border-bottom:1px solid var(--ink);
}
.content-intro .copy{padding:35px 28px}
.content-intro h2{font:700 38px/.95 Georgia,serif;margin:0 0 16px}
.content-intro p{font-size:14px;max-width:650px}
.content-intro .photo{padding:22px;background:var(--mint);border-left:1px solid var(--ink)}
.topic-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  border-left:1px solid var(--ink);
  border-top:1px solid var(--ink);
}
.topic{
  min-height:330px;
  padding:25px;
  border-right:1px solid var(--ink);
  border-bottom:1px solid var(--ink);
}
.topic:nth-child(2n){background:var(--mint)}
.topic:nth-child(3n){background:var(--paper)}
.topic .badge{
  display:inline-block;
  border:1px solid var(--ink);
  padding:5px 9px;
  font-size:10px;
  text-transform:uppercase;
}
.topic h2{font:700 35px/.92 Georgia,serif;margin:32px 0 14px;max-width:500px}
.topic p{font-size:13px;max-width:610px;margin:0 0 12px}
.topic ul{font-size:12px;line-height:1.7;margin:12px 0 0;padding-left:18px}
.topic-photo{
  margin-top:18px;
  width:100%;
  aspect-ratio:16/7;
  overflow:hidden;
  border:1px solid var(--ink);
}
.topic-photo img{width:100%;height:100%;object-fit:cover}

.tip{
  display:grid;
  grid-template-columns:1fr 2fr;
  border-bottom:1px solid var(--ink);
}
.tip-label{padding:30px 25px;background:var(--mustard);font:700 30px/.95 Georgia,serif}
.tip-copy{padding:30px 25px}
.tip-copy h2{font:700 28px/.95 Georgia,serif;margin:0 0 10px}
.tip-copy p{margin:0;font-size:13px;max-width:760px}

.footer{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:22px 25px;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

@media(max-width:900px){
  .hero,.home-info,.content-intro,.page-head,.quick,.tip{grid-template-columns:1fr}
  .hero-copy{border-right:0;border-bottom:1px solid var(--ink)}
  .photo-frame{min-height:420px}
  .hero-copy{min-height:500px}
  .cards{grid-template-columns:1fr}
  .quick-title{border-bottom:1px solid var(--ink)}
  .quick-list a{border-left:0}
  .quick-list a:nth-child(3){border-bottom:1px solid var(--ink)}
  .content-intro .photo{border-left:0;border-top:1px solid var(--ink)}
  .page-head{gap:20px}
  .topic-grid{grid-template-columns:1fr}
  .tip-label{border-bottom:1px solid var(--ink)}
}
@media(max-width:560px){
  .topbar{align-items:flex-start;flex-direction:column;padding:13px 15px}
  .nav{justify-content:flex-start;gap:12px}
  .top-mark{display:none}
  .hero-copy{padding:42px 19px 105px;min-height:470px}
  .hero h1{font-size:61px}
  .hero-sub{font-size:19px}
  .photo-frame{padding:15px;min-height:330px}
  .section{padding:30px 15px}
  .section-title{font-size:38px}
  .card{min-height:190px}
  .home-info .text,.content-intro .copy{padding:30px 19px}
  .home-info .text h2,.content-intro h2{font-size:34px}
  .home-info .image,.content-intro .photo{padding:15px}
  .page-head{padding:38px 19px}
  .page-head h1{font-size:58px}
  .topic{padding:20px;min-height:300px}
  .topic h2{font-size:30px;margin-top:26px}
  .quick-list{grid-template-columns:1fr}
  .quick-list a{border-left:0;border-bottom:1px solid var(--ink)!important}
  .quick-list a:last-child{border-bottom:0!important}
  .footer{flex-direction:column;padding:19px 15px}
}
.seo-copy{padding:42px 28px;border-bottom:1px solid var(--ink);background:var(--paper)}.seo-copy h2{font:700 38px/.95 Georgia,serif;margin:0 0 18px;letter-spacing:-.04em}.seo-copy h3{font:700 27px/1 Georgia,serif;margin:30px 0 10px}.seo-copy p{font-size:14px;max-width:900px;margin:0 0 16px}.seo-copy strong{font-weight:700}.sources{padding:26px 28px;border-bottom:1px solid var(--ink);font-size:12px}.sources h2{font:700 25px/.95 Georgia,serif;margin:0 0 12px}.sources a{text-decoration:underline}@media(max-width:560px){.seo-copy{padding:30px 19px}.seo-copy h2{font-size:34px}.seo-copy h3{font-size:25px}.sources{padding:22px 19px}}

/* Большие редакционные блоки */
.editorial{border-bottom:1px solid var(--ink)}
.editorial-row{display:grid;grid-template-columns:1fr 1fr;min-height:420px;border-bottom:1px solid var(--ink)}
.editorial-row:last-child{border-bottom:0}
.editorial-row.reverse .editorial-copy{order:2}
.editorial-row.reverse .editorial-visual{order:1;border-left:0;border-right:1px solid var(--ink)}
.editorial-copy{padding:48px 38px;display:flex;flex-direction:column;justify-content:center}
.editorial-copy .number{font-size:10px;text-transform:uppercase;letter-spacing:.15em;margin-bottom:18px}
.editorial-copy h2{font:700 42px/.95 Georgia,"Times New Roman",serif;margin:0 0 18px;letter-spacing:-.04em}
.editorial-copy p{font-size:14px;max-width:680px;margin:0 0 15px}
.editorial-copy ul{font-size:13px;line-height:1.8;margin:8px 0 0;padding-left:20px}
.editorial-visual{padding:24px;background:var(--mint);border-left:1px solid var(--ink);display:flex;align-items:stretch}
.editorial-visual img{width:100%;min-height:360px;object-fit:cover;border:1px solid var(--ink);background:var(--cream)}
.editorial-caption{font-size:10px;text-transform:uppercase;letter-spacing:.08em;margin-top:9px}
.article-wide{padding:48px 38px;border-bottom:1px solid var(--ink)}
.article-wide h2{font:700 46px/.92 Georgia,"Times New Roman",serif;margin:0 0 20px;max-width:900px}
.article-wide p{font-size:14px;max-width:930px;margin:0 0 15px}
.article-wide .lead{font-size:18px;line-height:1.35;max-width:900px}
.image-strip{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--ink);border-left:1px solid var(--ink)}
.image-card{padding:18px;border-right:1px solid var(--ink);background:var(--paper)}
.image-card:nth-child(2){background:var(--mustard)}
.image-card:nth-child(3){background:var(--mint)}
.image-card img{width:100%;aspect-ratio:4/3;object-fit:cover;border:1px solid var(--ink);background:var(--cream)}
.image-card p{font-size:11px;margin:10px 0 0}
@media(max-width:900px){.editorial-row{grid-template-columns:1fr}.editorial-row.reverse .editorial-copy,.editorial-row.reverse .editorial-visual{order:initial}.editorial-row.reverse .editorial-visual{border-right:0;border-left:0;border-top:1px solid var(--ink)}.editorial-visual{border-left:0;border-top:1px solid var(--ink)}.image-strip{grid-template-columns:1fr}.image-card{border-right:0;border-bottom:1px solid var(--ink)}.image-card:last-child{border-bottom:0}.article-wide{padding:38px 28px}}
@media(max-width:560px){.editorial-copy{padding:32px 19px}.editorial-copy h2{font-size:34px}.editorial-visual{padding:15px}.editorial-visual img{min-height:250px}.article-wide{padding:30px 19px}.article-wide h2{font-size:34px}.article-wide .lead{font-size:16px}.image-card{padding:15px}}

/* Content layout: text is primary, images are supporting visuals */
.content-section,
.article-section,
.page-section {
    max-width: 1180px;
    margin: 34px auto;
    padding: 30px 34px;
}

.content-section img,
.article-section img,
.page-section img {
    max-width: 34%;
    width: 34%;
    height: 230px;
    object-fit: cover;
    float: right;
    margin: 0 0 18px 30px;
}

.content-section::after,
.article-section::after,
.page-section::after {
    content: "";
    display: block;
    clear: both;
}

.content-section p,
.article-section p,
.page-section p {
    line-height: 1.75;
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .content-section img,
    .article-section img,
    .page-section img {
        max-width: 40%;
        width: 40%;
        height: 210px;
    }
}

@media (max-width: 560px) {
    .content-section,
    .article-section,
    .page-section {
        padding: 22px 18px;
    }

    .content-section img,
    .article-section img,
    .page-section img {
        float: none;
        display: block;
        width: 100%;
        max-width: 100%;
        height: 190px;
        margin: 0 0 18px;
    }
}

/* Lab 5 — narrow-screen stability and clean internal links */
html, body { max-width: 100%; overflow-x: hidden; }
.site, main, section, article, header, footer, nav, div { min-width: 0; }
.hero-copy, .page-head, .editorial-copy, .editorial-visual, .article-wide, .image-card { min-width: 0; }
.hero h1, .page-head h1, .editorial-copy h2, .article-wide h2 { overflow-wrap: anywhere; word-break: normal; }
.context-links { padding: 18px 28px; border-top: 1px solid var(--ink); background: var(--paper); font-size: 13px; }
.context-links p { margin: 0; max-width: 900px; }
.context-links a { text-decoration: underline; }
@media (max-width: 560px) {
  .page-head h1 { font-size: clamp(40px, 13.5vw, 58px); line-height: .86; }
  .editorial-copy h2 { font-size: clamp(30px, 9vw, 34px); }
  .topbar { width: 100%; max-width: 100%; }
  .nav { width: 100%; max-width: 100%; gap: 12px; }
  .context-links { padding: 18px; }
}
