:root{
  --container: 1637px;
  --gutter: 30px;
}

*,
*::before,
*::after{ box-sizing: border-box; }

html, body{ overflow-x: hidden; }

body{
  margin: 0;
  color: var(--color-dark);
  font-family: 'Nunito', Arial, sans-serif;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

img{ max-width: 100%; height: auto; display: block; }

.container-like{
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

header{
  width: 100%;
  margin: 0 auto;
}

.header-main{
  background: #f6f9fc;
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.header-flex{
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 10px var(--gutter) 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.header-logo img{
  display: block;
  height: 120px;
  width: auto;
}

.header-center{
  position: relative;
  width: min(720px, 100%);
  display: flex;
  justify-content: center;
  z-index: 2;
}

/* SEARCH */
.search-bar{
  display:flex;
  align-items:center;
  height:48px;
  border:1px solid #e5e7eb;
  border-radius:9999px;
  background:#fff;
  box-shadow: inset 0 1px 0 rgba(0,0,0,.02), 0 2px 8px rgba(0,0,0,.06);
  padding:0 8px 0 16px;
  position:relative;
  width:100%;
  margin:0;
}

.search-input{
  flex:1;
  height:100%;
  border:0;
  outline:0;
  background:transparent;
  font-size:16px;
  color:var(--color-dark, #111827);
  padding:0 8px;
}

.search-input::placeholder{ color:#9aa4af; }

.search-icon{
  width:38px; height:38px;
  border-radius:9999px;
  border:1px solid #fff;
  background:#fff url("/static/media/Search.svg") no-repeat center / 18px 18px;
  display:inline-block;
  margin-left:6px;
  cursor:pointer;
  transition:background .15s, border-color .15s, box-shadow .15s;
}
.search-icon:hover{
  background-color:#f3f4f6;
  border-color:#cfd6de;
}
.search-input:focus + .search-icon{
  box-shadow:0 0 0 3px rgba(53,121,167,.15);
  border-color:#bcd0db;
}

/* Autocomplete */
.autocomplete-box{
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--color-blue-light);
  color: #fff;
  border-radius: 0 0 8px 8px;
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(23,67,94,.12);
  display: none;
}
.autocomplete-suggestion{ padding: 10px 12px; cursor: pointer; }
.autocomplete-suggestion:hover{ background: var(--color-blue); }

/* Contacts */
.contact{
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-contact{
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--color-dark);
  font-size: 14px;
  min-width: 220px;
  white-space: nowrap;
}
.header-contact-row{
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-contact-row img{
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.header-call img{
  width: 64px;
  height: 64px;
  display: block;
}

/* Nav */
.header-nav-wrap{
  background: var(--color-blue);
  border-top: 1px solid rgba(255,255,255,.15);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.06);
}
.header-nav{
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 6px var(--gutter);
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: flex-start;
}
.header-nav a{
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-family: 'Nunito', Arial, sans-serif;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: opacity .15s, border-color .15s;
}
.header-nav a:hover{
  opacity: .9;
  border-color: rgba(255,255,255,.85);
}

header + *{ margin-top: 94px; }

/* Burger */
.burger{
  display:none;
  width:44px; height:44px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#fff;
  align-items:center; justify-content:center;
  gap:5px; padding:0 8px; cursor:pointer;
}
.burger span{
  display:block; width:22px; height:2px; background:#1f2937; transition:.2s;
}
.burger.is-open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2){ opacity:0; }
.burger.is-open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

.nav-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:49;
}

/* MQ */
@media (max-width: 1440px){
  .header-logo img{ height: 96px; }
  .header-center{ max-width: 770px; }
}

@media (max-width: 1200px){
  :root{ --container: 1000px; }
  .header-logo img{ height: 80px; }
  .header-center{ max-width: 560px; }
}

@media (max-width: 1024px){
  .burger{ display:flex; flex-direction:column; }

  .header-flex{
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 14px;
    padding: 10px 16px 12px;
    align-items: center;
  }

  /* Первая строка: бургер, логотип, контакты */
  .burger {
    grid-column: 1;
    grid-row: 1;
  }

  .header-logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .contact {
    grid-column: 3;
    grid-row: 1;
    order: 2;
    margin-left: 0;
  }

  /* Вторая строка: поиск */
  .header-center{
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    order: 3;
    margin-top: 8px;
  }

  .header-call img{ width: 50px; height: 50px; }

  .header-nav-wrap{
    position: fixed; top: 0; left: 0; height: 100vh; width: 84%;
    max-width: 360px;
    background: #fff;
    box-shadow: 4px 0 20px rgba(0,0,0,.08);
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 50;
    border-top: none;
  }
  .header-nav{
    display: flex; flex-direction: column; align-items: stretch;
    gap: 0; padding: 16px;
    max-width: none;
  }
  .header-nav a{
    color: #111827;
    background: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.35;
    font-family: 'Nunito', Arial, sans-serif;
  }
  .header-nav a:hover{ border-color: #cfd6de; opacity: 1; }

  .header-nav-wrap.is-open{ transform: translateX(0); }
  body.menu-open{ overflow: hidden; }

  .header-nav-wrap::before{ content:''; display:block; height:72px; }
}

@media (max-width: 970px){
  .header-logo img { 
    height: 40px;
  }
  
  .header-call img{ 
    width: 40px; 
    height: 40px; 
  }
  
  .header-contact{
    min-width: 0;      
    width: auto;
    gap: 6px;
    font-size: 12px;
  }
  
  .header-contact-row img{
    width: 14px;
    height: 14px;
  }
  
  .contact{
    gap: 8px;
  }
}

@media (max-width: 768px){
  .header-flex{
    padding: 8px 12px 10px;
    gap: 10px;
  }
  
  .header-logo img{ 
    height: 36px;
  }
  
  .header-call img{ 
    width: 36px; 
    height: 36px; 
  }
  
  .header-contact{
    font-size: 11px;
    gap: 4px;
  }
  
  .header-contact-row{
    gap: 4px;
  }
  
  .burger{
    width: 38px;
    height: 38px;
  }
  
  .burger span{
    width: 18px;
  }
}

@media (max-width: 480px){
  .header-flex{
    padding: 6px 10px 8px;
    gap: 8px;
  }
  
  .header-logo img{ 
    height: 32px;
  }
  
  .header-call img{ 
    width: 32px; 
    height: 32px; 
  }
  
  .header-contact{
    font-size: 10px;
    gap: 3px;
  }
  
  .header-contact-row img{
    width: 12px;
    height: 12px;
  }
  
  .contact{
    gap: 6px;
  }
  
  .burger{
    width: 34px;
    height: 34px;
  }
  
  .search-bar{
    height: 42px;
  }
  
  .search-input{
    font-size: 14px;
  }
}

@media (max-width: 360px){
  .header-contact{
    font-size: 9px;
  }
  
  .header-contact-row{
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }
  
  .header-contact-row img{
    width: 10px;
    height: 10px;
  }
}

@media (min-width: 1025px){
  .header-flex{
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 24px;
  }

  .header-center{
    position: static;
    transform: none;
    width: auto;
    max-width: 720px;
    margin: 0 12px;
  }

  .header-nav-wrap{
    background: var(--color-blue);
    position: static;
    height: auto;
    transform: none;
    box-shadow: none;
  }

  .header-nav{
    flex-direction: row;
    gap: 32px;
    padding: 6px var(--gutter);
    max-width: calc(var(--container) + var(--gutter) * 2);
  }

  .header-nav a{
    color: #fff;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    text-decoration: none;
    transition: opacity .15s, border-color .15s;
  }
  .header-nav a:hover{ border-color: rgba(255,255,255,.85); opacity: .9; }
}

.content{ flex: 1; }