:root {
  --primary-color: #162b3a;
  --secondary-color: #542cb2;
  --accent-color: #86B3D1;
  --light-color: #EBF3F9;
  --dark-color: #1D2A3C;
  --gradient-primary: linear-gradient(135deg, #162b3a 0%, #542cb2 100%);
  --hover-color: #1D4460;
  --background-color: #F4F8FB;
  --text-color: #3A4A58;
  --border-color: rgba(45, 92, 127, 0.15);
  --shadow-color: rgba(29, 42, 60, 0.08);
  --highlight-color: #D4E9F5;
  --main-font: 'Oswald', sans-serif;
  --alt-font: 'Open Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.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;
}

body {
  font-family: var(--alt-font);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* Pattern: diagonal thin lines */
.pattern-bg {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(45, 92, 127, 0.04) 0px,
    rgba(45, 92, 127, 0.04) 1px,
    transparent 1px,
    transparent 18px
  );
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

header {
  background: var(--dark-color);
  padding: 1.2rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-color);
}

header::before,
header::after {
  content: '';
  position: absolute;
  display: none;
}

@media (min-width: 768px) {
  header::before {
    display: block;
    width: 160px;
    height: 160px;
    border: 2px solid rgba(134, 179, 209, 0.12);
    border-radius: 4px;
    right: 40px;
    top: -60px;
    transform: rotate(20deg);
  }
  header::after {
    display: block;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(134, 179, 209, 0.08);
    border-radius: 4px;
    right: 220px;
    bottom: -30px;
    transform: rotate(10deg);
  }
}

.container {
  max-width: 1050px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: white;
  font-family: var(--main-font);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.1em;
  width: fit-content;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 1.8rem 0;
  justify-content: center;
}

.product-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .product-section {
    grid-template-columns: 320px 1fr;
  }
}

.product-left {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.product-image-container {
  background: white;
  border-radius: 10px;
  padding: 1.2rem;
  border-top: 3px solid var(--primary-color);
  box-shadow: 0 3px 12px var(--shadow-color);
  display: flex;
  justify-content: center;
}

.product-image-container picture {
  display: flex;
  justify-content: center;
}

.product-image {
  width: 55%;
  height: auto;
  transition: transform 0.3s ease;
}

.product-image:hover {
  transform: scale(1.04);
}

.guarantee-block {
  background: var(--highlight-color);
  color: var(--dark-color);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
  box-shadow: 0 2px 6px var(--shadow-color);
}

.guarantee-block h3 {
  font-family: var(--main-font);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--dark-color);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.guarantee-block p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--dark-color);
}

/* Feature items — icon on top, text below, grid 2 columns */
.features-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.5rem;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 4px var(--shadow-color);
  text-align: center;
  transition: all 0.25s ease;
}

.feature-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.feature-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.feature-item span:last-child {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-color);
  font-family: var(--main-font);
  letter-spacing: 0.02em;
}

.cart-button {
  background: var(--gradient-primary);
  color: white;
  padding: 0.8rem 1.4rem;
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--main-font);
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  display: block;
  text-align: center;
  box-shadow: 0 3px 9px var(--shadow-color);
  transition: all 0.25s ease;
  border: none;
  text-transform: uppercase;
}

.cart-button:hover {
  background: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 14px var(--shadow-color);
}

.product-right h1 {
  font-family: var(--main-font);
  font-size: 1.65rem;
  color: var(--dark-color);
  margin-bottom: 0.45rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0.55rem 0;
  font-family: var(--main-font);
}

.product-description {
  font-size: 0.86rem;
  margin-bottom: 0.9rem;
  line-height: 1.75;
  color: var(--text-color);
}

.highlight-text {
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 7px;
  font-weight: 700;
  margin: 0.9rem 0;
  text-align: center;
  font-size: 0.9rem;
  font-family: var(--main-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-left: 4px solid var(--accent-color);
}

.features-list {
  list-style: none;
  margin: 0.8rem 0;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: white;
  box-shadow: 0 1px 3px var(--shadow-color);
  transition: all 0.25s ease;
  font-size: 0.84rem;
}

.features-list li:hover {
  border-color: var(--primary-color);
  background: var(--light-color);
}

.feature-check {
  width: 17px;
  height: 17px;
  background: var(--primary-color);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 0.65rem;
  margin-top: 2px;
}

/* Random block */
.random-block {
  background: var(--dark-color);
  padding: 2rem 1.5rem;
}

.random-block h2 {
  font-family: var(--main-font);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.4rem;
  letter-spacing: 0.04em;
}

.random-block-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  max-width: 1050px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .random-block-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.random-block-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(134, 179, 209, 0.15);
  border-radius: 8px;
  padding: 1.1rem 1rem;
  text-align: center;
  transition: transform 0.25s ease;
}

.random-block-item:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.1);
}

.random-block-icon {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
  display: block;
}

.random-block-item h3 {
  font-family: var(--main-font);
  font-size: 0.88rem;
  color: var(--highlight-color);
  margin-bottom: 0.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.random-block-item p {
  font-size: 0.79rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

/* Testimonials */
.testimonials {
  background: var(--light-color);
  color: var(--dark-color);
  padding: 2rem 1.5rem;
  border-top: 2px solid var(--primary-color);
}

.testimonials h2 {
  font-family: var(--main-font);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1.4rem;
  letter-spacing: 0.02em;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  max-width: 1050px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.testimonial {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 7px var(--shadow-color);
  transition: transform 0.25s ease;
  border-left: 3px solid var(--primary-color);
}

.testimonial:hover {
  transform: translateY(-2px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.testimonial-icon {
  width: 34px;
  height: 34px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  color: white;
}

.testimonial-name {
  font-family: var(--main-font);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--dark-color);
  letter-spacing: 0.03em;
}

.testimonial p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-color);
}

/* Footer */
footer {
  background: var(--dark-color);
  color: white;
  padding: 1.4rem 1.5rem 0.9rem;
}

.footer-content {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  padding-bottom: 0.9rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-nav {
    justify-content: flex-end;
  }
}

.footer-nav a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: var(--highlight-color);
}

.footer-credit {
  text-align: center;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
  font-size: 0.77rem;
  max-width: 1050px;
  margin: 0 auto;
}

.footer-credit a {
  color: var(--highlight-color);
  text-decoration: none;
}