:root {
  --primary-color: #2D5C7F;
  --secondary-color: #3A7399;
  --accent-color: #4A8FAD;
  --light-color: #EAF4F9;
  --dark-color: #1A3A50;
  --gradient-primary: linear-gradient(135deg, #2D5C7F 0%, #4A8FAD 100%);
  --hover-color: #1F4A66;
  --background-color: #F7FBFD;
  --text-color: #3D5263;
  --border-color: rgba(45, 92, 127, 0.15);
  --shadow-color: rgba(26, 58, 80, 0.09);
  --highlight-color: #D4ECF5;
  --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(--primary-color);
  padding: 1.2rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-color);
}

/* Decorative shapes in header - hidden on mobile */
header::before,
header::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  display: none;
}

@media (min-width: 768px) {
  header::before {
    display: block;
    width: 120px;
    height: 120px;
    background: white;
    right: 80px;
    top: -40px;
  }
  header::after {
    display: block;
    width: 60px;
    height: 60px;
    background: white;
    right: 180px;
    bottom: -20px;
  }
}

.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.5rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  width: fit-content;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2rem 0;
  justify-content: center;
}

.product-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .product-section {
    grid-template-columns: 380px 1fr;
  }
}

.product-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-image-container {
  background: white;
  border-radius: 10px;
  padding: 1.2rem;
  border: 1px solid var(--border-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 */
.guarantee-block {
  background: var(--dark-color);
  color: white;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px var(--shadow-color);
}

.guarantee-block h3 {
  font-family: var(--main-font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  color: var(--highlight-color);
}

.guarantee-block p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
}

/* Features icons */
.features-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px var(--shadow-color);
  transition: all 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}

.feature-item span:last-child {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.3;
}

.cart-button {
  background: var(--primary-color);
  color: white;
  padding: 0.78rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--main-font);
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  display: block;
  text-align: center;
  box-shadow: 0 3px 8px var(--shadow-color);
  transition: all 0.25s ease;
  border: none;
}

.cart-button:hover {
  background: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 14px var(--shadow-color);
}

/* Product right */
.product-right h1 {
  font-family: var(--main-font);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.price {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0.7rem 0;
  font-family: var(--main-font);
}

.product-description {
  font-size: 0.87rem;
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-color);
}

.highlight-text {
  background: var(--primary-color);
  color: white;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  margin: 1rem 0;
  text-align: center;
  font-size: 0.92rem;
  font-family: var(--main-font);
  letter-spacing: 0.03em;
}

.features-list {
  list-style: none;
  margin: 0.9rem 0;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
  padding: 0.7rem 0.85rem;
  background: white;
  border-radius: 7px;
  box-shadow: 0 2px 5px var(--shadow-color);
  border-left: 3px solid var(--accent-color);
  transition: all 0.25s ease;
  font-size: 0.86rem;
}

.features-list li:hover {
  transform: translateX(3px);
}

.feature-check {
  width: 18px;
  height: 18px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 0.72rem;
  margin-top: 1px;
}

/* Random block - full width */
.random-block {
  background: var(--light-color);
  border-top: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding: 2.2rem 1.5rem;
}

.random-block h2 {
  font-family: var(--main-font);
  text-align: center;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.6rem;
  letter-spacing: 0.02em;
}

.random-block-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 1050px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .random-block-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.random-block-item {
  background: white;
  border-radius: 9px;
  padding: 1.1rem;
  text-align: center;
  box-shadow: 0 2px 8px var(--shadow-color);
  border: 1px solid var(--border-color);
  transition: transform 0.25s ease;
}

.random-block-item:hover {
  transform: translateY(-3px);
}

.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.9rem;
  color: var(--primary-color);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.random-block-item p {
  font-size: 0.8rem;
  color: var(--text-color);
  line-height: 1.5;
}

/* Testimonials */
.testimonials {
  background: var(--dark-color);
  color: white;
  padding: 2.2rem 1.5rem;
}

.testimonials h2 {
  font-family: var(--main-font);
  text-align: center;
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  letter-spacing: 0.02em;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 1050px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.testimonial {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  padding: 1.05rem 1.1rem;
  transition: transform 0.25s ease;
}

.testimonial:hover {
  transform: translateY(-2px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.testimonial-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-family: var(--main-font);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.testimonial p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
}

/* Footer */
footer {
  background: var(--dark-color);
  color: white;
  padding: 1.5rem 1.5rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1rem;
}

@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.8rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-nav {
    justify-content: flex-end;
  }
}

.footer-nav a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 0.83rem;
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: var(--highlight-color);
}

.footer-credit {
  text-align: center;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  max-width: 1050px;
  margin: 0 auto;
}

.footer-credit a {
  color: var(--highlight-color);
  text-decoration: none;
}