/* «Гражда»: адаптація під планшет і телефон (поверх inline-стилів макета) */
html{-webkit-text-size-adjust:100%}
body{overflow-x:hidden}
img{max-width:100%}
@media (max-width:1100px){
  header > div:nth-child(2){gap:16px!important;padding:6px 20px!important}
  .mn a{padding:0 10px!important;font-size:12px!important;letter-spacing:.06em!important}
}
@media (max-width:900px){
  /* шапка: логотип зверху, меню під ним */
  header > div:first-child > div{padding:6px 14px!important}
  header > div:first-child > div > span:first-child{display:none}
  header > div:nth-child(2){display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:6px!important;padding:8px 10px 12px!important}
  header > div:nth-child(2) > nav, header > div:nth-child(2) > div, header > div:nth-child(2) > div > nav{display:contents!important}
  header > div:nth-child(2) > a:first-of-type{grid-column:1/-1;order:-1;text-align:center;padding:0!important}
  header > div:nth-child(2) > a:first-of-type img{height:80px!important;margin:0!important}
  .mn a, header a[href^="tel:"]{min-height:38px!important;padding:0 6px!important;font-size:11px!important;letter-spacing:.04em!important;justify-content:center;gap:5px!important}
  /* сітки в одну колонку */
  [style*="grid-template-columns"]:not(header *):not(header){grid-template-columns:1fr!important}
  [style*="grid-template-columns: repeat(3, 1fr)"][style*="gap: 24px"],[style*="grid-template-columns: repeat(3, 1fr)"][style*="gap: 20px"]{grid-template-columns:1fr!important}
  [style*="grid-column"]{grid-column:auto!important}
  /* висоти і відступи */
  [style*="height: 660px"],[style*="height: 620px"],[style*="height: 560px"],[style*="height: 520px"]{height:auto!important}
  [style*="height: 660px"] > a{min-height:430px}
  [style*="margin: 14px 28px 0"]{margin:10px 12px 0!important}
  section,[style*="max-width: 1400px"]{padding-left:16px!important;padding-right:16px!important}
  [style*="padding: 96px"]{padding-top:56px!important}
  [style*="padding: 80px"]{padding-top:48px!important;padding-bottom:48px!important}
  [style*="padding: 0 40px 40px"]{padding:0 22px 26px!important}
  [style*="padding: 34px 32px"]{padding:22px 18px!important}
  [style*="border-left: 1px solid #D9D1C4"]{border-left:0!important;border-top:1px solid #D9D1C4}
  /* шрифти */
  [style*="font-size: 46px"]{font-size:32px!important}
  [style*="font-size: 42px"],[style*="font-size: 44px"],[style*="font-size: 48px"]{font-size:30px!important}
  [style*="font-size: 38px"],[style*="font-size: 36px"],[style*="font-size: 34px"]{font-size:26px!important}
  [style*="font-size: 30px"]{font-size:22px!important}
  /* рядки, що не влазять */
  [style*="display: flex"][style*="justify-content: space-between"]{flex-wrap:wrap;gap:16px}
  footer [style*="display: flex"], footer nav{flex-wrap:wrap}
  [style*="white-space: nowrap"]{white-space:normal!important}
}
