/* ===================================================================
   MONKRUS — business card website
   Palette & type tokens
=================================================================== */
:root{
  --navy:        #16305a;
  --navy-deep:   #0c1d38;
  --navy-soft:   #3a5079;
  --red:         #cc2b1e;
  --chip-bg:     #e9e5db;   /* warm greige, replaces the earlier pink chip tint */
  --ink:         #2c2f36;
  --ink-soft:    #545b68;
  --paper:       #f3f1eb;
  --paper-alt:   #ece7db;
  --line:        #ddd7c9;
  --white:       #ffffff;

  --font-display: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", "SimSun", "Noto Serif", Georgia, serif;
  --font-body:    "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", "Heiti SC", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1120px;
  --radius: 14px;
  --shadow: 0 20px 45px -25px rgba(12, 29, 56, 0.35);
}

@media (prefers-reduced-motion: no-preference){
  html{ scroll-behavior: smooth; }
}

*, *::before, *::after{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width:100%; display:block; }

h1,h2,h3{
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.25;
  font-weight: 600;
}

p{ margin: 0 0 1em; color: var(--ink-soft); }

a{ color: var(--red); text-decoration: none; }
a:hover{ text-decoration: underline; }

ul{ margin:0; padding:0; list-style:none; }

button{ font-family: inherit; cursor: pointer; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link{
  position:absolute; left:-999px; top:0;
  background: var(--navy); color:#fff; padding: 10px 16px;
  z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left:0; }

.sr-only{
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

:focus-visible{
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* ===================================================================
   HEADER
=================================================================== */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(243,241,235,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand{ display:flex; align-items:center; flex-shrink:0; }
.brand-logo{ height: 88px; width:auto; }

.main-nav{
  display:flex;
  align-items:center;
  gap: 30px;
  flex-wrap: wrap;
}
.nav-link{
  color: var(--navy);
  font-size: .95rem;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
}
.nav-link:hover{ text-decoration:none; color: var(--red); }
.nav-link::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:-2px; height:2px;
  background: var(--red);
  transition: right .25s ease;
}
.nav-link.active::after{ right:0; }
.nav-link.active{ color: var(--red); }

.menu-toggle{
  display:none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent; border: none;
  padding: 0;
}
.menu-toggle span{
  display:block; height:2px; width: 100%;
  background: var(--navy); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ opacity:0; }
.menu-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   PAGES / ROUTER
=================================================================== */
.page{ display:none; }
.page.is-active{ display:block; animation: fadein .35s ease; }
@keyframes fadein{ from{ opacity:0; transform: translateY(6px);} to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){
  .page.is-active{ animation:none; }
}

/* ===================================================================
   HERO (home) — contained background image, not full-page
=================================================================== */
.hero{
  position: relative;
  min-height: 600px;
  display:flex;
  align-items:flex-start;
  background-color: var(--paper);
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.hero-vertical-mark{
  position: absolute;
  left: 24px;
  top: 56px;
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .3em;
  color: var(--red);
  opacity: .85;
}
.hero-content{
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 68px 24px 56px 64px;
}
.eyebrow{
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-title{
  font-size: clamp(1.7rem, 4.4vw, 2.7rem);
  max-width: 620px;
  margin-bottom: 30px;
}

.btn{
  display:inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover{ text-decoration:none; transform: translateY(-2px); }
.btn-primary{
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(204,43,30,.55);
}
.btn-primary:hover{ background:#b32418; color:#fff; }
.btn-secondary{
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--line);
}
.btn-secondary:hover{ border-color: var(--navy); color: var(--navy); background: rgba(255,255,255,.5); }

/* ===================================================================
   FEATURE GRID
=================================================================== */
.feature-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 24px;
}
.feature-grid--compact{ padding-top: 6px; }

.feature-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-icon{
  display:inline-flex;
  align-items:center; justify-content:center;
  width: 40px; height:40px;
  border-radius: 10px;
  background: var(--chip-bg);
  color: var(--red);
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.feature-icon svg{ width:20px; height:20px; }
.feature-card h3{ font-size: 1rem; margin-bottom: 8px; }
.feature-card p{ font-size: .88rem; margin:0; }

/* ===================================================================
   LANGUAGE PICKER (home page bottom)
=================================================================== */
.lang-picker{
  text-align:center;
  padding: 8px 24px 64px;
}
.lang-picker-title{
  color: var(--navy-soft);
  font-size: .88rem;
  letter-spacing:.04em;
  margin-bottom: 14px;
}
.lang-buttons{ display:inline-flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.lang-btn{
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--navy);
  padding: 9px 22px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  transition: all .18s ease;
}
.lang-btn:hover{ border-color: var(--red); color: var(--red); }
.lang-btn.is-active{
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.lang-btn--sm{ padding: 9px 20px; font-size: .92rem; }

/* ===================================================================
   INNER PAGES
=================================================================== */
.page-hero{
  max-width: var(--container);
  margin: 0 auto;
  padding: 42px 24px 8px;
}
.breadcrumb{
  font-size: .8rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.breadcrumb a{ color: var(--ink-soft); }
.breadcrumb a:hover{ color: var(--red); }
.page-title{
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 22px;
}
.page-title::after{
  content:"";
  position:absolute; left:0; bottom:0;
  width: 54px; height: 3px;
  background: var(--red);
  border-radius: 3px;
}

.lead{ font-size: .96rem; max-width: 620px; }

.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 42px;
}
.split-image{
  background-size: cover;
  background-position: center;
  background-color: var(--paper-alt);
  border-radius: var(--radius);
  min-height: 320px;
  box-shadow: var(--shadow);
}

/* About page — image bleeds softly into the page, no visible box */
.split--wide{ grid-template-columns: .95fr 1.3fr; align-items: center; }
.split-image--blend{
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
  min-height: 480px;
  -webkit-mask-image: radial-gradient(ellipse 68% 62% at 50% 50%, #000 42%, transparent 78%);
  mask-image: radial-gradient(ellipse 68% 62% at 50% 50%, #000 42%, transparent 78%);
}

.info-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 20px 0;
}
.info-card h3{ font-size: .96rem; margin-bottom: 6px; }
.info-card p{ margin:0; }

.values h3{ font-size: .96rem; margin-bottom: 12px; }
.values-list li{
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.values-list li::before{
  content:"";
  position:absolute; left:0; top:.55em;
  width:8px; height:8px;
  background: var(--red);
  border-radius: 50%;
}

/* full-bleed banner used on Cooperation / Contacts */
.banner{
  height: 480px;
  background-size: cover;
  background-position: center;
  background-color: var(--paper-alt);
  margin: 8px 0 34px;
}
.banner--short{ height: 200px; }

.info-card--wide{
  max-width: 720px;
  margin: 4px 0 24px;
  padding: 20px 24px;
}
.feature-grid--compact{ padding: 0; grid-template-columns: repeat(2, 1fr); }

/* ===================================================================
   DELIVERY SECTION (Cooperation page)
=================================================================== */
.delivery-section{ padding: 22px 24px 20px; }
.delivery-intro{ margin-bottom: 16px; }
.delivery-intro h3{ font-size: 1.1rem; margin-bottom: 8px; }
.delivery-intro p{ margin: 0; max-width: 620px; }

/* ===================================================================
   CONTACTS
=================================================================== */
.contacts-cover{
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-color: var(--paper);
  display:flex;
  flex-direction: column;
  align-items:center;
  padding: 100px 24px 60px;
}
.contacts-cover-logo{
  height: 110px;
  width:auto;
  margin-bottom: 20px;
}
.contacts-cover-text{
  font-family: var(--font-display);
  font-style: italic;
  color: var(--navy);
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  text-align:center;
  margin:0;
}

/* ===================================================================
   CLOSING BANNER
=================================================================== */
.closing{
  position: relative;
  background-size: cover;
  background-position: center 60%;
  background-color: var(--navy-deep);
  min-height: 280px;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 40px 24px;
  isolation: isolate;
}
.closing::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(12,29,56,.72), rgba(12,29,56,.8));
  z-index:0;
}
.closing-tagline{
  position:relative; z-index:1;
  color:#fff;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  margin:0;
}

/* ===================================================================
   FOOTER
=================================================================== */
.site-footer{ background: var(--navy-deep); color: #cfd7e6; }
.footer-inner{
  max-width: var(--container);
  margin:0 auto;
  padding: 57px 24px 36px;
  display:grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items:center;
}
.footer-brand{ display:flex; align-items:center; gap:18px; }
.footer-logo-img{
  height: 84px;
  width:auto;
  background: rgba(255,255,255,.9);
  border-radius: 10px;
  padding: 8px 12px;
}
.footer-tagline{ font-size: 1.02rem; color:#9fabc4; }

.footer-address p{ margin: 0 0 6px; font-size: 1.06rem; color:#b9c2d6; }
.footer-address a{ color:#e7ebf3; }
.footer-address a:hover{ color: #fff; }

.footer-lang{ display:flex; gap:8px; }
.footer-lang .lang-btn{
  background: transparent;
  border-color: rgba(255,255,255,.25);
  color: #cfd7e6;
}
.footer-lang .lang-btn:hover{ border-color:#fff; color:#fff; }
.footer-lang .lang-btn.is-active{ background:#fff; color: var(--navy-deep); border-color:#fff; }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 24px;
  display:flex;
  justify-content:center;
  gap: 8px;
  font-size: .92rem;
  color: #8b97b3;
  flex-wrap:wrap;
}

/* ===================================================================
   RESPONSIVE
=================================================================== */
@media (max-width: 980px){
  .split{ grid-template-columns: 1fr; }
  .split-image{ min-height: 220px; order: -1; }
  .contact-details--row{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; text-align:center; justify-items:center; }
  .footer-address{ order: 3; }
  .footer-lang{ order: 2; }
}

@media (max-width: 860px){
  .main-nav{
    position:absolute;
    top: 100%; left:0; right:0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 24px 20px;
    display:none;
    box-shadow: 0 12px 20px -14px rgba(12,29,56,.3);
  }
  .main-nav.is-open{ display:flex; }
  .nav-link{ width:100%; padding: 10px 0; }
  .menu-toggle{ display:flex; }
  .feature-grid{ grid-template-columns: repeat(2, 1fr); }
  .brand-logo{ height: 64px; }
}

@media (max-width: 560px){
  .feature-grid, .feature-grid--compact{ grid-template-columns: 1fr; }
  .hero{ min-height: 540px; background-position: center 20%; }
  .hero-content{ padding: 36px 20px 32px 20px; }
  .hero-vertical-mark{ display:none; }
  .banner{ height: 280px; }
  .contacts-cover{ min-height: 70vh; padding: 70px 20px 40px; }
  .contacts-cover-logo{ height: 76px; }
  .header-inner{ padding: 8px 16px; }
  .brand-logo{ height: 54px; }
}
