:root {
  --ink: #203633;
  --muted: #687673;
  --paper: #f4f6f5;
  --white: #ffffff;
  --line: rgba(32, 54, 51, 0.13);
  --coral: #e56d6e;
  --mint: #b9ded3;
  --blue: #a9cde8;
  --yellow: #f0ce68;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  display: grid;
  gap: clamp(45px, 8vw, 140px);
  grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr);
  margin: 0 auto;
  max-width: 1440px;
  padding: 56px clamp(24px, 5vw, 76px) 72px;
}
.site-header__brand {
  align-items: center;
  align-self: start;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 12px;
}
.site-header__mark {
  align-items: center;
  background: var(--ink);
  border-radius: 12px;
  color: #ffffff;
  display: flex;
  font-family: Georgia, serif;
  font-size: 22px;
  font-style: italic;
  height: 40px;
  justify-content: center;
  width: 40px;
}
.site-header__intro { max-width: 700px; }
.site-header__intro .eyebrow { color: var(--coral); }
.site-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.04;
  margin: 0;
}
.site-header__description {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 25px 0 0;
  max-width: 560px;
}
main { overflow: hidden; }
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  margin: 0 0 24px;
  text-transform: uppercase;
}
.projects {
  background: #eef1f0;
  border-top: 1px solid var(--line);
  padding: 46px clamp(24px, 5vw, 76px) 110px;
}
.projects__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  margin: 0 auto 24px;
  max-width: 1288px;
  text-transform: uppercase;
}
.project-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  margin: 0 auto;
  max-width: 1288px;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.project-card:hover { box-shadow: 0 20px 50px rgba(24, 59, 54, .12); transform: translateY(-6px); z-index: 1; }
.project-card--meduka { color: var(--ink); }
.project-card--sensorinis { color: var(--ink); }
.project-card__visual {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 160px;
  padding: 35px;
}
.project-card--meduka .project-card__visual { background: #f4efee; }
.project-card--sensorinis .project-card__visual { background: #edf3f1; }
.project-card__logo {
  align-items: center;
  display: flex;
  justify-content: center;
  text-decoration: none;
  width: 100%;
}
.project-card__logo img { max-height: 58px; width: min(100%, 230px); }
.project-card__content { display: flex; flex: 1; flex-direction: column; padding: 28px 28px 30px; }
.project-card__category {
  font-size: 10px !important;
  font-weight: 600;
  letter-spacing: .18em;
  margin: 0 0 17px !important;
  text-transform: uppercase;
}
.project-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.2vw, 32px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin: 0 0 14px;
  max-width: 600px;
}
.project-card__content > p:not(.project-card__category) { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0 0 24px; max-width: 550px; }
.project-card__visit {
  align-items: center;
  align-self: flex-start;
  border-bottom: 1px solid currentColor;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 35px;
  margin-top: auto;
  padding-bottom: 7px;
  text-decoration: none;
}
.project-card__visit span { font-size: 19px; transition: transform .2s ease; }
.project-card__visit:hover span { transform: translate(3px, -3px); }

.site-footer {
  background: var(--ink);
  color: var(--white);
  display: block;
  width: 100%;
}
.site-footer__inner {
  align-items: center;
  display: grid;
  gap: 32px 60px;
  grid-template-columns: auto 1fr auto;
  margin: 0 auto;
  max-width: 1440px;
  padding: 38px clamp(24px, 5vw, 76px);
}
.site-footer__identity { align-items: center; display: flex; gap: 13px; white-space: nowrap; }
.site-footer__identity > div { display: flex; flex-direction: column; gap: 4px; }
.site-footer__identity strong { font-size: 13px; }
.site-footer__identity span { color: rgba(255, 255, 255, .52); font-size: 11px; }
.site-footer__mark {
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  color: #fff !important;
  display: flex;
  font-family: Georgia, serif;
  font-size: 19px !important;
  font-style: italic;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.site-footer__credentials { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; margin: 0; }
.site-footer__credentials > div { border-left: 1px solid rgba(255, 255, 255, .14); padding: 0 clamp(16px, 2.2vw, 34px); }
.site-footer__credentials dt { color: rgba(255, 255, 255, .45); font-size: 9px; letter-spacing: .1em; margin-bottom: 7px; text-transform: uppercase; }
.site-footer__credentials dd { color: rgba(255, 255, 255, .82); font-size: 12px; margin: 0; white-space: nowrap; }
.site-footer a,
.copyright { color: rgba(255, 255, 255, .65); font-size: 12px; margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr; gap: 38px; }
  .project-grid { gap: 16px; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__credentials { justify-content: start; }
  .copyright { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px; }
}
@media (max-width: 560px) {
  .site-header { gap: 34px; padding: 30px 20px 48px; }
  .site-header h1 { font-size: 43px; }
  .projects { padding: 34px 20px 72px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { border-radius: 18px; }
  .project-card__visual { min-height: 150px; padding: 32px; }
  .project-card__content { padding: 32px 26px 36px; }
  .site-footer__inner { gap: 25px; padding: 30px 20px; }
  .site-footer__credentials { gap: 18px 24px; grid-template-columns: 1fr 1fr; width: 100%; }
  .site-footer__credentials > div { border-left: 0; padding: 0; }
  .site-footer__credentials dd { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
