/* EasyVuokraus v2 content pages, footer and mobile navigation. */
.ev-mobile-nav { display: none; position: relative; }
.ev-mobile-nav summary { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; cursor: pointer; list-style: none; }
.ev-mobile-nav summary::-webkit-details-marker { display: none; }
.ev-mobile-nav summary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.ev-mobile-nav__panel { position: absolute; top: 50px; right: 0; display: grid; width: min(300px, calc(100vw - 32px)); padding: 10px; border: 1px solid var(--ev-border); border-radius: 16px; background: #fff; box-shadow: var(--ev-shadow); }
.ev-mobile-nav__panel a { padding: 12px 13px; border-radius: 10px; font-weight: 780; }
.ev-mobile-nav__panel a:hover { background: #f4f6f7; }
.ev-site-footer { margin-top: 72px; padding: 56px 0 24px; border-top: 1px solid var(--ev-border); background: #10171e; color: #fff; }
.ev-site-footer__grid { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 56px; }
.ev-site-footer__brand strong { font-size: 1.35rem; }
.ev-site-footer__brand p { max-width: 460px; margin: 14px 0 0; color: rgba(255,255,255,.66); line-height: 1.65; }
.ev-site-footer__nav { display: grid; align-content: start; gap: 10px; }
.ev-site-footer__nav strong { margin-bottom: 6px; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.ev-site-footer__nav a { color: rgba(255,255,255,.88); font-weight: 720; }
.ev-site-footer__nav a:hover { color: #fff; }
.ev-site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); font-size: .8rem; }
.ev-content-page { min-height: 60vh; }
.ev-content-hero { padding: 72px 0 46px; background: linear-gradient(180deg,#fff 0%,#f5f6f7 100%); border-bottom: 1px solid var(--ev-border); }
.ev-content-hero__inner { max-width: var(--ev-shell); }
.ev-content-back { display: inline-flex; margin-bottom: 28px; color: var(--ev-muted); font-weight: 760; }
.ev-content-hero h1 { max-width: 980px; margin: 0; font-size: clamp(3rem,6vw,6.2rem); line-height: .94; letter-spacing: -.055em; }
.ev-content-hero__lead { max-width: 820px; margin: 24px 0 0; color: var(--ev-muted); font-size: clamp(1.05rem,1.6vw,1.25rem); line-height: 1.7; }
.ev-content-body { padding: 54px 0 24px; }
.ev-content-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 34px; align-items: start; }
.ev-content-card { padding: clamp(24px,4vw,52px); border: 1px solid var(--ev-border); border-radius: 24px; background: #fff; box-shadow: var(--ev-shadow-soft); }
.ev-content-aside { position: sticky; top: 104px; }
.ev-content-aside__card { padding: 24px; border: 1px solid var(--ev-border); border-radius: 20px; background: #fff; box-shadow: var(--ev-shadow-soft); }
.ev-content-aside__card h2 { margin: 0 0 12px; font-size: 1.6rem; letter-spacing: -.035em; }
.ev-content-aside__card p:not(.ev-kicker) { margin: 0 0 18px; color: var(--ev-muted); line-height: 1.6; }
.ev-content-aside__card .ev-secondary-button { margin-top: 9px; width: 100%; }
.ev-prose { color: #26313a; font-size: 1rem; line-height: 1.75; }
.ev-prose > :first-child { margin-top: 0; }
.ev-prose > :last-child { margin-bottom: 0; }
.ev-prose h2, .ev-prose h3 { color: var(--ev-text); letter-spacing: -.03em; line-height: 1.15; }
.ev-prose h2 { margin: 2.2em 0 .7em; font-size: clamp(1.8rem,3vw,2.7rem); }
.ev-prose h3 { margin: 1.8em 0 .6em; font-size: 1.35rem; }
.ev-prose p { margin: 0 0 1.25em; }
.ev-prose ul, .ev-prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.ev-prose a { color: var(--ev-accent); text-decoration: underline; text-underline-offset: 3px; }
.ev-prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.ev-prose th, .ev-prose td { padding: 10px 12px; border: 1px solid var(--ev-border); text-align: left; }
.ev-prose img { border-radius: 14px; }
.ev-contact-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 18px; }
.ev-contact-card { padding: clamp(24px,3vw,38px); border: 1px solid var(--ev-border); border-radius: 22px; background: #fff; box-shadow: var(--ev-shadow-soft); }
.ev-contact-card--primary { background: var(--ev-dark); color: #fff; }
.ev-contact-card--primary .ev-kicker { color: #ff6b76; }
.ev-contact-card h2 { margin: 0 0 16px; font-size: clamp(1.7rem,3vw,2.6rem); line-height: 1.05; letter-spacing: -.04em; }
.ev-contact-card p:not(.ev-kicker) { margin: 0 0 22px; color: var(--ev-muted); line-height: 1.65; }
.ev-contact-card--primary p:not(.ev-kicker) { color: rgba(255,255,255,.7); }
.ev-contact-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.ev-contact-card--primary .ev-secondary-button { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; }
.ev-about-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 34px; align-items: start; }
@media (max-width: 1000px) {
  .ev-contact-grid { grid-template-columns: 1fr 1fr; }
  .ev-contact-card--primary { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .ev-content-layout, .ev-about-layout { grid-template-columns: 1fr; }
  .ev-content-aside { position: static; }
  .ev-site-footer__grid { grid-template-columns: 1fr 1fr; }
  .ev-site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .ev-mobile-nav { display: block; }
  .ev-content-hero { padding-top: 48px; }
}
@media (max-width: 620px) {
  .ev-contact-grid { grid-template-columns: 1fr; }
  .ev-contact-card--primary { grid-column: auto; }
  .ev-contact-actions { align-items: stretch; flex-direction: column; }
  .ev-contact-actions a { width: 100%; }
}
@media (max-width: 560px) {
  .ev-site-footer { margin-top: 48px; padding-top: 42px; }
  .ev-site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .ev-site-footer__brand { grid-column: auto; }
  .ev-site-footer__bottom { align-items: flex-start; flex-direction: column; }
  .ev-content-hero h1 { font-size: clamp(2.7rem,15vw,4.4rem); }
  .ev-content-body { padding-top: 28px; }
  .ev-content-card { padding: 22px 18px; border-radius: 18px; }
}


/* EasyVuokraus v2 contact page redesign. */
.ev-contact-v4 {
  --ev-contact-width: 1080px;
  min-height: 70vh;
  background: var(--ev-bg);
}
.ev-contact-v4__shell {
  width: min(var(--ev-contact-width), calc(100% - 36px));
  margin-inline: auto;
}
.ev-contact-v4 svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ev-contact-v4__hero {
  padding: 58px 0 48px;
  border-bottom: 1px solid var(--ev-border);
  background: linear-gradient(180deg,#fff 0%,#f7f8f9 100%);
}
.ev-contact-v4__back {
  display: inline-flex;
  margin-bottom: 25px;
  color: var(--ev-muted);
  font-size: .82rem;
  font-weight: 780;
}
.ev-contact-v4__hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.6rem,6vw,5.8rem);
  line-height: .92;
  letter-spacing: -.06em;
}
.ev-contact-v4__lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--ev-muted);
  font-size: clamp(1rem,1.5vw,1.15rem);
  line-height: 1.68;
}

.ev-contact-v4__content { padding: 36px 0 10px; }
.ev-contact-v4__main-card {
  display: grid;
  grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr);
  overflow: hidden;
  border: 1px solid var(--ev-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(15,23,32,.055);
}
.ev-contact-v4__info {
  display: flex;
  flex-direction: column;
  padding: 38px;
  border-right: 1px solid var(--ev-border);
}
.ev-contact-v4__info h2 {
  margin: 0;
  font-size: clamp(2.2rem,3.6vw,3.45rem);
  line-height: .98;
  letter-spacing: -.05em;
}
.ev-contact-v4__intro {
  margin: 18px 0 0;
  color: var(--ev-muted);
  line-height: 1.68;
}
.ev-contact-v4__contacts {
  display: grid;
  gap: 9px;
  margin-top: 30px;
}
.ev-contact-v4__contact-row {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 13px 10px 10px;
  border: 1px solid #e6eaed;
  border-radius: 14px;
  background: #fafbfb;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.ev-contact-v4__contact-row:hover {
  transform: translateY(-1px);
  border-color: #cbd2d8;
  background: #fff;
}
.ev-contact-v4__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef1f3;
  color: var(--ev-dark);
}
.ev-contact-v4__contact-row small,
.ev-contact-v4__help small {
  display: block;
  color: var(--ev-accent);
  font-size: .66rem;
  font-style: normal;
  font-weight: 880;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.ev-contact-v4__contact-row strong {
  display: block;
  margin-top: 3px;
  font-size: .9rem;
}
.ev-contact-v4__contact-row b { font-size: 1rem; }
.ev-contact-v4__map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
  color: #43505b;
  font-size: .84rem;
  font-weight: 780;
}
.ev-contact-v4__map-link svg { width: 18px; height: 18px; }

.ev-contact-v4__map { padding: 18px; }
.ev-contact-v4__map-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 8px 18px;
}
.ev-contact-v4__map-head h2 {
  margin: 0;
  font-size: clamp(1.8rem,2.8vw,2.65rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.ev-contact-v4__map-frame {
  overflow: hidden;
  min-height: 400px;
  border-radius: 17px;
  background: #eef1f3;
}
.ev-contact-v4__map-frame iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

.ev-contact-v4__online {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 24px 26px;
  border: 1px solid var(--ev-border);
  border-radius: 20px;
  background: #fff;
}
.ev-contact-v4__online-icon,
.ev-contact-v4__help-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--ev-dark);
  color: #fff;
}
.ev-contact-v4__online-copy h2 {
  margin: 0;
  font-size: clamp(1.5rem,2.4vw,2.05rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}
.ev-contact-v4__online-copy p:not(.ev-kicker) {
  margin: 7px 0 0;
  color: var(--ev-muted);
  line-height: 1.55;
}

.ev-contact-v4__help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.ev-contact-v4__help {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 138px;
  padding: 20px;
  border: 1px solid var(--ev-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15,23,32,.035);
}
a.ev-contact-v4__help {
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
a.ev-contact-v4__help:hover {
  transform: translateY(-2px);
  border-color: #ccd3d8;
  box-shadow: 0 12px 28px rgba(15,23,32,.07);
}
.ev-contact-v4__help-icon {
  width: 48px;
  height: 48px;
  background: #f1f3f5;
  color: var(--ev-dark);
}
.ev-contact-v4__help strong {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
  letter-spacing: -.025em;
}
.ev-contact-v4__help em {
  display: block;
  margin-top: 7px;
  color: var(--ev-muted);
  font-size: .82rem;
  font-style: normal;
  line-height: 1.5;
}
.ev-contact-v4__help em a {
  color: var(--ev-text);
  font-weight: 780;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ev-contact-v4__help > b { font-size: 1rem; }

@media (max-width: 900px) {
  .ev-contact-v4__main-card { grid-template-columns: 1fr; }
  .ev-contact-v4__info { border-right: 0; border-bottom: 1px solid var(--ev-border); }
  .ev-contact-v4__online { grid-template-columns: 54px 1fr; }
  .ev-contact-v4__online > .ev-primary-button { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 720px) {
  .ev-contact-v4__hero { padding: 42px 0 36px; }
  .ev-contact-v4__content { padding-top: 22px; }
  .ev-contact-v4__help-grid { grid-template-columns: 1fr; }
  .ev-contact-v4__map-head { align-items: flex-start; flex-direction: column; }
  .ev-contact-v4__map-head .ev-secondary-button { width: 100%; }
}
@media (max-width: 560px) {
  .ev-contact-v4__shell { width: min(var(--ev-contact-width), calc(100% - 24px)); }
  .ev-contact-v4__hero h1 { font-size: clamp(3rem,14vw,4.25rem); }
  .ev-contact-v4__info { padding: 26px 20px; }
  .ev-contact-v4__map { padding: 12px; }
  .ev-contact-v4__map-frame,
  .ev-contact-v4__map-frame iframe { min-height: 310px; height: 310px; }
  .ev-contact-v4__online { grid-template-columns: 1fr; padding: 22px 20px; }
  .ev-contact-v4__online-icon { width: 48px; height: 48px; }
  .ev-contact-v4__help { grid-template-columns: 44px minmax(0,1fr) auto; padding: 17px; }
  .ev-contact-v4__help-icon { width: 44px; height: 44px; }
  .ev-contact-v4__contact-row strong { overflow-wrap: anywhere; }
}


/* EasyVuokraus v2 legal content pages. */
.ev-legal-page {
  background: var(--ev-bg);
}
.ev-legal-shell {
  width: min(1080px, calc(100% - 36px));
  margin-inline: auto;
}
.ev-legal-hero {
  padding: 58px 0 44px;
}
.ev-legal-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(3.4rem, 6vw, 5.7rem);
  line-height: .94;
  letter-spacing: -.055em;
}
.ev-legal-hero .ev-content-hero__lead {
  max-width: 760px;
  margin-top: 20px;
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  line-height: 1.68;
}

.ev-legal-body {
  padding: 36px 0 12px;
}
.ev-legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 280px);
  gap: 28px;
  align-items: start;
}
.ev-legal-card {
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--ev-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 23, 32, .045);
}
.ev-legal-page .ev-prose {
  color: #2d3740;
  font-size: .98rem;
  line-height: 1.78;
}
.ev-legal-page .ev-prose h2 {
  margin: 2.15em 0 .72em;
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.ev-legal-page .ev-prose h3 {
  margin: 1.8em 0 .62em;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.ev-legal-page .ev-prose h2:first-child,
.ev-legal-page .ev-prose h3:first-child {
  margin-top: 0;
}
.ev-legal-page .ev-prose p {
  margin: 0 0 1.15em;
}
.ev-legal-page .ev-prose ul,
.ev-legal-page .ev-prose ol {
  margin: .3em 0 1.45em;
  padding-left: 1.35em;
}
.ev-legal-page .ev-prose li + li {
  margin-top: .42em;
}
.ev-legal-page .ev-prose strong {
  color: var(--ev-text);
}
.ev-legal-page .ev-prose hr {
  margin: 2.2em 0;
  border: 0;
  border-top: 1px solid var(--ev-border);
}
.ev-legal-page .ev-prose a {
  color: var(--ev-text);
  text-decoration-color: #b9c0c6;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.ev-legal-page .ev-prose a:hover {
  color: var(--ev-accent);
  text-decoration-color: var(--ev-accent);
}

.ev-legal-aside {
  position: sticky;
  top: 104px;
}
.ev-legal-aside__card {
  padding: 24px;
  border: 1px solid var(--ev-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 32, .035);
}
.ev-legal-aside__card h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.ev-legal-aside__card p:not(.ev-kicker) {
  margin: 0 0 18px;
  color: var(--ev-muted);
  font-size: .88rem;
  line-height: 1.58;
}
.ev-legal-aside__card .ev-secondary-button {
  width: 100%;
  margin-top: 9px;
}

@media (max-width: 900px) {
  .ev-legal-layout {
    grid-template-columns: 1fr;
  }
  .ev-legal-aside {
    position: static;
  }
  .ev-legal-aside__card {
    max-width: none;
  }
}
@media (max-width: 560px) {
  .ev-legal-shell {
    width: min(1080px, calc(100% - 24px));
  }
  .ev-legal-hero {
    padding: 42px 0 34px;
  }
  .ev-legal-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }
  .ev-legal-body {
    padding-top: 22px;
  }
  .ev-legal-card {
    padding: 24px 19px;
    border-radius: 18px;
  }
}


/* Mobile containment for content pages: mirror the front-page shell and prevent intrinsic content from widening the viewport. */
@media (max-width: 820px) {
  .ev-content-page .ev-shell,
  .ev-contact-v4__shell,
  .ev-legal-shell {
    width: min(var(--ev-shell), calc(100% - 24px));
  }

  .ev-content-page,
  .ev-contact-v4 {
    max-width: 100%;
    overflow-x: clip;
  }

  .ev-content-hero__inner,
  .ev-content-layout,
  .ev-about-layout,
  .ev-content-card,
  .ev-content-aside,
  .ev-content-aside__card,
  .ev-legal-layout,
  .ev-legal-card,
  .ev-legal-aside,
  .ev-legal-aside__card,
  .ev-contact-v4__main-card,
  .ev-contact-v4__info,
  .ev-contact-v4__map,
  .ev-contact-v4__online,
  .ev-contact-v4__help-grid,
  .ev-contact-v4__help {
    min-width: 0;
    max-width: 100%;
  }

  .ev-content-hero h1,
  .ev-legal-hero h1,
  .ev-contact-v4__hero h1,
  .ev-prose h2,
  .ev-prose h3,
  .ev-contact-v4__info h2,
  .ev-contact-v4__online-copy h2,
  .ev-contact-v4__help strong {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
  }

  .ev-prose,
  .ev-prose p,
  .ev-prose li,
  .ev-prose a,
  .ev-content-hero__lead,
  .ev-content-aside__card,
  .ev-legal-aside__card,
  .ev-contact-v4__contact-row strong,
  .ev-contact-v4__help em {
    overflow-wrap: anywhere;
  }

  .ev-prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .ev-prose pre,
  .ev-prose code {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .ev-primary-button,
  .ev-secondary-button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}


/* Mobile heading sizing: keep Finnish compound words intact without reintroducing horizontal overflow. */
@media (max-width: 560px) {
  .ev-content-hero h1 {
    font-size: clamp(2.55rem, 11vw, 3.25rem);
  }

  .ev-legal-hero h1 {
    font-size: clamp(1.8rem, 7.5vw, 2.5rem);
  }

  .ev-contact-v4__hero h1 {
    font-size: clamp(2.55rem, 11vw, 3.25rem);
  }

  .ev-prose h2,
  .ev-contact-v4__info h2,
  .ev-contact-v4__online-copy h2 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
  }
}
