/* =========================
   BASE
   ========================= */
   :root{
    --primary: #1F3A5F;      /* marinblå */
    --primary-dark: #162B47;
    --accent: #D9851F;       /* orange, mer dämpad */
    --accent-dark: #B96F16;
  
    --text: #1F2933;
    --muted: #667085;
  
    --bg: #F6F7F9;
    --surface: #FFFFFF;
    --section: #EEF2F6;
    --border: #E5E7EB;
  }
  
  h1, h2, h3 {
    color: #161f32;
  }
  
  html, body{
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
  }
  
  
  html {
    scroll-behavior: smooth;
  }
  .dm-sans {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
  }


/* =========================
   LAYOUT
   ========================= */

/* =========================
   HEADER / NAVIGATION
   ========================= */

/* =========================
   BUTTONS
   ========================= */

/* =========================
   HERO
   ========================= */

/* =========================
   FRONT PAGE
   ========================= */

/* =========================
   OBJEKT / CARDS
   ========================= */

/* =========================
   ABOUT PAGE
   ========================= */

/* =========================
   CONTACT PAGE
   ========================= */

/* =========================
   FOOTER
   ========================= */

/* =========================
   RESPONSIVE
   ========================= */

.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 40px; 
}

.site-brand { display: inline-flex; align-items: center; text-decoration: none; }
.site-brand img { max-height: 56px; width: auto; display: block; }

.site-nav { flex: 1; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; align-items: center; }

/* Text på navmenyn (lediga objekt, om oss mm)*/
.nav-menu a{
  position: relative;
  text-decoration: none;
  color: #1F2933;
  padding: 10px 6px;
  font-weight: 200;
  opacity: .92;
}
/* underline animation */
.nav-menu a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:4px;
  width:0%;
  height:2px;
  background: var(--primary);
  transition: width .22s ease;
}

.nav-menu .current-menu-item > a[href*="#hyresgastportalen"]::after,
.nav-menu .current_page_item > a[href*="#hyresgastportalen"]::after,
.nav-menu .current-menu-ancestor > a[href*="#hyresgastportalen"]::after {
  width: 0;
}

.nav-menu a:hover::after {
  width: 100%;
}
.nav-menu a:hover{
  opacity: 1;
}

.nav-toggle { display: none; border: 1px solid #ddd; background: #fff; border-radius: 10px; padding: 8px 10px; }
.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; }

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 80px; background: #fff; border-bottom: 1px solid #eee; }
  .site-nav.is-open { display: block; }
  .nav-menu { flex-direction: column; align-items: flex-start; padding: 12px 20px; }
  .nav-cta { display: none; } /* CTA kan flyttas in i menyn senare om du vill */
}
/* Navbar look: "bg-card/95 backdrop-blur shadow-sm" */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

/* Layout som flex + gap + height */
.header-inner{
  display:flex;
  align-items:center;
  gap: 28px;          /* motsvarar gap-6 */
  min-height: 80px;   /* h-16/md:h-20-ish */
}

/* Markera aktiv sida */
.nav-menu .current-menu-item > a::after{
  width:100%;
}

/* Ta bort underline endast på startsidan när den är aktiv */
.nav-menu .current-menu-item.menu-item-home > a::after,
.nav-menu .current_page_item.menu-item-home > a::after {
  width: 0;
}

/* Men visa underline när man hovrar på startsidan */
.nav-menu .current-menu-item.menu-item-home > a:hover::after,
.nav-menu .current_page_item.menu-item-home > a:hover::after {
  width: 100%;
}

/* CTA-knappen: mer "rounded-lg" / pill */
.nav-cta{
  text-decoration:none;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary);
  color:#fff;
  border: 1px solid transparent;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.nav-cta:hover{
  transform: translateY(-1px);
  background: var(--primary-dark);
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

/* Objekt grid */

.objekt-single {
  padding: 40px 20px;
}

.objekt-hero img {
  width: 100%;
  border-radius: 16px;
  margin: 20px 0;
}

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

.objekt-info li {
  margin-bottom: 8px;
  font-size: 18px;
}
.home-objekt-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.home-objekt-list li {
  margin-bottom: 12px;
}

/* kortets layout på startsidan */
.objekt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.objekt-grid--home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1100px;
}

@media (max-width: 980px) {
  .objekt-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .objekt-grid--home {
    grid-template-columns: 1fr;
  }
}

.archive-objekt .objekt-grid--archive {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1100px;
  margin-top: 32px;
}

.archive-objekt .prop-card-link {
  width: 100%;
}

@media (max-width: 980px) {
  .archive-objekt .objekt-grid--archive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .archive-objekt .objekt-grid--archive {
    grid-template-columns: 1fr;
  }
}

.no-objects {
  text-align: center;
  padding: 48px 0 24px;
  max-width: 520px;
  margin: 0 auto;
}

.no-objects p {
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  font-size: 17px;
  color: #6b7280;
}

.no-available-message {
  max-width: 720px;
  margin: 20px 0 8px;
}

.no-available-message p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #6b7280;
}

/* HERO */
.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  padding: 0 0 44px;
}


.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(21, 28, 35, 0.38), rgba(25, 35, 46, 0.45)),
    url('../img/personal-nilob-2.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.hero-title {
  max-width: 700px;
  margin: 0 0 14px;
  font-size: 56px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255,255,255,.92);
}


.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}


.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  background: var(--primary-dark);
}

.btn-ghost {
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,.30);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.16);
}

@media (max-width: 900px) {
  .hero {
    min-height: 68vh;
    padding: 0 0 40px;
    align-items: flex-end;
  }

  .hero-inner {
    padding: 0 24px;
  }

  .hero-title {
    font-size: 44px;
    line-height: 1.02;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .btn {
    min-height: 50px;
    padding: 0 20px;
  }
}


.icon{ width:18px; height:18px; display:inline-block; background:#6b7280; mask-size:contain; mask-repeat:no-repeat; mask-position:center; -webkit-mask-size:contain; -webkit-mask-repeat:no-repeat; -webkit-mask-position:center; }
.icon--pin{ mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M12 22s7-4.35 7-12a7 7 0 10-14 0c0 7.65 7 12 7 12zm0-9a3 3 0 110-6 3 3 0 010 6z"/></svg>'); -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M12 22s7-4.35 7-12a7 7 0 10-14 0c0 7.65 7 12 7 12zm0-9a3 3 0 110-6 3 3 0 010 6z"/></svg>'); }
.icon--area{ mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M3 3h8v2H5v6H3V3zm16 0h2v8h-2V5h-6V3h6zM3 13h2v6h6v2H3v-8zm18 0v8h-8v-2h6v-6h2z"/></svg>'); -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M3 3h8v2H5v6H3V3zm16 0h2v8h-2V5h-6V3h6zM3 13h2v6h6v2H3v-8zm18 0v8h-8v-2h6v-6h2z"/></svg>'); }
.icon--home{ mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M12 3l9 8h-3v10h-5v-6H11v6H6V11H3l9-8z"/></svg>'); -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M12 3l9 8h-3v10h-5v-6H11v6H6V11H3l9-8z"/></svg>'); }

.prop-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  height: 100%;
}
.prop-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
}

.prop-media {
  position: relative;
  height: 180px;
  flex-shrink: 0;
  background: #e5e7eb;
}

.prop-body {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 10px;
  flex: 1;
}

.prop-type {
  display: inline-block;
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  color: #6b7280;
}

.prop-title {
  margin: 0;
  font-size: clamp(1.4rem, 1.6vw, 1.8rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prop-loc {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}

.prop-facts {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  color: #374151;
  margin-top: 0;
}
.prop-address {
  font-size: 14px;
  line-height: 1.45;
  color: #6b7280;
  margin-top: auto;
}

.prop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.prop-card:active {
  transform: translateY(-2px) scale(0.99);
}

.prop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prop-media--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #eef1f4 0%, #e5e7eb 100%);
}

.prop-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .18s ease;
}

.prop-card:hover .badge {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.05);
}

.prop-fact {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  z-index: 2;
}

.badge--green { background: #6cbd8a; }
.badge--red { background: #d66262; }
.badge--gray { background: #6b7280; }


.btn-primary{
  background: var(--primary);
  color: #fff;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
  filter: brightness(1.05);
}

.btn-primary:active{
  transform: translateY(0);
  box-shadow: none;
}

.about-link {
  display: inline-block;
  margin-top: 16px;

  font-size: 15px;
  font-weight: 500;
  color: var(--primary);

  text-decoration: none;
}

.about-link:hover {
  text-decoration: underline;
}

/* =========================
   CONTACT PAGE (CF7)
   ========================= */

   .contact-wrap{
    padding: 110px 0 70px;
    background: #f7f6f3;
  }
  
  .contact-grid{
    display:grid;
    grid-template-columns: 1fr 560px;
    gap: 36px;
    align-items:start;
  }
  
  /* Card look */
  .contact-card{
    background:#fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    padding: 20px;
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
  }
  .contact-card h2{
    margin: 0 0 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--text);
  }

  @media (max-width: 980px){
    .contact-grid{
      grid-template-columns: 1fr;
      gap: 24px;
    }
  
    .contact-card{
      width: 100%;
      max-width: 100%;
    }
  }

  /* Titles */
  .contact-title{
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 24px;
  }
  
  /* Left info list */
  .contact-list{
    display:flex;
    flex-direction:column;
    gap: 14px;
  }
  
  .contact-item{
    display:flex;
    gap: 14px;
    align-items:center;
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    transition: transform .16s ease, box-shadow .16s ease;
  }
  
  .contact-item:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
  }
  
  .contact-icon{
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #eef0ea; /* ljus grön/neutral */
    display:flex;
    align-items:center;
    justify-content:center;
    transition: background .16s ease, transform .16s ease;
  }
  
  /* ikon “blir blå” vid hover */
  .contact-item:hover .contact-icon{
    background: var(--primary);
    transform: scale(1.03);
  }
  
  /* gör svg-ikoner vita på hover */
  .contact-icon svg{
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    transition: stroke .16s ease;
  }
  .contact-item:hover .contact-icon svg{
    stroke:#fff;
  }
  
  .contact-meta{
    display:flex;
    flex-direction:column;
    gap: 4px;
  }
  
  .contact-label{
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.3;
    color:#6b7280;
    margin-bottom: 2px;
  }
  
  .contact-value{
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 400;
    color:#111827;
  }
  /* Right form styling (CF7) */
  .wpcf7{
    margin:0;
  }

  /* mellanrummet mellan formulärraderna */
  .wpcf7-form p{
    margin: 0 0 10px;
  }
  
  .wpcf7 label{
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 6px;
  }
  
  .wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea{
  width: 100%;
  display: block;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  font: inherit;
  background: #fff;
  margin-top: 6px;
}

.wpcf7 textarea{
  min-height: 120px;
  resize: none;
}
  
  .wpcf7 input:focus,
  .wpcf7 textarea:focus{
    border-color: rgba(46,75,47,.55);
    box-shadow: 0 0 0 4px rgba(46,75,47,.12);
  }
  
  /* Submit button */
  .wpcf7 input[type="submit"]{
    width:100%;
    margin-top: 14px;
    border:0;
    border-radius: 16px;
    padding: 14px 18px;
    background: var(--primary);
    color:#fff;
    font-weight: 700;
    cursor:pointer;
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  }
  
  .wpcf7 input[type="submit"]:hover{
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 14px 30px rgba(0,0,0,.16);
  }
  
  .wpcf7 input[type="submit"]:active{
    transform: translateY(0);
    box-shadow:none;
  }
  
  /* CF7 messages */
  .wpcf7-response-output{
    border: 0 !important;
    border-radius: 14px;
    padding: 12px 14px !important;
    margin: 14px 0 0 !important;
  }
  .wpcf7 form.invalid .wpcf7-response-output{
    background: rgba(239,68,68,.10);
    color: #991b1b;
  }
  .wpcf7 form.sent .wpcf7-response-output{
    background: rgba(34,197,94,.10);
    color: #166534;
  }

  .contact-page{
    padding-top: 120px;
  }
  
  .contact-page .container{
    max-width: 1050px;
  }

  .contact-item,
  .contact-item:visited,
  .contact-item:hover{
    text-decoration: none;
    color: inherit;
  }

.contact-title,
.contact-label,
.contact-meta,
.contact-value{
  font-family: 'DM Sans', sans-serif !important;
}


/* Hyresgästportalen 
.tenant-section{
  padding: 90px 0 110px;
}

.tenant-card{
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 42px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 20px 40px rgba(15, 23, 42, .06);
  text-align: center;
}

.tenant-pill{
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #EEF2F6;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
}

.tenant-title{
  margin: 0 0 24px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
}

.tenant-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.tenant-btn:hover{
  transform: translateY(-1px);
  background: var(--accent-dark);
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}


.tenant-text{
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 18px;
  line-height: 1.6;
  color: #6B7280;
}


#hyresgastportalen{
  scroll-margin-top: 120px;
}

@media (max-width: 768px){
  .tenant-section{
    padding: 64px 0 80px;
  }

  .tenant-card{
    padding: 32px 24px;
    border-radius: 22px;
  }

  .tenant-title{
    font-size: 34px;
  }

  .tenant-text{
    font-size: 16px;
  }
}
*/ 

/* FOOTER */
.site-footer{
  background: #1B2C44;
  color: rgba(255,255,255,.82);
  margin-top: 80px;
  padding-top: 56px;
}

.footer-inner{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 40px;
}

.footer-logo{
  display: inline-block;
  margin-bottom: 24px;
}

.footer-logo img{
  height: 75px; 
  width: auto;
  max-width: none;
}

.footer-text{
  max-width: 320px;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
}

.footer-heading{
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.footer-links,
.footer-contact{
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li,
.footer-contact li{
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.6;
}

.footer-links a,
.footer-contact a{
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color .15s ease;
}

.footer-links a:hover,
.footer-contact a:hover{
  color: #fff;
}

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 22px 0 28px;
}

.footer-bottom p{
  margin: 0;
  text-align: center;
  font-size: 15px;
  color: rgba(255,255,255,.62);
}

@media (max-width: 900px){
  .footer-inner{
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-text{
    max-width: 100%;
  }
}

/* OM OSS SIDAN */

.about-hero {
  padding: 80px 0 40px;
}

.about-hero__inner {
  max-width: 820px;
}

.section-kicker {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.about-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.6rem, 4.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text);
  max-width: 900px;
}

.about-hero__lead {
  max-width: 720px;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.75;
  color: #4b5563;
}

.about-story {
  padding: 28px 0 72px;
}

.about-story__grid {
  display: block;
  max-width: 760px;
}

.about-story__intro {
  margin-bottom: 20px;
}

.about-story__intro h2 {
  margin: 0;
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 480px;
}

.about-story__text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: #4b5563;
  max-width: 560px;
}

.team-section {
  background: #f1f5f8;
  padding: 60px 0;
}

.team-section .container {
  max-width: 1180px;
  margin: 0 auto;
}

.section-head--center {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head--center h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-intro {
  margin: 0;
  color: #6b7280;
  line-height: 1.75;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.team-card {
  background: #fff;
  border: 1px solid #e8ebee;
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;

  transform: scale(0.94);
  transform-origin: top center;
}

.team-card__media {
  width: 100%;
  background: #eef2f4;
}

.team-card__media img {
  width: 100%;
  height: auto; 
  object-fit: contain; 
  display: block;
}

.team-card__body {
  padding: 18px;
}

.team-card__role {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.team-card__name {
  margin: 0 0 12px;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.team-card__text {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 980px) {
  .about-story__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .about-hero {
    padding: 56px 0 28px;
  }

  .about-story {
    padding: 20px 0 56px;
  }

  .team-section {
    padding: 0 0 64px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card__body {
    padding: 18px 18px 20px;
  }
}


@media (max-width: 640px){
  .container{
    padding: 0 20px;
  }

  .contact-page{
    padding-top: 96px;
  }

  .contact-title{
    font-size: 28px;
  }

  .contact-item{
    padding: 16px;
    align-items: flex-start;
  }

  .contact-value{
    font-size: 15px;
    line-height: 1.45;
  }
}