* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: Roboto, Arial, sans-serif;
  background: #fff;
  color: #222;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  display: flex;
  justify-content: flex-end;
  padding: 24px 32px 0;
}


.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.5px;
  text-decoration: none;
  font-family: "Arial Narrow", Arial, sans-serif;
}

.brand img {
  width: 100%;
  max-width: 350px;
}



main {
  flex: 1;
  width: 100%;
  max-width: 874px;
  margin: 0 auto;
  padding: 0 16px;
}

.clock {
  text-align: center;
  font-size: 42px;
  color: #555;
  margin: 24px 0 50px;
}

.search {
  display: flex;
  max-width: 766px;
  margin: 0 auto;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.search input {
  flex: 1;
  min-width: 0;
  height: 61px;
  border: none;
  padding: 0 18px;
  font-size: 18px;
  outline: none;
}

.search button {
  width: 120px;
  border: none;
  background: #3a7de4;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.search button:hover {
  background: #2f6bc8;
}

.shortcuts-wrap {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  margin-top: 40px;
  min-height: 130px;
  padding: 6px 4px;
}

.shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.shortcuts a {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.1;
  transition: transform .1s;
}

.shortcuts a:hover {
  transform: translateY(-2px);
}

.shortcuts-wrap.hidden .shortcuts {
  display: none;
}

.hide-toggle {
  text-align: right;
  margin-top: 24px;
}

.hide-toggle button {
  background: none;
  border: none;
  color: #555;
  font-size: 18px;
  cursor: pointer;
  font-family: inherit;
}

.row-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-bottom: 50px;
  overflow: hidden;
  height: 250px;
  transition: 0.2s;
}

.row-container.hidden {
  height: 0;
}

.row-container .icons img {
  width: 100%;
  max-width: 350px;
}

.converter {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 90px;
  margin: 90px 0 60px;
  /* padding-left: 370px; */
  font-size: 15px;
  flex-wrap: wrap;
}

.converter .types {
  margin-top: 6px;
  font-size: 18px;
}

.converter .status {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  min-height: 18px;
}

footer {
  background: #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 36px;
  font-size: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

footer nav a {
  color: #222;
  text-decoration: none;
  margin-right: 14px;
}

footer nav a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  header {
    padding: 16px;
  }

  .brand {
    font-size: 22px;
  }

  .clock {
    margin-bottom: 50px;
  }

  .search button {
    width: 70px;
  }

  .converter {
    padding-left: 0;
    gap: 20px;
    justify-content: flex-start;
  }

  footer {
    padding: 16px;
    font-size: 15px;
  }
}

/* Privacy policy / content pages */
.page-header {
  position: relative;
  justify-content: center;
  align-items: center;
  padding: 20px 32px 0;
}

.page-header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
}

.page-header .brand {
  position: absolute;
  right: 28px;
  top: 34px;
  font-size: 32px;
}

.policy {
  max-width: 890px;
  padding: 80px 16px 80px;
  font-size: 13.5px;
  line-height: 1.17;
}

.policy p {
  margin: 0 0 13px;
}

.policy h2 {
  font-size: 13.5px;
  font-weight: 400;
  margin: 0 0 13px;
}

.policy a {
  color: #00c;
}

@media (max-width: 760px) {
  .page-header {
    flex-direction: column-reverse;
    gap: 12px;
    padding: 16px;
  }

  .page-header .brand {
    position: static;
    font-size: 22px;
  }

  .page-header h1 {
    font-size: 26px;
  }

  .policy {
    padding-top: 20px;
    font-size: 15px;
    line-height: 1.4;
  }

  .policy h2 {
    font-size: 15px;
    font-weight: 500;
  }
}

/* Contact page */
.contact {
  text-align: center;
  padding: 40px 16px;
  font-size: 22px;
}

.contact p {
  margin: 0 0 28px;
}

.contact a {
  color: #00c;
}