.ty-page {
  --ty-ink: #162b23;
  --ty-muted: #52655d;
  --ty-line: #d7e0da;
  --ty-paper: #f4f6f1;
  color: var(--ty-ink);
}
.ty-page .wrap { max-width: 1280px; }
.ty-page h2 { font-weight: 550; text-wrap: balance; }
.ty-page :where(a, button, summary):focus-visible {
  outline: 3px solid #348a62;
  outline-offset: 4px;
}
.ty-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  color: white;
  background: #264539;
}
.ty-hero > img, .ty-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.ty-hero > img { object-fit: cover; object-position: 50% 58%; }
.ty-hero::after {
  content: '';
  z-index: -1;
  background: linear-gradient(180deg, #0c231b59, #09221cd9 70%, #0b201d8c);
}
.ty-hero-inner {
  min-height: clamp(440px, 38vw, 535px);
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  padding-block: 84px 66px;
}
.ty-crumb {
  position: absolute;
  top: 22px;
  left: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 4px #0008;
}
.ty-crumb a:hover { text-decoration: underline; }
.ty-hero-text { text-align: center; }
.ty-hero h1 {
  font-size: clamp(46px, 5.5vw, 84px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.ty-hero-text > p {
  max-width: 650px;
  margin: 21px auto 30px;
  color: #fff;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
}
.ty-hero-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.ty-primary, .ty-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 750;
  transition: background .2s, color .2s;
}
.ty-primary { background: #e6f6d9; color: #102a1b; }
.ty-primary:hover { background: white; }
.ty-secondary { background: #14261b6b; border-color: #ffffffa3; color: white; }
.ty-secondary:hover { background: #163a2b; }
.ty-hero :where(a):focus-visible, .ty-process a:focus-visible { outline-color: #fff; }
.ty-cases { background: var(--ty-paper); border-bottom: 1px solid var(--ty-line); }
.ty-cases-inner {
  display: grid;
  grid-template-columns: .85fr 2.5fr;
  align-items: center;
  gap: 25px;
  padding-block: 32px;
}
.ty-cases h2 { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.35; }
.ty-cases dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.ty-cases dl > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-inline: clamp(16px, 2.4vw, 38px) 8px;
  border-left: 1px solid var(--ty-line);
}
.ty-case-power { order: -1; margin: 0 0 5px; font-size: clamp(28px, 2.9vw, 40px); line-height: 1.15; letter-spacing: -.05em; }
.ty-case-power span { font-size: .46em; letter-spacing: -.025em; }
.ty-cases dt { font-size: 14px; font-weight: 650; }
.ty-case-note { margin: 5px 0 0; color: var(--ty-muted); font-size: 13px; line-height: 1.5; }
.ty-block { padding-block: clamp(55px, 6vw, 89px); }
.ty-section-head { text-align: center; max-width: 790px; margin: 0 auto 38px; }
.ty-block h2, .ty-page .ty-faq h2 { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.08; }
.ty-section-head p { max-width: 705px; margin: 16px auto 0; font-size: 16px; line-height: 1.65; color: var(--ty-muted); }
.ty-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 27px); }
.ty-service { display: flex; flex-direction: column; min-width: 0; }
.ty-service-image { overflow: hidden; border-radius: 12px; aspect-ratio: 3 / 2; background: var(--ty-paper); }
.ty-service-image img { width: 100%; height: 100%; object-fit: cover; }
.ty-service-copy { display: flex; flex: 1; flex-direction: column; padding: 20px 2px 0; }
.ty-service h3 { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.18; }
.ty-service p { line-height: 1.65; font-size: 14px; margin: 12px 0 16px; color: var(--ty-muted); }
.ty-textlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  color: #176747;
  font-weight: 750;
  font-size: 14px;
  text-underline-offset: 3px;
}
.ty-textlink:hover, .ty-process-link:hover { text-decoration: underline; }
.ty-service .ty-textlink { margin-top: auto; }
.ty-process { background: #183b2d; color: #fff; }
.ty-process .ty-section-head { text-align: left; max-width: none; }
.ty-steps {
  counter-reset: ty-step;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: clamp(18px, 2.8vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ty-steps li { counter-increment: ty-step; border-top: 1px solid #799282; padding-top: 17px; }
.ty-steps li::before { content: counter(ty-step,decimal-leading-zero); color: #c2dfb6; font-size: 14px; font-variant-numeric: tabular-nums; }
.ty-steps h3 { margin: 14px 0 9px; font-size: 22px; line-height: 1.24; }
.ty-steps p { font-size: 14px; color: #e1ebe4; margin: 0; line-height: 1.65; }
.ty-process-link { display: inline-block; margin-top: 30px; text-underline-offset: 4px; font-weight: 700; color: #f6ffef; }
.ty-process-link span { margin-left: 8px; }
.ty-gallery-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 0 0 23px; }
.ty-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ty-filters button {
  border: 1px solid var(--ty-line);
  background: white;
  border-radius: 24px;
  padding: 9px 17px;
  min-height: 44px;
  color: var(--ty-ink);
  font-size: 13px;
  font-weight: 650;
}
.ty-filters button:hover { background: var(--ty-paper); }
.ty-filters button[aria-pressed="true"] { color: white; background: #183b2d; border-color: #183b2d; }
.ty-gallery-bar [role="status"] { color: var(--ty-muted); font-size: 13px; }
.ty-gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 18px; }
.ty-photo { margin: 0; min-width: 0; }
.ty-photo[hidden] { display: none; }
.ty-photo a {
  display: block;
  position: relative;
  overflow: hidden;
  height: clamp(180px, 18.3vw, 247px);
  border-radius: 12px;
  background: var(--ty-paper);
  cursor: zoom-in;
  transition: transform .22s;
}
.ty-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; transition: transform .35s; }
.ty-photo figcaption { padding: 10px 2px 0; font-size: 14px; font-weight: 650; line-height: 1.4; }
.ty-zoom {
  position: absolute;
  right: 10px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #10281fc9;
  color: white;
  line-height: 1;
  font-size: 19px;
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .ty-photo a:hover { transform: translateY(-2px); }
  .ty-photo a:hover img { transform: scale(1.035); }
}
@media (min-width:921px) {
  .ty-portfolio:has([data-gallery-filter="all"][aria-pressed="true"]) .ty-wide { grid-column: span 2; }
}
.ty-prices { background: var(--ty-paper); }
.ty-price-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 6vw, 86px); }
.ty-prices h3 { font-size: 23px; margin: 23px 0 9px; line-height: 1.3; }
.ty-prices h2 + p { margin-top: 19px; }
.ty-prices p { color: var(--ty-muted); margin-bottom: 14px; line-height: 1.65; }
.ty-price-sheet { padding: clamp(23px, 3vw, 40px); border: 1px solid var(--ty-line); border-radius: 16px; background: #fff; }
.ty-price-sheet h3 { margin: 0 0 12px; }
.ty-price-sheet p { font-size: 14px; }
.ty-price-sheet table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 15px; }
.ty-price-sheet th, .ty-price-sheet td { padding: 10px 0; text-align: left; border-bottom: 1px solid var(--ty-line); }
.ty-price-sheet thead th { color: var(--ty-muted); font-weight: 600; font-size: 13px; }
.ty-price-sheet tr > :last-child { text-align: right; }
.ty-page #kalkulator { background: #fff; }
.ty-page #kalkulator, .ty-page #kontakt, .ty-faq { padding-block: clamp(55px, 6vw, 89px); }
.ty-page #kontakt .contact-phone { margin-block: 16px 0; }
.ty-faq { background: #fff; }
.ty-faq .faq-grid > div > p { margin: 19px 0; color: var(--ty-muted); }
.ty-faq .ty-textlink { display: flex; width: fit-content; margin: 12px 0; }
.ty-faq .faq details:first-child { padding-top: 18px; }
@media (max-width:960px) {
  .ty-services, .ty-steps { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 31px; }
  .ty-cases-inner { grid-template-columns: .74fr 2.2fr; gap: 12px; }
}
@media (max-width:920px) {
  .ty-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .ty-cases-inner, .ty-price-grid { grid-template-columns: 1fr; }
  .ty-cases h2 { font-size: 18px; }
  .ty-cases h2 br { display: none; }
  .ty-cases dl > div:first-child { padding-left: 0; border-left: 0; }
  .ty-cases-inner { padding-block: 25px; gap: 18px; }
  .ty-crumb { left: 22px; }
}
@media (max-width:580px) {
  .ty-page .wrap { padding-inline: 20px; }
  .ty-hero-inner { min-height: 445px; padding-block: 72px 42px; }
  .ty-hero > img { object-position: 58% center; }
  .ty-hero-text > p { font-size: 15px; max-width: 355px; margin-block: 17px 24px; }
  .ty-hero-links { gap: 8px; }
  .ty-primary, .ty-secondary { padding-inline: 14px; gap: 10px; font-size: 13px; }
  .ty-cases dl { grid-template-columns: 1fr; gap: 14px; }
  .ty-cases dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 3px 14px; padding: 14px 0 0; border: 0; border-top: 1px solid var(--ty-line); }
  .ty-case-power { grid-row: span 2; margin: 0; }
  .ty-case-note { grid-column: 2; margin: 0; }
  .ty-services { grid-template-columns: 1fr; }
  .ty-service-image { aspect-ratio: 1.95; }
  .ty-service-copy { padding-top: 13px; }
  .ty-service h3 { font-size: 22px; }
  .ty-section-head { margin-bottom: 25px; }
  .ty-section-head p { font-size: 15px; }
  .ty-steps { grid-template-columns: 1fr; gap: 20px; }
  .ty-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 6px 12px; align-items: baseline; }
  .ty-steps h3 { margin: 0; }
  .ty-steps p { grid-column: 2; }
  .ty-gallery-grid { gap: 18px 10px; }
  .ty-photo a { height: auto; aspect-ratio: 4/3; border-radius: 8px; }
  .ty-portfolio:has([data-gallery-filter="all"][aria-pressed="true"]) .ty-photo:first-child { grid-column: 1/-1; }
  .ty-portfolio:has([data-gallery-filter="all"][aria-pressed="true"]) .ty-photo:first-child a { aspect-ratio: 1.7; }
  .ty-photo figcaption { font-size: 12px; }
  .ty-zoom { right: 6px; bottom: 6px; width: 26px; height: 26px; font-size: 16px; }
  .ty-filters { gap: 6px; }
  .ty-filters button { padding: 7px 12px; font-size: 12px; }
  .ty-gallery-bar { margin-bottom: 16px; gap: 7px; }
  .ty-price-sheet table { font-size: 14px; }
}
