:root{
  --bg-top: #eee9df;
  --bg-bottom: #0f3f3a;

  --ink: #0f1c1a;
  --muted: rgba(15,28,26,.72);

  --surface: rgba(255,255,255,.88);
  --surface-strong: rgba(255,255,255,.94);
  --stroke: rgba(15,28,26,.12);

  --brand: #0f4a43;
  --brand-2: #0b3a35;

  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.14);

  --container: 1100px;
}
@font-face{
  font-family: "ArsiMain";
  src: url("../fonts/Montserrat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "ArsiMain";
  src: url("../fonts/Montserrat-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "ArsiTagline";
  src: url("../fonts/AlexBrush-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*{ box-sizing:border-box; }
html{
  min-height: 100%;
  background: linear-gradient(180deg, var(--bg-top) 0%, #d8d2c8 25%, #6b8f89 70%, var(--bg-bottom) 100%);
  background-repeat: no-repeat;
}

body{
  min-height: 100vh;   /* fallback */
  min-height: 100svh;  /* лучше для мобилок */
  margin: 0;
  font-family: "ArsiMain", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: transparent; /* важно: фон теперь на html */
}
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline:auto;
}


/* Accessibility */
.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;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238,233,223,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,28,26,.08);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 0;
  gap: 16px;
}

.site-title{
  font-weight: 800;
  letter-spacing: .2px;
}

.site-logo img{
  height: 44px;
  width: auto;
  display:block;
}

/* Primary menu styled as buttons */
.menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap: 14px;
  align-items:center;
}

.menu--primary a,
.site-nav .page_item a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(15,28,26,.18);
  background: rgba(255,255,255,.55);
  box-shadow: 0 2px 0 rgba(0,0,0,.03);
  font-weight: 700;
  text-decoration:none;
}

.menu--primary .current-menu-item > a,
.site-nav .current_page_item a,
.menu--primary a:hover,
.site-nav .page_item a:hover{
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  border-color: rgba(255,255,255,.18);
  text-decoration:none;
}

/* Mobile nav */
.nav-toggle{
  display:none;
  width: 46px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15,28,26,.18);
  background: rgba(255,255,255,.55);

  flex-direction: row;
  gap: 6px;

  align-items:center;
  justify-content:center;
}

.nav-toggle__bar{
  display:block;
  width: 4px;
  height: 4px;
  background: rgba(15,28,26,.8);
  border-radius: 999px; /* делает точки круглыми */
}

/* Кнопка — обязательно relative */
.nav-toggle{
  position: relative;
}

/* Когда меню открыто: точки исчезают */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar{
  opacity: 0;
  transform: scale(0.6);
}

/* Рисуем X двумя линиями через псевдоэлементы */
.nav-toggle::before,
.nav-toggle::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;                 /* в закрытом состоянии "линий" нет */
  height: 2px;
  background: rgba(15,28,26,.8);
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: width .22s ease, transform .22s ease, opacity .18s ease;
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before,
.nav-toggle[aria-expanded="true"]::after{
  width: 20px;              /* длина линий X */
  opacity: 1;
}

.nav-toggle[aria-expanded="true"]::before{
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after{
  transform: translate(-50%, -50%) rotate(-45deg);
}


/* Hero */
.hero{
  position: relative;
  min-height: calc(100vh - 84px);
  display:flex;
  align-items:stretch;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
}

.hero__overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 600px at 20% 20%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(90deg, rgba(10,30,28,.76) 0%, rgba(10,30,28,.46) 40%, rgba(10,30,28,.20) 100%);
}

.hero__content{
  position: relative;
  padding: 64px 0 56px;
  width:100%;
}

.hero__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items:start;
}

.hero__title{
  margin: 0 0 18px;
  color: rgba(255,255,255,.92);
  font-size: clamp(24px, 3.1vw, 40px);
  line-height: 1.12;
  letter-spacing: .2px;
}

.hero__subtitle{
  margin: 0 0 22px;
  max-width: 60ch;
  color: rgba(255,255,255,.80);
  font-size: 16px;
  line-height: 1.7;
}

.hero__bullets{
  margin: 22px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap: 12px;
  max-width: 62ch;
}

.hero__bullets li{
  position: relative;
  padding-left: 28px;
  color: rgba(255,255,255,.84);
  line-height: 1.6;
  font-size: clamp(14px, 1.6vw, 22px);
}

.hero__bullets li::before{
  content:"";
  position:absolute;
  left:0;
  top:.6em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(130, 185, 172, .9);
  box-shadow: 0 0 0 3px rgba(130,185,172,.15);
}

/* Contact card */
.contact-card{
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 18px 14px;
}

.contact-card__title{
  margin: 4px 0 12px;
  font-size: 22px;
  letter-spacing: .2px;
}

.contact-card__row{
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 10px 0;
  border-top: 1px solid rgba(15,28,26,.10);
}

.icon{
  width: 28px;
  height: 28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: rgba(15,28,26,.78);
}

.contact-card__link{
  color: rgba(15,28,26,.84);
  text-decoration:none;
}
.contact-card__link:hover{ text-decoration: underline; }

.contact-card__actions{
  padding-top: 14px;
}

.btn{
  display:flex;
  width:100%;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration:none;
  margin-top: 10px;
}

.btn--primary{
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%);
  color:#fff;
  box-shadow: 0 6px 18px rgba(15,74,67,.22);
}
.btn--primary:hover{ filter: brightness(1.03); text-decoration:none; }

.btn--ghost{
  background: rgba(255,255,255,.55);
  border-color: rgba(15,28,26,.16);
  color: rgba(15,28,26,.86);
}
.btn--ghost:hover{ background: rgba(255,255,255,.72); text-decoration:none; }

.contact-card__note{
  margin: 12px 0 0;
  color: rgba(15,28,26,.60);
  font-size: 13px;
}

/* Content pages */
.content{
  padding: 50px 0 70px;
}
.content__inner{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.entry__title{
  margin: 0 0 18px;
}
.entry__content{
  line-height: 1.75;
  color: rgba(15,28,26,.86);
}

/* Footer */
.site-footer{
  padding: 26px 0 34px;
  background: rgba(238,233,223,.70);
  border-top: 1px solid rgba(15,28,26,.08);
}

.footer-inner{
  display:flex;
  justify-content:center;
  align-items:center;
}

.menu--footer{
  gap: 14px;
}
.menu--footer a{
  font-weight: 700;
  opacity: .9;
  text-decoration:none;
}
.menu--footer a:hover{ text-decoration: underline; }

.footer-fallback .sep{
  opacity:.6;
  margin: 0 10px;
}

/* Responsive */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .contact-card{ max-width: 520px; }
}

@media (max-width: 820px){
  .nav-toggle{ display:inline-flex; }
  .site-nav{ display:none; width:100%; }
  .site-nav.is-open{ display:block; }
  .header-inner{ flex-wrap:wrap; }
  .menu--primary,
  .site-nav .menu{
    width:100%;
    flex-wrap:wrap;
    justify-content:flex-end;
  }
}
/* Sticky footer: footer всегда у нижнего края, если контента мало */
body{
  display: flex;
  flex-direction: column;
}

.site-main{
  flex: 1 0 auto;
}

.site-footer{
  margin-top: auto;
}
/* Brand block: logo + name + tagline */
.site-branding{
  display:flex;
  align-items:stretch;
}

.brand{
  display:flex;
  align-items:flex-end;
  gap: 12px;
  text-decoration:none;
}

.brand__logo{
  display:flex;
  align-items:center;
	  align-self: flex-end;
}

/* WP custom logo markup */
.brand__logo .custom-logo-link{
  display:flex;
  align-items:center;
}

/* Лого занимает высоту хедера */
.brand__logo img{
  height: 64px;        /* можно 60-64, если хочешь выше */
  width: auto;
  display:block;
}

/* Текст справа */
.brand__text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.brand__name{
  font-weight: 800;
  letter-spacing:.2px;
  color: rgba(5, 90, 85);
  font-size: 16px;
}
.brand__tagline{
  margin-top: 3px;
	  font-family: "ArsiTagline", cursive;
  font-size: 36px;
  color: rgba(5, 90, 85);
  font-weight: 600;
}

/* На очень узких экранах можно скрыть слоган, чтобы не ломало меню */
@media (max-width: 520px){
  .brand__tagline{ display:none; }
}

/* Header: wider container so logo is closer to left edge and menu to right edge */
.site-header .container{
  width: min(1600px, calc(100% - 40px));  /* шире, чем основной 1100px */
}
.contact-card__actions a[href="#"]{
  display: none;
}