:root {
  --paper: #f9f8ed;
  --text: #090909;
  --muted: #55514f;
  --blue: #2562df;
  --blue-dark: #1e5edc;
  --soft-panel: #e2e2e0;
  --card: #fbefeb;
  --field: #fff6c6;
  --line: #111;
  --max: 1280px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.35;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip-link:focus {
  left: 8px;
  z-index: 20;
  background: #fff;
  padding: 8px 10px;
}

.site-header {
  width: 100%;
  margin: 0 auto;
  min-height: 245px;
  padding: 22px 48px 0;
  display: grid;
  grid-template-columns: 230px 1fr;
  column-gap: 64px;
  align-items: start;
  position: relative;
}

.brand img {
  width: 150px;
  height: auto;
}

.header-controls {
  position: absolute;
  top: 35px;
  right: 50px;
  width: 594px;
  display: grid;
  grid-template-columns: 366px 158px;
  gap: 42px 64px;
  align-items: center;
}

.nav {
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  font-size: 14px;
  white-space: nowrap;
}

.nav a {
  color: #070707;
}

.nav a.active {
  color: #1262ff;
}

.quote-pill {
  display: inline-flex;
  min-width: 148px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #000;
  color: #fff !important;
  padding: 0 18px;
}

.search-wrap {
  width: 276px;
  height: 43px;
  border: 1px solid #898989;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  color: #222;
  grid-column: 1;
  margin-left: 90px;
}

.search-wrap svg {
  width: 17px;
  height: 17px;
  color: #555;
}

.search-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  font: 14px var(--sans);
  outline: 0;
}

.lang-select {
  width: 158px;
  height: 43px;
  border: 1px solid #898989;
  border-radius: 5px;
  background: transparent;
  padding: 0 14px;
  font: 14px var(--sans);
  grid-column: 2;
}

.page {
  overflow: hidden;
}

.hero {
  width: 100%;
  min-height: 716px;
  margin: 0 auto;
  padding: 78px 48px 0;
  display: grid;
  grid-template-columns: 620px minmax(450px, 1fr);
  column-gap: 95px;
}

.hero-copy {
  margin-left: 194px;
  padding-top: 44px;
  width: 430px;
}

.hero h1,
.section-title,
.story-title,
.blog-title,
.panel-title,
.calculator-result h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0 0 26px;
  max-width: 430px;
  font-size: 43px;
  line-height: 1.04;
}

.hero p {
  max-width: 370px;
  margin: 0 0 170px;
  font-size: 20px;
  line-height: 1.1;
}

.button {
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #2a72ff;
  background: transparent;
  color: #2369e9;
  font: 700 12px var(--sans);
  letter-spacing: .12em;
  padding: 0 40px;
  min-width: 286px;
}

.button.primary {
  background: #000;
  border-color: #000;
  color: #fff;
  min-width: 280px;
  letter-spacing: .18em;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 19px;
  align-items: flex-start;
}

.arrow {
  margin-left: 10px;
  font-size: 14px;
  line-height: 1;
}

.hero-images {
  position: relative;
  left: -180px;
  min-height: 520px;
}

.circle-img {
  position: absolute;
  border: 7px solid rgba(255, 255, 255, .94);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .22);
  overflow: hidden;
  background: #fff;
}

.circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-img.one {
  width: 176px;
  height: 176px;
  left: 225px;
  top: 2px;
}

.circle-img.two {
  width: 158px;
  height: 158px;
  left: 426px;
  top: 196px;
}

.circle-img.three {
  width: 190px;
  height: 184px;
  left: 196px;
  top: 370px;
}

.categories {
  position: relative;
  min-height: 500px;
  background-image: url("assets/packaging-boxes.jpg");
  background-size: cover;
  background-position: center;
}

.category-cards {
  width: min(980px, calc(100% - 72px));
  margin: 0 auto;
  padding-top: 122px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.category-card {
  min-height: 239px;
  background: var(--card);
  border-left: 2px solid rgba(185, 128, 86, .45);
  border-right: 2px solid rgba(185, 128, 86, .45);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 28px 24px;
}

.category-card h2 {
  margin: 0 0 38px;
  color: #514b4b;
  font: 27px/1.1 var(--sans);
  letter-spacing: .08em;
}

.category-card p {
  margin: 0;
  color: #746b69;
  font-size: 13px;
  line-height: 1.25;
}

.why {
  background: var(--blue);
  color: #fff;
  min-height: 491px;
}

.why-inner {
  width: min(980px, calc(100% - 72px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 290px 1fr;
  column-gap: 120px;
  align-items: center;
  min-height: 491px;
}

.section-title {
  font-size: 47px;
  line-height: 1.05;
  margin: 0;
}

.why-list {
  display: grid;
  gap: 45px;
}

.why-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 380px);
  align-items: center;
  column-gap: 16px;
}

.why-icon {
  width: 72px;
  height: 72px;
  color: #fff;
}

.why-icon.box {
  color: #ffeaa8;
}

.why-item p {
  margin: 0;
  font: 16px/1.05 var(--serif);
}

.budget {
  width: min(980px, calc(100% - 72px));
  margin: 0 auto;
  min-height: 572px;
  padding-top: 72px;
  display: grid;
  grid-template-columns: 496px minmax(330px, 1fr);
  gap: 95px;
  align-items: start;
}

.budget img {
  width: 496px;
}

.budget h2 {
  margin: 12px 0 33px;
  font: 28px/1.1 var(--serif);
}

.budget p {
  max-width: 410px;
  margin: 0 0 44px;
  font-size: 16px;
  line-height: 1.15;
}

.quote-section {
  min-height: 850px;
  padding: 68px 0 0;
}

.quote-section .section-title {
  width: min(1140px, calc(100% - 72px));
  margin: 0 auto 62px;
}

.quote-form {
  width: 525px;
  margin: 0 auto;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.form-grid {
  display: grid;
  gap: 22px;
}

label,
.label {
  display: block;
  font: 12px/1.2 var(--sans);
  margin: 0 0 8px;
}

input,
textarea,
select {
  font: 16px var(--sans);
  color: var(--text);
}

.input,
.textarea {
  width: 100%;
  border: 1px solid #111;
  border-radius: 8px;
  background: var(--field);
  min-height: 31px;
  padding: 6px 10px;
}

.textarea {
  min-height: 92px;
  resize: vertical;
}

.checks {
  display: grid;
  gap: 16px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.check input {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid #333;
  background: transparent;
}

.check input:checked {
  background: linear-gradient(#000, #000) center/8px 8px no-repeat;
}

.submit-row {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.submit {
  min-width: 180px;
  height: 43px;
  border: 0;
  border-radius: 22px;
  background: #000;
  color: #fff;
  font: 16px var(--sans);
  cursor: pointer;
}

.site-footer {
  width: 100%;
  margin: 0 auto;
  min-height: 125px;
  padding: 0 40px 28px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: start;
  font-size: 16px;
}

.footer-contact {
  display: grid;
  gap: 22px;
}

.footer-contact a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.content-page {
  width: 100%;
  margin: 0 auto;
  padding: 58px 48px 0;
}

.about-hero {
  background: var(--soft-panel);
  min-height: 734px;
  display: grid;
  justify-items: center;
  align-content: start;
  padding-top: 112px;
}

.about-hero h1 {
  margin: 0 0 60px;
  font: 56px/1 var(--serif);
  font-weight: 500;
}

.about-hero img {
  width: 706px;
  height: 446px;
  object-fit: cover;
}

.story {
  min-height: 802px;
  display: grid;
  grid-template-columns: 230px minmax(540px, 700px);
  gap: 155px;
  padding: 148px 72px 0;
}

.story-title {
  margin: 0;
  font-size: 41px;
  line-height: 1.05;
}

.story-body {
  font-size: 18px;
  line-height: 1.12;
}

.story-body p {
  margin: 0 0 24px;
}

.work-panel {
  background: var(--soft-panel);
  min-height: 515px;
  margin-bottom: 74px;
  display: grid;
  grid-template-columns: 310px 300px minmax(360px, 1fr);
  gap: 42px;
  padding: 75px 48px;
  align-items: start;
}

.panel-title {
  font-size: 42px;
  line-height: 1.12;
  margin: 0;
}

.panel-contact {
  padding-top: 60px;
  display: grid;
  gap: 20px;
  font-size: 16px;
}

.line-form {
  display: grid;
  gap: 30px;
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.line-field input,
.line-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #111;
  background: transparent;
  border-radius: 0;
  padding: 12px 0 8px;
  outline: 0;
}

.line-field textarea {
  min-height: 92px;
  resize: vertical;
}

.send-row {
  display: flex;
  justify-content: flex-end;
}

.send {
  width: 112px;
  height: 40px;
  border: 0;
  background: var(--blue-dark);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.calculator-page {
  width: min(980px, calc(100% - 72px));
  margin: 0 auto;
  min-height: 835px;
  padding-top: 122px;
  display: grid;
  grid-template-columns: 540px 1fr;
  gap: 120px;
}

.calculator-form {
  display: grid;
  gap: 28px;
}

.calc-control label {
  font-size: 16px;
  margin-bottom: 10px;
}

.calc-control input,
.calc-control select {
  width: 100%;
  height: 52px;
  border: 1px solid #111;
  background: transparent;
  border-radius: 0;
  padding: 0 16px;
  font-size: 20px;
}

.calc-check {
  margin: 2px 0 6px;
  font-size: 18px;
}

.calc-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.calc-button {
  width: 142px;
  height: 47px;
  border: 0;
  background: var(--blue-dark);
  color: #fff;
  font: 15px var(--sans);
  letter-spacing: .16em;
  cursor: pointer;
}

.calc-dot {
  font-size: 18px;
}

.calculator-result {
  padding-top: 258px;
}

.calculator-result h2 {
  font: 20px var(--sans);
  margin: 0 0 190px;
}

.estimate-value {
  display: block;
  margin-top: 18px;
  font-size: 36px;
  font-weight: 700;
  color: var(--blue-dark);
}

.calculator-result p {
  margin: 0;
  color: #565656;
  font-size: 12px;
}

.blog-page {
  width: min(980px, calc(100% - 72px));
  margin: 0 auto;
  min-height: 1020px;
  padding-top: 92px;
}

.all-posts-link {
  color: #1262ff;
  font-size: 18px;
}

.blog-title {
  margin: 88px 0 86px 20px;
  font-size: 42px;
  line-height: 1;
}

.posts {
  display: grid;
  gap: 40px;
}

.post-card {
  border: 1px solid #d6d5ce;
  min-height: 341px;
  display: grid;
  grid-template-columns: 454px 1fr;
  background: transparent;
}

.post-card img {
  width: 454px;
  height: 341px;
  object-fit: cover;
}

.post-body {
  padding: 32px 36px 24px;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
}

.post-meta {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #b8b8b8;
  position: relative;
}

.avatar::before,
.avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #e6e6e6;
  border-radius: 50%;
}

.avatar::before {
  width: 13px;
  height: 13px;
  top: 6px;
}

.avatar::after {
  width: 23px;
  height: 14px;
  bottom: 4px;
}

.dots {
  font-size: 26px;
  line-height: .7;
}

.post-card h2 {
  margin: 23px 0 16px;
  font: 34px/1.05 var(--serif);
  font-weight: 500;
}

.post-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.post-footer {
  border-top: 1px solid #d6d5ce;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.heart {
  color: #ff3d2f;
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 900px) {
  .site-header {
    min-height: 176px;
    grid-template-columns: 150px 1fr;
    column-gap: 20px;
    padding: 18px 16px 0;
  }

  .brand img {
    width: 115px;
  }

  .header-controls {
    position: static;
    width: auto;
    gap: 20px 20px;
  }

  .nav {
    gap: 28px;
    font-size: 13px;
  }

  .quote-pill {
    min-width: 130px;
  }

  .search-wrap {
    width: 260px;
    margin-left: 0;
  }

  .lang-select {
    width: 112px;
  }

  .hero {
    min-height: 800px;
    padding: 74px 8px 0;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }

  .hero-copy {
    margin-left: 0;
    padding-top: 0;
    width: auto;
  }

  .hero-images {
    left: 0;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 16px;
    margin-bottom: 76px;
  }

  .button,
  .button.primary {
    min-width: 0;
    width: 100%;
    max-width: 260px;
  }

  .circle-img.one {
    width: 142px;
    height: 142px;
    left: 20px;
    top: 0;
  }

  .circle-img.two {
    width: 132px;
    height: 132px;
    left: 118px;
    top: 198px;
  }

  .circle-img.three {
    width: 148px;
    height: 148px;
    left: 0;
    top: 380px;
  }

  .categories {
    min-height: 360px;
  }

  .category-cards {
    width: 100%;
    padding-top: 82px;
  }

  .category-card {
    min-height: 168px;
    padding: 20px 10px;
  }

  .category-card h2 {
    font-size: 19px;
    margin-bottom: 28px;
  }

  .category-card p {
    font-size: 11px;
  }

  .why-inner {
    width: calc(100% - 34px);
    grid-template-columns: 175px 1fr;
    gap: 30px;
  }

  .section-title {
    font-size: 37px;
  }

  .why-item {
    grid-template-columns: 62px 1fr;
  }

  .why-icon {
    width: 58px;
    height: 58px;
  }

  .why-item p {
    font-size: 13px;
  }

  .budget {
    width: calc(100% - 34px);
    min-height: 540px;
    grid-template-columns: 1fr 1fr;
    gap: 38px;
  }

  .budget img {
    width: 100%;
  }

  .quote-section .section-title {
    width: calc(100% - 16px);
  }

  .content-page {
    padding: 58px 16px 0;
  }

  .about-hero img {
    width: 70%;
    height: auto;
  }

  .story {
    grid-template-columns: 230px 1fr;
    gap: 70px;
    padding-left: 55px;
    padding-right: 30px;
  }

  .work-panel {
    grid-template-columns: 240px 260px 1fr;
    gap: 28px;
    padding: 62px 36px;
  }

  .calculator-page {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .blog-page {
    width: calc(100% - 34px);
  }
}

@media (max-width: 640px) {
  body {
    min-width: 320px;
  }

  .site-header {
    min-height: 174px;
    grid-template-columns: 125px 1fr;
    padding: 14px 8px 0;
    column-gap: 8px;
  }

  .brand img {
    width: 100px;
  }

  .header-controls {
    justify-self: stretch;
    position: static;
    width: auto;
    grid-template-columns: 1fr 96px;
    gap: 22px 20px;
  }

  .nav {
    grid-column: 1 / 3;
    justify-content: flex-end;
    gap: 14px;
    font-size: 11.5px;
  }

  .quote-pill {
    min-width: 104px;
    height: 27px;
    padding: 0 10px;
  }

  .search-wrap {
    width: auto;
    height: 36px;
    grid-column: 1;
    margin-left: 0;
  }

  .lang-select {
    width: 96px;
    height: 36px;
  }

  .hero {
    min-height: 580px;
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 68px;
  }

  .hero-actions {
    gap: 10px;
  }

  .button,
  .button.primary {
    height: 27px;
    font-size: 10px;
    letter-spacing: .12em;
    padding: 0 18px;
  }

  .circle-img {
    border-width: 5px;
  }

  .circle-img.one {
    width: 108px;
    height: 108px;
    left: 10px;
  }

  .circle-img.two {
    width: 97px;
    height: 97px;
    left: 102px;
    top: 135px;
  }

  .circle-img.three {
    width: 112px;
    height: 112px;
    left: 0;
    top: 292px;
  }

  .categories {
    min-height: 291px;
  }

  .category-cards {
    padding-top: 72px;
  }

  .category-card {
    min-height: 138px;
    padding: 14px 7px;
  }

  .category-card h2 {
    font-size: 18px;
    letter-spacing: .04em;
    margin-bottom: 24px;
  }

  .category-card p {
    font-size: 10px;
  }

  .why {
    min-height: 365px;
  }

  .why-inner {
    min-height: 365px;
    grid-template-columns: 145px 1fr;
    gap: 20px;
  }

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

  .why-list {
    gap: 29px;
  }

  .why-item {
    grid-template-columns: 48px 1fr;
    gap: 10px;
  }

  .why-icon {
    width: 46px;
    height: 46px;
  }

  .why-item p {
    font-size: 11px;
  }

  .budget {
    min-height: 535px;
    padding-top: 54px;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .budget h2 {
    font-size: 20px;
    margin: 0 0 24px;
  }

  .budget p {
    font-size: 13px;
  }

  .budget .button {
    font-size: 10px;
    padding: 0 12px;
  }

  .quote-section {
    min-height: 770px;
    padding-top: 20px;
  }

  .quote-form {
    width: min(340px, calc(100% - 32px));
  }

  .site-footer {
    min-height: 112px;
    padding: 0 24px 20px;
    grid-template-columns: 1fr 1.4fr;
    font-size: 12px;
  }

  .content-page {
    padding-top: 46px;
  }

  .about-hero {
    min-height: 375px;
    padding-top: 52px;
  }

  .about-hero h1 {
    font-size: 36px;
    margin-bottom: 32px;
  }

  .about-hero img {
    width: 75%;
  }

  .story {
    min-height: auto;
    grid-template-columns: 90px 1fr;
    gap: 28px;
    padding: 72px 8px;
  }

  .story-title,
  .panel-title {
    font-size: 32px;
  }

  .story-body {
    font-size: 14px;
  }

  .work-panel {
    min-height: 420px;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    padding: 44px 20px;
  }

  .work-panel .line-form {
    grid-column: 2;
  }

  .panel-contact {
    padding-top: 44px;
    font-size: 12px;
  }

  .two-fields {
    grid-template-columns: 1fr 1fr;
  }

  .calculator-page {
    width: calc(100% - 36px);
    min-height: 800px;
    padding-top: 80px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .calculator-result {
    padding-top: 22px;
  }

  .calculator-result h2 {
    margin-bottom: 40px;
  }

  .blog-page {
    min-height: 900px;
    padding-top: 80px;
  }

  .blog-title {
    margin: 58px 0 56px 20px;
    font-size: 34px;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-card img {
    width: 100%;
    height: auto;
  }

  .post-body {
    padding: 24px 24px 20px;
  }

  .post-card h2 {
    font-size: 27px;
  }
}
